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

ARM: dts: berlin: add I2C nodes for BG2Q

The Marvell Berlin BG2Q has 4 TWSI compatible with the Synopsys
DesignWare I2C driver. Add the corresponding nodes.

The pin-muxing setup is also done here, since there cannot be another
muxing setup if I2C{0,1,2,3} are enabled.

Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com>
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>

authored by

Antoine Ténart and committed by
Sebastian Hesselbarth
99f3deb8 44991eb4

+72
+72
arch/arm/boot/dts/berlin2q.dtsi
··· 193 193 }; 194 194 }; 195 195 196 + i2c0: i2c@1400 { 197 + compatible = "snps,designware-i2c"; 198 + #address-cells = <1>; 199 + #size-cells = <0>; 200 + reg = <0x1400 0x100>; 201 + interrupt-parent = <&aic>; 202 + interrupts = <4>; 203 + clocks = <&chip CLKID_CFG>; 204 + pinctrl-0 = <&twsi0_pmux>; 205 + pinctrl-names = "default"; 206 + status = "disabled"; 207 + }; 208 + 209 + i2c1: i2c@1800 { 210 + compatible = "snps,designware-i2c"; 211 + #address-cells = <1>; 212 + #size-cells = <0>; 213 + reg = <0x1800 0x100>; 214 + interrupt-parent = <&aic>; 215 + interrupts = <5>; 216 + clocks = <&chip CLKID_CFG>; 217 + pinctrl-0 = <&twsi1_pmux>; 218 + pinctrl-names = "default"; 219 + status = "disabled"; 220 + }; 221 + 196 222 timer0: timer@2c00 { 197 223 compatible = "snps,dw-apb-timer"; 198 224 reg = <0x2c00 0x14>; ··· 329 303 reg = <0xea0000 0x400>, <0xdd0170 0x10>; 330 304 clocks = <&refclk>; 331 305 clock-names = "refclk"; 306 + 307 + twsi0_pmux: twsi0-pmux { 308 + groups = "G6"; 309 + function = "twsi0"; 310 + }; 311 + 312 + twsi1_pmux: twsi1-pmux { 313 + groups = "G7"; 314 + function = "twsi1"; 315 + }; 332 316 }; 333 317 334 318 apb@fc0000 { ··· 348 312 349 313 ranges = <0 0xfc0000 0x10000>; 350 314 interrupt-parent = <&sic>; 315 + 316 + i2c2: i2c@7000 { 317 + compatible = "snps,designware-i2c"; 318 + #address-cells = <1>; 319 + #size-cells = <0>; 320 + reg = <0x7000 0x100>; 321 + interrupt-parent = <&sic>; 322 + interrupts = <6>; 323 + clocks = <&refclk>; 324 + pinctrl-0 = <&twsi2_pmux>; 325 + pinctrl-names = "default"; 326 + status = "disabled"; 327 + }; 328 + 329 + i2c3: i2c@8000 { 330 + compatible = "snps,designware-i2c"; 331 + #address-cells = <1>; 332 + #size-cells = <0>; 333 + reg = <0x8000 0x100>; 334 + interrupt-parent = <&sic>; 335 + interrupts = <7>; 336 + clocks = <&refclk>; 337 + pinctrl-0 = <&twsi3_pmux>; 338 + pinctrl-names = "default"; 339 + status = "disabled"; 340 + }; 351 341 352 342 uart0: uart@9000 { 353 343 compatible = "snps,dw-apb-uart"; ··· 411 349 uart1_pmux: uart1-pmux { 412 350 groups = "GSM14"; 413 351 function = "uart1"; 352 + }; 353 + 354 + twsi2_pmux: twsi2-pmux { 355 + groups = "GSM13"; 356 + function = "twsi2"; 357 + }; 358 + 359 + twsi3_pmux: twsi3-pmux { 360 + groups = "GSM14"; 361 + function = "twsi3"; 414 362 }; 415 363 }; 416 364