ARV4525PW.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /dts-v1/;
  2. #include "danube.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "arcadyan,arv4525pw", "lantiq,xway", "lantiq,danube";
  6. model = "Speedport W501V Typ A";
  7. chosen {
  8. bootargs = "console=ttyLTQ0,115200";
  9. };
  10. aliases {
  11. /* we dont have a power led, lets use the online led */
  12. led-boot = &online;
  13. led-failsafe = &online;
  14. led-dsl = &dsl;
  15. led-internet = &online;
  16. led-wifi = &wifi;
  17. };
  18. memory@0 {
  19. reg = <0x0 0x2000000>;
  20. };
  21. ath5k_eep {
  22. compatible = "ath5k,eeprom";
  23. ath,eep-flash = <&boardconfig 0x400>;
  24. ath,mac-offset = <0x0>;
  25. ath,eep-swap;
  26. };
  27. gpio-keys-polled {
  28. compatible = "gpio-keys-polled";
  29. #address-cells = <1>;
  30. #size-cells = <0>;
  31. poll-interval = <100>;
  32. wps {
  33. label = "wps";
  34. gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_WPS_BUTTON>;
  36. };
  37. reset {
  38. label = "reset";
  39. gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
  40. linux,code = <KEY_RESTART>;
  41. };
  42. };
  43. gpio-leds {
  44. compatible = "gpio-leds";
  45. fxo {
  46. label = "arv4525pw:green:festnetz";
  47. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  48. };
  49. fxs {
  50. label = "arv4525pw:green:internet";
  51. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  52. };
  53. dsl: dsl {
  54. label = "arv4525pw:green:t-dsl";
  55. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  56. };
  57. wifi: wifi {
  58. label = "arv4525pw:green:wlan";
  59. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  60. };
  61. online: online {
  62. label = "arv4525pw:green:online";
  63. gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  64. };
  65. };
  66. };
  67. &gpio {
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&state_default>;
  70. state_default: pinmux {
  71. pci_in {
  72. lantiq,groups = "req1";
  73. lantiq,function = "pci";
  74. lantiq,open-drain = <1>;
  75. lantiq,pull = <2>;
  76. lantiq,output = <0>;
  77. };
  78. pci_out {
  79. lantiq,groups = "gnt1";
  80. lantiq,function = "pci";
  81. lantiq,output = <1>;
  82. };
  83. pci_rst {
  84. lantiq,pins = "io21";
  85. lantiq,pull = <2>;
  86. lantiq,output = <1>;
  87. };
  88. relay {
  89. lantiq,pins = "io31";
  90. lantiq,output = <1>;
  91. };
  92. };
  93. };
  94. /* #define ARV4525PW_PHYRESET 13 */
  95. &gsw {
  96. phy-mode = "mii";
  97. mtd-mac-address = <&boardconfig 0x16>;
  98. };
  99. &localbus {
  100. nor@0 {
  101. compatible = "lantiq,nor";
  102. bank-width = <2>;
  103. reg = <0 0x0 0x2000000>;
  104. #address-cells = <1>;
  105. #size-cells = <1>;
  106. partitions {
  107. compatible = "fixed-partitions";
  108. #address-cells = <1>;
  109. #size-cells = <1>;
  110. partition@0 {
  111. label = "uboot";
  112. reg = <0x00000 0x10000>;
  113. read-only;
  114. };
  115. partition@10000 {
  116. label = "uboot_env";
  117. reg = <0x10000 0x10000>;
  118. read-only;
  119. };
  120. partition@20000 {
  121. label = "firmware";
  122. reg = <0x20000 0x3d0000>;
  123. };
  124. boardconfig: partition@400000 {
  125. label = "boardconfig";
  126. reg = <0x3f0000 0x10000>;
  127. read-only;
  128. };
  129. };
  130. };
  131. };
  132. &pci0 {
  133. status = "okay";
  134. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  135. };
  136. /* #define ARV4525PW_RELAY 31 */
  137. &vmmc {
  138. status = "okay";
  139. gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
  140. };