vf610-zii-ssmb-spu3.dts 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /*
  3. * Device tree file for ZII's SSMB SPU3 board
  4. *
  5. * SSMB - SPU3 Switch Management Board
  6. * SPU - Seat Power Unit
  7. *
  8. * Copyright (C) 2015, 2016 Zodiac Inflight Innovations
  9. *
  10. * Based on an original 'vf610-twr.dts' which is Copyright 2015,
  11. * Freescale Semiconductor, Inc.
  12. */
  13. /dts-v1/;
  14. #include "vf610.dtsi"
  15. / {
  16. model = "ZII VF610 SSMB SPU3 Board";
  17. compatible = "zii,vf610spu3", "zii,vf610dev", "fsl,vf610";
  18. chosen {
  19. stdout-path = &uart0;
  20. };
  21. memory@80000000 {
  22. device_type = "memory";
  23. reg = <0x80000000 0x20000000>;
  24. };
  25. gpio-leds {
  26. compatible = "gpio-leds";
  27. pinctrl-0 = <&pinctrl_leds_debug>;
  28. pinctrl-names = "default";
  29. led-debug {
  30. label = "zii:green:debug1";
  31. gpios = <&gpio2 18 GPIO_ACTIVE_HIGH>;
  32. linux,default-trigger = "heartbeat";
  33. };
  34. };
  35. reg_vcc_3v3_mcu: regulator {
  36. compatible = "regulator-fixed";
  37. regulator-name = "vcc_3v3_mcu";
  38. regulator-min-microvolt = <3300000>;
  39. regulator-max-microvolt = <3300000>;
  40. };
  41. supply-voltage-monitor {
  42. compatible = "iio-hwmon";
  43. io-channels = <&adc0 8>, /* 12V_MAIN */
  44. <&adc0 9>, /* +3.3V */
  45. <&adc1 8>, /* VCC_1V5 */
  46. <&adc1 9>; /* VCC_1V2 */
  47. };
  48. };
  49. &adc0 {
  50. vref-supply = <&reg_vcc_3v3_mcu>;
  51. status = "okay";
  52. };
  53. &adc1 {
  54. vref-supply = <&reg_vcc_3v3_mcu>;
  55. status = "okay";
  56. };
  57. &dspi1 {
  58. bus-num = <1>;
  59. pinctrl-names = "default";
  60. pinctrl-0 = <&pinctrl_dspi1>;
  61. /*
  62. * Some SPU3s come with SPI-NOR chip DNPed, so we leave this
  63. * node disabled by default and rely on bootloader to enable
  64. * it when appropriate.
  65. */
  66. status = "disabled";
  67. flash@0 {
  68. #address-cells = <1>;
  69. #size-cells = <1>;
  70. compatible = "m25p128", "jedec,spi-nor";
  71. reg = <0>;
  72. spi-max-frequency = <50000000>;
  73. partition@0 {
  74. label = "m25p128-0";
  75. reg = <0x0 0x01000000>;
  76. };
  77. };
  78. };
  79. &edma0 {
  80. status = "okay";
  81. };
  82. &edma1 {
  83. status = "okay";
  84. };
  85. &esdhc0 {
  86. pinctrl-names = "default";
  87. pinctrl-0 = <&pinctrl_esdhc0>;
  88. bus-width = <8>;
  89. non-removable;
  90. no-1-8-v;
  91. keep-power-in-suspend;
  92. no-sdio;
  93. no-sd;
  94. status = "okay";
  95. };
  96. &esdhc1 {
  97. pinctrl-names = "default";
  98. pinctrl-0 = <&pinctrl_esdhc1>;
  99. bus-width = <4>;
  100. no-sdio;
  101. status = "okay";
  102. };
  103. &fec1 {
  104. phy-mode = "rmii";
  105. pinctrl-names = "default";
  106. pinctrl-0 = <&pinctrl_fec1>;
  107. status = "okay";
  108. fixed-link {
  109. speed = <100>;
  110. full-duplex;
  111. };
  112. mdio1: mdio {
  113. #address-cells = <1>;
  114. #size-cells = <0>;
  115. clock-frequency = <12500000>;
  116. suppress-preamble;
  117. status = "okay";
  118. switch0: switch0@0 {
  119. compatible = "marvell,mv88e6190";
  120. pinctrl-0 = <&pinctrl_gpio_switch0>;
  121. pinctrl-names = "default";
  122. reg = <0>;
  123. eeprom-length = <65536>;
  124. interrupt-parent = <&gpio3>;
  125. interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
  126. interrupt-controller;
  127. #interrupt-cells = <2>;
  128. ports {
  129. #address-cells = <1>;
  130. #size-cells = <0>;
  131. port@0 {
  132. reg = <0>;
  133. label = "cpu";
  134. ethernet = <&fec1>;
  135. fixed-link {
  136. speed = <100>;
  137. full-duplex;
  138. };
  139. };
  140. port@1 {
  141. reg = <1>;
  142. label = "eth_cu_1000_1";
  143. };
  144. port@2 {
  145. reg = <2>;
  146. label = "eth_cu_1000_2";
  147. };
  148. port@3 {
  149. reg = <3>;
  150. label = "eth_cu_1000_3";
  151. };
  152. port@4 {
  153. reg = <4>;
  154. label = "eth_cu_1000_4";
  155. };
  156. port@5 {
  157. reg = <5>;
  158. label = "eth_cu_1000_5";
  159. };
  160. port@6 {
  161. reg = <6>;
  162. label = "eth_cu_1000_6";
  163. };
  164. };
  165. };
  166. };
  167. };
  168. &i2c0 {
  169. clock-frequency = <100000>;
  170. pinctrl-names = "default";
  171. pinctrl-0 = <&pinctrl_i2c0>;
  172. status = "okay";
  173. gpio6: io-expander@22 {
  174. compatible = "nxp,pca9554";
  175. reg = <0x22>;
  176. gpio-controller;
  177. #gpio-cells = <2>;
  178. };
  179. lm75@48 {
  180. compatible = "national,lm75";
  181. reg = <0x48>;
  182. };
  183. eeprom@50 {
  184. compatible = "atmel,24c04";
  185. reg = <0x50>;
  186. label = "nameplate";
  187. };
  188. eeprom@52 {
  189. compatible = "atmel,24c04";
  190. reg = <0x52>;
  191. };
  192. };
  193. &i2c1 {
  194. clock-frequency = <100000>;
  195. pinctrl-names = "default";
  196. pinctrl-0 = <&pinctrl_i2c1>;
  197. status = "okay";
  198. watchdog@38 {
  199. compatible = "zii,rave-wdt";
  200. reg = <0x38>;
  201. };
  202. };
  203. &snvsrtc {
  204. status = "disabled";
  205. };
  206. &uart0 {
  207. pinctrl-names = "default";
  208. pinctrl-0 = <&pinctrl_uart0>;
  209. status = "okay";
  210. };
  211. &uart1 {
  212. pinctrl-names = "default";
  213. pinctrl-0 = <&pinctrl_uart1>;
  214. status = "okay";
  215. rave-sp {
  216. compatible = "zii,rave-sp-rdu2";
  217. current-speed = <1000000>;
  218. #address-cells = <1>;
  219. #size-cells = <1>;
  220. watchdog {
  221. compatible = "zii,rave-sp-watchdog";
  222. };
  223. eeprom@a3 {
  224. compatible = "zii,rave-sp-eeprom";
  225. reg = <0xa3 0x4000>;
  226. #address-cells = <1>;
  227. #size-cells = <1>;
  228. zii,eeprom-name = "main-eeprom";
  229. };
  230. };
  231. };
  232. &wdoga5 {
  233. status = "disabled";
  234. };
  235. &iomuxc {
  236. pinctrl_dspi1: dspi1grp {
  237. fsl,pins = <
  238. VF610_PAD_PTD5__DSPI1_CS0 0x1182
  239. VF610_PAD_PTD4__DSPI1_CS1 0x1182
  240. VF610_PAD_PTC6__DSPI1_SIN 0x1181
  241. VF610_PAD_PTC7__DSPI1_SOUT 0x1182
  242. VF610_PAD_PTC8__DSPI1_SCK 0x1182
  243. >;
  244. };
  245. pinctrl_esdhc0: esdhc0grp {
  246. fsl,pins = <
  247. VF610_PAD_PTC0__ESDHC0_CLK 0x31ef
  248. VF610_PAD_PTC1__ESDHC0_CMD 0x31ef
  249. VF610_PAD_PTC2__ESDHC0_DAT0 0x31ef
  250. VF610_PAD_PTC3__ESDHC0_DAT1 0x31ef
  251. VF610_PAD_PTC4__ESDHC0_DAT2 0x31ef
  252. VF610_PAD_PTC5__ESDHC0_DAT3 0x31ef
  253. VF610_PAD_PTD23__ESDHC0_DAT4 0x31ef
  254. VF610_PAD_PTD22__ESDHC0_DAT5 0x31ef
  255. VF610_PAD_PTD21__ESDHC0_DAT6 0x31ef
  256. VF610_PAD_PTD20__ESDHC0_DAT7 0x31ef
  257. >;
  258. };
  259. pinctrl_esdhc1: esdhc1grp {
  260. fsl,pins = <
  261. VF610_PAD_PTA24__ESDHC1_CLK 0x31ef
  262. VF610_PAD_PTA25__ESDHC1_CMD 0x31ef
  263. VF610_PAD_PTA26__ESDHC1_DAT0 0x31ef
  264. VF610_PAD_PTA27__ESDHC1_DAT1 0x31ef
  265. VF610_PAD_PTA28__ESDHC1_DATA2 0x31ef
  266. VF610_PAD_PTA29__ESDHC1_DAT3 0x31ef
  267. >;
  268. };
  269. pinctrl_fec1: fec1grp {
  270. fsl,pins = <
  271. VF610_PAD_PTA6__RMII_CLKIN 0x30d1
  272. VF610_PAD_PTC9__ENET_RMII1_MDC 0x30d2
  273. VF610_PAD_PTC10__ENET_RMII1_MDIO 0x30d3
  274. VF610_PAD_PTC11__ENET_RMII1_CRS 0x30d1
  275. VF610_PAD_PTC12__ENET_RMII1_RXD1 0x30d1
  276. VF610_PAD_PTC13__ENET_RMII1_RXD0 0x30d1
  277. VF610_PAD_PTC14__ENET_RMII1_RXER 0x30d1
  278. VF610_PAD_PTC15__ENET_RMII1_TXD1 0x30d2
  279. VF610_PAD_PTC16__ENET_RMII1_TXD0 0x30d2
  280. VF610_PAD_PTC17__ENET_RMII1_TXEN 0x30d2
  281. >;
  282. };
  283. pinctrl_gpio_switch0: pinctrl-gpio-switch0 {
  284. fsl,pins = <
  285. VF610_PAD_PTB28__GPIO_98 0x219d
  286. >;
  287. };
  288. pinctrl_i2c0: i2c0grp {
  289. fsl,pins = <
  290. VF610_PAD_PTB14__I2C0_SCL 0x37ff
  291. VF610_PAD_PTB15__I2C0_SDA 0x37ff
  292. >;
  293. };
  294. pinctrl_i2c1: i2c1grp {
  295. fsl,pins = <
  296. VF610_PAD_PTB16__I2C1_SCL 0x37ff
  297. VF610_PAD_PTB17__I2C1_SDA 0x37ff
  298. >;
  299. };
  300. pinctrl_leds_debug: pinctrl-leds-debug {
  301. fsl,pins = <
  302. VF610_PAD_PTD3__GPIO_82 0x31c2
  303. >;
  304. };
  305. pinctrl_uart0: uart0grp {
  306. fsl,pins = <
  307. VF610_PAD_PTB10__UART0_TX 0x21a2
  308. VF610_PAD_PTB11__UART0_RX 0x21a1
  309. >;
  310. };
  311. pinctrl_uart1: uart1grp {
  312. fsl,pins = <
  313. VF610_PAD_PTB23__UART1_TX 0x21a2
  314. VF610_PAD_PTB24__UART1_RX 0x21a1
  315. >;
  316. };
  317. };