ARV8539PW22.dts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. /dts-v1/;
  2. #include "danube.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "arcadyan,arv8539pw22", "lantiq,xway", "lantiq,danube";
  6. model = "Speedport W 504V Typ A";
  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_green;
  16. led-internet = &online_green;
  17. led-wifi = &wireless_green;
  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. wlan {
  28. label = "wlan";
  29. gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_WPS_BUTTON>;
  31. };
  32. reset {
  33. label = "reset";
  34. gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_RESTART>;
  36. };
  37. /* key DECT is missing */
  38. };
  39. gpio-leds {
  40. compatible = "gpio-leds";
  41. power_green: power-green {
  42. label = "arv8539pw22:green:power";
  43. gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
  44. default-state = "keep";
  45. };
  46. power_red: power-red {
  47. label = "arv8539pw22:red:power";
  48. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  49. };
  50. dsl_green: dsl-green {
  51. label = "arv8539pw22:green:dsl";
  52. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  53. };
  54. online_green: online-green {
  55. label = "arv8539pw22:green:online";
  56. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  57. };
  58. wireless_green: wireless-green {
  59. label = "arv8539pw22:green:wlan";
  60. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  61. };
  62. /*
  63. telefonie green is missing
  64. */
  65. };
  66. usb_vbus: regulator-usb-vbus {
  67. compatible = "regulator-fixed";
  68. regulator-name = "USB_VBUS";
  69. regulator-min-microvolt = <5000000>;
  70. regulator-max-microvolt = <5000000>;
  71. gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
  72. enable-active-high;
  73. };
  74. };
  75. &gpio {
  76. pinctrl-names = "default";
  77. pinctrl-0 = <&state_default>;
  78. state_default: pinmux {
  79. pci_in {
  80. lantiq,groups = "req1";
  81. lantiq,function = "pci";
  82. lantiq,open-drain = <1>;
  83. lantiq,pull = <2>;
  84. lantiq,output = <0>;
  85. };
  86. pci_out {
  87. lantiq,groups = "gnt1";
  88. lantiq,function = "pci";
  89. lantiq,output = <1>;
  90. };
  91. pci_rst {
  92. lantiq,pins = "io21";
  93. lantiq,pull = <2>;
  94. lantiq,output = <1>;
  95. };
  96. relay {
  97. lantiq,pins = "io31";
  98. lantiq,output = <1>;
  99. };
  100. };
  101. };
  102. &gsw {
  103. phy-mode = "mii";
  104. mtd-mac-address = <&art 0x16>;
  105. };
  106. &localbus {
  107. nor@0 {
  108. compatible = "lantiq,nor";
  109. bank-width = <2>;
  110. reg = <0 0x0 0x800000>;
  111. #address-cells = <1>;
  112. #size-cells = <1>;
  113. partitions {
  114. compatible = "fixed-partitions";
  115. #address-cells = <1>;
  116. #size-cells = <1>;
  117. partition@0 {
  118. label = "uboot";
  119. reg = <0x00000 0x30000>; /* 192 KiB */
  120. read-only;
  121. };
  122. partition@30000 {
  123. label = "uboot";
  124. reg = <0x30000 0x10000>; /* 64 KiB */
  125. read-only;
  126. };
  127. partition@40000 {
  128. label = "firmware";
  129. reg = <0x40000 0x7B0000>; /* 7872 KiB */
  130. };
  131. art: partition@7F0000 {
  132. label = "art";
  133. reg = <0x7F0000 0x10000>; /* 64 KiB*/
  134. read-only;
  135. };
  136. };
  137. };
  138. };
  139. &pci0 {
  140. status = "okay";
  141. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  142. wifi@168c,0029 {
  143. compatible = "pci168c,0029";
  144. reg = <0x7000 0 0 0 0>;
  145. qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
  146. mtd-mac-address = <&art 0x16>;
  147. mtd-mac-address-increment = <1>;
  148. };
  149. };
  150. &usb_phy {
  151. status = "okay";
  152. };
  153. &usb {
  154. status = "okay";
  155. vbus-supply = <&usb_vbus>;
  156. };
  157. &vmmc {
  158. status = "okay";
  159. gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
  160. };