ARV7525PW.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /dts-v1/;
  2. #include "danube.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "ARV7525PW - Speedport W303V Typ A";
  6. chosen {
  7. bootargs = "console=ttyLTQ0,115200";
  8. };
  9. aliases {
  10. led-boot = &power_green;
  11. led-failsafe = &power_red;
  12. led-running = &power_green;
  13. led-dsl = &power_green;
  14. led-internet = &online;
  15. led-wifi = &wifi;
  16. };
  17. memory@0 {
  18. reg = <0x0 0x2000000>;
  19. };
  20. sram@1F000000 {
  21. vmmc@107000 {
  22. status = "okay";
  23. gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
  24. };
  25. };
  26. fpi@10000000 {
  27. localbus@0 {
  28. nor-boot@0 {
  29. compatible = "lantiq,nor";
  30. bank-width = <2>;
  31. reg = <0 0x0 0x2000000>;
  32. #address-cells = <1>;
  33. #size-cells = <1>;
  34. partitions {
  35. compatible = "fixed-partitions";
  36. #address-cells = <1>;
  37. #size-cells = <1>;
  38. partition@0 {
  39. label = "uboot";
  40. reg = <0x00000 0x10000>;
  41. read-only;
  42. };
  43. partition@10000 {
  44. label = "uboot_env";
  45. reg = <0x10000 0x10000>;
  46. read-only;
  47. };
  48. partition@20000 {
  49. label = "firmware";
  50. reg = <0x20000 0x3d0000>;
  51. };
  52. boardconfig: partition@400000 {
  53. label = "board_config";
  54. reg = <0x3f0000 0x10000>;
  55. read-only;
  56. };
  57. };
  58. };
  59. };
  60. gpio: pinmux@E100B10 {
  61. pinctrl-names = "default";
  62. pinctrl-0 = <&state_default>;
  63. state_default: pinmux {
  64. exin {
  65. lantiq,groups = "exin1";
  66. lantiq,function = "exin";
  67. };
  68. pci {
  69. lantiq,groups = "gnt1", "req1";
  70. lantiq,function = "pci";
  71. };
  72. };
  73. };
  74. etop@E180000 {
  75. phy-mode = "mii";
  76. mtd-mac-address = <&boardconfig 0x16>;
  77. };
  78. };
  79. gpio-keys-polled {
  80. compatible = "gpio-keys-polled";
  81. #address-cells = <1>;
  82. #size-cells = <0>;
  83. poll-interval = <100>;
  84. wps {
  85. label = "wps";
  86. gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
  87. linux,code = <KEY_WPS_BUTTON>;
  88. };
  89. reset {
  90. label = "reset";
  91. gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
  92. linux,code = <KEY_RESTART>;
  93. };
  94. };
  95. gpio-leds {
  96. compatible = "gpio-leds";
  97. power_green: power {
  98. label = "arv7525pw:green:power";
  99. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  100. default-state = "keep";
  101. };
  102. power_red: power1 {
  103. label = "arv7525pw:red:power";
  104. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  105. };
  106. online: online {
  107. label = "arv7525pw:green:online";
  108. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  109. };
  110. voice {
  111. label = "arv7525pw:green:telefonie";
  112. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  113. };
  114. voice2 {
  115. label = "arv7525pw:red:telefonie";
  116. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  117. };
  118. wifi: wifi {
  119. label = "arv7525pw:green:wlan";
  120. gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  121. };
  122. };
  123. };
  124. &pci0 {
  125. status = "okay";
  126. interrupt-map = <0x7000 0 0 1 &icu0 135 1>;
  127. wifi@0,0 {
  128. compatible = "pci0,0";
  129. reg = <0x7000 0 0 0 0>;
  130. ralink,mtd-eeprom = <&boardconfig 0x410>;
  131. };
  132. };