ar7241_ubnt_xm.dtsi 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 "ar7241.dtsi"
  5. / {
  6. compatible = "ubnt,xm", "qca,ar7241";
  7. model = "Ubiquiti Networks XM (rev 1.0) board";
  8. /* extosc: ref {
  9. compatible = "fixed-clock";
  10. #clock-cells = <0>;
  11. clock-frequency = <40000000>;
  12. };
  13. */
  14. keys {
  15. compatible = "gpio-keys-polled";
  16. poll-interval = <20>;
  17. reset {
  18. linux,code = <KEY_RESTART>;
  19. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  20. debounce-interval = <60>;
  21. };
  22. };
  23. };
  24. &uart {
  25. status = "okay";
  26. };
  27. /*&pll {
  28. clocks = <&extosc>;
  29. };*/
  30. &spi {
  31. status = "okay";
  32. num-cs = <1>;
  33. flash@0 {
  34. compatible = "jedec,spi-nor";
  35. reg = <0>;
  36. spi-max-frequency = <25000000>;
  37. partitions {
  38. compatible = "fixed-partitions";
  39. #address-cells = <1>;
  40. #size-cells = <1>;
  41. partition@0 {
  42. label = "u-boot";
  43. reg = <0x000000 0x040000>;
  44. read-only;
  45. };
  46. partition@1 {
  47. label = "u-boot-env";
  48. reg = <0x040000 0x010000>;
  49. };
  50. partition@2 {
  51. compatible = "denx,uimage";
  52. label = "firmware";
  53. reg = <0x050000 0x750000>;
  54. };
  55. partition@3 {
  56. label = "board_config";
  57. reg = <0x7a0000 0x010000>;
  58. read-only;
  59. };
  60. partition@4 {
  61. label = "cfg";
  62. reg = <0x7b0000 0x040000>;
  63. read-only;
  64. };
  65. art: partition@5 {
  66. label = "art";
  67. reg = <0x7f0000 0x010000>;
  68. read-only;
  69. };
  70. };
  71. };
  72. };
  73. &pcie {
  74. status = "okay";
  75. wifi@0,0 {
  76. reg = <0x0000 0 0 0 0>;
  77. qca,no-eeprom;
  78. };
  79. };
  80. &eth0 {
  81. status = "okay";
  82. mtd-mac-address = <&art 0x0>;
  83. };
  84. &eth1 {
  85. status = "okay";
  86. mtd-mac-address = <&art 0x6>;
  87. };