ar9342_ubnt_xw.dtsi 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. gpio-leds {
  9. compatible = "gpio-leds";
  10. link1 {
  11. label = "ubnt:red:link1";
  12. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  13. };
  14. link2 {
  15. label = "ubnt:orange:link2";
  16. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  17. };
  18. link3 {
  19. label = "ubnt:green:link3";
  20. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  21. };
  22. link4 {
  23. label = "ubnt:green:link4";
  24. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  25. };
  26. };
  27. keys {
  28. compatible = "gpio-keys";
  29. reset {
  30. label = "Reset button";
  31. linux,code = <KEY_RESTART>;
  32. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  33. debounce-interval = <60>;
  34. };
  35. };
  36. };
  37. &ref {
  38. clock-frequency = <40000000>;
  39. };
  40. &uart {
  41. status = "okay";
  42. };
  43. &gpio {
  44. status = "okay";
  45. };
  46. &spi {
  47. status = "okay";
  48. num-cs = <1>;
  49. flash@0 {
  50. compatible = "jedec,spi-nor";
  51. reg = <0>;
  52. spi-max-frequency = <25000000>;
  53. partitions {
  54. compatible = "fixed-partitions";
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. partition@0 {
  58. label = "u-boot";
  59. reg = <0x000000 0x040000>;
  60. read-only;
  61. };
  62. partition@40000 {
  63. label = "u-boot-env";
  64. reg = <0x040000 0x010000>;
  65. read-only;
  66. };
  67. partition@50000 {
  68. compatible = "denx,uimage";
  69. label = "firmware";
  70. reg = <0x050000 0x760000>;
  71. };
  72. partition@fb0000 {
  73. label = "cfg";
  74. reg = <0x7b0000 0x040000>;
  75. read-only;
  76. };
  77. eeprom: partition@ff0000 {
  78. label = "EEPROM";
  79. reg = <0x7f0000 0x010000>;
  80. read-only;
  81. };
  82. };
  83. };
  84. };
  85. &wmac {
  86. status = "okay";
  87. mtd-cal-data = <&eeprom 0x1000>;
  88. mtd-mac-address = <&eeprom 0x1002>;
  89. };