| /kernel/linux/linux-6.6/Documentation/i2c/ |
| D | i2c-address-translators.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 I2C Address Translators 11 ----------- 13 An I2C Address Translator (ATR) is a device with an I2C slave parent 14 ("upstream") port and N I2C master child ("downstream") ports, and 17 called the "alias" and is (potentially) different from the physical 21 An ATR looks similar to an i2c-mux except: 22 - the address on the parent and child busses can be different 23 - there is normally no need to select the child port; the alias used on the 27 The kernel i2c-atr provides a helper to implement an ATR within a driver. [all …]
|
| /kernel/linux/linux-6.6/drivers/i2c/ |
| D | i2c-atr.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * I2C Address Translator 8 * Originally based on i2c-mux.c 12 #include <linux/i2c-atr.h> 13 #include <linux/i2c.h> 21 #define ATR_MAX_SYMLINK_LEN 11 /* Longest name is 10 chars: "channel-99" */ 24 * struct i2c_atr_alias_pair - Holds the alias assigned to a client. 27 * @alias: I2C alias address assigned by the driver. 28 * This is the address that will be used to issue I2C transactions 34 u16 alias; member [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/i2c/ |
| D | i2c-atr.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-atr.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Common i2c address translator properties 10 - Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> 13 An I2C Address Translator (ATR) is a device with an I2C slave parent 14 ("upstream") port and N I2C master child ("downstream") ports, and 17 called the "alias" and is (potentially) different from the physical 22 i2c-alias-pool: [all …]
|
| D | i2c-rk3x.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-rk3x.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip RK3xxx I2C controller 10 This driver interfaces with the native I2C controller present in Rockchip 14 - $ref: /schemas/i2c/i2c-controller.yaml# 17 - Heiko Stuebner <heiko@sntech.de> 23 - const: rockchip,rv1108-i2c 24 - const: rockchip,rk3066-i2c [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | i2c-atr.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * I2C Address Translator 8 * Based on i2c-mux.h 14 #include <linux/i2c.h> 22 * struct i2c_atr_ops - Callbacks from ATR to the device driver. 24 * bus, with the alias assigned to it. The driver must 25 * configure the hardware to use the alias. 28 * alias. 34 const struct i2c_client *client, u16 alias); 40 * i2c_atr_new() - Allocate and initialize an I2C ATR helper. [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/media/i2c/ |
| D | ti,ds90ub960.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/media/i2c/ti,ds90ub960.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Texas Instruments DS90UB9XX Family FPD-Link Deserializer Hubs 10 - Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> 13 The TI DS90UB9XX devices are FPD-Link video deserializers with I2C and GPIO 17 - $ref: /schemas/i2c/i2c-atr.yaml# 22 - ti,ds90ub960-q1 23 - ti,ds90ub9702-q1 [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/samsung/ |
| D | clk-s3c2412.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/clk-provider.h> 15 #include <dt-bindings/clock/s3c2412.h> 18 #include "clk-pll.h" 109 GATE(PCLK_I2C, "i2c", "pclk", CLKCON, 25, 0, 0), 118 GATE(PCLK_USBD, "usb-device", "pclk", CLKCON, 16, 0, 0), 127 GATE(HCLK_USBH, "usb-host", "hclk", CLKCON, 6, 0, 0), 137 ALIAS(PCLK_UART0, "s3c2412-uart.0", "uart"), 138 ALIAS(PCLK_UART1, "s3c2412-uart.1", "uart"), 139 ALIAS(PCLK_UART2, "s3c2412-uart.2", "uart"), [all …]
|
| D | clk-s3c2443.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/clk-provider.h> 15 #include <dt-bindings/clock/s3c2443.h> 18 #include "clk-pll.h" 121 GATE(HCLK_USBD, "usb-device", "hclk", HCLKCON, 12, 0, 0), 122 GATE(HCLK_USBH, "usb-host", "hclk", HCLKCON, 11, 0, 0), 146 ALIAS(MSYSCLK, NULL, "msysclk"), 147 ALIAS(ARMCLK, NULL, "armclk"), 148 ALIAS(MPLL, NULL, "mpll"), 149 ALIAS(EPLL, NULL, "epll"), [all …]
|
| D | clk-s3c2410.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/clk-provider.h> 13 #include <dt-bindings/clock/s3c2410.h> 16 #include "clk-pll.h" 80 GATE(PCLK_I2C, "i2c", "pclk", CLKCON, 16, 0, 0), 89 GATE(HCLK_USBD, "usb-device", "hclk", CLKCON, 7, 0, 0), 90 GATE(HCLK_USBH, "usb-host", "hclk", CLKCON, 6, 0, 0), 95 /* should be added _after_ the soc-specific clocks are created */ 97 ALIAS(PCLK_I2C, "s3c2410-i2c.0", "i2c"), 98 ALIAS(PCLK_ADC, NULL, "adc"), [all …]
|
| D | clk-s3c64xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/clk-provider.h> 14 #include <dt-bindings/clock/samsung,s3c64xx-clock.h> 17 #include "clk-pll.h" 98 /* S3C6400-specific parent clocks. */ 103 /* S3C6410-specific parent clocks. */ 311 ALIAS(FOUT_APLL, NULL, "fout_apll"), 312 ALIAS(FOUT_MPLL, NULL, "fout_mpll"), 313 ALIAS(FOUT_EPLL, NULL, "fout_epll"), 314 ALIAS(MOUT_EPLL, NULL, "mout_epll"), [all …]
|
| /kernel/linux/linux-6.6/drivers/clk/samsung/ |
| D | clk-s3c64xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/clk-provider.h> 14 #include <dt-bindings/clock/samsung,s3c64xx-clock.h> 17 #include "clk-pll.h" 98 /* S3C6400-specific parent clocks. */ 103 /* S3C6410-specific parent clocks. */ 311 ALIAS(FOUT_APLL, NULL, "fout_apll"), 312 ALIAS(FOUT_MPLL, NULL, "fout_mpll"), 313 ALIAS(FOUT_EPLL, NULL, "fout_epll"), 314 ALIAS(MOUT_EPLL, NULL, "mout_epll"), [all …]
|
| /kernel/linux/linux-5.10/scripts/mod/ |
| D | file2alias.c | 1 /* Simple code to turn various tables in an ELF file into alias definitions. 5 * Copyright 2002-2003 Rusty Russell, IBM Corporation 14 #include "devicetable-offsets.h" 59 int (*do_entry)(const char *filename, void *symval, char *alias); 62 /* Size of alias provided to do_entry functions */ 69 typeof(((struct devid *)0)->f) f = TO_NATIVE(*(typeof(f) *)((m) + OFF_##devid##_##f)) 76 typeof(((struct devid *)0)->f) *v = ((m) + OFF_##devid##_##f) 103 if (str[len - 1] != '*') in add_wildcard() 111 sprintf(str + len, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", in add_uuid() 120 * in .o file. If in-consistent then userspace and kernel does not agree [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/i2c/ |
| D | i2c-rk3x.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-rk3x.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip RK3xxx I2C controller 10 This driver interfaces with the native I2C controller present in Rockchip 14 - $ref: /schemas/i2c/i2c-controller.yaml# 17 - Heiko Stuebner <heiko@sntech.de> 23 - const: rockchip,rv1108-i2c 24 - const: rockchip,rk3066-i2c [all …]
|
| /kernel/linux/linux-6.6/scripts/mod/ |
| D | file2alias.c | 1 /* Simple code to turn various tables in an ELF file into alias definitions. 5 * Copyright 2002-2003 Rusty Russell, IBM Corporation 14 #include "devicetable-offsets.h" 63 int (*do_entry)(const char *filename, void *symval, char *alias); 66 /* Size of alias provided to do_entry functions */ 73 typeof(((struct devid *)0)->f) f = TO_NATIVE(*(typeof(f) *)((m) + OFF_##devid##_##f)) 80 typeof(((struct devid *)0)->f) *v = ((m) + OFF_##devid##_##f) 107 if (str[len - 1] != '*') in add_wildcard() 115 sprintf(str + len, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", in add_uuid() 126 sprintf(str + len, "%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X", in add_guid() [all …]
|
| /kernel/linux/linux-5.10/drivers/of/ |
| D | unittest.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #define pr_fmt(fmt) "### dt-test ### " fmt 10 #include <linux/dma-direct.h> /* to test phys_to_dma/dma_to_phys */ 26 #include <linux/i2c.h> 27 #include <linux/i2c-mux.h> 52 #define OF_KREF_READ(NODE) kref_read(&(NODE)->kobj.kref) 76 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name() 78 unittest(np && name && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name() 79 "find /testcase-data failed\n"); in of_unittest_find_node_by_name() 84 np = of_find_node_by_path("/testcase-data/"); in of_unittest_find_node_by_name() [all …]
|
| /kernel/linux/linux-6.6/drivers/of/ |
| D | unittest.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #define pr_fmt(fmt) "### dt-test ### " fmt 10 #include <linux/dma-direct.h> /* to test phys_to_dma/dma_to_phys */ 28 #include <linux/i2c.h> 29 #include <linux/i2c-mux.h> 54 #define OF_KREF_READ(NODE) kref_read(&(NODE)->kobj.kref) 85 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name() 87 unittest(np && name && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name() 88 "find /testcase-data failed\n"); in of_unittest_find_node_by_name() 93 np = of_find_node_by_path("/testcase-data/"); in of_unittest_find_node_by_name() [all …]
|
| D | base.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 1996-2005 Paul Mackerras. 66 node_name = kbasename(np->full_name); in of_node_name_eq() 67 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq() 78 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix() 93 for (; np; np = np->parent) in of_bus_n_addr_cells() 94 if (!of_property_read_u32(np, "#address-cells", &cells)) in of_bus_n_addr_cells() 97 /* No #address-cells property for the root node */ in of_bus_n_addr_cells() 103 if (np->parent) in of_n_addr_cells() 104 np = np->parent; in of_n_addr_cells() [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/boot/dts/fsl/ |
| D | ppa8548.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * PPA8548 Device Tree Source (36-bit address map) 7 * MPC8548 CDS Device Tree Source (36-bit address map) 11 /include/ "mpc8548si-pre.dtsi" 16 #address-cells = <2>; 17 #size-cells = <2>; 18 interrupt-parent = <&mpic>; 59 #address-cells = <1>; 60 #size-cells = <1>; 61 compatible = "cfi-flash"; [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/boot/dts/fsl/ |
| D | ppa8548.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * PPA8548 Device Tree Source (36-bit address map) 7 * MPC8548 CDS Device Tree Source (36-bit address map) 11 /include/ "mpc8548si-pre.dtsi" 16 #address-cells = <2>; 17 #size-cells = <2>; 18 interrupt-parent = <&mpic>; 59 #address-cells = <1>; 60 #size-cells = <1>; 61 compatible = "cfi-flash"; [all …]
|
| /kernel/linux/linux-6.6/drivers/media/i2c/ |
| D | ds90ub960.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for the Texas Instruments DS90UB960-Q1 video deserializer 12 * - PM for serializer and remote peripherals. We need to manage: 13 * - VPOC 14 * - Power domain? Regulator? Somehow any remote device should be able to 16 * - Link between the deserializer and the serializer 17 * - Related to VPOC management. We probably always want to turn on the VPOC 19 * - Serializer's services: i2c, gpios, power 20 * - The serializer needs to resume before the remote peripherals can 21 * e.g. use the i2c. [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/accel/ |
| D | adi,adxl367.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices ADXL367 3-Axis Digital Accelerometer 10 - Cosmin Tanislav <cosmin.tanislav@analog.com> 13 The ADXL367 is an ultralow power, 3-axis MEMS accelerometer. 15 The ADXL367 does not alias input signals by to achieve ultralow power 17 data rates. Measurement ranges of +-2g, +-4g, and +-8g are available, 18 with a resolution of 0.25mg/LSB on the +-2 g range. 22 It includes a deep multimode output FIFO, a built-in micropower [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/phy/ |
| D | samsung-phy.txt | 2 ------------------------------------------------- 5 - compatible : should be one of the listed compatibles: 6 - "samsung,s5pv210-mipi-video-phy" 7 - "samsung,exynos5420-mipi-video-phy" 8 - "samsung,exynos5433-mipi-video-phy" 9 - #phy-cells : from the generic phy bindings, must be 1; 12 - syscon - phandle to the PMU system controller 15 - samsung,pmu-syscon - phandle to the PMU system controller 16 - samsung,disp-sysreg - phandle to the DISP system registers controller 17 - samsung,cam0-sysreg - phandle to the CAM0 system registers controller [all …]
|
| /kernel/linux/linux-6.6/drivers/platform/x86/ |
| D | serial-multi-instantiate.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Serial multi-instantiate driver, pseudo driver to instantiate multiple 11 #include <linux/i2c.h> 55 switch (inst->flags & IRQ_RESOURCE_TYPE) { in smi_get_irq() 57 ret = acpi_dev_gpio_irq_get(adev, inst->irq_idx); in smi_get_irq() 59 dev_dbg(&pdev->dev, "Using gpio irq\n"); in smi_get_irq() 62 ret = platform_get_irq(pdev, inst->irq_idx); in smi_get_irq() 64 dev_dbg(&pdev->dev, "Using platform irq\n"); in smi_get_irq() 69 ret = acpi_dev_gpio_irq_get(adev, inst->irq_idx); in smi_get_irq() 72 ret = platform_get_irq(pdev, inst->irq_idx); in smi_get_irq() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/solomon/ |
| D | ssd130x-spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #define DRIVER_NAME "ssd130x-spi" 23 * but toggling the Data/Command control pin (D/C#). Since for 4-wire SPI 24 * a D/C# pin is used, in contrast with I2C where a control byte is sent, 34 struct spi_device *spi = t->spi; in ssd130x_spi_write() 38 gpiod_set_value_cansleep(t->dc, 0); in ssd130x_spi_write() 41 gpiod_set_value_cansleep(t->dc, 1); in ssd130x_spi_write() 43 /* Remove control byte since is not used in a 4-wire SPI interface */ in ssd130x_spi_write() 44 return spi_write(spi, reg + 1, count - 1); in ssd130x_spi_write() 51 return -EOPNOTSUPP; in ssd130x_spi_read() [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/platforms/512x/ |
| D | clock-commonclk.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <linux/clk-provider.h> 21 #include <dt-bindings/clock/mpc512x-clock.h> 89 * interpretation, no CFM, different fourth PSC/CAN mux0 input -- yet 292 val &= (1 << len) - 1; in get_bit_field() 305 spmf = get_bit_field(&clkregs->spmr, 24, 4); in get_spmf_mult() 326 divcode = get_bit_field(&clkregs->scfr2, 26, 6); in get_sys_div_x2() 350 cpmf = get_bit_field(&clkregs->spmr, 16, 4); in get_cpmf_mult_x2() 389 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-immr"); in get_freq_from_dt() 404 clks[i] = ERR_PTR(-ENODEV); in mpc512x_clk_preset_data() [all …]
|