Home
last modified time | relevance | path

Searched +full:i2c +full:- +full:alias (Results 1 – 25 of 51) sorted by relevance

123

/linux-6.12.1/Documentation/i2c/
Di2c-address-translators.rst1 .. 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 …]
/linux-6.12.1/drivers/i2c/
Di2c-atr.c1 // 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 …]
/linux-6.12.1/Documentation/devicetree/bindings/i2c/
Di2c-atr.yaml1 # 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 …]
Di2c-rk3x.yaml1 # 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 …]
/linux-6.12.1/include/linux/
Di2c-atr.h1 /* 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 …]
/linux-6.12.1/Documentation/devicetree/bindings/media/i2c/
Dti,ds90ub960.yaml1 # 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 …]
/linux-6.12.1/drivers/clk/samsung/
Dclk-s3c64xx.c1 // 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 …]
/linux-6.12.1/drivers/platform/x86/
Dserial-multi-instantiate.c1 // 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 …]
/linux-6.12.1/scripts/mod/
Dfile2alias.c1 /* 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 …]
/linux-6.12.1/drivers/of/
Dunittest.c1 // 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 …]
Dbase.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 1996-2005 Paul Mackerras.
67 node_name = kbasename(np->full_name); in of_node_name_eq()
68 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq()
79 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix()
94 for (; np; np = np->parent) in of_bus_n_addr_cells()
95 if (!of_property_read_u32(np, "#address-cells", &cells)) in of_bus_n_addr_cells()
98 /* No #address-cells property for the root node */ in of_bus_n_addr_cells()
104 if (np->parent) in of_n_addr_cells()
105 np = np->parent; in of_n_addr_cells()
[all …]
/linux-6.12.1/drivers/media/i2c/
Dds90ub960.c1 // 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 …]
/linux-6.12.1/arch/powerpc/boot/dts/fsl/
Dppa8548.dts1 // 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 …]
/linux-6.12.1/Documentation/devicetree/bindings/iio/accel/
Dadi,adxl367.yaml1 # 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 …]
/linux-6.12.1/arch/arm/boot/dts/aspeed/
Daspeed-bmc-ampere-mtmitchell.dts1 // SPDX-License-Identifier: GPL-2.0-only
4 /dts-v1/;
6 #include "aspeed-g6.dtsi"
7 #include <dt-bindings/i2c/i2c.h>
8 #include <dt-bindings/gpio/aspeed-gpio.h>
12 compatible = "ampere,mtmitchell-bmc", "aspeed,ast2600";
19 * I2C temperature alias port
27 * i2c bus 30-31 assigned to OCP slot 0-1
33 * i2c bus 32-33 assigned to Riser slot 0-1
39 * i2c bus 38-39 assigned to FRU on Riser slot 0-1
[all …]
/linux-6.12.1/drivers/gpu/drm/solomon/
Dssd130x-spi.c1 // 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 …]
/linux-6.12.1/arch/powerpc/platforms/512x/
Dclock-commonclk.c1 // 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 …]
/linux-6.12.1/Documentation/driver-api/media/drivers/
Dcx2341x-devel.rst1 .. SPDX-License-Identifier: GPL-2.0
7 -----------------------
12 .. note:: the memory long words are little-endian ('intel format').
21 .. code-block:: none
23 ivtvctl -O min=0x02000000,max=0x020000ff
26 register space :-).
35 .. code-block:: none
37 0x00000000-0x00ffffff Encoder memory space
38 0x00000000-0x0003ffff Encode.rom
39 ???-??? MPEG buffer(s)
[all …]
Dzoran.rst1 .. SPDX-License-Identifier: GPL-2.0
8 website: http://mjpeg.sourceforge.net/driver-zoran/
12 --------------------------
15 ------------------------
28 Drivers to use: videodev, i2c-core, i2c-algo-bit,
31 Inputs/outputs: Composite and S-video
45 Drivers to use: videodev, i2c-core, i2c-algo-bit,
49 Six physical inputs. 1-6 are composite,
50 1-2, 3-4, 5-6 doubles as S-video,
51 1-3 triples as component.
[all …]
/linux-6.12.1/scripts/dtc/libfdt/
Dlibfdt.h1 /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */
5 * libfdt - Flat Device Tree manipulation
35 * offset which is out-of-bounds, or which points to an
44 * length, or the phandle value was either 0 or -1, which are
48 * tree created by the sequential-write functions, which is
53 /* FDT_ERR_TRUNCATED: FDT or a sub-block is improperly
58 * device tree at all - it is missing the flattened device
63 * read-write functions, this may mean that fdt_open_into() is
70 /* FDT_ERR_BADLAYOUT: For read-write functions, the given
71 * device tree has it's sub-blocks in an order that the
[all …]
/linux-6.12.1/drivers/platform/x86/intel/int3472/
Dclk_and_regulator.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <linux/clk-provider.h>
16 * 82c0d13a-78c5-4244-9bb1-eb8b539a8d11
30 if (clk->ena_gpio) { in skl_int3472_enable_clk()
31 gpiod_set_value_cansleep(clk->ena_gpio, enable); in skl_int3472_enable_clk()
36 args[0].integer.value = clk->imgclk_index; in skl_int3472_enable_clk()
46 acpi_evaluate_dsm(acpi_device_handle(int3472->adev), &img_clk_guid, in skl_int3472_enable_clk()
89 obj = skl_int3472_get_acpi_buffer(int3472->sensor, "SSDB"); in skl_int3472_get_clk_frequency()
93 if (obj->buffer.length < CIO2_SENSOR_SSDB_MCLKSPEED_OFFSET + sizeof(u32)) { in skl_int3472_get_clk_frequency()
94 dev_err(int3472->dev, "The buffer is too small\n"); in skl_int3472_get_clk_frequency()
[all …]
/linux-6.12.1/arch/arm/boot/dts/broadcom/
Dbcm2711.dtsi1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/interrupt-controller/arm-gic.h>
5 #include <dt-bindings/soc/bcm2835-pm.h>
10 #address-cells = <2>;
11 #size-cells = <1>;
13 interrupt-parent = <&gicv2>;
16 compatible = "brcm,bcm2711-vc5";
20 clk_27MHz: clk-27M {
21 #clock-cells = <0>;
22 compatible = "fixed-clock";
[all …]
/linux-6.12.1/arch/sh/boards/mach-migor/
Dsetup.c1 // SPDX-License-Identifier: GPL-2.0
3 * Renesas System Solutions Asia Pte. Ltd - Migo-R
8 #include <linux/dma-map-ops.h>
19 #include <linux/i2c.h>
30 #include <media/drv-intf/renesas-ceu.h>
31 #include <media/i2c/ov772x.h>
32 #include <media/i2c/tw9910.h>
78 .mode = SH_KEYSC_MODE_2, /* KEYOUT0->4, KEYIN1->5 */
118 .mask_flags = MTD_WRITEABLE, /* Read-only */
148 .name = "physmap-flash",
[all …]
/linux-6.12.1/arch/sh/boards/mach-kfr2r09/
Dsetup.c1 // SPDX-License-Identifier: GPL-2.0
19 #include <linux/i2c.h>
35 #include <linux/dma-map-ops.h>
39 #include <media/drv-intf/renesas-ceu.h>
40 #include <media/i2c/rj54n1cb0c.h>
57 .mask_flags = MTD_WRITEABLE, /* Read-only */
82 .name = "physmap-flash",
100 .name = "onenand-flash",
106 .mode = SH_KEYSC_MODE_1, /* KEYOUT0->4, KEYIN0->4 */
185 .start = 0xfe940000, /* P4-only space */
[all …]
/linux-6.12.1/arch/arm64/boot/dts/rockchip/
Drk3399-gru.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
5 * Copyright 2016-2017 Google, Inc
8 #include <dt-bindings/input/input.h>
9 #include "rk3399-op1.dtsi"
18 stdout-path = "serial2:115200n8";
27 * - Rails that only connect to the EC (or devices that the EC talks to)
29 * - Rails _are_ included if the rails go to the AP even if the AP
36 * put the child rail as an alias of the parent rail. Sometimes rails
38 * - The EC controls the enable and the EC always enables a rail as
40 * - The rails are actually connected to each other by a jumper and
[all …]

123