ar9132_tl_wr1043nd_v1.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /dts-v1/;
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. #include "ar9132.dtsi"
  5. / {
  6. compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
  7. model = "TP-Link TL-WR1043ND Version 1";
  8. memory@0 {
  9. device_type = "memory";
  10. reg = <0x0 0x2000000>;
  11. };
  12. extosc: ref {
  13. compatible = "fixed-clock";
  14. #clock-cells = <0>;
  15. clock-frequency = <40000000>;
  16. };
  17. gpio-keys {
  18. compatible = "gpio-keys-polled";
  19. #address-cells = <1>;
  20. #size-cells = <0>;
  21. poll-interval = <20>;
  22. button@0 {
  23. label = "reset";
  24. linux,code = <KEY_RESTART>;
  25. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  26. debounce-interval = <60>;
  27. };
  28. button@1 {
  29. label = "qss";
  30. linux,code = <KEY_WPS_BUTTON>;
  31. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  32. debounce-interval = <60>;
  33. };
  34. };
  35. leds {
  36. compatible = "gpio-leds";
  37. led@0 {
  38. label = "tp-link:green:usb";
  39. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  40. };
  41. led@1 {
  42. label = "tp-link:green:system";
  43. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  44. linux,default-trigger = "heartbeat";
  45. };
  46. led@2 {
  47. label = "tp-link:green:qss";
  48. gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
  49. };
  50. led@3 {
  51. label = "tp-link:green:wlan";
  52. gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  53. };
  54. };
  55. };
  56. &uart {
  57. status = "okay";
  58. };
  59. &pll {
  60. clocks = <&extosc>;
  61. };
  62. &usb {
  63. status = "okay";
  64. };
  65. &usb_phy {
  66. status = "okay";
  67. };
  68. &spi {
  69. status = "okay";
  70. num-cs = <1>;
  71. flash@0 {
  72. #address-cells = <1>;
  73. #size-cells = <1>;
  74. compatible = "s25sl064a";
  75. reg = <0>;
  76. spi-max-frequency = <25000000>;
  77. partition@0 {
  78. label = "u-boot";
  79. reg = <0x000000 0x020000>;
  80. };
  81. partition@1 {
  82. label = "firmware";
  83. reg = <0x020000 0x7D0000>;
  84. };
  85. partition@2 {
  86. label = "art";
  87. reg = <0x7F0000 0x010000>;
  88. read-only;
  89. };
  90. };
  91. };