FRITZ7320.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /dts-v1/;
  2. #include "ar9.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "FRITZ7320 - 1&1 HomeServer";
  6. chosen {
  7. bootargs = "console=ttyLTQ0,115200";
  8. };
  9. aliases {
  10. led-boot = &power;
  11. led-failsafe = &power;
  12. led-running = &power;
  13. led-internet = &info_green;
  14. led-dsl = &power;
  15. led-wifi = &wlan;
  16. };
  17. memory@0 {
  18. reg = <0x0 0x4000000>;
  19. };
  20. fpi@10000000 {
  21. localbus@0 {
  22. nor-boot@0 {
  23. compatible = "lantiq,nor";
  24. bank-width = <2>;
  25. reg = <0 0x0 0x1000000>;
  26. #address-cells = <1>;
  27. #size-cells = <1>;
  28. partitions {
  29. compatible = "fixed-partitions";
  30. #address-cells = <1>;
  31. #size-cells = <1>;
  32. ath9k_cal: partition@0 {
  33. label = "urlader";
  34. reg = <0x00000 0x20000>;
  35. read-only;
  36. };
  37. partition@20000 {
  38. label = "firmware";
  39. reg = <0x20000 0xf60000>;
  40. };
  41. partition@f80000 {
  42. label = "tffs (1)";
  43. reg = <0xf80000 0x40000>;
  44. read-only;
  45. };
  46. partition@fc0000 {
  47. label = "tffs (2)";
  48. reg = <0xfc0000 0x40000>;
  49. read-only;
  50. };
  51. };
  52. };
  53. };
  54. gpio: pinmux@E100B10 {
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&state_default>;
  57. state_default: pinmux {
  58. pci {
  59. lantiq,groups = "gnt1", "req1", "req2", "req3", "req4", "gnt2", "gnt3", "gnt4";
  60. lantiq,function = "pci";
  61. };
  62. pci-in {
  63. lantiq,groups = "req1", "req2", "req3", "req4";
  64. lantiq,output = <0>;
  65. lantiq,open-drain = <1>;
  66. lantiq,pull = <2>;
  67. };
  68. pci-out {
  69. lantiq,groups = "gnt1", "gnt2", "gnt3", "gnt4";
  70. lantiq,output = <1>;
  71. lantiq,pull = <0>;
  72. };
  73. };
  74. };
  75. etop@E180000 {
  76. phy-mode = "mii";
  77. mtd-mac-address = <&ath9k_cal 0xa91>;
  78. mtd-mac-address-increment = <(-2)>;
  79. };
  80. ifxhcd@E101000 {
  81. status = "okay";
  82. };
  83. };
  84. gpio-keys-polled {
  85. compatible = "gpio-keys-polled";
  86. #address-cells = <1>;
  87. #size-cells = <0>;
  88. poll-interval = <100>;
  89. rfkill {
  90. label = "rfkill";
  91. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  92. linux,code = <KEY_RFKILL>;
  93. };
  94. dect {
  95. label = "dect";
  96. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  97. linux,code = <KEY_PHONE>;
  98. };
  99. };
  100. gpio-leds {
  101. compatible = "gpio-leds";
  102. power: power {
  103. label = "fritz7320:green:power";
  104. gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
  105. default-state = "keep";
  106. };
  107. voice {
  108. label = "fritz7320:green:fon";
  109. gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
  110. };
  111. dect {
  112. label = "fritz7320:green:dect";
  113. gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
  114. };
  115. wlan: wlan {
  116. label = "fritz7320:green:wlan";
  117. gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
  118. };
  119. info_green: info_green {
  120. label = "fritz7320:green:info";
  121. gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
  122. };
  123. info_red {
  124. label = "fritz7320:red:info";
  125. gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
  126. };
  127. };
  128. };
  129. &pci0 {
  130. status = "okay";
  131. req-mask = <0xf>;
  132. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  133. wifi@0,0 {
  134. compatible = "pci0,0";
  135. reg = <0x7000 0 0 0 0>;
  136. qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
  137. };
  138. };