1
0

qca9563_ubnt_unifiac.dtsi 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 "qca956x.dtsi"
  5. / {
  6. aliases {
  7. led-boot = &led_white;
  8. led-failsafe = &led_white;
  9. led-running = &led_blue;
  10. led-upgrade = &led_blue;
  11. };
  12. chosen {
  13. bootargs = "console=ttyS0,115200n8";
  14. };
  15. leds {
  16. compatible = "gpio-leds";
  17. led_white: led_white {
  18. label = "ubnt:white:dome";
  19. gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
  20. };
  21. led_blue: led_blue {
  22. label = "ubnt:blue:dome";
  23. gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
  24. };
  25. };
  26. keys {
  27. compatible = "gpio-keys";
  28. reset {
  29. label = "Reset button";
  30. linux,code = <KEY_RESTART>;
  31. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  32. debounce-interval = <60>;
  33. };
  34. };
  35. };
  36. &uart {
  37. status = "okay";
  38. };
  39. &gpio {
  40. status = "okay";
  41. };
  42. &pcie {
  43. status = "okay";
  44. };
  45. &spi {
  46. status = "okay";
  47. num-cs = <1>;
  48. flash@0 {
  49. compatible = "jedec,spi-nor";
  50. reg = <0>;
  51. spi-max-frequency = <25000000>;
  52. partitions {
  53. compatible = "fixed-partitions";
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. partition@0 {
  57. label = "u-boot";
  58. reg = <0x000000 0x060000>;
  59. read-only;
  60. };
  61. partition@60000 {
  62. label = "u-boot-env";
  63. reg = <0x060000 0x010000>;
  64. read-only;
  65. };
  66. partition@70000 {
  67. label = "firmware";
  68. reg = <0x070000 0x790000>;
  69. compatible = "denx,uimage";
  70. };
  71. partition@800000 {
  72. label = "ubnt-airos";
  73. reg = <0x800000 0x790000>;
  74. read-only;
  75. };
  76. partition@f90000 {
  77. label = "bs";
  78. reg = <0xf90000 0x020000>;
  79. };
  80. partition@fb0000 {
  81. label = "cfg";
  82. reg = <0xfb0000 0x040000>;
  83. read-only;
  84. };
  85. eeprom: partition@ff0000 {
  86. label = "EEPROM";
  87. reg = <0xff0000 0x010000>;
  88. read-only;
  89. };
  90. };
  91. };
  92. };
  93. &wmac {
  94. status = "okay";
  95. mtd-cal-data = <&eeprom 0x1000>;
  96. mtd-mac-address = <&eeprom 0x0>;
  97. };