P2601HNFX.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. /dts-v1/;
  2. #include "ar9.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "zyxel,p-2601hn", "lantiq,xway", "lantiq,ar9";
  6. model = "ZyXEL P-2601HN-Fx";
  7. chosen {
  8. bootargs = "console=ttyLTQ0,115200";
  9. };
  10. aliases {
  11. led-boot = &power_green;
  12. led-failsafe = &power_red;
  13. led-running = &power_green;
  14. led-upgrade = &power_green;
  15. led-dsl = &dsl;
  16. led-internet = &online;
  17. led-wifi = &wifi;
  18. };
  19. memory@0 {
  20. reg = <0x0 0x4000000>;
  21. };
  22. gpio-keys-polled {
  23. compatible = "gpio-keys-polled";
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. poll-interval = <100>;
  27. reset {
  28. label = "reset";
  29. gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_RESTART>;
  31. };
  32. rfkill {
  33. label = "rfkill";
  34. gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_RFKILL>;
  36. };
  37. };
  38. gpio-leds {
  39. compatible = "gpio-leds";
  40. power_green: power {
  41. label = "p2601hnfx:green:power";
  42. gpios = <&stp 11 GPIO_ACTIVE_LOW>;
  43. default-state = "keep";
  44. };
  45. power_red: power2 {
  46. label = "p2601hnfx:red:power";
  47. gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
  48. };
  49. online: online {
  50. label = "p2601hnfx:green:internet";
  51. gpios = <&stp 13 GPIO_ACTIVE_LOW>;
  52. };
  53. online2 {
  54. label = "p2601hnfx:red:internet";
  55. gpios = <&stp 12 GPIO_ACTIVE_LOW>;
  56. };
  57. dsl: dsl {
  58. label = "p2601hnfx:green:dsl";
  59. gpios = <&stp 14 GPIO_ACTIVE_LOW>;
  60. };
  61. phone {
  62. label = "p2601hnfx:green:phone";
  63. gpios = <&stp 9 GPIO_ACTIVE_LOW>;
  64. };
  65. phone2 {
  66. label = "p2601hnfx:orange:phone";
  67. gpios = <&stp 8 GPIO_ACTIVE_LOW>;
  68. };
  69. wifi: wifi {
  70. label = "p2601hnfx:green:wireless";
  71. gpios = <&stp 15 GPIO_ACTIVE_LOW>;
  72. };
  73. wifi2 {
  74. label = "p2601hnfx:orange:wireless";
  75. gpios = <&stp 10 GPIO_ACTIVE_LOW>;
  76. };
  77. };
  78. gpio_export {
  79. compatible = "gpio-export";
  80. #size-cells = <0>;
  81. switch {
  82. gpio-export,name = "switch";
  83. gpio-export,output = <1>;
  84. gpios = <&gpio 50 GPIO_ACTIVE_HIGH>;
  85. };
  86. };
  87. };
  88. &gpio {
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&state_default>;
  91. state_default: pinmux {
  92. stp {
  93. lantiq,groups = "stp";
  94. lantiq,function = "stp";
  95. lantiq,pull = <2>;
  96. lantiq,open-drain = <0>;
  97. lantiq,output = <1>;
  98. };
  99. exin {
  100. lantiq,groups = "exin1";
  101. lantiq,function = "exin";
  102. };
  103. pci {
  104. lantiq,groups = "gnt1";
  105. lantiq,function = "pci";
  106. };
  107. conf_out {
  108. lantiq,pins = "io4", "io5", "io6";
  109. lantiq,open-drain;
  110. lantiq,pull = <0>;
  111. };
  112. mdio {
  113. lantiq,groups = "mdio";
  114. lantiq,function = "mdio";
  115. };
  116. };
  117. usb_vbus: regulator-usb-vbus {
  118. compatible = "regulator-fixed";
  119. regulator-name = "USB_VBUS";
  120. regulator-min-microvolt = <5000000>;
  121. regulator-max-microvolt = <5000000>;
  122. gpio = <&gpio 9 GPIO_ACTIVE_HIGH>;
  123. enable-active-high;
  124. };
  125. };
  126. &gsw {
  127. phy-mode = "rmii";
  128. };
  129. &localbus {
  130. nor@0 {
  131. compatible = "lantiq,nor";
  132. bank-width = <2>;
  133. reg = <0 0x0 0x2000000>;
  134. #address-cells = <1>;
  135. #size-cells = <1>;
  136. partitions {
  137. compatible = "fixed-partitions";
  138. #address-cells = <1>;
  139. #size-cells = <1>;
  140. partition@0 {
  141. label = "uboot";
  142. reg = <0x00000 0x40000>;
  143. read-only;
  144. };
  145. partition@40000 {
  146. label = "uboot_env";
  147. reg = <0x40000 0x20000>;
  148. read-only;
  149. };
  150. partition@60000 {
  151. label = "firmware";
  152. reg = <0x60000 0xfa0000>;
  153. };
  154. };
  155. };
  156. };
  157. &stp {
  158. lantiq,shadow = <0xfff>;
  159. lantiq,groups = <0x3>;
  160. };
  161. &usb_phy0 {
  162. status = "okay";
  163. };
  164. &usb0 {
  165. status = "okay";
  166. vbus-supply = <&usb_vbus>;
  167. };