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