P2601HNFX.dts 3.0 KB

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