qca9531_glinet_gl-ar300m.dtsi 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /dts-v1/;
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. #include "qca953x.dtsi"
  5. / {
  6. aliases {
  7. led-boot = &led_status;
  8. led-failsafe = &led_status;
  9. led-running = &led_status;
  10. led-upgrade = &led_status;
  11. };
  12. keys {
  13. compatible = "gpio-keys-polled";
  14. poll-interval = <20>;
  15. pinctrl-names = "default";
  16. pinctrl-0 = <&jtag_disable_pins>;
  17. button0 {
  18. label = "reset";
  19. linux,code = <KEY_RESTART>;
  20. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  21. };
  22. button1 {
  23. label = "button right";
  24. linux,code = <BTN_0>;
  25. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  26. };
  27. button3 {
  28. label = "button left";
  29. linux,code = <BTN_1>;
  30. gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
  31. };
  32. };
  33. leds {
  34. compatible = "gpio-leds";
  35. // Colors from non-Lite versions
  36. led_status: status {
  37. label = "gl-ar300m:green:status";
  38. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  39. };
  40. led_lan: lan {
  41. label = "gl-ar300m:green:lan";
  42. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  43. };
  44. led_wlan: wlan {
  45. label = "gl-ar300m:red:wlan";
  46. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  47. linux,default-trigger = "phy0tpt";
  48. };
  49. };
  50. };
  51. &pcie0 {
  52. status = "okay";
  53. };
  54. &spi {
  55. status = "okay";
  56. num-cs = <0>;
  57. flash@0 {
  58. compatible = "winbond,w25q128", "jedec,spi-nor";
  59. reg = <0>;
  60. spi-max-frequency = <25000000>;
  61. partitions {
  62. compatible = "fixed-partitions";
  63. #address-cells = <1>;
  64. #size-cells = <1>;
  65. partition@0 {
  66. label = "u-boot";
  67. reg = <0x000000 0x040000>;
  68. read-only;
  69. };
  70. partition@1 {
  71. label = "u-boot-env";
  72. reg = <0x040000 0x010000>;
  73. };
  74. partition@2 {
  75. compatible = "denx,uimage";
  76. label = "firmware";
  77. reg = <0x050000 0xfa0000>;
  78. };
  79. art: partition@3 {
  80. label = "art";
  81. reg = <0xff0000 0x010000>;
  82. read-only;
  83. };
  84. };
  85. };
  86. };
  87. &uart {
  88. status = "okay";
  89. };
  90. &usb0 {
  91. #address-cells = <1>;
  92. #size-cells = <0>;
  93. status = "okay";
  94. };
  95. &usb_phy {
  96. status = "okay";
  97. };
  98. &eth0 {
  99. status = "okay";
  100. mtd-mac-address = <&art 0x0>;
  101. phy-handle = <&swphy4>;
  102. };
  103. &eth1 {
  104. mtd-mac-address = <&art 0x0>;
  105. mtd-mac-address-increment = <1>;
  106. };
  107. &wmac {
  108. status = "okay";
  109. mtd-cal-data = <&art 0x1000>;
  110. mtd-mac-address = <&art 0x1002>;
  111. };