imx28-cfa10036.dts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /*
  2. * Copyright 2012 Free Electrons
  3. *
  4. * The code contained herein is licensed under the GNU General Public
  5. * License. You may obtain a copy of the GNU General Public License
  6. * Version 2 or later at the following locations:
  7. *
  8. * http://www.opensource.org/licenses/gpl-license.html
  9. * http://www.gnu.org/copyleft/gpl.html
  10. */
  11. /dts-v1/;
  12. #include "imx28.dtsi"
  13. / {
  14. model = "Crystalfontz CFA-10036 Board";
  15. compatible = "crystalfontz,cfa10036", "fsl,imx28";
  16. memory {
  17. reg = <0x40000000 0x08000000>;
  18. };
  19. apb@80000000 {
  20. apbh@80000000 {
  21. pinctrl@80018000 {
  22. ssd1306_cfa10036: ssd1306-10036@0 {
  23. reg = <0>;
  24. fsl,pinmux-ids = <
  25. MX28_PAD_SSP0_DATA7__GPIO_2_7
  26. >;
  27. fsl,drive-strength = <MXS_DRIVE_4mA>;
  28. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  29. fsl,pull-up = <MXS_PULL_DISABLE>;
  30. };
  31. led_pins_cfa10036: leds-10036@0 {
  32. reg = <0>;
  33. fsl,pinmux-ids = <
  34. MX28_PAD_AUART1_RX__GPIO_3_4
  35. >;
  36. fsl,drive-strength = <MXS_DRIVE_4mA>;
  37. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  38. fsl,pull-up = <MXS_PULL_DISABLE>;
  39. };
  40. usb0_otg_cfa10036: otg-10036@0 {
  41. reg = <0>;
  42. fsl,pinmux-ids = <
  43. MX28_PAD_GPMI_RDY0__USB0_ID
  44. >;
  45. fsl,drive-strength = <MXS_DRIVE_4mA>;
  46. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  47. fsl,pull-up = <MXS_PULL_DISABLE>;
  48. };
  49. mmc_pwr_cfa10036: mmc_pwr_cfa10036@0 {
  50. reg = <0>;
  51. fsl,pinmux-ids = <
  52. 0x31c3 /*
  53. MX28_PAD_PWM3__GPIO_3_28 */
  54. >;
  55. fsl,drive-strength = <0>;
  56. fsl,voltage = <1>;
  57. fsl,pull-up = <0>;
  58. };
  59. };
  60. ssp0: ssp@80010000 {
  61. compatible = "fsl,imx28-mmc";
  62. pinctrl-names = "default";
  63. pinctrl-0 = <&mmc0_4bit_pins_a
  64. &mmc0_cd_cfg &mmc0_sck_cfg>;
  65. vmmc-supply = <&reg_vddio_sd0>;
  66. bus-width = <4>;
  67. status = "okay";
  68. };
  69. };
  70. apbx@80040000 {
  71. duart: serial@80074000 {
  72. pinctrl-names = "default";
  73. pinctrl-0 = <&duart_pins_b>;
  74. status = "okay";
  75. };
  76. i2c0: i2c@80058000 {
  77. pinctrl-names = "default";
  78. pinctrl-0 = <&i2c0_pins_b>;
  79. clock-frequency = <400000>;
  80. status = "okay";
  81. ssd1306: oled@3c {
  82. compatible = "solomon,ssd1306fb-i2c";
  83. pinctrl-names = "default";
  84. pinctrl-0 = <&ssd1306_cfa10036>;
  85. reg = <0x3c>;
  86. reset-gpios = <&gpio2 7 0>;
  87. solomon,height = <32>;
  88. solomon,width = <128>;
  89. solomon,page-offset = <0>;
  90. solomon,com-lrremap;
  91. solomon,com-invdir;
  92. solomon,com-offset = <32>;
  93. };
  94. };
  95. usbphy0: usbphy@8007c000 {
  96. status = "okay";
  97. };
  98. };
  99. };
  100. ahb@80080000 {
  101. usb0: usb@80080000 {
  102. pinctrl-names = "default";
  103. pinctrl-0 = <&usb0_otg_cfa10036>;
  104. dr_mode = "peripheral";
  105. phy_type = "utmi";
  106. status = "okay";
  107. };
  108. };
  109. leds {
  110. compatible = "gpio-leds";
  111. pinctrl-names = "default";
  112. pinctrl-0 = <&led_pins_cfa10036>;
  113. power {
  114. gpios = <&gpio3 4 1>;
  115. default-state = "on";
  116. };
  117. };
  118. reg_vddio_sd0: vddio-sd0 {
  119. compatible = "regulator-fixed";
  120. pinctrl-names = "default";
  121. pinctrl-0 = <&mmc_pwr_cfa10036>;
  122. regulator-name = "vddio-sd0";
  123. regulator-min-microvolt = <3300000>;
  124. regulator-max-microvolt = <3300000>;
  125. gpio = <&gpio3 28 0>;
  126. };
  127. };