hugh_1977

imx28-cfa10057.dts with canbus

May 5th, 2014
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. /*
  2. * Copyright 2013 Crystalfontz America, Inc.
  3. * Copyright 2012 Free Electrons
  4. *
  5. * The code contained herein is licensed under the GNU General Public
  6. * License. You may obtain a copy of the GNU General Public License
  7. * Version 2 or later at the following locations:
  8. *
  9. * http://www.opensource.org/licenses/gpl-license.html
  10. * http://www.gnu.org/copyleft/gpl.html
  11. */
  12.  
  13. /*
  14. * The CFA-10057 is an expansion board for the CFA-10036 module, thus we
  15. * need to include the CFA-10036 DTS.
  16. */
  17. /include/ "imx28-cfa10036.dts"
  18.  
  19. / {
  20. model = "Crystalfontz CFA-10057 Board";
  21. compatible = "crystalfontz,cfa10057", "crystalfontz,cfa10036", "fsl,imx28";
  22.  
  23. apb@80000000 {
  24. apbh@80000000 {
  25. pinctrl@80018000 {
  26. usb_pins_cfa10057: usb-10057@0 {
  27. reg = <0>;
  28. fsl,pinmux-ids = <
  29. 0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */
  30. >;
  31. fsl,drive-strength = <0>;
  32. fsl,voltage = <1>;
  33. fsl,pull-up = <0>;
  34. };
  35.  
  36. lcdif_18bit_pins_cfa10057: lcdif-18bit@0 {
  37. reg = <0>;
  38. fsl,pinmux-ids = <
  39. 0x1000 /* MX28_PAD_LCD_D00__LCD_D0 */
  40. 0x1010 /* MX28_PAD_LCD_D01__LCD_D1 */
  41. 0x1020 /* MX28_PAD_LCD_D02__LCD_D2 */
  42. 0x1030 /* MX28_PAD_LCD_D03__LCD_D3 */
  43. 0x1040 /* MX28_PAD_LCD_D04__LCD_D4 */
  44. 0x1050 /* MX28_PAD_LCD_D05__LCD_D5 */
  45. 0x1060 /* MX28_PAD_LCD_D06__LCD_D6 */
  46. 0x1070 /* MX28_PAD_LCD_D07__LCD_D7 */
  47. 0x1080 /* MX28_PAD_LCD_D08__LCD_D8 */
  48. 0x1090 /* MX28_PAD_LCD_D09__LCD_D9 */
  49. 0x10a0 /* MX28_PAD_LCD_D10__LCD_D10 */
  50. 0x10b0 /* MX28_PAD_LCD_D11__LCD_D11 */
  51. 0x10c0 /* MX28_PAD_LCD_D12__LCD_D12 */
  52. 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */
  53. 0x10e0 /* MX28_PAD_LCD_D14__LCD_D14 */
  54. 0x10f0 /* MX28_PAD_LCD_D15__LCD_D15 */
  55. 0x1100 /* MX28_PAD_LCD_D16__LCD_D16 */
  56. 0x1110 /* MX28_PAD_LCD_D17__LCD_D17 */
  57. >;
  58. fsl,drive-strength = <0>;
  59. fsl,voltage = <1>;
  60. fsl,pull-up = <0>;
  61. };
  62.  
  63. lcdif_pins_cfa10057: lcdif-evk@0 {
  64. reg = <0>;
  65. fsl,pinmux-ids = <
  66. 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */
  67. 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */
  68. 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */
  69. 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */
  70. >;
  71. fsl,drive-strength = <0>;
  72. fsl,voltage = <1>;
  73. fsl,pull-up = <0>;
  74. };
  75. };
  76.  
  77. lcdif@80030000 {
  78. pinctrl-names = "default";
  79. pinctrl-0 = <&lcdif_18bit_pins_cfa10057
  80. &lcdif_pins_cfa10057>;
  81. display = <&display>;
  82. status = "okay";
  83.  
  84. display: display {
  85. bits-per-pixel = <32>;
  86. bus-width = <18>;
  87.  
  88. display-timings {
  89. native-mode = <&timing0>;
  90. timing0: timing0 {
  91. clock-frequency = <30000000>;
  92. hactive = <480>;
  93. vactive = <800>;
  94. hfront-porch = <12>;
  95. hback-porch = <2>;
  96. vfront-porch = <5>;
  97. vback-porch = <3>;
  98. hsync-len = <2>;
  99. vsync-len = <2>;
  100. hsync-active = <0>;
  101. vsync-active = <0>;
  102. de-active = <1>;
  103. pixelclk-active = <1>;
  104. };
  105. };
  106. };
  107. };
  108.  
  109. can0: can@80032000 {
  110. pinctrl-names = "default";
  111. pinctrl-0 = <&can0_pins_a>;
  112. status = "okay";
  113. };
  114.  
  115. can1: can@80034000 {
  116. pinctrl-names = "default";
  117. pinctrl-0 = <&can1_pins_a>;
  118. status = "okay";
  119. };
  120. };
  121.  
  122. apbx@80040000 {
  123. lradc@80050000 {
  124. fsl,lradc-touchscreen-wires = <4>;
  125. status = "okay";
  126. };
  127.  
  128. pwm: pwm@80064000 {
  129. pinctrl-names = "default";
  130. pinctrl-0 = <&pwm4_pins_a>;
  131. status = "okay";
  132. };
  133.  
  134. i2c0: i2c@80058000 {
  135. accel: accel@19 {
  136. compatible = "st,lsm330dlc-accel";
  137. reg = <0x19>;
  138. };
  139.  
  140. gyro: gyro@6a {
  141. compatible = "st,lsm330dlc-gyro";
  142. reg = <0x6a>;
  143. };
  144. };
  145.  
  146.  
  147. i2c1: i2c@8005a000 {
  148. pinctrl-names = "default";
  149. pinctrl-0 = <&i2c1_pins_a>;
  150. status = "okay";
  151. };
  152.  
  153. usbphy1: usbphy@8007e000 {
  154. status = "okay";
  155. };
  156. };
  157. };
  158.  
  159. ahb@80080000 {
  160. usb1: usb@80090000 {
  161. vbus-supply = <&reg_usb1_vbus>;
  162. pinctrl-0 = <&usbphy1_pins_a>;
  163. pinctrl-names = "default";
  164. status = "okay";
  165. };
  166. };
  167.  
  168. regulators {
  169. compatible = "simple-bus";
  170.  
  171. reg_usb1_vbus: usb1_vbus {
  172. compatible = "regulator-fixed";
  173. pinctrl-names = "default";
  174. pinctrl-0 = <&usb_pins_cfa10057>;
  175. regulator-name = "usb1_vbus";
  176. regulator-min-microvolt = <5000000>;
  177. regulator-max-microvolt = <5000000>;
  178. gpio = <&gpio0 7 1>;
  179. };
  180. };
  181.  
  182. ahb@80080000 {
  183. mac0: ethernet@800f0000 {
  184. phy-mode = "rmii";
  185. pinctrl-names = "default";
  186. pinctrl-0 = <&mac0_pins_a>;
  187. phy-reset-gpios = <&gpio2 21 0>;
  188. phy-reset-duration = <100>;
  189. status = "okay";
  190. };
  191. };
  192.  
  193. backlight {
  194. compatible = "pwm-backlight";
  195. pwms = <&pwm 4 5000000>;
  196. brightness-levels = <0 4 8 16 32 64 128 255>;
  197. default-brightness-level = <7>;
  198. };
  199. };
Advertisement
Add Comment
Please, Sign In to add comment