TL-WR840NV5.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "tplink,tl-wr840n-v5", "mediatek,mt7628an-soc";
  7. model = "TP-Link TL-WR840N v5";
  8. aliases {
  9. led-boot = &led_power_green;
  10. led-failsafe = &led_power_green;
  11. led-running = &led_power_green;
  12. led-upgrade = &led_power_green;
  13. };
  14. chosen {
  15. bootargs = "console=ttyS0,115200";
  16. };
  17. memory@0 {
  18. device_type = "memory";
  19. reg = <0x0 0x4000000>;
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. poll-interval = <20>;
  24. reset {
  25. label = "reset";
  26. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  27. linux,code = <KEY_RESTART>;
  28. };
  29. };
  30. /* LED used is dual-color,dual lead LED */
  31. gpio-leds {
  32. compatible = "gpio-leds";
  33. led_power_green: power {
  34. label = "tl-wr840n-v5:green:power";
  35. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  36. };
  37. orange {
  38. label = "tl-wr840n-v5:orange:power";
  39. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  40. };
  41. };
  42. };
  43. &spi0 {
  44. status = "okay";
  45. m25p80@0 {
  46. compatible = "jedec,spi-nor";
  47. reg = <0>;
  48. spi-max-frequency = <10000000>;
  49. m25p,chunked-io = <32>;
  50. partitions {
  51. compatible = "fixed-partitions";
  52. #address-cells = <1>;
  53. #size-cells = <1>;
  54. partition@0 {
  55. label = "boot";
  56. reg = <0x0 0x20000>;
  57. read-only;
  58. };
  59. partition@20000 {
  60. label = "firmware";
  61. reg = <0x20000 0x3d0000>;
  62. };
  63. factory: partition@3f0000 {
  64. label = "factory";
  65. reg = <0x3f0000 0x10000>;
  66. read-only;
  67. };
  68. };
  69. };
  70. };
  71. &ehci {
  72. status = "disabled";
  73. };
  74. &ohci {
  75. status = "disabled";
  76. };
  77. &wmac {
  78. status = "okay";
  79. mtd-mac-address = <&factory 0xf100>;
  80. mediatek,mtd-eeprom = <&factory 0x10000>;
  81. };
  82. &ethernet {
  83. mtd-mac-address = <&factory 0xf100>;
  84. mediatek,portmap = "wllll";
  85. };
  86. &pinctrl {
  87. state_default: pinctrl0 {
  88. gpio {
  89. ralink,group = "p0led_an", "p2led_an", "perst";
  90. ralink,function = "gpio";
  91. };
  92. };
  93. };