ar7161_ubnt_routerstation.dtsi 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "ar7100.dtsi"
  6. / {
  7. chosen {
  8. bootargs = "console=ttyS0,115200";
  9. };
  10. aliases {
  11. led-boot = &rf;
  12. led-failsafe = &rf;
  13. led-running = &rf;
  14. led-upgrade = &rf;
  15. };
  16. extosc: ref {
  17. compatible = "fixed-clock";
  18. #clock-cells = <0>;
  19. clock-output-names = "ref";
  20. clock-frequency = <40000000>;
  21. };
  22. gpio-leds {
  23. compatible = "gpio-leds";
  24. rf: rf_green {
  25. label = "ubnt:green:rf";
  26. gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
  27. };
  28. };
  29. gpio-keys-polled {
  30. compatible = "gpio-keys-polled";
  31. poll-interval = <20>;
  32. wps {
  33. label = "sw4";
  34. linux,code = <KEY_RESTART>;
  35. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  36. debounce-interval = <60>;
  37. };
  38. };
  39. };
  40. &eth0 {
  41. status = "okay";
  42. };
  43. &eth1 {
  44. status = "okay";
  45. };
  46. &pcie0 {
  47. status = "okay";
  48. };
  49. &spi {
  50. status = "okay";
  51. num-cs = <1>;
  52. flash@0 {
  53. compatible = "jedec,spi-nor";
  54. reg = <0>;
  55. spi-max-frequency = <25000000>;
  56. partitions {
  57. compatible = "ecoscentric,redboot-fis-partitions";
  58. };
  59. };
  60. };
  61. &uart {
  62. status = "okay";
  63. };
  64. &usb_phy {
  65. status = "okay";
  66. };
  67. &usb1 {
  68. status = "okay";
  69. #address-cells = <1>;
  70. #size-cells = <0>;
  71. usb_ochi_port: port@1 {
  72. reg = <1>;
  73. #trigger-source-cells = <0>;
  74. };
  75. };
  76. &usb2 {
  77. status = "okay";
  78. #address-cells = <1>;
  79. #size-cells = <0>;
  80. usb_echi_port: port@1 {
  81. reg = <1>;
  82. #trigger-source-cells = <0>;
  83. };
  84. };