qca9533_ubnt_acb-isp.dts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 "qca953x.dtsi"
  6. / {
  7. compatible = "ubnt,acb-isp", "qca,qca9533";
  8. model = "Ubiquiti airCube ISP";
  9. keys {
  10. compatible = "gpio-keys";
  11. reset {
  12. label = "reset";
  13. linux,code = <KEY_RESTART>;
  14. gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
  15. debounce-interval = <60>;
  16. };
  17. };
  18. };
  19. &spi {
  20. status = "okay";
  21. num-cs = <1>;
  22. flash@0 {
  23. compatible = "jedec,spi-nor";
  24. reg = <0>;
  25. spi-max-frequency = <25000000>;
  26. partitions {
  27. compatible = "fixed-partitions";
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. partition@0 {
  31. label = "u-boot";
  32. reg = <0x000000 0x040000>;
  33. read-only;
  34. };
  35. partition@40000 {
  36. label = "u-boot-env";
  37. reg = <0x040000 0x010000>;
  38. read-only;
  39. };
  40. partition@50000 {
  41. compatible = "denx,uimage";
  42. label = "firmware";
  43. reg = <0x050000 0xf60000>;
  44. };
  45. partition@fb0000 {
  46. label = "cfg";
  47. reg = <0xfb0000 0x040000>;
  48. read-only;
  49. };
  50. eeprom: partition@ff0000 {
  51. label = "EEPROM";
  52. reg = <0xff0000 0x010000>;
  53. read-only;
  54. };
  55. };
  56. };
  57. };
  58. &uart {
  59. status = "okay";
  60. };
  61. &eth0 {
  62. status = "okay";
  63. mtd-mac-address = <&eeprom 0x0>;
  64. phy-handle = <&swphy4>;
  65. };
  66. &eth1 {
  67. status = "okay";
  68. mtd-mac-address = <&eeprom 0x6>;
  69. gmac-config {
  70. device = <&gmac>;
  71. };
  72. };
  73. &wmac {
  74. status = "okay";
  75. mtd-cal-data = <&eeprom 0x1000>;
  76. mtd-mac-address = <&eeprom 0x1002>;
  77. };