qcom-ipq8064-ea8500.dts 2.1 KB

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