Advertisement
brpr

dts 2.1

Aug 21st, 2021
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "qca955x.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5.  
  6. / {
  7. compatible = "asus,rt-ac55u", "qca,qca9557";
  8. model = "ASUS RT-AC55U";
  9.  
  10. aliases {
  11. led-boot = &led_power;
  12. led-failsafe = &led_power;
  13. led-running = &led_power;
  14. led-upgrade = &led_power;
  15. };
  16.  
  17. keys {
  18. compatible = "gpio-keys";
  19.  
  20. reset {
  21. label = "reset";
  22. gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
  23. linux,code = <KEY_RESTART>;
  24. debounce-interval = <60>;
  25. };
  26. };
  27.  
  28. leds {
  29. compatible = "gpio-leds";
  30.  
  31. led_power: power {
  32. label = "blue:power";
  33. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  34. };
  35.  
  36.  
  37. wifi2g {
  38. label = "blue:wifi2g";
  39. gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
  40. linux,default-trigger = "phy1tpt";
  41. };
  42.  
  43. wifi5g {
  44. label = "green:wifi5g";
  45. gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
  46. linux,default-trigger = "phy0tpt";
  47. };
  48.  
  49. wps {
  50. label = "green:wps";
  51. gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
  52. };
  53. };
  54. };
  55.  
  56. &nand {
  57. status="okay";
  58.  
  59. partitions {
  60. compatible="fixed-partitions";
  61. #address-cells = <1>;
  62. #size-cells = <1>;
  63.  
  64. partition@0 {
  65. label = "Bootloader";
  66. reg = <0x000000000000 0x000e0000>;
  67. };
  68. partition@000000100000 {
  69. label = "ubi";
  70. reg = <0x000000100000 0x07e00000>;
  71. };
  72. cal: partition@000007f00000 {
  73. label = "caldata";
  74. reg = <0x000007f00000 0x00010000>;
  75. };
  76. };
  77. };
  78.  
  79. &wmac {
  80. status="okay";
  81.  
  82. wifi@0,0 {
  83. compatible = "qcom,ath9k";
  84. mtd-cal-data = <&cal 0x5000>;
  85. qca;
  86. };
  87. };
  88. &pcie0 {
  89. status = "okay";
  90.  
  91. wifi@1,0 {
  92. compatible = "qcom,ath10k";
  93. mtd-cal-data = <&cal 0x5000>;
  94. qca;
  95. };
  96. };
  97.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement