vf610-zii-spb4.dts 6.7 KB

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