120-dt-add-i2c.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --- a/arch/arm/boot/dts/imx23.dtsi
  2. +++ b/arch/arm/boot/dts/imx23.dtsi
  3. @@ -147,6 +147,39 @@
  4. fsl,pull-up = <MXS_PULL_DISABLE>;
  5. };
  6. + i2c0_pins_a: i2c0@0 {
  7. + reg = <0>;
  8. + fsl,pinmux-ids = <
  9. + 0x01e0 /* MX23_PAD_I2C_SCL__I2C_SCL */
  10. + 0x01f0 /* MX23_PAD_I2C_SDA__I2C_SDA */
  11. + >;
  12. + fsl,drive-strength = <1>;
  13. + fsl,voltage = <1>;
  14. + fsl,pull-up = <1>;
  15. + };
  16. +
  17. + i2c1_pins_a: i2c1@0 {
  18. + reg = <0>;
  19. + fsl,pinmux-ids = <
  20. + 0x1171 /* MX23_PAD_LCD_ENABLE__I2C_SCL */
  21. + 0x1181 /* MX23_PAD_LCD_HSYNC__I2C_SDA */
  22. + >;
  23. + fsl,drive-strength = <1>;
  24. + fsl,voltage = <1>;
  25. + fsl,pull-up = <1>;
  26. + };
  27. +
  28. + i2c2_pins_a: i2c2@0 {
  29. + reg = <0>;
  30. + fsl,pinmux-ids = <
  31. + 0x2031 /* MX23_PAD_SSP1_DATA1__I2C_SCL */
  32. + 0x2041 /* MX23_PAD_SSP1_DATA2__I2C_SDA */
  33. + >;
  34. + fsl,drive-strength = <1>;
  35. + fsl,voltage = <1>;
  36. + fsl,pull-up = <1>;
  37. + };
  38. +
  39. auart0_pins_a: auart0@0 {
  40. reg = <0>;
  41. fsl,pinmux-ids = <
  42. @@ -484,7 +517,12 @@
  43. };
  44. i2c@80058000 {
  45. + #address-cells = <1>;
  46. + #size-cells = <0>;
  47. + compatible = "fsl,imx23-i2c";
  48. reg = <0x80058000 0x2000>;
  49. + interrupts = <27>;
  50. + clock-frequency = <100000>;
  51. dmas = <&dma_apbx 3>;
  52. dma-names = "rx-tx";
  53. status = "disabled";