1
0

ar7161_aruba_ap-105.dts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "ar7100.dtsi"
  6. / {
  7. compatible = "aruba,ap-105", "qca,ar7161";
  8. model = "Aruba AP-105";
  9. chosen {
  10. bootargs = "console=ttyS0,9600";
  11. };
  12. aliases {
  13. led-boot = &power_green;
  14. led-failsafe = &power_red;
  15. led-running = &power_green;
  16. led-upgrade = &power_green;
  17. };
  18. extosc: ref {
  19. compatible = "fixed-clock";
  20. #clock-cells = <0>;
  21. clock-output-names = "ref";
  22. clock-frequency = <40000000>;
  23. };
  24. leds {
  25. compatible = "gpio-leds";
  26. power_green: power_green {
  27. label = "ap-105:green:power";
  28. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  29. };
  30. power_red: power_red {
  31. label = "ap-105:red:power";
  32. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  33. panic-indicator;
  34. };
  35. wifi_2g_red: wifi_2g_red {
  36. label = "ap-105:red:wlan2g";
  37. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  38. };
  39. wifi_5g_red: wifi_5g_red {
  40. label = "ap-105:red:wlan5g";
  41. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  42. };
  43. };
  44. ath9k-leds {
  45. compatible = "gpio-leds";
  46. wifi_2g_green {
  47. label = "ap-105:green:wlan2g";
  48. gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
  49. linux,default-trigger = "phy0tpt";
  50. };
  51. wifi_5g_green {
  52. label = "ap-105:green:wlan5g";
  53. gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
  54. linux,default-trigger = "phy1tpt";
  55. };
  56. };
  57. keys {
  58. compatible = "gpio-keys";
  59. reset {
  60. label = "reset";
  61. linux,code = <KEY_RESTART>;
  62. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  63. };
  64. };
  65. i2c {
  66. compatible = "i2c-gpio";
  67. sda-gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  68. scl-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  69. /* can be removed on 4.19 */
  70. gpios = <&gpio 5 GPIO_ACTIVE_LOW>,
  71. <&gpio 4 GPIO_ACTIVE_LOW>;
  72. #address-cells = <1>;
  73. #size-cells = <0>;
  74. tpm@29 {
  75. compatible = "atmel,at97sc3203s";
  76. reg = <0x29>;
  77. /* triggering it, will also kill system */
  78. reset-gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  79. };
  80. };
  81. };
  82. &pcie0 {
  83. status = "okay";
  84. ath9k0: wifi@0,11 { /* 2.4 GHz */
  85. compatible = "pci168c,0029";
  86. mtd-mac-address = <&hwinfo 0x1c>;
  87. mtd-mac-address-increment = <1>;
  88. reg = <0x8800 0 0 0 0>;
  89. #gpio-cells = <2>;
  90. gpio-controller;
  91. };
  92. ath9k1: wifi@0,12 { /* 5 GHz */
  93. compatible = "pci168c,0029";
  94. mtd-mac-address = <&hwinfo 0x1c>;
  95. mtd-mac-address-increment = <2>;
  96. reg = <0x9000 0 0 0 0>;
  97. #gpio-cells = <2>;
  98. gpio-controller;
  99. };
  100. };
  101. &uart {
  102. status = "okay";
  103. };
  104. &mdio0 {
  105. status = "okay";
  106. phy-mask = <0x1>;
  107. phy0: ethernet-phy@0 {
  108. reg = <0>;
  109. };
  110. };
  111. &eth0 {
  112. status = "okay";
  113. mtd-mac-address = <&hwinfo 0x1c>;
  114. pll-data = <0x00110000 0x00001099 0x00991099>;
  115. phy-mode = "rgmii";
  116. phy-handle = <&phy0>;
  117. };
  118. &spi {
  119. status = "okay";
  120. num-cs = <1>;
  121. flash@0 {
  122. compatible = "jedec,spi-nor";
  123. reg = <0>;
  124. spi-max-frequency = <25000000>;
  125. partitions {
  126. compatible = "fixed-partitions";
  127. #address-cells = <1>;
  128. #size-cells = <1>;
  129. partition@0 {
  130. label = "u-boot";
  131. reg = <0x000000 0x40000>;
  132. read-only;
  133. };
  134. partition@40000 {
  135. label = "firmware";
  136. reg = <0x40000 0xfa0000>;
  137. compatible = "denx,uimage";
  138. };
  139. hwinfo: partition@fe0000 {
  140. label = "hwinfo";
  141. reg = <0xfe0000 0x10000>;
  142. read-only;
  143. };
  144. partition@ff0000 {
  145. label = "u-boot-env";
  146. reg = <0xff0000 0x10000>;
  147. read-only;
  148. };
  149. };
  150. };
  151. };