VGV7519.dtsi 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. /include/ "vr9.dtsi"
  2. / {
  3. model = "VGV7519 - KPN Experiabox V8";
  4. chosen {
  5. bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
  6. leds {
  7. boot = &power_green;
  8. failsafe = &power_red;
  9. running = &power_green;
  10. dsl = &broadband_green;
  11. internet = &internet_green;
  12. wifi = &wireless_green;
  13. };
  14. };
  15. memory@0 {
  16. reg = <0x0 0x4000000>;
  17. };
  18. fpi@10000000 {
  19. localbus@0 {
  20. nor-boot@0 {
  21. compatible = "lantiq,nor";
  22. bank-width = <2>;
  23. reg = <0 0x0 0x800000>, <1 0x800000 0x800000>;
  24. #address-cells = <1>;
  25. #size-cells = <1>;
  26. partitions {
  27. compatible = "fixed-partitions";
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. boardconfig: partition@40000 {
  31. label = "board_config";
  32. reg = <0x40000 0x10000>;
  33. read-only;
  34. };
  35. };
  36. };
  37. };
  38. gpio: pinmux@E100B10 {
  39. pinctrl-names = "default";
  40. pinctrl-0 = <&state_default>;
  41. state_default: pinmux {
  42. stp {
  43. lantiq,groups = "stp";
  44. lantiq,function = "stp";
  45. lantiq,open-drain = <0>;
  46. lantiq,output = <1>;
  47. lantiq,pull = <0>;
  48. };
  49. mdio {
  50. lantiq,groups = "mdio";
  51. lantiq,function = "mdio";
  52. };
  53. pci-rst {
  54. lantiq,pins = "io21";
  55. lantiq,open-drain = <0>;
  56. lantiq,pull = <0>;
  57. lantiq,output = <1>;
  58. };
  59. gphy-leds {
  60. lantiq,groups = "gphy0 led1", "gphy1 led0";
  61. lantiq,function = "gphy";
  62. lantiq,open-drain = <0>;
  63. lantiq,pull = <0>;
  64. lantiq,output = <1>;
  65. };
  66. };
  67. };
  68. stp: stp@E100BB0 {
  69. compatible = "lantiq,gpio-stp-xway";
  70. reg = <0xE100BB0 0x40>;
  71. #gpio-cells = <2>;
  72. gpio-controller;
  73. lantiq,shadow = <0xffff>;
  74. lantiq,groups = <0x3>;
  75. lantiq,dsl = <0x0>;
  76. lantiq,phy1 = <0x0>;
  77. lantiq,phy2 = <0x0>;
  78. /* lantiq,rising; */
  79. };
  80. ifxhcd@E101000 {
  81. status = "okay";
  82. gpios = <&gpio 32 0>;
  83. lantiq,portmask = <0x3>;
  84. };
  85. pci@E105400 {
  86. status = "okay";
  87. lantiq,bus-clock = <33333333>;
  88. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  89. interrupt-map = <
  90. 0x7000 0 0 1 &icu0 30 1 // slot 14, irq 30
  91. >;
  92. gpio-reset = <&gpio 21 0>;
  93. req-mask = <0x1>; /* GNT1 */
  94. };
  95. pcie@d900000 {
  96. status = "disabled";
  97. };
  98. };
  99. gphy-xrx200 {
  100. compatible = "lantiq,phy-xrx200";
  101. firmware1 = "lantiq/vr9_phy11g_a1x.bin"; /*VR9 1.1*/
  102. firmware2 = "lantiq/vr9_phy11g_a2x.bin"; /*VR9 1.2*/
  103. phys = [ 00 01 ];
  104. };
  105. ralink_eep {
  106. compatible = "ralink,eeprom";
  107. ralink,eeprom = "RT2860.eeprom";
  108. };
  109. gpio-keys-polled {
  110. compatible = "gpio-keys-polled";
  111. #address-cells = <1>;
  112. #size-cells = <0>;
  113. poll-interval = <100>;
  114. reset {
  115. label = "reset";
  116. gpios = <&gpio 9 1>;
  117. linux,code = <0x198>;
  118. };
  119. eco {
  120. label = "eco";
  121. gpios = <&gpio 41 1>;
  122. linux,code = <247>;
  123. };
  124. rfkill {
  125. label = "rfkill";
  126. gpios = <&gpio 45 1>;
  127. linux,code = <0xf7>;
  128. };
  129. wps {
  130. label = "wps";
  131. gpios = <&gpio 10 1>;
  132. linux,code = <0x211>;
  133. };
  134. };
  135. gpio-leds {
  136. compatible = "gpio-leds";
  137. eco {
  138. label = "vgv7519:blue:eco";
  139. gpios = <&stp 2 1>;
  140. };
  141. wps_red {
  142. label = "vgv7519:red:wps";
  143. gpios = <&stp 3 1>;
  144. };
  145. wps_green {
  146. label = "vgv7519:green:wps";
  147. gpios = <&stp 4 1>;
  148. };
  149. upgrade {
  150. label = "vgv7519:blue:upgrade";
  151. gpios = <&stp 5 1>;
  152. };
  153. tv {
  154. label = "vgv7519:green:tv";
  155. gpios = <&stp 6 1>;
  156. };
  157. internet_green: internet_green {
  158. label = "vgv7519:green:internet";
  159. gpios = <&stp 7 1>;
  160. };
  161. internet_red {
  162. label = "vgv7519:red:internet";
  163. gpios = <&stp 8 1>;
  164. };
  165. broadband_red {
  166. label = "vgv7519:red:broadband";
  167. gpios = <&stp 9 1>;
  168. };
  169. broadband_green: broadband_green {
  170. label = "vgv7519:green:broadband";
  171. gpios = <&stp 10 1>;
  172. };
  173. voice {
  174. label = "vgv7519:green:voice";
  175. gpios = <&stp 11 1>;
  176. };
  177. wireless_red {
  178. label = "vgv7519:red:wireless";
  179. gpios = <&stp 12 1>;
  180. };
  181. wireless_green: wireless_green {
  182. label = "vgv7519:green:wireless";
  183. gpios = <&stp 13 1>;
  184. };
  185. power_green: power2 {
  186. label = "vgv7519:green:power";
  187. gpios = <&stp 14 1>;
  188. default-state = "keep";
  189. };
  190. power_red: power {
  191. label = "vgv7519:red:power";
  192. gpios = <&stp 15 1>;
  193. };
  194. };
  195. };
  196. &eth0 {
  197. lan: interface@0 {
  198. compatible = "lantiq,xrx200-pdi";
  199. #address-cells = <1>;
  200. #size-cells = <0>;
  201. reg = <0>;
  202. mtd-mac-address = <&boardconfig 0x16>;
  203. lantiq,switch;
  204. ethernet@0 {
  205. compatible = "lantiq,xrx200-pdi-port";
  206. reg = <0>;
  207. phy-mode = "rgmii";
  208. phy-handle = <&phy0>;
  209. };
  210. ethernet@1 {
  211. compatible = "lantiq,xrx200-pdi-port";
  212. reg = <1>;
  213. phy-mode = "rgmii";
  214. phy-handle = <&phy1>;
  215. };
  216. ethernet@2 {
  217. compatible = "lantiq,xrx200-pdi-port";
  218. reg = <2>;
  219. phy-mode = "gmii";
  220. phy-handle = <&phy11>;
  221. };
  222. ethernet@4 {
  223. compatible = "lantiq,xrx200-pdi-port";
  224. reg = <4>;
  225. phy-mode = "gmii";
  226. phy-handle = <&phy13>;
  227. };
  228. };
  229. wan: interface@1 {
  230. compatible = "lantiq,xrx200-pdi";
  231. #address-cells = <1>;
  232. #size-cells = <0>;
  233. reg = <1>;
  234. mtd-mac-address = <&boardconfig 0x16>;
  235. mtd-mac-address-increment = <2>;
  236. lantiq,wan;
  237. ethernet@5 {
  238. compatible = "lantiq,xrx200-pdi-port";
  239. reg = <5>;
  240. phy-mode = "rgmii";
  241. phy-handle = <&phy5>;
  242. };
  243. };
  244. mdio@0 {
  245. #address-cells = <1>;
  246. #size-cells = <0>;
  247. compatible = "lantiq,xrx200-mdio";
  248. phy0: ethernet-phy@0 {
  249. reg = <0x0>;
  250. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  251. };
  252. phy1: ethernet-phy@1 {
  253. reg = <0x1>;
  254. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  255. };
  256. phy5: ethernet-phy@5 {
  257. reg = <0x5>;
  258. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  259. };
  260. phy11: ethernet-phy@11 {
  261. reg = <0x11>;
  262. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  263. };
  264. phy13: ethernet-phy@13 {
  265. reg = <0x13>;
  266. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  267. };
  268. };
  269. };