ar9344_pcs_cap324.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "ar9344.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. model = "PowerCloud Systems CAP324";
  7. compatible = "pcs,cap324", "qca,ar9344";
  8. aliases {
  9. led-boot = &led_power_amber;
  10. led-failsafe = &led_power_amber;
  11. led-running = &led_power_green;
  12. led-upgrade = &led_power_amber;
  13. };
  14. keys {
  15. compatible = "gpio-keys";
  16. pinctrl-names = "default";
  17. pinctrl-0 = <&jtag_disable_pins>;
  18. reset {
  19. label = "Reset button";
  20. linux,code = <KEY_RESTART>;
  21. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  22. debounce-interval = <60>;
  23. };
  24. };
  25. leds {
  26. compatible = "gpio-leds";
  27. led_power_amber: power_amber {
  28. label = "amber:power";
  29. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  30. };
  31. led_power_green: power_green {
  32. label = "green:power";
  33. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  34. default-state = "on";
  35. };
  36. wlan_amber {
  37. label = "amber:wlan";
  38. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  39. linux,default-trigger = "phy1tpt";
  40. };
  41. wlan_green {
  42. label = "green:wlan";
  43. gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
  44. linux,default-trigger = "phy0tpt";
  45. };
  46. lan_amber {
  47. label = "amber:lan";
  48. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  49. };
  50. lan_green {
  51. label = "green:lan";
  52. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  53. };
  54. };
  55. };
  56. &ref {
  57. clock-frequency = <25000000>;
  58. };
  59. &spi {
  60. status = "okay";
  61. flash@0 {
  62. compatible = "jedec,spi-nor";
  63. reg = <0>;
  64. spi-max-frequency = <25000000>;
  65. partitions {
  66. compatible = "fixed-partitions";
  67. #address-cells = <1>;
  68. #size-cells = <1>;
  69. uboot: partition@0 {
  70. label = "u-boot";
  71. reg = <0x000000 0x040000>;
  72. read-only;
  73. };
  74. partition@40000 {
  75. label = "u-boot-env";
  76. reg = <0x040000 0x010000>;
  77. read-only;
  78. };
  79. partition@50000 {
  80. compatible = "denx,uimage";
  81. label = "firmware";
  82. reg = <0x050000 0x0fa0000>;
  83. };
  84. art: partition@7f0000 {
  85. label = "art";
  86. reg = <0xff0000 0x010000>;
  87. read-only;
  88. };
  89. };
  90. };
  91. };
  92. &pcie {
  93. status = "okay";
  94. ath9k: wifi@0,0 {
  95. compatible = "168c,0030";
  96. reg = <0x0000 0 0 0 0>;
  97. nvmem-cells = <&macaddr_art_0>;
  98. nvmem-cell-names = "mac-address";
  99. mac-address-increment = <(-2)>;
  100. mtd-cal-data = <&art 0x5000>;
  101. qca,no-eeprom;
  102. ieee80211-freq-limit = <2402000 2482000>;
  103. #gpio-cells = <2>;
  104. gpio-controller;
  105. };
  106. };
  107. &wmac {
  108. status = "okay";
  109. ieee80211-freq-limit = <4900000 5990000>;
  110. mtd-cal-data = <&art 0x1000>;
  111. nvmem-cells = <&macaddr_art_0>;
  112. nvmem-cell-names = "mac-address";
  113. mac-address-increment = <(-1)>;
  114. };
  115. &mdio0 {
  116. status = "okay";
  117. phy-mask = <0>;
  118. phy0: ethernet-phy@0 {
  119. reg = <0>;
  120. phy-mode = "rgmii";
  121. };
  122. };
  123. &eth0 {
  124. status = "okay";
  125. /* default for ar934x, except for 1000M */
  126. pll-data = <0x06000000 0x00000101 0x00001616>;
  127. nvmem-cells = <&macaddr_art_0>;
  128. nvmem-cell-names = "mac-address";
  129. phy-mode = "rgmii";
  130. phy-handle = <&phy0>;
  131. };
  132. &art {
  133. compatible = "nvmem-cells";
  134. #address-cells = <1>;
  135. #size-cells = <1>;
  136. macaddr_art_0: macaddr@0 {
  137. reg = <0x0 0x6>;
  138. };
  139. };