mopv

qca9563_tplink_deco-m4r-v1v2.dts - Bob fork

May 31st, 2022 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3.  
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6.  
  7. #include "qca956x.dtsi"
  8.  
  9. / {
  10. compatible = "tplink,deco-m4r-v1v2", "qca,qca9563";
  11. model = "TP-Link Deco M4R V1V2";
  12.  
  13. aliases {
  14. led-boot = &led_power;
  15. led-failsafe = &led_power;
  16. led-running = &led_power;
  17. led-upgrade = &led_power;
  18. };
  19.  
  20. chosen {
  21. bootargs = "console=ttyS0,115200n8 root=/dev/mtdblock2";
  22. };
  23.  
  24. leds {
  25. compatible = "gpio-leds";
  26.  
  27. wlan2g {
  28. label = "red:wlan2g";
  29. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  30. linux,default-trigger = "phy1tpt";
  31. };
  32.  
  33. led_power: power {
  34. label = "green:power";
  35. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  36. default-state = "on";
  37. };
  38.  
  39. wlan5g {
  40. label = "blue:wlan5g";
  41. gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  42. linux,default-trigger = "phy0tpt";
  43. };
  44. };
  45.  
  46.  
  47. keys {
  48. compatible = "gpio-keys";
  49.  
  50. reset {
  51. label = "Reset button";
  52. linux,code = <KEY_RESTART>;
  53. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  54. debounce-interval = <60>;
  55. };
  56. };
  57. };
  58.  
  59. &pcie {
  60. status = "okay";
  61. };
  62.  
  63. &mdio0 {
  64. status = "okay";
  65. phy-mask = <0>;
  66.  
  67. phy0: ethernet-phy@0 {
  68. reg = <0>;
  69. phy-mode = "sgmii";
  70. qca,mib-poll-interval = <500>;
  71.  
  72. qca,ar8327-initvals = <
  73. 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
  74. 0x7c 0x0000007e /* PORT0_STATUS */
  75. >;
  76. };
  77. };
  78.  
  79. &eth0 {
  80. status = "okay";
  81.  
  82. phy-mode = "sgmii";
  83. phy-handle = <&phy0>;
  84. mtd-mac-address = <&config 0x8>;
  85. };
  86.  
  87. &wmac {
  88. status = "okay";
  89.  
  90. mtd-cal-data = <&art 0x1000>;
  91. mtd-mac-address = <&config 0x8>;
  92. };
  93.  
  94. &spi {
  95. status = "okay";
  96. num-cs = <1>;
  97.  
  98. flash@0 {
  99. compatible = "jedec,spi-nor";
  100. reg = <0>;
  101. spi-max-frequency = <25000000>;
  102.  
  103. partitions {
  104. compatible = "fixed-partitions";
  105. #address-cells = <1>;
  106. #size-cells = <1>;
  107.  
  108. uboot: partition@0 {
  109. label = "u-boot";
  110. reg = <0x000000 0x080000>;
  111. read-only;
  112. };
  113.  
  114. partition@80000 {
  115. label = "product-info";
  116. reg = <0x080000 0x05000>;
  117. read-only;
  118. };
  119.  
  120. config: partition@80000 {
  121. label = "config";
  122. reg = <0x085000 0x16b000>;
  123. read-only;
  124. };
  125.  
  126. art: partition@1f0000 {
  127. label = "art";
  128. reg = <0x1f0000 0x010000>;
  129. read-only;
  130. };
  131.  
  132. partition@200000 {
  133. label = "kernel";
  134. reg = <0x200000 0x200000>;
  135. };
  136.  
  137. partition@400000 {
  138. label = "rootfs";
  139. reg = <0x400000 0xc00000>;
  140. };
  141. };
  142. };
  143. };
  144.  
Add Comment
Please, Sign In to add comment