qca9563_ubnt_unifiac.dtsi 1.8 KB

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