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