ar9341_pcs_cr3000.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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 "ar9341.dtsi"
  6. / {
  7. model = "PowerCloud Systems CR3000";
  8. compatible = "pcs,cr3000", "qca,ar9341";
  9. aliases {
  10. serial0 = &uart;
  11. led-boot = &status;
  12. led-failsafe = &status;
  13. led-running = &status;
  14. led-upgrade = &status;
  15. };
  16. keys {
  17. compatible = "gpio-keys-polled";
  18. poll-interval = <20>;
  19. pinctrl-names = "default";
  20. pinctrl-0 = <&jtag_disable_pins>;
  21. reset {
  22. label = "Reset button";
  23. linux,code = <KEY_RESTART>;
  24. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  25. debounce-interval = <60>;
  26. };
  27. wps {
  28. label = "WPS button";
  29. linux,code = <KEY_WPS_BUTTON>;
  30. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  31. debounce-interval = <60>;
  32. };
  33. };
  34. leds {
  35. compatible = "gpio-leds";
  36. status: power {
  37. label = "pcs:amber:power";
  38. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  39. default-state = "on";
  40. };
  41. wlan2g {
  42. label = "pcs:blue:wlan";
  43. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  44. default-state = "off";
  45. linux,default-trigger = "phy0tpt";
  46. };
  47. wan {
  48. label = "pcs:blue:wan";
  49. gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
  50. default-state = "off";
  51. };
  52. lan1 {
  53. label = "pcs:blue:lan1";
  54. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  55. default-state = "off";
  56. };
  57. lan2 {
  58. label = "pcs:blue:lan2";
  59. gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
  60. default-state = "off";
  61. };
  62. lan3 {
  63. label = "pcs:blue:lan3";
  64. gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
  65. default-state = "off";
  66. };
  67. lan4 {
  68. label = "pcs:blue:lan4";
  69. gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
  70. default-state = "off";
  71. };
  72. };
  73. };
  74. &ref {
  75. clock-frequency = <25000000>;
  76. };
  77. &uart {
  78. status = "okay";
  79. };
  80. &gpio {
  81. status = "okay";
  82. };
  83. &spi {
  84. num-cs = <1>;
  85. status = "okay";
  86. flash@0 {
  87. compatible = "jedec,spi-nor";
  88. reg = <0>;
  89. spi-max-frequency = <25000000>;
  90. partitions {
  91. compatible = "fixed-partitions";
  92. #address-cells = <1>;
  93. #size-cells = <1>;
  94. uboot: partition@0 {
  95. label = "u-boot";
  96. reg = <0x000000 0x040000>;
  97. read-only;
  98. };
  99. partition@40000 {
  100. label = "u-boot-env";
  101. reg = <0x040000 0x010000>;
  102. read-only;
  103. };
  104. partition@50000 {
  105. label = "firmware";
  106. reg = <0x050000 0x07a0000>;
  107. };
  108. art: partition@7f0000 {
  109. label = "art";
  110. reg = <0x7f0000 0x010000>;
  111. read-only;
  112. };
  113. };
  114. };
  115. };
  116. &wmac {
  117. status = "okay";
  118. mtd-cal-data = <&art 0x1000>;
  119. mtd-mac-address = <&art 0x1002>;
  120. };
  121. &eth0 {
  122. status = "okay";
  123. phy-handle = <&swphy0>;
  124. mtd-mac-address = <&art 0x0>;
  125. mtd-mac-address-increment = <1>;
  126. };
  127. &eth1 {
  128. status = "okay";
  129. phy-handle = <&swphy4>;
  130. mtd-mac-address = <&art 0x0>;
  131. phy-mode = "gmii";
  132. pll-data = <0x06000000 0x00000101 0x00001616>;
  133. gmac-config {
  134. device = <&gmac>;
  135. switch-phy-swap = <1>;
  136. };
  137. };