120-dt-add-i2c.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. @@ -445,7 +478,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";
  54. --- a/arch/arm/boot/dts/imx23-olinuxino.dts
  55. +++ b/arch/arm/boot/dts/imx23-olinuxino.dts
  56. @@ -74,6 +74,12 @@
  57. status = "okay";
  58. };
  59. + i2c0: i2c@80058000 {
  60. + pinctrl-names = "default";
  61. + pinctrl-0 = <&i2c1_pins_a>;
  62. + status = "okay";
  63. + };
  64. +
  65. duart: serial@80070000 {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&duart_pins_a>;
  68. @@ -89,7 +95,7 @@
  69. usbphy0: usbphy@8007c000 {
  70. status = "okay";
  71. };
  72. -
  73. +
  74. codec: mxs-builtin-codec {
  75. compatible = "fsl,mxs-builtin-codec";
  76. reg = <0x80048000 0x2000>, <0x8004c000 0x2000>,