EASY80920.dtsi 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. #include "vr9.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. / {
  4. chosen {
  5. bootargs = "console=ttyLTQ0,115200";
  6. };
  7. aliases {
  8. led-boot = &power;
  9. led-failsafe = &power;
  10. led-running = &power;
  11. led-usb = &usb1;
  12. led-usb2 = &usb2;
  13. };
  14. memory@0 {
  15. reg = <0x0 0x4000000>;
  16. };
  17. fpi@10000000 {
  18. gpio: pinmux@E100B10 {
  19. pinctrl-names = "default";
  20. pinctrl-0 = <&state_default>;
  21. state_default: pinmux {
  22. exin3 {
  23. lantiq,groups = "exin3";
  24. lantiq,function = "exin";
  25. };
  26. stp {
  27. lantiq,groups = "stp";
  28. lantiq,function = "stp";
  29. };
  30. nand {
  31. lantiq,groups = "nand cle", "nand ale",
  32. "nand rd", "nand rdy";
  33. lantiq,function = "ebu";
  34. };
  35. mdio {
  36. lantiq,groups = "mdio";
  37. lantiq,function = "mdio";
  38. };
  39. pci {
  40. lantiq,groups = "gnt1", "req1";
  41. lantiq,function = "pci";
  42. };
  43. conf_out {
  44. lantiq,pins = "io24", "io13", "io49", /* nand cle, ale and rd */
  45. "io4", "io5", "io6", /* stp */
  46. "io21",
  47. "io33";
  48. lantiq,open-drain;
  49. lantiq,pull = <0>;
  50. lantiq,output = <1>;
  51. };
  52. pcie-rst {
  53. lantiq,pins = "io38";
  54. lantiq,pull = <0>;
  55. lantiq,output = <1>;
  56. };
  57. conf_in {
  58. lantiq,pins = "io39", /* exin3 */
  59. "io48"; /* nand rdy */
  60. lantiq,pull = <2>;
  61. };
  62. };
  63. pins_spi_default: pins_spi_default {
  64. spi_in {
  65. lantiq,groups = "spi_di";
  66. lantiq,function = "spi";
  67. };
  68. spi_out {
  69. lantiq,groups = "spi_do", "spi_clk",
  70. "spi_cs4";
  71. lantiq,function = "spi";
  72. lantiq,output = <1>;
  73. };
  74. };
  75. };
  76. stp: stp@E100BB0 {
  77. compatible = "lantiq,gpio-stp-xway";
  78. reg = <0xE100BB0 0x40>;
  79. #gpio-cells = <2>;
  80. gpio-controller;
  81. lantiq,shadow = <0xffff>;
  82. lantiq,groups = <0x7>;
  83. lantiq,dsl = <0x3>;
  84. lantiq,phy1 = <0x7>;
  85. lantiq,phy2 = <0x7>;
  86. /* lantiq,rising; */
  87. };
  88. ifxhcd@E101000 {
  89. status = "okay";
  90. gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
  91. lantiq,portmask = <0x3>;
  92. };
  93. };
  94. gphy-xrx200 {
  95. compatible = "lantiq,phy-xrx200";
  96. firmware1 = "lantiq/vr9_phy11g_a1x.bin";
  97. firmware2 = "lantiq/vr9_phy11g_a2x.bin";
  98. phys = [ 00 01 ];
  99. };
  100. gpio-keys-polled {
  101. compatible = "gpio-keys-polled";
  102. #address-cells = <1>;
  103. #size-cells = <0>;
  104. poll-interval = <100>;
  105. /* reset {
  106. label = "reset";
  107. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  108. linux,code = <KEY_RESTART>;
  109. };*/
  110. paging {
  111. label = "paging";
  112. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  113. linux,code = <KEY_PHONE>;
  114. };
  115. };
  116. gpio-leds {
  117. compatible = "gpio-leds";
  118. power: power {
  119. label = "easy80920:green:power";
  120. gpios = <&stp 9 GPIO_ACTIVE_HIGH>;
  121. default-state = "keep";
  122. };
  123. warning {
  124. label = "easy80920:green:warning";
  125. gpios = <&stp 22 GPIO_ACTIVE_HIGH>;
  126. };
  127. fxs1 {
  128. label = "easy80920:green:fxs1";
  129. gpios = <&stp 21 GPIO_ACTIVE_HIGH>;
  130. };
  131. fxs2 {
  132. label = "easy80920:green:fxs2";
  133. gpios = <&stp 20 GPIO_ACTIVE_HIGH>;
  134. };
  135. fxo {
  136. label = "easy80920:green:fxo";
  137. gpios = <&stp 19 GPIO_ACTIVE_HIGH>;
  138. };
  139. usb1: usb1 {
  140. label = "easy80920:green:usb1";
  141. gpios = <&stp 18 GPIO_ACTIVE_HIGH>;
  142. };
  143. usb2: usb2 {
  144. label = "easy80920:green:usb2";
  145. gpios = <&stp 15 GPIO_ACTIVE_HIGH>;
  146. };
  147. sd {
  148. label = "easy80920:green:sd";
  149. gpios = <&stp 14 GPIO_ACTIVE_HIGH>;
  150. };
  151. wps {
  152. label = "easy80920:green:wps";
  153. gpios = <&stp 12 GPIO_ACTIVE_HIGH>;
  154. };
  155. };
  156. };
  157. &spi {
  158. pinctrl-names = "default";
  159. pinctrl-0 = <&pins_spi_default>;
  160. status = "ok";
  161. m25p80@4 {
  162. #address-cells = <1>;
  163. #size-cells = <1>;
  164. compatible = "jedec,spi-nor";
  165. reg = <4 0>;
  166. spi-max-frequency = <1000000>;
  167. partitions {
  168. compatible = "fixed-partitions";
  169. #address-cells = <1>;
  170. #size-cells = <1>;
  171. partition@0 {
  172. reg = <0x0 0x20000>;
  173. label = "SPI (RO) U-Boot Image";
  174. read-only;
  175. };
  176. partition@20000 {
  177. reg = <0x20000 0x10000>;
  178. label = "ENV_MAC";
  179. read-only;
  180. };
  181. partition@30000 {
  182. reg = <0x30000 0x10000>;
  183. label = "DPF";
  184. read-only;
  185. };
  186. partition@40000 {
  187. reg = <0x40000 0x10000>;
  188. label = "NVRAM";
  189. read-only;
  190. };
  191. partition@500000 {
  192. reg = <0x50000 0x003a0000>;
  193. label = "kernel";
  194. };
  195. };
  196. };
  197. };
  198. &eth0 {
  199. lan: interface@0 {
  200. compatible = "lantiq,xrx200-pdi";
  201. #address-cells = <1>;
  202. #size-cells = <0>;
  203. reg = <0>;
  204. lantiq,switch;
  205. ethernet@4 {
  206. compatible = "lantiq,xrx200-pdi-port";
  207. reg = <4>;
  208. phynmode0 = "gmii";
  209. phy-handle = <&phy13>;
  210. };
  211. ethernet@2 {
  212. compatible = "lantiq,xrx200-pdi-port";
  213. reg = <2>;
  214. phy-mode = "gmii";
  215. phy-handle = <&phy11>;
  216. };
  217. ethernet@1 {
  218. compatible = "lantiq,xrx200-pdi-port";
  219. reg = <1>;
  220. phy-mode = "rgmii";
  221. phy-handle = <&phy1>;
  222. };
  223. ethernet@0 {
  224. compatible = "lantiq,xrx200-pdi-port";
  225. reg = <0>;
  226. phy-mode = "rgmii";
  227. phy-handle = <&phy0>;
  228. };
  229. };
  230. wan: interface@1 {
  231. compatible = "lantiq,xrx200-pdi";
  232. #address-cells = <1>;
  233. #size-cells = <0>;
  234. reg = <1>;
  235. lantiq,wan;
  236. ethernet@5 {
  237. compatible = "lantiq,xrx200-pdi-port";
  238. reg = <5>;
  239. phy-mode = "rgmii";
  240. phy-handle = <&phy5>;
  241. };
  242. };
  243. mdio@0 {
  244. #address-cells = <1>;
  245. #size-cells = <0>;
  246. compatible = "lantiq,xrx200-mdio";
  247. phy0: ethernet-phy@0 {
  248. reg = <0x0>;
  249. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  250. };
  251. phy1: ethernet-phy@1 {
  252. reg = <0x1>;
  253. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  254. };
  255. phy5: ethernet-phy@5 {
  256. reg = <0x5>;
  257. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  258. };
  259. phy11: ethernet-phy@11 {
  260. reg = <0x11>;
  261. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  262. };
  263. phy13: ethernet-phy@13 {
  264. reg = <0x13>;
  265. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  266. };
  267. };
  268. };