qca9561_tplink_archer-c5x.dtsi 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. #include "qca956x.dtsi"
  5. / {
  6. compatible = "tplink,archer-c5x", "qca,qca9560";
  7. chosen {
  8. bootargs = "console=ttyS0,115200n8";
  9. };
  10. led_spi {
  11. compatible = "spi-gpio";
  12. #address-cells = <1>;
  13. #size-cells = <0>;
  14. gpio-sck = <&gpio 18 GPIO_ACTIVE_HIGH>;
  15. gpio-mosi = <&gpio 17 GPIO_ACTIVE_HIGH>;
  16. cs-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
  17. num-chipselects = <1>;
  18. led_gpio: led_gpio@0 {
  19. compatible = "fairchild,74hc595";
  20. reg = <0>;
  21. gpio-controller;
  22. #gpio-cells = <2>;
  23. registers-number = <1>;
  24. spi-max-frequency = <10000000>;
  25. };
  26. };
  27. keys {
  28. compatible = "gpio-keys-polled";
  29. poll-interval = <100>;
  30. wps_button {
  31. label = "WPS button";
  32. linux,code = <KEY_WPS_BUTTON>;
  33. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  34. };
  35. wifi_button {
  36. label = "WiFi button";
  37. linux,code = <KEY_RFKILL>;
  38. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  39. };
  40. reset_button {
  41. label = "Reset button";
  42. linux,code = <KEY_RESTART>;
  43. gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
  44. };
  45. };
  46. gpio-export {
  47. compatible = "gpio-export";
  48. gpio_shift_register_oe {
  49. gpio-export,name = "tp-link:oe:sr";
  50. gpio-export,output = <0>;
  51. gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
  52. };
  53. gpio_shift_register_reset {
  54. gpio-export,name = "tp-link:reset:sr";
  55. gpio-export,output = <1>;
  56. gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
  57. };
  58. };
  59. };
  60. &uart {
  61. status = "okay";
  62. };
  63. &gpio {
  64. status = "okay";
  65. };
  66. &pcie {
  67. status = "okay";
  68. };
  69. &eth0 {
  70. phy-mode = "mii";
  71. phy-handle = <&swphy0>;
  72. gmac-config {
  73. device = <&gmac>;
  74. switch-phy-addr-swap = <1>;
  75. switch-phy-swap = <1>;
  76. };
  77. };