Home
last modified time | relevance | path

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

12345678910>>...16

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/i2c/
Di2c-gate.txt1 An i2c gate is useful to e.g. reduce the digital noise for RF tuners connected
2 to the i2c bus. Gates are similar to arbitrators in that you need to perform
3 some kind of operation to access the i2c bus past the arbitrator/gate, but
7 Common i2c gate properties.
9 - i2c-gate child node
11 Required properties for the i2c-gate child node:
12 - #address-cells = <1>;
13 - #size-cells = <0>;
15 Optional properties for i2c-gate child node:
16 - Child nodes conforming to i2c bus binding
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/i2c/
Di2c-gate.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/i2c/i2c-gate.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Common i2c gate properties
10 - Peter Rosin <peda@axentia.se>
13 An i2c gate is useful to e.g. reduce the digital noise for RF tuners connected
14 to the i2c bus. Gates are similar to arbitrators in that you need to perform
15 some kind of operation to access the i2c bus past the arbitrator/gate, but
20 - $ref: /schemas/i2c/i2c-controller.yaml
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/imu/
Dinv_mpu6050.txt1 InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS MotionTracking Device
6 - compatible : should be one of
20 - reg : the I2C address of the sensor
21 - interrupts: interrupt mapping for IRQ. It should be configured with flags
25 Refer to interrupt-controller/interrupts.txt for generic interrupt client node
29 - vdd-supply: regulator phandle for VDD supply
30 - vddio-supply: regulator phandle for VDDIO supply
31 - mount-matrix: an optional 3x3 mounting rotation matrix
32 - i2c-gate node. These devices also support an auxiliary i2c bus. This is
33 simple enough to be described using the i2c-gate binding. See
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/imu/
Dinvensense,mpu6050.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: InvenSense MPU-6050 Six-Axis (Gyro + Accelerometer) MEMS MotionTracking Device
10 - Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
13 These devices support both I2C and SPI bus interfaces.
18 - enum:
19 - invensense,iam20680
20 - invensense,icm20608
21 - invensense,icm20609
[all …]
/kernel/linux/linux-5.10/drivers/staging/sm750fb/
Dddk750_power.c1 // SPDX-License-Identifier: GPL-2.0
75 void sm750_set_current_gate(unsigned int gate) in sm750_set_current_gate() argument
78 poke32(MODE1_GATE, gate); in sm750_set_current_gate()
80 poke32(MODE0_GATE, gate); in sm750_set_current_gate()
88 u32 gate; in sm750_enable_2d_engine() local
90 gate = peek32(CURRENT_GATE); in sm750_enable_2d_engine()
92 gate |= (CURRENT_GATE_DE | CURRENT_GATE_CSC); in sm750_enable_2d_engine()
94 gate &= ~(CURRENT_GATE_DE | CURRENT_GATE_CSC); in sm750_enable_2d_engine()
96 sm750_set_current_gate(gate); in sm750_enable_2d_engine()
101 u32 gate; in sm750_enable_dma() local
[all …]
/kernel/linux/linux-6.6/drivers/staging/sm750fb/
Dddk750_power.c1 // SPDX-License-Identifier: GPL-2.0
75 void sm750_set_current_gate(unsigned int gate) in sm750_set_current_gate() argument
78 poke32(MODE1_GATE, gate); in sm750_set_current_gate()
80 poke32(MODE0_GATE, gate); in sm750_set_current_gate()
88 u32 gate; in sm750_enable_2d_engine() local
90 gate = peek32(CURRENT_GATE); in sm750_enable_2d_engine()
92 gate |= (CURRENT_GATE_DE | CURRENT_GATE_CSC); in sm750_enable_2d_engine()
94 gate &= ~(CURRENT_GATE_DE | CURRENT_GATE_CSC); in sm750_enable_2d_engine()
96 sm750_set_current_gate(gate); in sm750_enable_2d_engine()
101 u32 gate; in sm750_enable_dma() local
[all …]
/kernel/linux/linux-6.6/drivers/media/tuners/
Dtda18218.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 /* Max transfer size done by I2C transfer functions */
20 .addr = priv->cfg->i2c_address, in tda18218_wr_regs()
27 dev_warn(&priv->i2c->dev, in tda18218_wr_regs()
28 "%s: i2c wr reg=%04x: len=%d is too big!\n", in tda18218_wr_regs()
30 return -EINVAL; in tda18218_wr_regs()
34 remaining -= (priv->cfg->i2c_wr_max - 1)) { in tda18218_wr_regs()
36 if (len2 > (priv->cfg->i2c_wr_max - 1)) in tda18218_wr_regs()
37 len2 = (priv->cfg->i2c_wr_max - 1); in tda18218_wr_regs()
40 buf[0] = reg + len - remaining; in tda18218_wr_regs()
[all …]
Dfc0013.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2012 Hans-Frieder Vogt <hfvogt@gmx.net>
11 #include "fc0013-priv.h"
17 .addr = priv->addr, .flags = 0, .buf = buf, .len = 2 in fc0013_writereg()
20 if (i2c_transfer(priv->i2c, &msg, 1) != 1) { in fc0013_writereg()
21 err("I2C write reg failed, reg: %02x, val: %02x", reg, val); in fc0013_writereg()
22 return -EREMOTEIO; in fc0013_writereg()
30 { .addr = priv->addr, .flags = 0, .buf = &reg, .len = 1 }, in fc0013_readreg()
31 { .addr = priv->addr, .flags = I2C_M_RD, .buf = val, .len = 1 }, in fc0013_readreg()
34 if (i2c_transfer(priv->i2c, msg, 2) != 2) { in fc0013_readreg()
[all …]
Dfc0012.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2012 Hans-Frieder Vogt <hfvogt@gmx.net>
9 #include "fc0012-priv.h"
15 .addr = priv->cfg->i2c_address, .flags = 0, .buf = buf, .len = 2 in fc0012_writereg()
18 if (i2c_transfer(priv->i2c, &msg, 1) != 1) { in fc0012_writereg()
19 dev_err(&priv->i2c->dev, in fc0012_writereg()
20 "%s: I2C write reg failed, reg: %02x, val: %02x\n", in fc0012_writereg()
22 return -EREMOTEIO; in fc0012_writereg()
30 { .addr = priv->cfg->i2c_address, .flags = 0, in fc0012_readreg()
32 { .addr = priv->cfg->i2c_address, .flags = I2C_M_RD, in fc0012_readreg()
[all …]
/kernel/linux/linux-5.10/drivers/media/tuners/
Dtda18218.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 /* Max transfer size done by I2C transfer functions */
20 .addr = priv->cfg->i2c_address, in tda18218_wr_regs()
27 dev_warn(&priv->i2c->dev, in tda18218_wr_regs()
28 "%s: i2c wr reg=%04x: len=%d is too big!\n", in tda18218_wr_regs()
30 return -EINVAL; in tda18218_wr_regs()
34 remaining -= (priv->cfg->i2c_wr_max - 1)) { in tda18218_wr_regs()
36 if (len2 > (priv->cfg->i2c_wr_max - 1)) in tda18218_wr_regs()
37 len2 = (priv->cfg->i2c_wr_max - 1); in tda18218_wr_regs()
40 buf[0] = reg + len - remaining; in tda18218_wr_regs()
[all …]
Dfc0013.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2012 Hans-Frieder Vogt <hfvogt@gmx.net>
11 #include "fc0013-priv.h"
17 .addr = priv->addr, .flags = 0, .buf = buf, .len = 2 in fc0013_writereg()
20 if (i2c_transfer(priv->i2c, &msg, 1) != 1) { in fc0013_writereg()
21 err("I2C write reg failed, reg: %02x, val: %02x", reg, val); in fc0013_writereg()
22 return -EREMOTEIO; in fc0013_writereg()
30 { .addr = priv->addr, .flags = 0, .buf = &reg, .len = 1 }, in fc0013_readreg()
31 { .addr = priv->addr, .flags = I2C_M_RD, .buf = val, .len = 1 }, in fc0013_readreg()
34 if (i2c_transfer(priv->i2c, msg, 2) != 2) { in fc0013_readreg()
[all …]
Dfc0012.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2012 Hans-Frieder Vogt <hfvogt@gmx.net>
9 #include "fc0012-priv.h"
15 .addr = priv->cfg->i2c_address, .flags = 0, .buf = buf, .len = 2 in fc0012_writereg()
18 if (i2c_transfer(priv->i2c, &msg, 1) != 1) { in fc0012_writereg()
19 dev_err(&priv->i2c->dev, in fc0012_writereg()
20 "%s: I2C write reg failed, reg: %02x, val: %02x\n", in fc0012_writereg()
22 return -EREMOTEIO; in fc0012_writereg()
30 { .addr = priv->cfg->i2c_address, .flags = 0, in fc0012_readreg()
32 { .addr = priv->cfg->i2c_address, .flags = I2C_M_RD, in fc0012_readreg()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/gyroscope/
Dinvensense,mpu3050.txt1 Invensense MPU-3050 Gyroscope device tree bindings
4 - compatible : should be "invensense,mpu3050"
5 - reg : the I2C address of the sensor
8 - interrupts : interrupt mapping for the trigger interrupt from the
13 - vdd-supply : supply regulator for the main power voltage.
14 - vlogic-supply : supply regulator for the signal voltage.
15 - mount-matrix : see iio/mount-matrix.txt
18 - The MPU-3050 will pass through and forward the I2C signals from the
19 incoming I2C bus, alternatively drive traffic to a slave device (usually
21 i2c gate node. For details see: i2c/i2c-gate.txt
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/gyroscope/
Dinvensense,mpu3050.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Invensense MPU-3050 Gyroscope
10 - Linus Walleij <linus.walleij@linaro.org>
19 vdd-supply: true
21 vlogic-supply: true
28 mount-matrix: true
30 i2c-gate:
31 $ref: /schemas/i2c/i2c-controller.yaml
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/intel/socfpga/
Dsocfpga.dtsi1 // SPDX-License-Identifier: GPL-2.0+
6 #include <dt-bindings/reset/altr,rst-mgr.h>
9 #address-cells = <1>;
10 #size-cells = <1>;
22 #address-cells = <1>;
23 #size-cells = <0>;
24 enable-method = "altr,socfpga-smp";
27 compatible = "arm,cortex-a9";
30 next-level-cache = <&L2>;
33 compatible = "arm,cortex-a9";
[all …]
Dsocfpga_arria10.dtsi1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/interrupt-controller/arm-gic.h>
7 #include <dt-bindings/reset/altr,rst-mgr-a10.h>
10 #address-cells = <1>;
11 #size-cells = <1>;
14 #address-cells = <1>;
15 #size-cells = <0>;
16 enable-method = "altr,socfpga-a10-smp";
19 compatible = "arm,cortex-a9";
22 next-level-cache = <&L2>;
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dsocfpga.dtsi1 // SPDX-License-Identifier: GPL-2.0+
6 #include <dt-bindings/reset/altr,rst-mgr.h>
9 #address-cells = <1>;
10 #size-cells = <1>;
22 #address-cells = <1>;
23 #size-cells = <0>;
24 enable-method = "altr,socfpga-smp";
27 compatible = "arm,cortex-a9";
30 next-level-cache = <&L2>;
33 compatible = "arm,cortex-a9";
[all …]
Dsocfpga_arria10.dtsi1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/interrupt-controller/arm-gic.h>
7 #include <dt-bindings/reset/altr,rst-mgr-a10.h>
10 #address-cells = <1>;
11 #size-cells = <1>;
14 #address-cells = <1>;
15 #size-cells = <0>;
16 enable-method = "altr,socfpga-a10-smp";
19 compatible = "arm,cortex-a9";
22 next-level-cache = <&L2>;
[all …]
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Dzl10039.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for Zarlink ZL10039 DVB-S tuner
19 /* Max transfer size done by I2C transfer functions */
33 struct i2c_adapter *i2c; member
64 .addr = state->i2c_addr, in zl10039_read()
69 .addr = state->i2c_addr, in zl10039_read()
78 if (i2c_transfer(state->i2c, msg, 2) != 2) { in zl10039_read()
79 dprintk("%s: i2c read error\n", __func__); in zl10039_read()
80 return -EREMOTEIO; in zl10039_read()
92 .addr = state->i2c_addr, in zl10039_write()
[all …]
Ddibx000_common.c1 // SPDX-License-Identifier: GPL-2.0-only
4 #include <linux/i2c.h>
24 if (mutex_lock_interruptible(&mst->i2c_buffer_lock) < 0) { in dibx000_write_word()
26 return -EINVAL; in dibx000_write_word()
29 mst->i2c_write_buffer[0] = (reg >> 8) & 0xff; in dibx000_write_word()
30 mst->i2c_write_buffer[1] = reg & 0xff; in dibx000_write_word()
31 mst->i2c_write_buffer[2] = (val >> 8) & 0xff; in dibx000_write_word()
32 mst->i2c_write_buffer[3] = val & 0xff; in dibx000_write_word()
34 memset(mst->msg, 0, sizeof(struct i2c_msg)); in dibx000_write_word()
35 mst->msg[0].addr = mst->i2c_addr; in dibx000_write_word()
[all …]
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/
Dzl10039.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for Zarlink ZL10039 DVB-S tuner
19 /* Max transfer size done by I2C transfer functions */
33 struct i2c_adapter *i2c; member
64 .addr = state->i2c_addr, in zl10039_read()
69 .addr = state->i2c_addr, in zl10039_read()
78 if (i2c_transfer(state->i2c, msg, 2) != 2) { in zl10039_read()
79 dprintk("%s: i2c read error\n", __func__); in zl10039_read()
80 return -EREMOTEIO; in zl10039_read()
92 .addr = state->i2c_addr, in zl10039_write()
[all …]
Ddibx000_common.c1 // SPDX-License-Identifier: GPL-2.0-only
4 #include <linux/i2c.h>
24 if (mutex_lock_interruptible(&mst->i2c_buffer_lock) < 0) { in dibx000_write_word()
26 return -EINVAL; in dibx000_write_word()
29 mst->i2c_write_buffer[0] = (reg >> 8) & 0xff; in dibx000_write_word()
30 mst->i2c_write_buffer[1] = reg & 0xff; in dibx000_write_word()
31 mst->i2c_write_buffer[2] = (val >> 8) & 0xff; in dibx000_write_word()
32 mst->i2c_write_buffer[3] = val & 0xff; in dibx000_write_word()
34 memset(mst->msg, 0, sizeof(struct i2c_msg)); in dibx000_write_word()
35 mst->msg[0].addr = mst->i2c_addr; in dibx000_write_word()
[all …]
/kernel/linux/linux-5.10/drivers/clk/samsung/
Dclk-s3c2412.c1 // 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"
106 GATE(PCLK_WDT, "wdt", "pclk", CLKCON, 28, 0, 0),
107 GATE(PCLK_SPI, "spi", "pclk", CLKCON, 27, 0, 0),
108 GATE(PCLK_I2S, "i2s", "pclk", CLKCON, 26, 0, 0),
109 GATE(PCLK_I2C, "i2c", "pclk", CLKCON, 25, 0, 0),
110 GATE(PCLK_ADC, "adc", "pclk", CLKCON, 24, 0, 0),
111 GATE(PCLK_RTC, "rtc", "pclk", CLKCON, 23, 0, 0),
[all …]
Dclk-s3c2443.c1 // 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"
112 GATE(SCLK_HSMMC_EXT, "sclk_hsmmcext", "ext", SCLKCON, 13, 0, 0),
113 GATE(SCLK_HSMMC1, "sclk_hsmmc1", "div_hsmmc1", SCLKCON, 12, 0, 0),
114 GATE(SCLK_FIMD, "sclk_fimd", "div_fimd", SCLKCON, 10, 0, 0),
115 GATE(SCLK_I2S0, "sclk_i2s0", "mux_i2s0", SCLKCON, 9, 0, 0),
116 GATE(SCLK_UART, "sclk_uart", "div_uart", SCLKCON, 8, 0, 0),
117 GATE(SCLK_USBH, "sclk_usbhost", "div_usbhost", SCLKCON, 1, 0, 0),
[all …]
/kernel/linux/linux-5.10/drivers/clk/tegra/
Dclk-tegra-periph.c1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/clk-provider.h>
16 #include "clk-id.h"
130 #define MASK(x) (BIT(x) - 1)
200 #define I2C(_name, _parents, _offset,\ macro
229 #define GATE(_name, _parent_name, \ macro
609 I2C("i2c1", mux_pllp_clkm, CLK_SOURCE_I2C1, 12, tegra_clk_i2c1),
610 I2C("i2c2", mux_pllp_clkm, CLK_SOURCE_I2C2, 54, tegra_clk_i2c2),
611 I2C("i2c3", mux_pllp_clkm, CLK_SOURCE_I2C3, 67, tegra_clk_i2c3),
612 I2C("i2c4", mux_pllp_clkm, CLK_SOURCE_I2C4, 103, tegra_clk_i2c4),
[all …]

12345678910>>...16