fsl-ls1088a-ten64.dts 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree file for Travese Ten64 (LS1088) board
  4. * Based on fsl-ls1088a-rdb.dts
  5. * Copyright 2017-2020 NXP
  6. * Copyright 2019-2021 Traverse Technologies
  7. *
  8. * Author: Mathew McBride <[email protected]>
  9. */
  10. /dts-v1/;
  11. #include "fsl-ls1088a.dtsi"
  12. #include <dt-bindings/gpio/gpio.h>
  13. #include <dt-bindings/input/input.h>
  14. / {
  15. model = "Traverse Ten64";
  16. compatible = "traverse,ten64", "fsl,ls1088a";
  17. aliases {
  18. serial0 = &duart0;
  19. serial1 = &duart1;
  20. };
  21. chosen {
  22. stdout-path = "serial0:115200n8";
  23. };
  24. buttons {
  25. compatible = "gpio-keys";
  26. /* Fired by system controller when
  27. * external power off (e.g ATX Power Button)
  28. * asserted
  29. */
  30. button-powerdn {
  31. label = "External Power Down";
  32. gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
  33. linux,code = <KEY_POWER>;
  34. };
  35. /* Rear Panel 'ADMIN' button (GPIO_H) */
  36. button-admin {
  37. label = "ADMIN button";
  38. gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>;
  39. linux,code = <KEY_WPS_BUTTON>;
  40. };
  41. };
  42. leds {
  43. compatible = "gpio-leds";
  44. led-0 {
  45. label = "ten64:green:sfp1:down";
  46. gpios = <&gpio3 11 GPIO_ACTIVE_HIGH>;
  47. };
  48. led-1 {
  49. label = "ten64:green:sfp2:up";
  50. gpios = <&gpio3 12 GPIO_ACTIVE_HIGH>;
  51. };
  52. led-2 {
  53. label = "ten64:admin";
  54. gpios = <&sfpgpio 12 GPIO_ACTIVE_HIGH>;
  55. };
  56. };
  57. sfp_xg0: dpmac2-sfp {
  58. compatible = "sff,sfp";
  59. i2c-bus = <&sfplower_i2c>;
  60. tx-fault-gpios = <&sfpgpio 0 GPIO_ACTIVE_HIGH>;
  61. tx-disable-gpios = <&sfpgpio 1 GPIO_ACTIVE_HIGH>;
  62. mod-def0-gpios = <&sfpgpio 2 GPIO_ACTIVE_LOW>;
  63. los-gpios = <&sfpgpio 3 GPIO_ACTIVE_HIGH>;
  64. maximum-power-milliwatt = <2000>;
  65. };
  66. sfp_xg1: dpmac1-sfp {
  67. compatible = "sff,sfp";
  68. i2c-bus = <&sfpupper_i2c>;
  69. tx-fault-gpios = <&sfpgpio 4 GPIO_ACTIVE_HIGH>;
  70. tx-disable-gpios = <&sfpgpio 5 GPIO_ACTIVE_HIGH>;
  71. mod-def0-gpios = <&sfpgpio 6 GPIO_ACTIVE_LOW>;
  72. los-gpios = <&sfpgpio 7 GPIO_ACTIVE_HIGH>;
  73. maximum-power-milliwatt = <2000>;
  74. };
  75. };
  76. /* XG1 - Upper SFP */
  77. &dpmac1 {
  78. sfp = <&sfp_xg1>;
  79. pcs-handle = <&pcs1>;
  80. phy-connection-type = "10gbase-r";
  81. managed = "in-band-status";
  82. };
  83. /* XG0 - Lower SFP */
  84. &dpmac2 {
  85. sfp = <&sfp_xg0>;
  86. pcs-handle = <&pcs2>;
  87. phy-connection-type = "10gbase-r";
  88. managed = "in-band-status";
  89. };
  90. /* DPMAC3..6 is GE4 to GE8 */
  91. &dpmac3 {
  92. phy-handle = <&mdio1_phy5>;
  93. phy-connection-type = "qsgmii";
  94. managed = "in-band-status";
  95. pcs-handle = <&pcs3_0>;
  96. };
  97. &dpmac4 {
  98. phy-handle = <&mdio1_phy6>;
  99. phy-connection-type = "qsgmii";
  100. managed = "in-band-status";
  101. pcs-handle = <&pcs3_1>;
  102. };
  103. &dpmac5 {
  104. phy-handle = <&mdio1_phy7>;
  105. phy-connection-type = "qsgmii";
  106. managed = "in-band-status";
  107. pcs-handle = <&pcs3_2>;
  108. };
  109. &dpmac6 {
  110. phy-handle = <&mdio1_phy8>;
  111. phy-connection-type = "qsgmii";
  112. managed = "in-band-status";
  113. pcs-handle = <&pcs3_3>;
  114. };
  115. /* DPMAC7..10 is GE0 to GE3 */
  116. &dpmac7 {
  117. phy-handle = <&mdio1_phy1>;
  118. phy-connection-type = "qsgmii";
  119. managed = "in-band-status";
  120. pcs-handle = <&pcs7_0>;
  121. };
  122. &dpmac8 {
  123. phy-handle = <&mdio1_phy2>;
  124. phy-connection-type = "qsgmii";
  125. managed = "in-band-status";
  126. pcs-handle = <&pcs7_1>;
  127. };
  128. &dpmac9 {
  129. phy-handle = <&mdio1_phy3>;
  130. phy-connection-type = "qsgmii";
  131. managed = "in-band-status";
  132. pcs-handle = <&pcs7_2>;
  133. };
  134. &dpmac10 {
  135. phy-handle = <&mdio1_phy4>;
  136. phy-connection-type = "qsgmii";
  137. managed = "in-band-status";
  138. pcs-handle = <&pcs7_3>;
  139. };
  140. &duart0 {
  141. status = "okay";
  142. };
  143. &duart1 {
  144. status = "okay";
  145. };
  146. &emdio1 {
  147. status = "okay";
  148. mdio1_phy5: ethernet-phy@c {
  149. reg = <0xc>;
  150. };
  151. mdio1_phy6: ethernet-phy@d {
  152. reg = <0xd>;
  153. };
  154. mdio1_phy7: ethernet-phy@e {
  155. reg = <0xe>;
  156. };
  157. mdio1_phy8: ethernet-phy@f {
  158. reg = <0xf>;
  159. };
  160. mdio1_phy1: ethernet-phy@1c {
  161. reg = <0x1c>;
  162. };
  163. mdio1_phy2: ethernet-phy@1d {
  164. reg = <0x1d>;
  165. };
  166. mdio1_phy3: ethernet-phy@1e {
  167. reg = <0x1e>;
  168. };
  169. mdio1_phy4: ethernet-phy@1f {
  170. reg = <0x1f>;
  171. };
  172. };
  173. &esdhc {
  174. status = "okay";
  175. };
  176. &i2c0 {
  177. status = "okay";
  178. sfpgpio: gpio@76 {
  179. compatible = "ti,tca9539";
  180. reg = <0x76>;
  181. #gpio-cells = <2>;
  182. gpio-controller;
  183. admin_led_lower {
  184. gpio-hog;
  185. gpios = <13 GPIO_ACTIVE_HIGH>;
  186. output-low;
  187. };
  188. };
  189. at97sc: tpm@29 {
  190. compatible = "atmel,at97sc3204t";
  191. reg = <0x29>;
  192. };
  193. };
  194. &i2c2 {
  195. status = "okay";
  196. rx8035: rtc@32 {
  197. compatible = "epson,rx8035";
  198. reg = <0x32>;
  199. };
  200. };
  201. &i2c3 {
  202. status = "okay";
  203. i2c-mux@70 {
  204. compatible = "nxp,pca9540";
  205. #address-cells = <1>;
  206. #size-cells = <0>;
  207. reg = <0x70>;
  208. sfpupper_i2c: i2c@0 {
  209. #address-cells = <1>;
  210. #size-cells = <0>;
  211. reg = <0>;
  212. };
  213. sfplower_i2c: i2c@1 {
  214. #address-cells = <1>;
  215. #size-cells = <0>;
  216. reg = <1>;
  217. };
  218. };
  219. };
  220. &pcs_mdio1 {
  221. status = "okay";
  222. };
  223. &pcs_mdio2 {
  224. status = "okay";
  225. };
  226. &pcs_mdio3 {
  227. status = "okay";
  228. };
  229. &pcs_mdio7 {
  230. status = "okay";
  231. };
  232. &qspi {
  233. status = "okay";
  234. en25s64: flash@0 {
  235. compatible = "jedec,spi-nor";
  236. #address-cells = <1>;
  237. #size-cells = <1>;
  238. reg = <0>;
  239. spi-max-frequency = <20000000>;
  240. spi-rx-bus-width = <4>;
  241. spi-tx-bus-width = <4>;
  242. partitions {
  243. compatible = "fixed-partitions";
  244. #address-cells = <1>;
  245. #size-cells = <1>;
  246. partition@0 {
  247. label = "bl2";
  248. reg = <0 0x100000>;
  249. };
  250. partition@100000 {
  251. label = "bl3";
  252. reg = <0x100000 0x200000>;
  253. };
  254. partition@300000 {
  255. label = "mcfirmware";
  256. reg = <0x300000 0x200000>;
  257. };
  258. partition@500000 {
  259. label = "ubootenv";
  260. reg = <0x500000 0x80000>;
  261. };
  262. partition@580000 {
  263. label = "dpl";
  264. reg = <0x580000 0x40000>;
  265. };
  266. partition@5C0000 {
  267. label = "dpc";
  268. reg = <0x5C0000 0x40000>;
  269. };
  270. partition@600000 {
  271. label = "devicetree";
  272. reg = <0x600000 0x40000>;
  273. };
  274. };
  275. };
  276. nand: flash@1 {
  277. compatible = "spi-nand";
  278. #address-cells = <1>;
  279. #size-cells = <1>;
  280. reg = <1>;
  281. spi-max-frequency = <20000000>;
  282. spi-rx-bus-width = <4>;
  283. spi-tx-bus-width = <4>;
  284. partitions {
  285. compatible = "fixed-partitions";
  286. #address-cells = <1>;
  287. #size-cells = <1>;
  288. /* reserved for future boot direct from NAND flash
  289. * (this would use the same layout as the 8MiB NOR flash)
  290. */
  291. partition@0 {
  292. label = "nand-boot-reserved";
  293. reg = <0 0x800000>;
  294. };
  295. /* recovery / install environment */
  296. partition@800000 {
  297. label = "recovery";
  298. reg = <0x800000 0x2000000>;
  299. };
  300. /* ubia (first OpenWrt) - a/b names to prevent confusion with ubi0/1/etc. */
  301. partition@2800000 {
  302. label = "ubia";
  303. reg = <0x2800000 0x6C00000>;
  304. };
  305. /* ubib (second OpenWrt) */
  306. partition@9400000 {
  307. label = "ubib";
  308. reg = <0x9400000 0x6C00000>;
  309. };
  310. };
  311. };
  312. };
  313. &usb0 {
  314. status = "okay";
  315. };
  316. &usb1 {
  317. status = "okay";
  318. };