ARV7510PW22.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. /dts-v1/;
  2. #include "danube.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "arcadyan,arv7510pw22", "lantiq,xway", "lantiq,danube";
  6. model = "Astoria Networks ARV7510PW22";
  7. chosen {
  8. bootargs = "console=ttyLTQ0,115200";
  9. };
  10. aliases {
  11. led-boot = &power;
  12. led-failsafe = &power;
  13. led-running = &power;
  14. led-dsl = &internet;
  15. led-usb = &umts;
  16. led-wifi = &wlan;
  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. rfkill {
  27. label = "rfkill";
  28. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  29. linux,code = <KEY_RFKILL>;
  30. };
  31. restart {
  32. label = "restart";
  33. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  34. linux,code = <KEY_POWER>;
  35. };
  36. reset {
  37. label = "reset";
  38. gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
  39. linux,code = <KEY_RESTART>;
  40. };
  41. };
  42. gpio-leds {
  43. compatible = "gpio-leds";
  44. power: power {
  45. label = "power";
  46. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  47. default-state = "keep";
  48. };
  49. internet: internet {
  50. label = "internet";
  51. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  52. };
  53. wlan: wlan {
  54. label = "wlan";
  55. gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
  56. };
  57. umts: 3g {
  58. label = "3g";
  59. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  60. };
  61. message {
  62. label = "message";
  63. gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
  64. };
  65. };
  66. };
  67. &gpio {
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&state_default>;
  70. state_default: pinmux {
  71. exin {
  72. lantiq,groups = "exin1";
  73. lantiq,function = "exin";
  74. lantiq,pull = <2>;
  75. lantiq,output = <0>;
  76. };
  77. pci_in {
  78. lantiq,groups = "req1", "req2";
  79. lantiq,function = "pci";
  80. lantiq,open-drain = <1>;
  81. lantiq,pull = <2>;
  82. lantiq,output = <0>;
  83. };
  84. pci_out {
  85. lantiq,groups = "gnt1";
  86. lantiq,function = "pci";
  87. lantiq,output = <1>;
  88. };
  89. pci_rst {
  90. lantiq,pins = "io21";
  91. lantiq,pull = <2>;
  92. lantiq,output = <1>;
  93. };
  94. pins_out {
  95. lantiq,pins = "io2", "io4", "io8", "io9", "io10", "io15", "io20";
  96. lantiq,output = <1>;
  97. };
  98. pins_in {
  99. lantiq,pins = "io11", "io12", "io28";
  100. lantiq,open-drain = <1>;
  101. lantiq,pull = <2>;
  102. lantiq,output = <0>;
  103. };
  104. };
  105. usb_vbus: regulator-usb-vbus {
  106. compatible = "regulator-fixed";
  107. regulator-name = "USB_VBUS";
  108. regulator-min-microvolt = <5000000>;
  109. regulator-max-microvolt = <5000000>;
  110. gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
  111. enable-active-high;
  112. };
  113. };
  114. &gsw {
  115. /* Switch reset 19 */
  116. phy-mode = "mii";
  117. mtd-mac-address = <&boardconfig 0x16>;
  118. };
  119. &localbus {
  120. nor@0 {
  121. compatible = "lantiq,nor";
  122. bank-width = <2>;
  123. reg = <0 0x0 0x1000000>;
  124. #address-cells = <1>;
  125. #size-cells = <1>;
  126. partitions {
  127. compatible = "fixed-partitions";
  128. #address-cells = <1>;
  129. #size-cells = <1>;
  130. partition@0 {
  131. label = "uboot";
  132. reg = <0x00000 0x40000>;
  133. read-only;
  134. };
  135. partition@40000 {
  136. label = "uboot_env";
  137. reg = <0x40000 0x20000>;
  138. read-only;
  139. };
  140. partition@60000 {
  141. label = "firmware";
  142. reg = <0x60000 0xf80000>;
  143. };
  144. boardconfig: partition@fe0000 {
  145. label = "board_config";
  146. reg = <0xfe0000 0x20000>;
  147. read-only;
  148. };
  149. };
  150. };
  151. };
  152. &pci0 {
  153. status = "okay";
  154. lantiq,external-clock;
  155. interrupt-map = <
  156. 0x7000 0 0 1 &icu0 30
  157. 0x7800 0 0 1 &icu0 135
  158. 0x7800 0 0 2 &icu0 135
  159. 0x7800 0 0 3 &icu0 135
  160. >;
  161. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  162. req-mask = <0x3>;
  163. wifi@1814,3592 {
  164. compatible = "pci1814,3592";
  165. reg = <0x7000 0 0 0 0>;
  166. ralink,mtd-eeprom = <&boardconfig 0x410>;
  167. ralink,mtd-eeprom-swap;
  168. };
  169. };
  170. &usb_phy {
  171. status = "okay";
  172. };
  173. &usb {
  174. status = "okay";
  175. vbus-supply = <&usb_vbus>;
  176. };
  177. &vmmc {
  178. status = "okay";
  179. gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
  180. };