ARV4525PW.dts 2.8 KB

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