OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
2 | /dts-v1/; |
||
3 | |||
4 | #include <dt-bindings/gpio/gpio.h> |
||
5 | #include <dt-bindings/input/input.h> |
||
6 | |||
7 | #include "qca953x.dtsi" |
||
8 | |||
9 | / { |
||
10 | compatible = "engenius,ews511ap", "qca,qca9531"; |
||
11 | model = "EnGenius EWS511AP"; |
||
12 | |||
13 | keys { |
||
14 | compatible = "gpio-keys-polled"; |
||
15 | |||
16 | poll-interval = <20>; |
||
17 | pinctrl-names = "default"; |
||
18 | pinctrl-0 = <&jtag_disable_pins>; |
||
19 | |||
20 | reset { |
||
21 | label = "reset"; |
||
22 | linux,code = <KEY_RESTART>; |
||
23 | gpios = <&gpio 1 GPIO_ACTIVE_LOW>; |
||
24 | }; |
||
25 | }; |
||
26 | |||
27 | aliases { |
||
28 | led-boot = &power_led; |
||
29 | led-failsafe = &power_led; |
||
30 | led-running = &power_led; |
||
31 | led-upgrade = &power_led; |
||
32 | }; |
||
33 | |||
34 | leds { |
||
35 | compatible = "gpio-leds"; |
||
36 | |||
37 | power_led: power { |
||
38 | label = "ews511ap:amber:power"; |
||
39 | gpios = <&gpio 0 GPIO_ACTIVE_LOW>; |
||
40 | default-state = "on"; |
||
41 | }; |
||
42 | |||
43 | lan1 { |
||
44 | label = "ews511ap:blue:lan1"; |
||
45 | gpios = <&gpio 4 GPIO_ACTIVE_LOW>; |
||
46 | }; |
||
47 | |||
48 | lan2 { |
||
49 | label = "ews511ap:blue:lan2"; |
||
50 | gpios = <&gpio 13 GPIO_ACTIVE_LOW>; |
||
51 | }; |
||
52 | |||
53 | wlan2g { |
||
54 | label = "ews511ap:green:wlan2g"; |
||
55 | gpios = <&gpio 15 GPIO_ACTIVE_LOW>; |
||
56 | linux,default-trigger = "phy0tpt"; |
||
57 | }; |
||
58 | |||
59 | wlan5g { |
||
60 | label = "ews511ap:green:wlan5g"; |
||
61 | gpios = <&gpio 3 GPIO_ACTIVE_LOW>; |
||
62 | linux,default-trigger = "phy1tpt"; |
||
63 | }; |
||
64 | }; |
||
65 | |||
66 | watchdog { |
||
67 | compatible = "linux,wdt-gpio"; |
||
68 | |||
69 | gpios = <&gpio 12 GPIO_ACTIVE_LOW>; |
||
70 | hw_algo = "toggle"; |
||
71 | /* hw_margin_ms is actually 300s but driver limits it to 60s */ |
||
72 | hw_margin_ms = <60000>; |
||
73 | always-running; |
||
74 | }; |
||
75 | }; |
||
76 | |||
77 | &wdt { |
||
78 | status = "okay"; |
||
79 | }; |
||
80 | |||
81 | &rst { |
||
82 | status = "okay"; |
||
83 | }; |
||
84 | |||
85 | &pcie0 { |
||
86 | status = "okay"; |
||
87 | }; |
||
88 | |||
89 | &uart { |
||
90 | status = "okay"; |
||
91 | }; |
||
92 | |||
93 | &spi { |
||
94 | status = "okay"; |
||
95 | num-cs = <0>; |
||
96 | |||
97 | flash@0 { |
||
98 | compatible = "jedec,spi-nor"; |
||
99 | reg = <0>; |
||
100 | spi-max-frequency = <25000000>; |
||
101 | |||
102 | partitions { |
||
103 | compatible = "fixed-partitions"; |
||
104 | #address-cells = <1>; |
||
105 | #size-cells = <1>; |
||
106 | |||
107 | partition@0 { |
||
108 | label = "u-boot"; |
||
109 | reg = <0x000000 0x040000>; |
||
110 | read-only; |
||
111 | }; |
||
112 | |||
113 | ubootenv: partition@40000 { |
||
114 | label = "u-boot-env"; |
||
115 | reg = <0x040000 0x010000>; |
||
116 | }; |
||
117 | |||
118 | art: partition@50000 { |
||
119 | label = "art"; |
||
120 | reg = <0x050000 0x010000>; |
||
121 | }; |
||
122 | |||
123 | partition@60000 { |
||
124 | compatible = "denx,uimage"; |
||
125 | label = "firmware"; |
||
126 | reg = <0x060000 0xfa0000>; |
||
127 | }; |
||
128 | }; |
||
129 | }; |
||
130 | }; |
||
131 | |||
132 | ð0 { |
||
133 | status = "okay"; |
||
134 | phy-handle = <&swphy4>; |
||
135 | }; |
||
136 | |||
137 | ð1 { |
||
138 | status = "okay"; |
||
139 | }; |
||
140 | |||
141 | &wmac { |
||
142 | status = "okay"; |
||
143 | mtd-cal-data = <&art 0x1000>; |
||
144 | }; |