Advertisement
brpr

dts 2.0

Aug 21st, 2021
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement