FRITZ3370.dts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. /dts-v1/;
  2. /include/ "vr9.dtsi"
  3. / {
  4. model = "FRITZ3370 - Fritz!Box WLAN 3370";
  5. chosen {
  6. bootargs = "console=ttyLTQ0,115200 ubi.mtd=1,512 root=/dev/mtdblock9";
  7. };
  8. memory@0 {
  9. reg = <0x0 0x8000000>;
  10. };
  11. fpi@10000000 {
  12. localbus@0 {
  13. nand-parts@0 {
  14. compatible = "gen_nand", "lantiq,nand-xway";
  15. bank-width = <2>;
  16. reg = <1 0x0 0x2000000>;
  17. #address-cells = <1>;
  18. #size-cells = <1>;
  19. partition@0 {
  20. label = "kernel";
  21. reg = <0x0 0x400000>;
  22. };
  23. partition@400000 {
  24. label = "rootfs_ubi";
  25. reg = <0x400000 0x3000000>;
  26. };
  27. partition@3400000 {
  28. label = "vr9_firmware";
  29. reg = <0x3400000 0x400000>;
  30. };
  31. partition@3800000 {
  32. label = "reserved";
  33. reg = <0x3800000 0x3000000>;
  34. };
  35. partition@6800000 {
  36. label = "config";
  37. reg = <0x6800000 0x200000>;
  38. };
  39. partition@6a00000 {
  40. label = "nand-filesystem";
  41. reg = <0x6a00000 0x1600000>;
  42. };
  43. };
  44. };
  45. gpio: pinmux@E100B10 {
  46. pinctrl-names = "default";
  47. pinctrl-0 = <&state_default>;
  48. state_default: pinmux {
  49. spi {
  50. lantiq,groups = "spi", "spi_cs4";
  51. lantiq,function = "gpio";
  52. };
  53. mdio {
  54. lantiq,groups = "mdio";
  55. lantiq,function = "mdio";
  56. };
  57. nand {
  58. lantiq,groups = "nand cle", "nand ale",
  59. "nand rd", "nand cs1", "nand rdy";
  60. lantiq,function = "ebu";
  61. lantiq,pull = <1>;
  62. };
  63. phy-rst {
  64. lantiq,pins = "io37", "io44";
  65. lantiq,pull = <0>;
  66. lantiq,open-drain = <0>;
  67. lantiq,output = <1>;
  68. };
  69. pcie-rst {
  70. lantiq,pins = "io38";
  71. lantiq,pull = <0>;
  72. lantiq,output = <1>;
  73. };
  74. };
  75. };
  76. eth@E108000 {
  77. #address-cells = <1>;
  78. #size-cells = <0>;
  79. compatible = "lantiq,xrx200-net";
  80. reg = < 0xE108000 0x3000 /* switch */
  81. 0xE10B100 0x70 /* mdio */
  82. 0xE10B1D8 0x30 /* mii */
  83. 0xE10B308 0x30 /* pmac */
  84. >;
  85. interrupt-parent = <&icu0>;
  86. interrupts = <73 72>;
  87. lan: interface@0 {
  88. compatible = "lantiq,xrx200-pdi";
  89. #address-cells = <1>;
  90. #size-cells = <0>;
  91. reg = <0>;
  92. mac-address = [ 00 11 22 33 44 55 ];
  93. lantiq,switch;
  94. ethernet@0 {
  95. compatible = "lantiq,xrx200-pdi-port";
  96. reg = <0>;
  97. phy-mode = "rgmii";
  98. phy-handle = <&phy0>;
  99. gpios = <&gpio 37 0>;
  100. };
  101. ethernet@1 {
  102. compatible = "lantiq,xrx200-pdi-port";
  103. reg = <1>;
  104. phy-mode = "rgmii";
  105. phy-handle = <&phy1>;
  106. gpios = <&gpio 44 0>;
  107. };
  108. ethernet@2 {
  109. compatible = "lantiq,xrx200-pdi-port";
  110. reg = <2>;
  111. phy-mode = "gmii";
  112. phy-handle = <&phy11>;
  113. };
  114. ethernet@3 {
  115. compatible = "lantiq,xrx200-pdi-port";
  116. reg = <4>;
  117. phy-mode = "gmii";
  118. phy-handle = <&phy13>;
  119. };
  120. };
  121. mdio@0 {
  122. #address-cells = <1>;
  123. #size-cells = <0>;
  124. compatible = "lantiq,xrx200-mdio";
  125. phy0: ethernet-phy@0 {
  126. reg = <0x0>;
  127. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  128. };
  129. phy1: ethernet-phy@1 {
  130. reg = <0x1>;
  131. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  132. };
  133. phy11: ethernet-phy@11 {
  134. reg = <0x11>;
  135. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  136. };
  137. phy13: ethernet-phy@13 {
  138. reg = <0x13>;
  139. compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
  140. };
  141. };
  142. };
  143. ifxhcd@E101000 {
  144. status = "okay";
  145. gpios = <&gpio 5 0
  146. &gpio 14 0>;
  147. lantiq,portmask = <0x3>;
  148. };
  149. };
  150. spi {
  151. #address-cells = <1>;
  152. #size-cells = <1>;
  153. compatible = "spi-gpio";
  154. gpio-miso = <&gpio 16 0>;
  155. gpio-mosi = <&gpio 17 0>;
  156. gpio-sck = <&gpio 18 0>;
  157. num-chipselects = <1>;
  158. cs-gpios = <&gpio 10 1>;
  159. m25p80@0 {
  160. #address-cells = <1>;
  161. #size-cells = <1>;
  162. compatible = "mx25l2005a";
  163. reg = <0 0>;
  164. linux,modalias = "m25p80", "mx25l2005a";
  165. spi-max-frequency = <1000000>;
  166. ath9k_cal: partition@0 {
  167. reg = <0x0 0x20000>;
  168. label = "urlader";
  169. read-only;
  170. };
  171. partition@20000 {
  172. reg = <0x20000 0x10000>;
  173. label = "tffs (1)";
  174. read-only;
  175. };
  176. partition@30000 {
  177. reg = <0x30000 0x10000>;
  178. label = "tffs (2)";
  179. read-only;
  180. };
  181. };
  182. };
  183. ath9k_eep {
  184. compatible = "ath9k,eeprom";
  185. ath,eep-flash = <&ath9k_cal 0x985>;
  186. ath,eep-endian;
  187. ath,eep-swap;
  188. };
  189. gphy-xrx200 {
  190. compatible = "lantiq,phy-xrx200";
  191. firmware = "lantiq/vr9_phy11g_a1x.bin";
  192. phys = [ 00 01 ];
  193. };
  194. gpio-keys-polled {
  195. compatible = "gpio-keys-polled";
  196. #address-cells = <1>;
  197. #size-cells = <0>;
  198. poll-interval = <100>;
  199. power {
  200. label = "power";
  201. gpios = <&gpio 1 0>;
  202. linux,code = <0x100>;
  203. };
  204. /* wifi {
  205. label = "wifi";
  206. gpios = <&gpio 29 0>;
  207. linux,code = <0x101>;
  208. };*/
  209. };
  210. gpio-leds {
  211. compatible = "gpio-leds";
  212. power {
  213. label = "power";
  214. gpios = <&gpio 32 1>;
  215. };
  216. power2 {
  217. label = "power2";
  218. gpios = <&gpio 33 1>;
  219. };
  220. info_red {
  221. label = "info_red";
  222. gpios = <&gpio 34 1>;
  223. };
  224. wifi {
  225. label = "wifi";
  226. gpios = <&gpio 35 1>;
  227. };
  228. dsl {
  229. label = "dsl";
  230. gpios = <&gpio 36 1>;
  231. };
  232. lan {
  233. label = "lan";
  234. gpios = <&gpio 38 1>;
  235. };
  236. info_green {
  237. label = "info_green";
  238. gpios = <&gpio 47 1>;
  239. };
  240. };
  241. };