1
0

ar7241_ubnt_unifi.dts 1.9 KB

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