/external/u-boot/drivers/i2c/ |
D | meson_i2c.c | 55 static void meson_i2c_reset_tokens(struct meson_i2c *i2c) in meson_i2c_reset_tokens() argument 57 i2c->tokens[0] = 0; in meson_i2c_reset_tokens() 58 i2c->tokens[1] = 0; in meson_i2c_reset_tokens() 59 i2c->num_tokens = 0; in meson_i2c_reset_tokens() 62 static void meson_i2c_add_token(struct meson_i2c *i2c, int token) in meson_i2c_add_token() argument 64 if (i2c->num_tokens < 8) in meson_i2c_add_token() 65 i2c->tokens[0] |= (token & 0xf) << (i2c->num_tokens * 4); in meson_i2c_add_token() 67 i2c->tokens[1] |= (token & 0xf) << ((i2c->num_tokens % 8) * 4); in meson_i2c_add_token() 69 i2c->num_tokens++; in meson_i2c_add_token() 76 static void meson_i2c_get_data(struct meson_i2c *i2c, u8 *buf, int len) in meson_i2c_get_data() argument [all …]
|
D | s3c24x0_i2c.c | 39 static int WaitForXfer(struct s3c24x0_i2c *i2c) in WaitForXfer() argument 44 if (readl(&i2c->iiccon) & I2CCON_IRPND) in WaitForXfer() 45 return (readl(&i2c->iicstat) & I2CSTAT_NACK) ? in WaitForXfer() 52 static void read_write_byte(struct s3c24x0_i2c *i2c) in read_write_byte() argument 54 clrbits_le32(&i2c->iiccon, I2CCON_IRPND); in read_write_byte() 57 static void i2c_ch_init(struct s3c24x0_i2c *i2c, int speed, int slaveadd) in i2c_ch_init() argument 75 writel((div & 0x0F) | 0xA0 | ((pres == 512) ? 0x40 : 0), &i2c->iiccon); in i2c_ch_init() 78 writel(0, &i2c->iicstat); in i2c_ch_init() 79 writel(slaveadd, &i2c->iicadd); in i2c_ch_init() 81 writel(I2C_MODE_MT | I2C_TXRX_ENA, &i2c->iicstat); in i2c_ch_init() [all …]
|
D | exynos_hs_i2c.c | 102 static int hsi2c_wait_for_trx(struct exynos5_hsi2c *i2c) in hsi2c_wait_for_trx() argument 107 u32 int_status = readl(&i2c->usi_int_stat); in hsi2c_wait_for_trx() 110 u32 trans_status = readl(&i2c->usi_trans_status); in hsi2c_wait_for_trx() 113 writel(int_status, &i2c->usi_int_stat); in hsi2c_wait_for_trx() 226 struct exynos5_hsi2c *i2c = i2c_bus->hsregs; in exynos5_i2c_reset() local 230 i2c_ctl = readl(&i2c->usi_ctl); in exynos5_i2c_reset() 232 writel(i2c_ctl, &i2c->usi_ctl); in exynos5_i2c_reset() 234 i2c_ctl = readl(&i2c->usi_ctl); in exynos5_i2c_reset() 236 writel(i2c_ctl, &i2c->usi_ctl); in exynos5_i2c_reset() 259 static unsigned hsi2c_poll_fifo(struct exynos5_hsi2c *i2c, bool rx_transfer) in hsi2c_poll_fifo() argument [all …]
|
D | rk_i2c.c | 48 static void rk_i2c_set_clk(struct rk_i2c *i2c, uint32_t scl_rate) in rk_i2c_set_clk() argument 54 i2c_rate = clk_get_rate(&i2c->clk); in rk_i2c_set_clk() 61 writel(I2C_CLKDIV_VAL(divl, divh), &i2c->regs->clkdiv); in rk_i2c_set_clk() 66 debug("set clk(I2C_CLKDIV: 0x%08x)\n", readl(&i2c->regs->clkdiv)); in rk_i2c_set_clk() 90 static int rk_i2c_send_start_bit(struct rk_i2c *i2c) in rk_i2c_send_start_bit() argument 92 struct i2c_regs *regs = i2c->regs; in rk_i2c_send_start_bit() 118 static int rk_i2c_send_stop_bit(struct rk_i2c *i2c) in rk_i2c_send_stop_bit() argument 120 struct i2c_regs *regs = i2c->regs; in rk_i2c_send_stop_bit() 146 static inline void rk_i2c_disable(struct rk_i2c *i2c) in rk_i2c_disable() argument 148 writel(0, &i2c->regs->con); in rk_i2c_disable() [all …]
|
D | Makefile | 5 obj-$(CONFIG_DM_I2C) += i2c-uclass.o 6 obj-$(CONFIG_DM_I2C_COMPAT) += i2c-uclass-compat.o 7 obj-$(CONFIG_DM_I2C_GPIO) += i2c-gpio.o 15 obj-$(CONFIG_SYS_I2C_CADENCE) += i2c-cdns.o 33 obj-$(CONFIG_SYS_I2C_SANDBOX) += sandbox_i2c.o i2c-emul-uclass.o 38 obj-$(CONFIG_SYS_I2C_UNIPHIER) += i2c-uniphier.o 39 obj-$(CONFIG_SYS_I2C_UNIPHIER_F) += i2c-uniphier-f.o
|
D | omap24xx_i2c.c | 57 struct i2c *regs; 117 static int wait_for_bb(struct i2c *i2c_base, int waitdelay) 147 static u16 wait_for_event(struct i2c *i2c_base, int waitdelay) 180 static void flush_fifo(struct i2c *i2c_base) 199 static int __omap24_i2c_setspeed(struct i2c *i2c_base, uint speed, 262 static void omap24_i2c_deblock(struct i2c *i2c_base) 307 static void __omap24_i2c_init(struct i2c *i2c_base, int speed, int slaveadd, 364 static int __omap24_i2c_probe(struct i2c *i2c_base, int waitdelay, uchar chip) 427 static int __omap24_i2c_read(struct i2c *i2c_base, int waitdelay, uchar chip, 568 static int __omap24_i2c_write(struct i2c *i2c_base, int waitdelay, uchar chip, [all …]
|
/external/u-boot/arch/arm/dts/ |
D | tegra186-p2771-0000.dtsi | 14 i2c0 = "/bpmp/i2c"; 15 i2c1 = "/i2c@3160000"; 16 i2c2 = "/i2c@c240000"; 17 i2c3 = "/i2c@3180000"; 18 i2c4 = "/i2c@3190000"; 19 i2c5 = "/i2c@31c0000"; 20 i2c6 = "/i2c@c250000"; 21 i2c7 = "/i2c@31e0000"; 33 i2c@3160000 { 37 i2c@3180000 { [all …]
|
D | tegra186.dtsi | 61 gen1_i2c: i2c@3160000 { 62 compatible = "nvidia,tegra186-i2c", "nvidia,tegra114-i2c"; 70 reset-names = "i2c"; 74 cam_i2c: i2c@3180000 { 75 compatible = "nvidia,tegra186-i2c", "nvidia,tegra114-i2c"; 83 reset-names = "i2c"; 87 dp_aux_ch1_i2c: i2c@3190000 { 88 compatible = "nvidia,tegra186-i2c", "nvidia,tegra114-i2c"; 96 reset-names = "i2c"; 100 dp_aux_ch0_i2c: i2c@31b0000 { [all …]
|
D | exynos54xx.dtsi | 16 i2c0 = "/i2c@12C60000"; 17 i2c1 = "/i2c@12C70000"; 18 i2c2 = "/i2c@12C80000"; 19 i2c3 = "/i2c@12C90000"; 20 i2c4 = "/i2c@12CA0000"; 21 i2c5 = "/i2c@12CB0000"; 22 i2c6 = "/i2c@12CC0000"; 23 i2c7 = "/i2c@12CD0000"; 24 i2c8 = "/i2c@12E00000"; 25 i2c9 = "/i2c@12E10000"; [all …]
|
D | tegra210-p2571.dts | 14 i2c0 = "/i2c@7000d000"; 15 i2c1 = "/i2c@7000c000"; 16 i2c2 = "/i2c@7000c400"; 17 i2c3 = "/i2c@7000c500"; 18 i2c4 = "/i2c@7000c700"; 19 i2c5 = "/i2c@7000d100"; 32 i2c@7000c000 { 37 i2c@7000c400 { 42 i2c@7000c500 { 47 i2c@7000c700 { [all …]
|
D | tegra124-venice2.dts | 14 i2c0 = "/i2c@7000d000"; 15 i2c1 = "/i2c@7000c000"; 16 i2c2 = "/i2c@7000c400"; 17 i2c3 = "/i2c@7000c500"; 18 i2c4 = "/i2c@7000c700"; 19 i2c5 = "/i2c@7000d100"; 33 i2c@7000c000 { 38 i2c@7000c400 { 43 i2c@7000c500 { 48 i2c@7000c700 { [all …]
|
D | exynos4.dtsi | 68 i2c_0: i2c@13860000 { 71 compatible = "samsung,s3c2440-i2c"; 77 i2c_1: i2c@13870000 { 80 compatible = "samsung,s3c2440-i2c"; 86 i2c_2: i2c@13880000 { 89 compatible = "samsung,s3c2440-i2c"; 95 i2c_3: i2c@13890000 { 98 compatible = "samsung,s3c2440-i2c"; 104 i2c_4: i2c@138a0000 { 107 compatible = "samsung,s3c2440-i2c"; [all …]
|
D | tegra30-tamonten.dtsi | 16 i2c0 = "/i2c@7000c000"; 17 i2c1 = "/i2c@7000c700"; 18 i2c2 = "/i2c@7000c400"; 19 i2c3 = "/i2c@7000c500"; 20 i2c4 = "/i2c@7000d000"; 28 i2c@7000c000 { 34 i2c@7000c400 { 39 i2c@7000c500 { 45 i2c@7000c700 { 51 i2c@7000d000 {
|
D | tegra114-dalmore.dts | 14 i2c0 = "/i2c@7000d000"; 15 i2c1 = "/i2c@7000c000"; 16 i2c2 = "/i2c@7000c400"; 17 i2c3 = "/i2c@7000c500"; 18 i2c4 = "/i2c@7000c700"; 30 i2c@7000c000 { 35 i2c@7000c400 { 40 i2c@7000c500 { 45 i2c@7000c700 { 50 i2c@7000d000 {
|
D | exynos5250-arndale.dts | 17 i2c0 = "/i2c@12C60000"; 18 i2c1 = "/i2c@12C70000"; 19 i2c2 = "/i2c@12C80000"; 20 i2c3 = "/i2c@12C90000"; 21 i2c4 = "/i2c@12CA0000"; 22 i2c5 = "/i2c@12CB0000"; 23 i2c6 = "/i2c@12CC0000"; 24 i2c7 = "/i2c@12CD0000";
|
D | r8a7790-lager.dts | 276 gpioi2c1: i2c-8 { 279 compatible = "i2c-gpio"; 283 i2c-gpio,delay-us = <5>; 286 gpioi2c2: i2c-9 { 289 compatible = "i2c-gpio"; 293 i2c-gpio,delay-us = <5>; 307 i2cexio0: i2c-10 { 308 compatible = "i2c-demux-pinctrl"; 309 i2c-parent = <&iic0>, <&i2c0>; 310 i2c-bus-name = "i2c-exio0"; [all …]
|
D | zynqmp-zcu111-revA.dts | 151 i2c-mux@75 { /* u23 */ 156 i2c@0 { 233 i2c@1 { 239 i2c@2 { 265 i2c@3 { 278 i2c-mux@74 { /* u26 */ 283 i2c@0 { 300 i2c@1 { 310 i2c@2 { 323 i2c@3 { [all …]
|
D | r8a7794-alt.dts | 140 gpioi2c1: i2c-9 { 143 compatible = "i2c-gpio"; 149 gpioi2c4: i2c-10 { 152 compatible = "i2c-gpio"; 156 i2c-gpio,delay-us = <5>; 162 i2chdmi: i2c-11 { 163 compatible = "i2c-demux-pinctrl"; 164 i2c-parent = <&i2c1>, <&gpioi2c1>; 165 i2c-bus-name = "i2c-hdmi"; 187 i2cexio4: i2c-14 { [all …]
|
D | exynos5250-snow.dts | 23 i2c0 = "/i2c@12C60000"; 24 i2c1 = "/i2c@12C70000"; 25 i2c2 = "/i2c@12C80000"; 26 i2c3 = "/i2c@12C90000"; 27 i2c4 = "/i2c@12CA0000"; 29 i2c5 = "/i2c@12CB0000"; 30 i2c6 = "/i2c@12CC0000"; 31 i2c7 = "/i2c@12CD0000"; 98 i2c-arbitrator { 99 compatible = "i2c-arb-gpio-challenge"; [all …]
|
D | zynqmp-zcu106-revA.dts | 176 i2c-mux@75 { /* u60 */ 181 i2c@0 { 237 i2c@1 { 283 i2c@2 { 354 /* PL i2c via PCA9306 - u45 */ 355 i2c-mux@74 { /* u34 */ 360 i2c@0 { 377 i2c@1 { 387 i2c@2 { 400 i2c@3 { [all …]
|
D | r8a7791-koelsch.dts | 311 gpioi2c1: i2c-9 { 314 compatible = "i2c-gpio"; 318 i2c-gpio,delay-us = <5>; 321 gpioi2c2: i2c-10 { 324 compatible = "i2c-gpio"; 328 i2c-gpio,delay-us = <5>; 331 gpioi2c4: i2c-11 { 334 compatible = "i2c-gpio"; 338 i2c-gpio,delay-us = <5>; 345 i2cexio1: i2c-12 { [all …]
|
D | exynos5250.dtsi | 49 i2c_4: i2c@12CA0000 { 50 compatible = "samsung,s3c2440-i2c"; 57 i2c_5: i2c@12CB0000 { 58 compatible = "samsung,s3c2440-i2c"; 65 i2c_6: i2c@12CC0000 { 66 compatible = "samsung,s3c2440-i2c"; 73 i2c_7: i2c@12CD0000 { 74 compatible = "samsung,s3c2440-i2c";
|
D | zynqmp-zcu102-revA.dts | 202 i2c-mux@75 { /* u60 */ 207 i2c@0 { 263 i2c@1 { 309 i2c@2 { 381 /* PL i2c via PCA9306 - u45 */ 382 i2c-mux@74 { /* u34 */ 387 i2c@0 { 404 i2c@1 { 414 i2c@2 { 427 i2c@3 { [all …]
|
/external/u-boot/doc/device-tree-bindings/i2c/ |
D | i2c-at91.txt | 4 - compatible : Must be "atmel,at91rm9200-i2c", "atmel,at91sam9261-i2c", 5 "atmel,at91sam9260-i2c", "atmel,at91sam9g20-i2c", "atmel,at91sam9g10-i2c", 6 "atmel,at91sam9x5-i2c", "atmel,sama5d4-i2c" or "atmel,sama5d2-i2c". 15 - Child nodes conforming to i2c bus binding. 19 i2c0: i2c@f8028000 { 20 compatible = "atmel,sama5d2-i2c";
|
D | i2c-gpio.txt | 5 - drivers/i2c/i2c-gpio.c 7 Software i2c device-tree node properties: 11 * compatible = "i2c-gpio"; 15 * i2c-gpio,delay-us = <5>; 22 i2c-gpio@1 { 26 compatible = "i2c-gpio"; 30 i2c-gpio,delay-us = <5>;
|