1
0

qca9563_tplink_tl-wr1043nd-v4.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include "qca9563_tplink_tl-wr1043n.dtsi"
  4. / {
  5. compatible = "tplink,tl-wr1043nd-v4", "qca,qca9563";
  6. model = "TP-Link TL-WR1043ND v4";
  7. gpio-export {
  8. compatible = "gpio-export";
  9. #size-cells = <0>;
  10. gpio_usb_power {
  11. gpio-export,name = "tp-link:power:usb";
  12. gpio-export,output = <1>;
  13. gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
  14. };
  15. };
  16. };
  17. &spi {
  18. status = "okay";
  19. num-cs = <1>;
  20. flash@0 {
  21. compatible = "jedec,spi-nor";
  22. reg = <0>;
  23. spi-max-frequency = <25000000>;
  24. partitions {
  25. compatible = "fixed-partitions";
  26. #address-cells = <1>;
  27. #size-cells = <1>;
  28. partition@0 {
  29. label = "u-boot";
  30. reg = <0x000000 0x020000>;
  31. read-only;
  32. };
  33. partition@20000 {
  34. compatible = "tplink,firmware";
  35. label = "firmware";
  36. reg = <0x020000 0xf30000>;
  37. };
  38. info: partition@f50000 {
  39. label = "info";
  40. reg = <0xf50000 0x020000>;
  41. read-only;
  42. };
  43. partition@f70000 {
  44. label = "config";
  45. reg = <0xf70000 0x050000>;
  46. read-only;
  47. };
  48. partition@fc0000 {
  49. label = "partition-table";
  50. reg = <0xfc0000 0x010000>;
  51. read-only;
  52. };
  53. partition@fd0000 {
  54. label = "logs";
  55. reg = <0xfd0000 0x020000>;
  56. read-only;
  57. };
  58. art: partition@ff0000 {
  59. label = "art";
  60. reg = <0xff0000 0x010000>;
  61. read-only;
  62. };
  63. };
  64. };
  65. };
  66. &gpio_leds {
  67. usb {
  68. label = "tp-link:green:usb";
  69. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  70. trigger-sources = <&hub_port0>;
  71. linux,default-trigger = "usbport";
  72. };
  73. };
  74. &usb_phy0 {
  75. status = "okay";
  76. };
  77. &usb0 {
  78. #address-cells = <1>;
  79. #size-cells = <0>;
  80. status = "okay";
  81. hub_port0: port@1 {
  82. reg = <1>;
  83. #trigger-source-cells = <0>;
  84. };
  85. };