qcom-ipq8064-ea7500-v1.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include <dt-bindings/leds/common.h>
  3. #include "qcom-ipq8064-eax500.dtsi"
  4. / {
  5. model = "Linksys EA7500 V1 WiFi Router";
  6. compatible = "linksys,ea7500-v1", "qcom,ipq8064";
  7. memory@0 {
  8. reg = <0x42000000 0xe000000>;
  9. device_type = "memory";
  10. };
  11. aliases {
  12. led-boot = &led_power;
  13. led-failsafe = &led_power;
  14. led-running = &led_power;
  15. led-upgrade = &led_power;
  16. };
  17. chosen {
  18. /* look for root deviceblock nbr in this bootarg */
  19. find-rootblock = "ubi.mtd=";
  20. };
  21. keys {
  22. compatible = "gpio-keys";
  23. pinctrl-0 = <&button_pins>;
  24. pinctrl-names = "default";
  25. reset {
  26. label = "reset";
  27. gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
  28. linux,code = <KEY_RESTART>;
  29. debounce-interval = <60>;
  30. wakeup-source;
  31. };
  32. wps {
  33. label = "wps";
  34. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_WPS_BUTTON>;
  36. debounce-interval = <60>;
  37. wakeup-source;
  38. };
  39. };
  40. leds {
  41. compatible = "gpio-leds";
  42. pinctrl-0 = <&led_pins>;
  43. pinctrl-names = "default";
  44. led_power: power {
  45. function = LED_FUNCTION_POWER;
  46. color = <LED_COLOR_ID_WHITE>;
  47. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
  48. default-state = "keep";
  49. };
  50. };
  51. };
  52. &qcom_pinmux {
  53. button_pins: button_pins {
  54. mux {
  55. pins = "gpio65", "gpio68";
  56. function = "gpio";
  57. drive-strength = <2>;
  58. bias-pull-up;
  59. };
  60. };
  61. led_pins: led_pins {
  62. mux {
  63. pins = "gpio6";
  64. function = "gpio";
  65. drive-strength = <2>;
  66. bias-pull-up;
  67. };
  68. };
  69. };
  70. &partitions {
  71. partition@5f80000 {
  72. label = "sysdiag";
  73. reg = <0x5f80000 0x100000>;
  74. };
  75. partition@6080000 {
  76. label = "syscfg";
  77. reg = <0x6080000 0x1f80000>;
  78. };
  79. };
  80. &mdio0 {
  81. switch@10 {
  82. ports {
  83. port@1 {
  84. label = "wan";
  85. };
  86. port@2 {
  87. label = "lan1";
  88. };
  89. port@3 {
  90. label = "lan2";
  91. };
  92. port@4 {
  93. label = "lan3";
  94. };
  95. port@5 {
  96. label = "lan4";
  97. };
  98. };
  99. };
  100. };