Advertisement
hugh_1977

imx28-cfa10058.dts with canbus

May 5th, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. /*
  2. * Copyright 2013 Crystalfontz America, Inc.
  3. * Copyright 2013 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-10058 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-10058 Board";
  21. compatible = "crystalfontz,cfa10058", "crystalfontz,cfa10036", "fsl,imx28";
  22.  
  23. apb@80000000 {
  24. apbh@80000000 {
  25. pinctrl@80018000 {
  26. usb_pins_cfa10058: usb-10058@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_pins_cfa10058: lcdif-10058@0 {
  37. reg = <0>;
  38. fsl,pinmux-ids = <
  39. 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */
  40. 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */
  41. 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */
  42. 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */
  43. >;
  44. fsl,drive-strength = <0>;
  45. fsl,voltage = <1>;
  46. fsl,pull-up = <0>;
  47. };
  48. };
  49.  
  50. lcdif@80030000 {
  51. pinctrl-names = "default";
  52. pinctrl-0 = <&lcdif_24bit_pins_a
  53. &lcdif_pins_cfa10058>;
  54. display = <&display>;
  55. status = "okay";
  56.  
  57. display: display {
  58. bits-per-pixel = <32>;
  59. bus-width = <24>;
  60.  
  61. display-timings {
  62. native-mode = <&timing0>;
  63. timing0: timing0 {
  64. clock-frequency = <30000000>;
  65. hactive = <800>;
  66. vactive = <480>;
  67. hback-porch = <40>;
  68. hfront-porch = <40>;
  69. vback-porch = <13>;
  70. vfront-porch = <29>;
  71. hsync-len = <8>;
  72. vsync-len = <8>;
  73. hsync-active = <0>;
  74. vsync-active = <0>;
  75. de-active = <1>;
  76. pixelclk-active = <1>;
  77. };
  78. };
  79. };
  80. };
  81.  
  82. can0: can@80032000 {
  83. pinctrl-names = "default";
  84. pinctrl-0 = <&can0_pins_a>;
  85. status = "okay";
  86. };
  87.  
  88. can1: can@80034000 {
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&can1_pins_a>;
  91. status = "okay";
  92. };
  93. };
  94.  
  95. apbx@80040000 {
  96. lradc@80050000 {
  97. fsl,lradc-touchscreen-wires = <4>;
  98. status = "okay";
  99. };
  100.  
  101. i2c0: i2c@80058000 {
  102. accel: accel@19 {
  103. compatible = "st,lsm330dlc-accel";
  104. reg = <0x19>;
  105. };
  106.  
  107. gyro: gyro@6a {
  108. compatible = "st,lsm330dlc-gyro";
  109. reg = <0x6a>;
  110. };
  111. };
  112.  
  113. pwm: pwm@80064000 {
  114. pinctrl-names = "default";
  115. pinctrl-0 = <&pwm4_pins_a>;
  116. status = "okay";
  117. };
  118.  
  119. usbphy1: usbphy@8007e000 {
  120. status = "okay";
  121. };
  122. };
  123. };
  124.  
  125. ahb@80080000 {
  126. usb1: usb@80090000 {
  127. vbus-supply = <&reg_usb1_vbus>;
  128. pinctrl-0 = <&usbphy1_pins_a>;
  129. pinctrl-names = "default";
  130. status = "okay";
  131. };
  132. };
  133.  
  134. regulators {
  135. compatible = "simple-bus";
  136.  
  137. reg_usb1_vbus: usb1_vbus {
  138. pinctrl-names = "default";
  139. pinctrl-0 = <&usb_pins_cfa10058>;
  140. compatible = "regulator-fixed";
  141. regulator-name = "usb1_vbus";
  142. regulator-min-microvolt = <5000000>;
  143. regulator-max-microvolt = <5000000>;
  144. gpio = <&gpio0 7 1>;
  145. };
  146. };
  147.  
  148. ahb@80080000 {
  149. mac0: ethernet@800f0000 {
  150. phy-mode = "rmii";
  151. pinctrl-names = "default";
  152. pinctrl-0 = <&mac0_pins_a>;
  153. phy-reset-gpios = <&gpio2 21 0>;
  154. phy-reset-duration = <100>;
  155. status = "okay";
  156. };
  157. };
  158.  
  159. backlight {
  160. compatible = "pwm-backlight";
  161. pwms = <&pwm 4 5000000>;
  162. brightness-levels = <0 4 8 16 32 64 128 255>;
  163. default-brightness-level = <6>;
  164. };
  165. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement