ar9330_glinet_ar150.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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 "ar9330.dtsi"
  6. / {
  7. model = "GL.iNet GL-AR150";
  8. compatible = "glinet,ar150", "qca,ar9330";
  9. aliases {
  10. serial0 = &uart;
  11. led-boot = &wlan;
  12. led-failsafe = &wlan;
  13. led-upgrade = &wlan;
  14. };
  15. leds {
  16. compatible = "gpio-leds";
  17. wlan: wlan {
  18. label = "gl-ar150:orange:wlan";
  19. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  20. linux,default-trigger = "phy0tpt";
  21. };
  22. lan {
  23. label = "gl-ar150:green:lan";
  24. gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
  25. };
  26. wan {
  27. label = "gl-ar150:green:wan";
  28. gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
  29. };
  30. };
  31. keys {
  32. compatible = "gpio-keys-polled";
  33. poll-interval = <100>;
  34. manual {
  35. label = "manual";
  36. linux,code = <BTN_7>;
  37. gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
  38. };
  39. auto {
  40. label = "auto";
  41. linux,code = <BTN_8>;
  42. gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
  43. };
  44. reset {
  45. label = "reset";
  46. linux,code = <KEY_RESTART>;
  47. gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
  48. };
  49. };
  50. };
  51. &uart {
  52. status = "okay";
  53. };
  54. &gpio {
  55. status = "okay";
  56. };
  57. &usb {
  58. dr_mode = "host";
  59. status = "okay";
  60. };
  61. &usb_phy {
  62. status = "okay";
  63. gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
  64. };
  65. &spi {
  66. num-chipselects = <1>;
  67. status = "okay";
  68. flash@0 {
  69. compatible = "jedec,spi-nor";
  70. spi-max-frequency = <104000000>;
  71. reg = <0>;
  72. partitions {
  73. compatible = "fixed-partitions";
  74. #address-cells = <1>;
  75. #size-cells = <1>;
  76. partition@0 {
  77. label = "u-boot";
  78. reg = <0x000000 0x040000>;
  79. read-only;
  80. };
  81. partition@1 {
  82. label = "u-boot-env";
  83. reg = <0x040000 0x010000>;
  84. };
  85. partition@2 {
  86. compatible = "denx,uimage";
  87. label = "firmware";
  88. reg = <0x050000 0xfa0000>;
  89. };
  90. art: partition@3 {
  91. label = "ART";
  92. reg = <0xff0000 0x010000>;
  93. read-only;
  94. };
  95. };
  96. };
  97. };
  98. &eth0 {
  99. status = "okay";
  100. mtd-mac-address = <&art 0x0>;
  101. };
  102. &eth1 {
  103. status = "okay";
  104. mtd-mac-address = <&art 0x0>;
  105. gmac-config {
  106. device = <&gmac>;
  107. switch-phy-addr-swap = <0>;
  108. switch-phy-swap = <0>;
  109. };
  110. };
  111. &wmac {
  112. status = "okay";
  113. mtd-cal-data = <&art 0x1000>;
  114. mtd-mac-address = <&art 0x0>;
  115. };