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

ARM: dts: imx23: Add i2c support

The imx23-olinuxino board has an i2c interface exposed on UEXT connector.
This patch provides the generic devicetree infrastructure for a follow-up
patch to add support to the actual board files.
Tested all three possible pin groups with MOD-LCD1x9 from Olimex.

This patch is based on work by Fadil Berisha with his permission. However
all bugs are mine.

Signed-off-by: Harald Geyer <harald@ccbib.org>
Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>

authored by

Harald Geyer and committed by
Shawn Guo
71a34d82 5ce66798

+39 -1
+39 -1
arch/arm/boot/dts/imx23.dtsi
··· 308 308 fsl,voltage = <MXS_VOLTAGE_HIGH>; 309 309 fsl,pull-up = <MXS_PULL_ENABLE>; 310 310 }; 311 + 312 + i2c_pins_a: i2c@0 { 313 + reg = <0>; 314 + fsl,pinmux-ids = < 315 + MX23_PAD_I2C_SCL__I2C_SCL 316 + MX23_PAD_I2C_SDA__I2C_SDA 317 + >; 318 + fsl,drive-strength = <MXS_DRIVE_8mA>; 319 + fsl,voltage = <MXS_VOLTAGE_HIGH>; 320 + fsl,pull-up = <MXS_PULL_ENABLE>; 321 + }; 322 + 323 + i2c_pins_b: i2c@1 { 324 + reg = <1>; 325 + fsl,pinmux-ids = < 326 + MX23_PAD_LCD_ENABLE__I2C_SCL 327 + MX23_PAD_LCD_HSYNC__I2C_SDA 328 + >; 329 + fsl,drive-strength = <MXS_DRIVE_8mA>; 330 + fsl,voltage = <MXS_VOLTAGE_HIGH>; 331 + fsl,pull-up = <MXS_PULL_ENABLE>; 332 + }; 333 + 334 + i2c_pins_c: i2c@2 { 335 + reg = <2>; 336 + fsl,pinmux-ids = < 337 + MX23_PAD_SSP1_DATA1__I2C_SCL 338 + MX23_PAD_SSP1_DATA2__I2C_SDA 339 + >; 340 + fsl,drive-strength = <MXS_DRIVE_8mA>; 341 + fsl,voltage = <MXS_VOLTAGE_HIGH>; 342 + fsl,pull-up = <MXS_PULL_ENABLE>; 343 + }; 311 344 }; 312 345 313 346 digctl@8001c000 { ··· 477 444 status = "disabled"; 478 445 }; 479 446 480 - i2c@80058000 { 447 + i2c: i2c@80058000 { 448 + #address-cells = <1>; 449 + #size-cells = <0>; 450 + compatible = "fsl,imx23-i2c"; 481 451 reg = <0x80058000 0x2000>; 452 + interrupts = <27>; 453 + clock-frequency = <100000>; 482 454 dmas = <&dma_apbx 3>; 483 455 dma-names = "rx-tx"; 484 456 status = "disabled";