P2601HNFX.dts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. /dts-v1/;
  2. /include/ "ar9.dtsi"
  3. / {
  4. model = "P2601HNFX - ZyXEL P-2601HN-Fx";
  5. chosen {
  6. bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
  7. };
  8. memory@0 {
  9. reg = <0x0 0x4000000>;
  10. };
  11. fpi@10000000 {
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. localbus@0 {
  15. #address-cells = <2>;
  16. #size-cells = <1>;
  17. ranges = <0 0 0x0 0x3ffffff
  18. 1 0 0x4000000 0x4000010>;
  19. compatible = "lantiq,localbus", "simple-bus";
  20. nor-boot@0 {
  21. compatible = "lantiq,nor";
  22. bank-width = <2>;
  23. reg = <0 0x0 0x2000000>;
  24. #address-cells = <1>;
  25. #size-cells = <1>;
  26. partition@0 {
  27. label = "uboot";
  28. reg = <0x00000 0x40000>;
  29. read-only;
  30. };
  31. partition@40000 {
  32. label = "uboot_env";
  33. reg = <0x40000 0x20000>;
  34. read-only;
  35. };
  36. partition@60000 {
  37. label = "firmware";
  38. reg = <0x60000 0xfa0000>;
  39. };
  40. };
  41. };
  42. gpio: pinmux@E100B10 {
  43. compatible = "lantiq,pinctrl-xr9";
  44. pinctrl-names = "default";
  45. pinctrl-0 = <&state_default>;
  46. #gpio-cells = <2>;
  47. gpio-controller;
  48. reg = <0xE100B10 0xA0>;
  49. state_default: pinmux {
  50. stp {
  51. lantiq,groups = "stp";
  52. lantiq,function = "stp";
  53. lantiq,pull = <2>;
  54. lantiq,open-drain = <0>;
  55. lantiq,output = <1>;
  56. };
  57. exin {
  58. lantiq,groups = "exin1";
  59. lantiq,function = "exin";
  60. };
  61. pci {
  62. lantiq,groups = "gnt1";
  63. lantiq,function = "pci";
  64. };
  65. conf_out {
  66. lantiq,pins = "io4", "io5", "io6";
  67. lantiq,open-drain;
  68. lantiq,pull = <0>;
  69. };
  70. mdio {
  71. lantiq,groups = "mdio";
  72. lantiq,function = "mdio";
  73. };
  74. };
  75. };
  76. etop@E180000 {
  77. phy-mode = "rmii";
  78. };
  79. ifxhcd@E101000 {
  80. status = "okay";
  81. gpios = <&gpio 9 0>;
  82. };
  83. stp: stp@E100BB0 {
  84. #gpio-cells = <2>;
  85. compatible = "lantiq,gpio-stp-xway";
  86. gpio-controller;
  87. reg = <0xE100BB0 0x40>;
  88. lantiq,shadow = <0xfff>;
  89. lantiq,groups = <0x3>;
  90. };
  91. pci@E105400 {
  92. lantiq,bus-clock = <33333333>;
  93. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  94. interrupt-map = <0x7000 0 0 1 &icu0 29 1>;
  95. gpios-reset = <&gpio 21 0>;
  96. req-mask = <0x1>;
  97. };
  98. };
  99. gpio-keys-polled {
  100. compatible = "gpio-keys-polled";
  101. #address-cells = <1>;
  102. #size-cells = <0>;
  103. poll-interval = <100>;
  104. reset {
  105. label = "reset";
  106. gpios = <&gpio 53 1>;
  107. linux,code = <0x198>;
  108. };
  109. rfkill {
  110. label = "rfkill";
  111. gpios = <&gpio 54 1>;
  112. linux,code = <0xf7>;
  113. };
  114. };
  115. gpio-leds {
  116. compatible = "gpio-leds";
  117. power {
  118. label = "power";
  119. gpios = <&stp 11 1>;
  120. default-state = "on";
  121. };
  122. power2 {
  123. label = "power2";
  124. gpios = <&gpio 29 1>;
  125. };
  126. online {
  127. label = "online";
  128. gpios = <&stp 13 1>;
  129. };
  130. online2 {
  131. label = "online2";
  132. gpios = <&stp 12 1>;
  133. };
  134. dsl {
  135. label = "dsl";
  136. gpios = <&stp 14 1>;
  137. };
  138. phone {
  139. label = "phone";
  140. gpios = <&stp 9 1>;
  141. };
  142. phone2 {
  143. label = "phone2";
  144. gpios = <&stp 8 1>;
  145. };
  146. wifi {
  147. label = "wifi";
  148. gpios = <&stp 15 1>;
  149. };
  150. wifi2 {
  151. label = "wifi2";
  152. gpios = <&stp 10 1>;
  153. };
  154. };
  155. gpio_export {
  156. compatible = "gpio-export";
  157. #size-cells = <0>;
  158. switch {
  159. gpio-export,name = "switch";
  160. gpio-export,output = <1>;
  161. gpios = <&gpio 50 0>;
  162. };
  163. usb {
  164. gpio-export,name = "wifi";
  165. gpio-export,output = <1>;
  166. gpios = <&gpio 9 0>;
  167. };
  168. };
  169. };