ar7241_ubnt-unifi.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "ar7241.dtsi"
  6. / {
  7. compatible = "ubnt,unifi", "qca,ar7241";
  8. model = "Ubiquiti UniFi AP";
  9. memory@0 {
  10. device_type = "memory";
  11. reg = <0x0 0x4000000>;
  12. };
  13. extosc: ref {
  14. compatible = "fixed-clock";
  15. #clock-cells = <0>;
  16. clock-frequency = <40000000>;
  17. };
  18. keys {
  19. compatible = "gpio-keys-polled";
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. poll-interval = <20>;
  23. button@0 {
  24. label = "reset";
  25. linux,code = <KEY_RESTART>;
  26. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  27. debounce-interval = <60>;
  28. };
  29. };
  30. leds {
  31. compatible = "gpio-leds";
  32. led@0 {
  33. label = "ubnt:green:dome";
  34. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  35. };
  36. led@1 {
  37. label = "ubnt:orange:dome";
  38. gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
  39. };
  40. };
  41. };
  42. &uart {
  43. status = "okay";
  44. };
  45. &pll {
  46. clocks = <&extosc>;
  47. };
  48. &spi {
  49. status = "okay";
  50. num-cs = <1>;
  51. flash@0 {
  52. #address-cells = <1>;
  53. #size-cells = <1>;
  54. compatible = "mx25l6405d";
  55. reg = <0>;
  56. spi-max-frequency = <25000000>;
  57. partition@0 {
  58. label = "u-boot";
  59. reg = <0x000000 0x040000>;
  60. };
  61. partition@1 {
  62. label = "u-boot-env";
  63. reg = <0x040000 0x010000>;
  64. };
  65. partition@2 {
  66. label = "firmware";
  67. reg = <0x050000 0x750000>;
  68. };
  69. partition@3 {
  70. label = "board_config";
  71. reg = <0x7a0000 0x010000>;
  72. read-only;
  73. };
  74. partition@4 {
  75. label = "cfg";
  76. reg = <0x7b0000 0x040000>;
  77. read-only;
  78. };
  79. art: partition@5 {
  80. label = "art";
  81. reg = <0x7f0000 0x010000>;
  82. read-only;
  83. };
  84. };
  85. };
  86. &pcie {
  87. status = "okay";
  88. ath9k@0000 {
  89. reg = <0x0000 0 0 0 0>;
  90. qca,no-eeprom;
  91. };
  92. };
  93. &mdio0 {
  94. status = "okay";
  95. phy4: ethernet-phy@4 {
  96. reg = <4>;
  97. phy-mode = "mii";
  98. };
  99. };
  100. &eth0 {
  101. status = "okay";
  102. mtd-mac-address = <&art 0x0>;
  103. phy-handle = <&phy4>;
  104. };
  105. &eth1 {
  106. status = "okay";
  107. compatible = "syscon";
  108. };