WBMR300.dts 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. /dts-v1/;
  2. /include/ "vr9.dtsi"
  3. / {
  4. model = "WBMR300 - Buffalo WBMR-300HPD";
  5. chosen {
  6. bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
  7. leds {
  8. boot = &power_g;
  9. failsafe = &diag_r;
  10. running = &power_g;
  11. dsl = &dsl;
  12. internet = &router_g;
  13. wifi = &wifi_g;
  14. };
  15. };
  16. memory@0 {
  17. reg = <0x0 0x4000000>;
  18. };
  19. fpi@10000000 {
  20. gpio: pinmux@E100B10 {
  21. pinctrl-names = "default";
  22. pinctrl-0 = <&state_default>;
  23. state_default: pinmux {
  24. mdio {
  25. lantiq,groups = "mdio";
  26. lantiq,function = "mdio";
  27. };
  28. phy-rst {
  29. lantiq,pins = "io42";
  30. lantiq,pull = <0>;
  31. lantiq,open-drain = <0>;
  32. lantiq,output = <1>;
  33. };
  34. pcie-rst {
  35. lantiq,pins = "io38";
  36. lantiq,pull = <0>;
  37. lantiq,output = <1>;
  38. };
  39. };
  40. pins_spi_default: pins_spi_default {
  41. spi_in {
  42. lantiq,groups = "spi_di";
  43. lantiq,function = "spi";
  44. };
  45. spi_out {
  46. lantiq,groups = "spi_do", "spi_clk",
  47. "spi_cs4";
  48. lantiq,function = "spi";
  49. lantiq,output = <1>;
  50. };
  51. };
  52. };
  53. ifxhcd@E101000 {
  54. status = "okay";
  55. gpios = <&gpio 33 0>;
  56. lantiq,portmask = <0x3>;
  57. };
  58. ifxhcd@E106000 {
  59. status = "okay";
  60. gpios = <&gpio 33 0>;
  61. };
  62. };
  63. gphy-xrx200 {
  64. compatible = "lantiq,phy-xrx200";
  65. firmware = "lantiq/vr9_phy22f_a2x.bin";
  66. phys = [ 00 01 ];
  67. };
  68. gpio_poweroff {
  69. compatible = "gpio-poweroff";
  70. gpios = <&gpio 6 1>;
  71. };
  72. gpio-keys-polled {
  73. compatible = "gpio-keys-polled";
  74. #address-cells = <1>;
  75. #size-cells = <0>;
  76. poll-interval = <100>;
  77. power {
  78. label = "power";
  79. gpios = <&gpio 5 1>;
  80. linux,code = <0x74>;
  81. };
  82. reset {
  83. label = "reset";
  84. gpios = <&gpio 7 1>;
  85. linux,code = <0x198>;
  86. };
  87. wps {
  88. label = "wps";
  89. gpios = <&gpio 31 1>;
  90. linux,code = <0x211>;
  91. };
  92. auto {
  93. label = "auto";
  94. gpios = <&gpio 48 0>;
  95. linux,code = <0x100>;
  96. linux,input-type = <5>; /* EV_SW */
  97. };
  98. router {
  99. label = "router";
  100. gpios = <&gpio 2 0>;
  101. linux,code = <0x100>;
  102. linux,input-type = <5>; /* EV_SW */
  103. };
  104. };
  105. gpio-leds {
  106. compatible = "gpio-leds";
  107. diag_r: diag_r {
  108. label = "wbmr300:red:diag";
  109. gpios = <&gpio 0 0>;
  110. default_state = "off";
  111. };
  112. wifi_g: wifi_g {
  113. label = "wbmr300:green:wifi";
  114. gpios = <&gpio 1 0>;
  115. };
  116. dsl: dsl {
  117. label = "dsl";
  118. gpios = <&gpio 4 0>;
  119. };
  120. router_y: router_y {
  121. label = "wbmr300:yellow:router";
  122. gpios = <&gpio 8 0>;
  123. };
  124. wifi_y: wifi_y {
  125. label = "wbmr300:yellow:wifi";
  126. gpios = <&gpio 9 0>;
  127. };
  128. lan1: lan1 {
  129. label = "wbmr300:green:lan1";
  130. gpios = <&gpio 11 0>;
  131. };
  132. wan: wan {
  133. label = "wbmr300:green:wan";
  134. gpios = <&gpio 12 0>;
  135. };
  136. lan3: lan3 {
  137. label = "wbmr300:green:lan3";
  138. gpios = <&gpio 15 0>;
  139. };
  140. lan2: lan2 {
  141. label = "wbmr300:green:lan2";
  142. gpios = <&gpio 33 0>;
  143. };
  144. internet_g: internet_g {
  145. label = "wbmr300:green:internet";
  146. gpios = <&gpio 34 0>;
  147. };
  148. internet_y: internet_y {
  149. label = "wbmr300:yellow:internet";
  150. gpios = <&gpio 35 0>;
  151. };
  152. router_g: router_g {
  153. label = "wbmr300:green:router";
  154. gpios = <&gpio 36 0>;
  155. };
  156. power_g: power_g {
  157. label = "wbmr300:green:power";
  158. gpios = <&gpio 49 0>;
  159. };
  160. };
  161. };
  162. &spi {
  163. pinctrl-names = "default";
  164. pinctrl-0 = <&pins_spi_default>;
  165. status = "ok";
  166. m25p80@4 {
  167. #address-cells = <1>;
  168. #size-cells = <1>;
  169. compatible = "jedec,spi-nor";
  170. reg = <4 0>;
  171. spi-max-frequency = <20000000>;
  172. partition@0 {
  173. reg = <0x0 0x10000>;
  174. label = "u-boot";
  175. read-only;
  176. };
  177. partition@10000 {
  178. reg = <0x10000 0x10000>;
  179. label = "gphyfirmware";
  180. read-only;
  181. };
  182. partition@20000 {
  183. reg = <0x20000 0x80000>;
  184. label = "dsl_fw";
  185. };
  186. partition@de0000 {
  187. reg = <0xa0000 0xf40000>;
  188. label = "firmware";
  189. };
  190. partition@fe0000 {
  191. reg = <0xfe0000 0x10000>;
  192. label = "sysconfig";
  193. read-only;
  194. };
  195. partition@ff0000 {
  196. reg = <0xff0000 0x2000>;
  197. label = "ubootconfig";
  198. };
  199. partition@ff3000 {
  200. reg = <0xff3000 0x2000>;
  201. label = "board_config";
  202. read-only;
  203. };
  204. };
  205. };
  206. &eth0 {
  207. lan: interface@0 {
  208. compatible = "lantiq,xrx200-pdi";
  209. #address-cells = <1>;
  210. #size-cells = <0>;
  211. reg = <0>;
  212. lantiq,switch;
  213. ethernet@1 {
  214. compatible = "lantiq,xrx200-pdi-port";
  215. reg = <4>;
  216. phy-mode = "mii";
  217. phy-handle = <&phy13>;
  218. };
  219. ethernet@2 {
  220. compatible = "lantiq,xrx200-pdi-port";
  221. reg = <5>;
  222. phy-mode = "mii";
  223. phy-handle = <&phy14>;
  224. };
  225. ethernet@3 {
  226. compatible = "lantiq,xrx200-pdi-port";
  227. reg = <2>;
  228. phy-mode = "mii";
  229. phy-handle = <&phy11>;
  230. };
  231. ethernet@4 {
  232. compatible = "lantiq,xrx200-pdi-port";
  233. reg = <3>;
  234. phy-mode = "mii";
  235. phy-handle = <&phy12>;
  236. };
  237. };
  238. mdio@0 {
  239. #address-cells = <1>;
  240. #size-cells = <0>;
  241. compatible = "lantiq,xrx200-mdio";
  242. phy11: ethernet-phy@11 {
  243. reg = <0x11>;
  244. compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
  245. };
  246. phy12: ethernet-phy@12 {
  247. reg = <0x12>;
  248. compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
  249. };
  250. phy13: ethernet-phy@13 {
  251. reg = <0x13>;
  252. compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
  253. };
  254. phy14: ethernet-phy@14 {
  255. reg = <0x14>;
  256. compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
  257. };
  258. };
  259. };