1
0

ar9342_ubnt_xw.dtsi 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. #include "ar9344.dtsi"
  5. / {
  6. compatible = "ubnt,xw", "qca,ar9342";
  7. model = "Ubiquiti Networks XW board";
  8. aliases {
  9. led-boot = &system;
  10. led-running = &system;
  11. led-upgrade = &system;
  12. led-failsafe = &system;
  13. };
  14. leds {
  15. compatible = "gpio-leds";
  16. link1 {
  17. label = "ubnt:red:link1";
  18. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  19. };
  20. link2 {
  21. label = "ubnt:orange:link2";
  22. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  23. };
  24. link3 {
  25. label = "ubnt:green:link3";
  26. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  27. };
  28. system: link4 {
  29. label = "ubnt:green:link4";
  30. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  31. };
  32. };
  33. keys {
  34. compatible = "gpio-keys";
  35. reset {
  36. label = "Reset button";
  37. linux,code = <KEY_RESTART>;
  38. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  39. debounce-interval = <60>;
  40. };
  41. };
  42. };
  43. &ref {
  44. clock-frequency = <40000000>;
  45. };
  46. &uart {
  47. status = "okay";
  48. };
  49. &gpio {
  50. status = "okay";
  51. };
  52. &spi {
  53. status = "okay";
  54. num-cs = <1>;
  55. flash@0 {
  56. compatible = "jedec,spi-nor";
  57. reg = <0>;
  58. spi-max-frequency = <25000000>;
  59. partitions {
  60. compatible = "fixed-partitions";
  61. #address-cells = <1>;
  62. #size-cells = <1>;
  63. partition@0 {
  64. label = "u-boot";
  65. reg = <0x000000 0x040000>;
  66. read-only;
  67. };
  68. partition@40000 {
  69. label = "u-boot-env";
  70. reg = <0x040000 0x010000>;
  71. read-only;
  72. };
  73. partition@50000 {
  74. compatible = "denx,uimage";
  75. label = "firmware";
  76. reg = <0x050000 0x760000>;
  77. };
  78. partition@fb0000 {
  79. label = "cfg";
  80. reg = <0x7b0000 0x040000>;
  81. read-only;
  82. };
  83. eeprom: partition@ff0000 {
  84. label = "EEPROM";
  85. reg = <0x7f0000 0x010000>;
  86. read-only;
  87. };
  88. };
  89. };
  90. };
  91. &wmac {
  92. status = "okay";
  93. mtd-cal-data = <&eeprom 0x1000>;
  94. mtd-mac-address = <&eeprom 0x1002>;
  95. };
  96. &eth0 {
  97. mtd-mac-address = <&eeprom 0x0>;
  98. };