qca9531_glinet_gl-x750.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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 = "glinet,gl-x750", "qca,qca9531";
  8. model = "GL.iNet GL-X750";
  9. keys {
  10. compatible = "gpio-keys-polled";
  11. poll-interval = <20>;
  12. pinctrl-names = "default";
  13. pinctrl-0 = <&jtag_disable_pins>;
  14. button0 {
  15. label = "reset";
  16. linux,code = <KEY_RESTART>;
  17. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  18. };
  19. };
  20. leds {
  21. compatible = "gpio-leds";
  22. power {
  23. label = "gl-x750:green:power";
  24. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  25. default-state = "on";
  26. };
  27. wlan2g {
  28. label = "gl-x750:green:wlan2g";
  29. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  30. linux,default-trigger = "phy1tpt";
  31. };
  32. wlan5g {
  33. label = "gl-x750:green:wlan5g";
  34. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  35. linux,default-trigger = "phy0tpt";
  36. };
  37. wan {
  38. label = "gl-x750:green:wan";
  39. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  40. };
  41. 4g {
  42. label = "gl-x750:green:4g";
  43. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  44. };
  45. };
  46. };
  47. &pcie0 {
  48. status = "okay";
  49. };
  50. &uart {
  51. status = "okay";
  52. };
  53. &usb0 {
  54. #address-cells = <1>;
  55. #size-cells = <0>;
  56. status = "okay";
  57. hub_port: port@1 {
  58. reg = <1>;
  59. #trigger-source-cells = <0>;
  60. };
  61. };
  62. &usb_phy {
  63. status = "okay";
  64. };
  65. &spi {
  66. status = "okay";
  67. num-cs = <0>;
  68. flash@0 {
  69. compatible = "jedec,spi-nor";
  70. reg = <0>;
  71. spi-max-frequency = <25000000>;
  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@40000 {
  82. label = "u-boot-env";
  83. reg = <0x040000 0x010000>;
  84. };
  85. art: partition@50000 {
  86. label = "art";
  87. reg = <0x050000 0x010000>;
  88. };
  89. partition@60000 {
  90. compatible = "denx,uimage";
  91. label = "firmware";
  92. reg = <0x060000 0xfa0000>;
  93. };
  94. };
  95. };
  96. };
  97. &eth0 {
  98. status = "okay";
  99. mtd-mac-address = <&art 0x0>;
  100. phy-handle = <&swphy4>;
  101. };
  102. &eth1 {
  103. mtd-mac-address = <&art 0x6>;
  104. };
  105. &wmac {
  106. status = "okay";
  107. mtd-cal-data = <&art 0x1000>;
  108. mtd-mac-address = <&art 0x1002>;
  109. };