FRITZ3370.dts 5.1 KB

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