Advertisement
j0h

ts7600 device tree

j0h
Apr 16th, 2023
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.28 KB | None | 0 0
  1. /*
  2. * Copyright (C) 2012 Marek Vasut <marex@denx.de>
  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.  
  12. /dts-v1/;
  13. #include "imx28.dtsi"
  14. #include "dt-bindings/gpio/gpio.h"
  15. #include <dt-bindings/interrupt-controller/irq.h>
  16.  
  17. / {
  18.  
  19. model = "embeddedTS i.MX28 TS-7600 (Default Device Tree)";
  20. compatible = "fsl,imx28-ts7600", "fsl,imx28";
  21.  
  22. aliases {
  23. mmc0 = &ssp0;
  24. mmc1 = &ssp2;
  25. i2c0 = &i2c0;
  26. };
  27.  
  28. memory {
  29. reg = <0x40000000 0x10000000>; /* 256MB */
  30. };
  31.  
  32. apb@80000000 {
  33. apbh@80000000 {
  34.  
  35. ssp0: ssp@80010000 {
  36. compatible = "fsl,imx28-mmc";
  37. pinctrl-names = "default";
  38. pinctrl-0 = <&mmc0_4bit_pins_ts
  39. &en_sd_pwr>;
  40. broken-cd = <1>;
  41. bus-width = <4>;
  42. vmmc-supply = <&reg_vddio_sd0>;
  43. status = "okay";
  44. };
  45.  
  46. ssp2: ssp@80014000 {
  47. compatible = "fsl,imx28-mmc";
  48. pinctrl-names = "default";
  49. pinctrl-0 = <&mmc2_4bit_pins_ts>;
  50. broken-cd = <1>;
  51. bus-width = <4>;
  52. vmmc-supply = <&reg_vddio_sd0>;
  53. status = "okay";
  54. };
  55.  
  56.  
  57. pinctrl@80018000 {
  58. pinctrl-names = "default";
  59.  
  60. en_sd_pwr: en_sd_pwr {
  61. fsl,pinmux-ids = <
  62. MX28_PAD_PWM3__GPIO_3_28
  63. >;
  64. fsl,drive-strength = <MXS_DRIVE_4mA>;
  65. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  66. fsl,pull-up = <MXS_PULL_DISABLE>;
  67. };
  68.  
  69. mmc0_4bit_pins_ts: mmc0-4bit@0 {
  70. reg = <0>;
  71. fsl,pinmux-ids = <
  72. MX28_PAD_SSP0_DATA0__SSP0_D0
  73. MX28_PAD_SSP0_DATA1__SSP0_D1
  74. MX28_PAD_SSP0_DATA2__SSP0_D2
  75. MX28_PAD_SSP0_DATA3__SSP0_D3
  76. MX28_PAD_SSP0_CMD__SSP0_CMD
  77. MX28_PAD_SSP0_SCK__SSP0_SCK
  78. >;
  79. fsl,drive-strength = <MXS_DRIVE_8mA>;
  80. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  81. fsl,pull-up = <MXS_PULL_ENABLE>;
  82. };
  83.  
  84. mmc2_4bit_pins_ts: mmc1-4bit@0 {
  85. reg = <0>;
  86. fsl,pinmux-ids = <
  87. MX28_PAD_SSP0_DATA4__SSP2_D0
  88. MX28_PAD_SSP2_SS1__SSP2_D1
  89. MX28_PAD_SSP2_SS2__SSP2_D2
  90. MX28_PAD_SSP0_DATA5__SSP2_D3
  91. MX28_PAD_SSP0_DATA6__SSP2_CMD
  92. MX28_PAD_SSP0_DATA7__SSP2_SCK
  93.  
  94. MX28_PAD_SSP2_SCK__GPIO_2_16
  95. MX28_PAD_SSP2_MOSI__GPIO_2_17
  96. MX28_PAD_SSP2_MISO__GPIO_2_18
  97. MX28_PAD_SSP2_SS0__GPIO_2_19
  98. >;
  99. fsl,drive-strength = <MXS_DRIVE_8mA>;
  100. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  101. fsl,pull-up = <MXS_PULL_ENABLE>;
  102. };
  103.  
  104.  
  105. mac0_pins_ts7600: mac0@0 {
  106. reg = <0>;
  107. fsl,pinmux-ids = <
  108. MX28_PAD_ENET0_MDC__ENET0_MDC
  109. MX28_PAD_ENET0_MDIO__ENET0_MDIO
  110. MX28_PAD_ENET0_RX_EN__ENET0_RX_EN
  111. MX28_PAD_ENET0_RXD0__ENET0_RXD0
  112. MX28_PAD_ENET0_RXD1__ENET0_RXD1
  113. MX28_PAD_ENET0_TX_EN__ENET0_TX_EN
  114. MX28_PAD_ENET0_TXD0__ENET0_TXD0
  115. MX28_PAD_ENET0_TXD1__ENET0_TXD1
  116. MX28_PAD_ENET_CLK__CLKCTRL_ENET
  117. // ETH_RESET#
  118. MX28_PAD_SSP0_DETECT__GPIO_2_9
  119. >;
  120. fsl,drive-strength = <MXS_DRIVE_8mA>;
  121. fsl,voltage = <MXS_VOLTAGE_HIGH>;
  122. fsl,pull-up = <MXS_PULL_ENABLE>;
  123. };
  124.  
  125. };
  126.  
  127. can0: can@80032000 {
  128. pinctrl-names = "default";
  129. pinctrl-0 = <&can0_pins_a>;
  130. status = "okay";
  131. };
  132.  
  133. can1: can@80034000 {
  134. pinctrl-names = "default";
  135. pinctrl-0 = <&can1_pins_a>;
  136. status = "okay";
  137. };
  138.  
  139. };
  140.  
  141. apbx@80040000 {
  142. saif0: saif@80042000 {
  143. pinctrl-names = "default";
  144. pinctrl-0 = <&saif0_pins_a>;
  145. status = "disabled";
  146. };
  147.  
  148. saif1: saif@80046000 {
  149. pinctrl-names = "default";
  150. pinctrl-0 = <&saif1_pins_a>;
  151. fsl,saif-master = <&saif0>;
  152. status = "disabled";
  153. };
  154.  
  155.  
  156. i2c0: i2c@80058000 {
  157. pinctrl-names = "default";
  158. pinctrl-0 = <&i2c0_pins_a>;
  159. clock-frequency = <100000>;
  160. status = "okay";
  161.  
  162. rtc: isl12020@68 {
  163. compatible = "isl,isl12020";
  164. reg = <0x6f>;
  165. };
  166. };
  167.  
  168. duart: serial@80074000 {
  169. pinctrl-names = "default";
  170. pinctrl-0 = <&duart_pins_a>;
  171. status = "okay";
  172. };
  173.  
  174. usbphy0: usbphy@8007c000 {
  175. status = "okay";
  176.  
  177. };
  178.  
  179. usbphy1: usbphy@8007e000 {
  180. status = "okay";
  181. };
  182.  
  183. pwm: pwm@80064000 {
  184. pinctrl-names = "default";
  185. pinctrl-0 = <&pwm2_pins_a>;
  186. status = "okay";
  187. };
  188. };
  189. };
  190.  
  191. ahb@80080000 {
  192.  
  193. usb0: usb@80080000 {
  194. status = "okay";
  195. };
  196.  
  197. usb1: usb@80090000 {
  198. vbus-supply = <&reg_usb1_vbus>;
  199. disable-over-current;
  200. dr_mode = "host";
  201. status = "okay";
  202. };
  203.  
  204. mac0: ethernet@800f0000 {
  205. phy-mode = "rmii";
  206. pinctrl-names = "default";
  207. pinctrl-0 = <&mac0_pins_ts7600>;
  208. clocks = <&clks 57>, <&clks 57>, <&clks 64>;
  209. clock-names = "ipg", "ahb", "enet_out";
  210. phy-supply = <&reg_phy_vbus>;
  211. phy-reset-gpios = <&gpio2 9 GPIO_ACTIVE_LOW>;
  212. phy-reset-duration = <1000>;
  213. status = "okay";
  214.  
  215. phy: ethernet@0 {
  216. device_type = "network";
  217. fixed-link = <0 1 100 0 0>;
  218. };
  219. };
  220. };
  221.  
  222. regulators {
  223. compatible = "simple-bus";
  224.  
  225. reg_3p3v: 3p3v {
  226. compatible = "regulator-fixed";
  227. regulator-name = "3P3V";
  228. regulator-min-microvolt = <3300000>;
  229. regulator-max-microvolt = <3300000>;
  230. regulator-always-on;
  231. };
  232.  
  233. reg_vddio_sd0: vddio-sd0 {
  234. compatible = "regulator-fixed";
  235. regulator-name = "vddio-sd0";
  236. regulator-min-microvolt = <3300000>;
  237. regulator-max-microvolt = <3300000>;
  238. regulator-boot-on;
  239. enable-active-low;
  240. gpio = <&gpio3 28 0>; // EN_SD_PWR#
  241. };
  242.  
  243. reg_usb1_vbus: usb1_vbus {
  244. compatible = "regulator-fixed";
  245. regulator-name = "usb1_vbus";
  246. regulator-min-microvolt = <5000000>;
  247. regulator-max-microvolt = <5000000>;
  248. enable-active-high;
  249. regulator-always-on;
  250. };
  251.  
  252. reg_phy_vbus: phy_vbus {
  253. compatible = "regulator-fixed";
  254. regulator-name = "phy-3v3";
  255. regulator-min-microvolt = <3300000>;
  256. regulator-max-microvolt = <3300000>;
  257. enable-active-low;
  258. regulator-boot-on;
  259. };
  260. };
  261.  
  262. fpga_clock {
  263. compatible = "pwm-clock";
  264. #clock-cells = <0>;
  265. clock-frequency = <12000000>;
  266. clock-output-names = "fpga_12mhz";
  267. pwms = <&pwm 2 83>; // 1 / 84 ns = 12ish MHz
  268. };
  269.  
  270.  
  271. };
  272.  
  273.  
  274.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement