Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: mobileye: eyeq5: add 5 I2C controller nodes

Add the SoC I2C controller nodes to the platform devicetree. Use a
default bus frequency of 400kHz. They are AMBA devices that are matched
on PeriphID.

Set transfer timeout to 10ms instead of Linux's default of 200ms.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Acked-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Théo Lebrun and committed by
Thomas Bogendoerfer
c1dbf4c8 daf3082f

+75
+75
arch/mips/boot/dts/mobileye/eyeq5.dtsi
··· 110 110 ranges; 111 111 compatible = "simple-bus"; 112 112 113 + i2c0: i2c@300000 { 114 + compatible = "mobileye,eyeq5-i2c", "arm,primecell"; 115 + reg = <0 0x300000 0x0 0x1000>; 116 + interrupt-parent = <&gic>; 117 + interrupts = <GIC_SHARED 1 IRQ_TYPE_LEVEL_HIGH>; 118 + clock-frequency = <400000>; /* Fast mode */ 119 + #address-cells = <1>; 120 + #size-cells = <0>; 121 + clocks = <&olb 35>, <&olb EQ5C_PER_I2C>; 122 + clock-names = "i2cclk", "apb_pclk"; 123 + resets = <&olb 0 13>; 124 + i2c-transfer-timeout-us = <10000>; 125 + mobileye,olb = <&olb 0>; 126 + }; 127 + 128 + i2c1: i2c@400000 { 129 + compatible = "mobileye,eyeq5-i2c", "arm,primecell"; 130 + reg = <0 0x400000 0x0 0x1000>; 131 + interrupt-parent = <&gic>; 132 + interrupts = <GIC_SHARED 2 IRQ_TYPE_LEVEL_HIGH>; 133 + clock-frequency = <400000>; /* Fast mode */ 134 + #address-cells = <1>; 135 + #size-cells = <0>; 136 + clocks = <&olb 35>, <&olb EQ5C_PER_I2C>; 137 + clock-names = "i2cclk", "apb_pclk"; 138 + resets = <&olb 0 14>; 139 + i2c-transfer-timeout-us = <10000>; 140 + mobileye,olb = <&olb 1>; 141 + }; 142 + 143 + i2c2: i2c@500000 { 144 + compatible = "mobileye,eyeq5-i2c", "arm,primecell"; 145 + reg = <0 0x500000 0x0 0x1000>; 146 + interrupt-parent = <&gic>; 147 + interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>; 148 + clock-frequency = <400000>; /* Fast mode */ 149 + #address-cells = <1>; 150 + #size-cells = <0>; 151 + clocks = <&olb 35>, <&olb EQ5C_PER_I2C>; 152 + clock-names = "i2cclk", "apb_pclk"; 153 + resets = <&olb 0 15>; 154 + i2c-transfer-timeout-us = <10000>; 155 + mobileye,olb = <&olb 2>; 156 + }; 157 + 158 + i2c3: i2c@600000 { 159 + compatible = "mobileye,eyeq5-i2c", "arm,primecell"; 160 + reg = <0 0x600000 0x0 0x1000>; 161 + interrupt-parent = <&gic>; 162 + interrupts = <GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH>; 163 + clock-frequency = <400000>; /* Fast mode */ 164 + #address-cells = <1>; 165 + #size-cells = <0>; 166 + clocks = <&olb 35>, <&olb EQ5C_PER_I2C>; 167 + clock-names = "i2cclk", "apb_pclk"; 168 + resets = <&olb 0 16>; 169 + i2c-transfer-timeout-us = <10000>; 170 + mobileye,olb = <&olb 3>; 171 + }; 172 + 173 + i2c4: i2c@700000 { 174 + compatible = "mobileye,eyeq5-i2c", "arm,primecell"; 175 + reg = <0 0x700000 0x0 0x1000>; 176 + interrupt-parent = <&gic>; 177 + interrupts = <GIC_SHARED 5 IRQ_TYPE_LEVEL_HIGH>; 178 + clock-frequency = <400000>; /* Fast mode */ 179 + #address-cells = <1>; 180 + #size-cells = <0>; 181 + clocks = <&olb 35>, <&olb EQ5C_PER_I2C>; 182 + clock-names = "i2cclk", "apb_pclk"; 183 + resets = <&olb 0 17>; 184 + i2c-transfer-timeout-us = <10000>; 185 + mobileye,olb = <&olb 4>; 186 + }; 187 + 113 188 uart0: serial@800000 { 114 189 compatible = "arm,pl011", "arm,primecell"; 115 190 reg = <0 0x800000 0x0 0x1000>;