ipq806x: convert each device to DSA implementation
[openwrt/staging/svanheule.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 label = "green:wps";
58 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
59 };
60
61 led_power: power {
62 label = "white:power";
63 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
64 default-state = "keep";
65 };
66
67 wifi {
68 label = "green:wifi";
69 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_HIGH>;
70 };
71 };
72 };
73
74 &qcom_pinmux {
75 button_pins: button_pins {
76 mux {
77 pins = "gpio65", "gpio67", "gpio68";
78 function = "gpio";
79 drive-strength = <2>;
80 bias-pull-up;
81 };
82 };
83
84 led_pins: led_pins {
85 mux {
86 pins = "gpio6", "gpio53", "gpio54";
87 function = "gpio";
88 drive-strength = <2>;
89 bias-pull-up;
90 };
91 };
92 };
93
94 &sata_phy {
95 status = "okay";
96 };
97
98 &sata {
99 status = "okay";
100 };
101
102 &partitions {
103 partition@5f80000 {
104 label = "syscfg";
105 reg = <0x5f80000 0x2080000>;
106 };
107 };
108
109 &gmac1 {
110 qcom,phy_mdio_addr = <4>;
111 qcom,poll_required = <1>;
112 qcom,rgmii_delay = <0>;
113 qcom,emulation = <0>;
114 };
115
116 /* LAN */
117 &gmac2 {
118 qcom,phy_mdio_addr = <0>; /* none */
119 qcom,poll_required = <0>; /* no polling */
120 qcom,rgmii_delay = <0>;
121 qcom,emulation = <0>;
122 };