ar9330_gl_ar150.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. // SPDX-License-Identifier: GPL-2.0
  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";
  9. aliases {
  10. serial0 = &uart;
  11. };
  12. memory@0 {
  13. device_type = "memory";
  14. reg = <0x0 0x4000000>;
  15. };
  16. leds {
  17. compatible = "gpio-leds";
  18. wlan {
  19. label = "gl-ar150:orange:wlan";
  20. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  21. default-state = "off";
  22. };
  23. lan {
  24. label = "gl-ar150:green:lan";
  25. gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
  26. default-state = "off";
  27. };
  28. wan {
  29. label = "gl-ar150:green:wan";
  30. gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
  31. default-state = "off";
  32. };
  33. };
  34. keys {
  35. compatible = "gpio-keys-polled";
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. poll-interval = <100>;
  39. manual {
  40. label = "manual";
  41. linux,code = <BTN_7>;
  42. gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
  43. };
  44. auto {
  45. label = "auto";
  46. linux,code = <BTN_8>;
  47. gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
  48. };
  49. reset {
  50. label = "reset";
  51. linux,code = <KEY_RESTART>;
  52. gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
  53. };
  54. };
  55. };
  56. &uart {
  57. status = "okay";
  58. };
  59. &gpio {
  60. status = "okay";
  61. };
  62. &usb {
  63. dr_mode = "host";
  64. status = "okay";
  65. };
  66. &usb_phy {
  67. status = "okay";
  68. gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
  69. };
  70. &spi {
  71. num-chipselects = <1>;
  72. status = "okay";
  73. spiflash {
  74. #address-cells = <1>;
  75. #size-cells = <1>;
  76. compatible = "jedec,spi-nor";
  77. spi-max-frequency = <104000000>;
  78. reg = <0>;
  79. partition@0 {
  80. label = "u-boot";
  81. reg = <0x000000 0x040000>;
  82. read-only;
  83. };
  84. partition@1 {
  85. label = "u-boot-env";
  86. reg = <0x040000 0x010000>;
  87. };
  88. partition@2 {
  89. label = "firmware";
  90. reg = <0x050000 0xfa0000>;
  91. };
  92. art: partition@3 {
  93. label = "ART";
  94. reg = <0xff0000 0x010000>;
  95. read-only;
  96. };
  97. };
  98. };
  99. &mdio0 {
  100. status = "okay";
  101. phy4: ethernet-phy@4 {
  102. reg = <4>;
  103. phy-mode = "mii";
  104. };
  105. };
  106. &eth0 {
  107. status = "okay";
  108. mtd-mac-address = <&art 0x0>;
  109. phy-handle = <&phy4>;
  110. };
  111. &eth1 {
  112. status = "okay";
  113. mtd-mac-address = <&art 0x0>;
  114. fixed-link {
  115. speed = <1000>;
  116. full-duplex;
  117. };
  118. gmac-config {
  119. device = <&gmac>;
  120. switch-phy-addr-swap = <0>;
  121. switch-phy-swap = <0>;
  122. };
  123. };