qcom-ipq8064-ea8500.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. #include <dt-bindings/leds/common.h>
  2. #include "qcom-ipq8064-eax500.dtsi"
  3. / {
  4. model = "Linksys EA8500 WiFi Router";
  5. compatible = "linksys,ea8500", "qcom,ipq8064";
  6. memory@0 {
  7. reg = <0x42000000 0x1e000000>;
  8. device_type = "memory";
  9. };
  10. aliases {
  11. mdio-gpio0 = &mdio0;
  12. led-boot = &led_power;
  13. led-failsafe = &led_power;
  14. led-running = &led_power;
  15. led-upgrade = &led_power;
  16. };
  17. keys {
  18. compatible = "gpio-keys";
  19. pinctrl-0 = <&button_pins>;
  20. pinctrl-names = "default";
  21. wifi {
  22. label = "wifi";
  23. gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
  24. linux,code = <KEY_RFKILL>;
  25. debounce-interval = <60>;
  26. wakeup-source;
  27. };
  28. reset {
  29. label = "reset";
  30. gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_RESTART>;
  32. debounce-interval = <60>;
  33. wakeup-source;
  34. };
  35. wps {
  36. label = "wps";
  37. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  38. linux,code = <KEY_WPS_BUTTON>;
  39. debounce-interval = <60>;
  40. wakeup-source;
  41. };
  42. };
  43. leds {
  44. compatible = "gpio-leds";
  45. pinctrl-0 = <&led_pins>;
  46. pinctrl-names = "default";
  47. wps {
  48. function = LED_FUNCTION_WPS;
  49. color = <LED_COLOR_ID_GREEN>;
  50. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  51. };
  52. led_power: power {
  53. function = LED_FUNCTION_POWER;
  54. color = <LED_COLOR_ID_WHITE>;
  55. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
  56. default-state = "keep";
  57. };
  58. wifi {
  59. label = "green:wifi";
  60. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_HIGH>;
  61. };
  62. };
  63. };
  64. &qcom_pinmux {
  65. button_pins: button_pins {
  66. mux {
  67. pins = "gpio65", "gpio67", "gpio68";
  68. function = "gpio";
  69. drive-strength = <2>;
  70. bias-pull-up;
  71. };
  72. };
  73. led_pins: led_pins {
  74. mux {
  75. pins = "gpio6", "gpio53", "gpio54";
  76. function = "gpio";
  77. drive-strength = <2>;
  78. bias-pull-up;
  79. };
  80. };
  81. };
  82. &sata_phy {
  83. status = "okay";
  84. };
  85. &sata {
  86. status = "okay";
  87. };
  88. &partitions {
  89. partition@5f80000 {
  90. label = "syscfg";
  91. reg = <0x5f80000 0x2080000>;
  92. };
  93. };
  94. &gmac1 {
  95. qcom,phy_mdio_addr = <4>;
  96. qcom,poll_required = <1>;
  97. qcom,rgmii_delay = <0>;
  98. qcom,emulation = <0>;
  99. };
  100. /* LAN */
  101. &gmac2 {
  102. qcom,phy_mdio_addr = <0>; /* none */
  103. qcom,poll_required = <0>; /* no polling */
  104. qcom,rgmii_delay = <0>;
  105. qcom,emulation = <0>;
  106. };