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