ar9331_tplink_tl-wr703n_tl-mr10u.dtsi 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 "ar9331.dtsi"
  6. / {
  7. aliases {
  8. serial0 = &uart;
  9. led-boot = &system;
  10. led-failsafe = &system;
  11. led-running = &system;
  12. led-upgrade = &system;
  13. };
  14. keys {
  15. compatible = "gpio-keys-polled";
  16. poll-interval = <20>;
  17. reset {
  18. label = "reset";
  19. linux,code = <KEY_RESTART>;
  20. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  21. debounce-interval = <60>;
  22. };
  23. };
  24. leds {
  25. compatible = "gpio-leds";
  26. system: system {
  27. label = "tl-wr703n:blue:system";
  28. gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
  29. };
  30. };
  31. reg_usb_vbus: reg_usb_vbus {
  32. compatible = "regulator-fixed";
  33. regulator-name = "usb_vbus";
  34. regulator-min-microvolt = <5000000>;
  35. regulator-max-microvolt = <5000000>;
  36. enable-active-high;
  37. };
  38. };
  39. &spi {
  40. status = "okay";
  41. num-cs = <1>;
  42. flash@0 {
  43. compatible = "jedec,spi-nor";
  44. reg = <0>;
  45. spi-max-frequency = <25000000>;
  46. partitions {
  47. compatible = "fixed-partitions";
  48. #address-cells = <1>;
  49. #size-cells = <1>;
  50. uboot: partition@0 {
  51. reg = <0x0 0x20000>;
  52. label = "u-boot";
  53. read-only;
  54. };
  55. firmware: partition@20000 {
  56. compatible = "tplink,firmware";
  57. reg = <0x20000 0x3d0000>;
  58. label = "firmware";
  59. };
  60. art: partition@3f0000 {
  61. reg = <0x3f0000 0x10000>;
  62. label = "art";
  63. read-only;
  64. };
  65. };
  66. };
  67. };
  68. &eth0 {
  69. status = "okay";
  70. mtd-mac-address = <&uboot 0x1fc00>;
  71. gmac-config {
  72. device = <&gmac>;
  73. switch-phy-addr-swap = <0>;
  74. switch-phy-swap = <0>;
  75. };
  76. };
  77. &eth1 {
  78. status = "okay";
  79. compatible = "syscon", "simple-mfd";
  80. };
  81. &gpio {
  82. status = "okay";
  83. };
  84. &uart {
  85. status = "okay";
  86. };
  87. &usb {
  88. dr_mode = "host";
  89. vbus-supply = <&reg_usb_vbus>;
  90. status = "okay";
  91. };
  92. &usb_phy {
  93. status = "okay";
  94. };
  95. &wmac {
  96. status = "okay";
  97. mtd-cal-data = <&art 0x1000>;
  98. mtd-mac-address = <&uboot 0x1fc00>;
  99. };