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 "ar9341.dtsi" |
||
8 | |||
9 | / { |
||
10 | model = "PowerCloud Systems CR3000"; |
||
11 | compatible = "pcs,cr3000", "qca,ar9341"; |
||
12 | |||
13 | aliases { |
||
14 | serial0 = &uart; |
||
15 | led-boot = &status; |
||
16 | led-failsafe = &status; |
||
17 | led-running = &status; |
||
18 | led-upgrade = &status; |
||
19 | }; |
||
20 | |||
21 | keys { |
||
22 | compatible = "gpio-keys-polled"; |
||
23 | poll-interval = <20>; |
||
24 | |||
25 | pinctrl-names = "default"; |
||
26 | pinctrl-0 = <&jtag_disable_pins>; |
||
27 | |||
28 | reset { |
||
29 | label = "Reset button"; |
||
30 | linux,code = <KEY_RESTART>; |
||
31 | gpios = <&gpio 17 GPIO_ACTIVE_LOW>; |
||
32 | debounce-interval = <60>; |
||
33 | }; |
||
34 | |||
35 | wps { |
||
36 | label = "WPS button"; |
||
37 | linux,code = <KEY_WPS_BUTTON>; |
||
38 | gpios = <&gpio 16 GPIO_ACTIVE_LOW>; |
||
39 | debounce-interval = <60>; |
||
40 | }; |
||
41 | }; |
||
42 | |||
43 | leds { |
||
44 | compatible = "gpio-leds"; |
||
45 | |||
46 | status: power { |
||
47 | label = "pcs:amber:power"; |
||
48 | gpios = <&gpio 15 GPIO_ACTIVE_LOW>; |
||
49 | default-state = "on"; |
||
50 | }; |
||
51 | |||
52 | wlan2g { |
||
53 | label = "pcs:blue:wlan"; |
||
54 | gpios = <&gpio 13 GPIO_ACTIVE_LOW>; |
||
55 | linux,default-trigger = "phy0tpt"; |
||
56 | }; |
||
57 | |||
58 | wan { |
||
59 | label = "pcs:blue:wan"; |
||
60 | gpios = <&gpio 18 GPIO_ACTIVE_LOW>; |
||
61 | }; |
||
62 | |||
63 | lan1 { |
||
64 | label = "pcs:blue:lan1"; |
||
65 | gpios = <&gpio 19 GPIO_ACTIVE_LOW>; |
||
66 | }; |
||
67 | |||
68 | lan2 { |
||
69 | label = "pcs:blue:lan2"; |
||
70 | gpios = <&gpio 20 GPIO_ACTIVE_LOW>; |
||
71 | }; |
||
72 | |||
73 | lan3 { |
||
74 | label = "pcs:blue:lan3"; |
||
75 | gpios = <&gpio 21 GPIO_ACTIVE_LOW>; |
||
76 | }; |
||
77 | |||
78 | lan4 { |
||
79 | label = "pcs:blue:lan4"; |
||
80 | gpios = <&gpio 22 GPIO_ACTIVE_LOW>; |
||
81 | }; |
||
82 | }; |
||
83 | }; |
||
84 | |||
85 | &ref { |
||
86 | clock-frequency = <25000000>; |
||
87 | }; |
||
88 | |||
89 | &uart { |
||
90 | status = "okay"; |
||
91 | }; |
||
92 | |||
93 | &gpio { |
||
94 | status = "okay"; |
||
95 | }; |
||
96 | |||
97 | &spi { |
||
98 | num-cs = <1>; |
||
99 | |||
100 | status = "okay"; |
||
101 | |||
102 | flash@0 { |
||
103 | compatible = "jedec,spi-nor"; |
||
104 | reg = <0>; |
||
105 | spi-max-frequency = <25000000>; |
||
106 | |||
107 | partitions { |
||
108 | compatible = "fixed-partitions"; |
||
109 | #address-cells = <1>; |
||
110 | #size-cells = <1>; |
||
111 | |||
112 | uboot: partition@0 { |
||
113 | label = "u-boot"; |
||
114 | reg = <0x000000 0x040000>; |
||
115 | read-only; |
||
116 | }; |
||
117 | |||
118 | partition@40000 { |
||
119 | label = "u-boot-env"; |
||
120 | reg = <0x040000 0x010000>; |
||
121 | read-only; |
||
122 | }; |
||
123 | |||
124 | partition@50000 { |
||
125 | compatible = "denx,uimage"; |
||
126 | label = "firmware"; |
||
127 | reg = <0x050000 0x07a0000>; |
||
128 | }; |
||
129 | |||
130 | art: partition@7f0000 { |
||
131 | label = "art"; |
||
132 | reg = <0x7f0000 0x010000>; |
||
133 | read-only; |
||
134 | }; |
||
135 | }; |
||
136 | }; |
||
137 | }; |
||
138 | |||
139 | &wmac { |
||
140 | status = "okay"; |
||
141 | |||
142 | mtd-cal-data = <&art 0x1000>; |
||
143 | mtd-mac-address = <&art 0x1002>; |
||
144 | }; |
||
145 | |||
146 | ð0 { |
||
147 | status = "okay"; |
||
148 | |||
149 | phy-handle = <&swphy0>; |
||
150 | mtd-mac-address = <&art 0x0>; |
||
151 | mtd-mac-address-increment = <1>; |
||
152 | }; |
||
153 | |||
154 | ð1 { |
||
155 | status = "okay"; |
||
156 | |||
157 | phy-handle = <&swphy4>; |
||
158 | mtd-mac-address = <&art 0x0>; |
||
159 | phy-mode = "gmii"; |
||
160 | pll-data = <0x06000000 0x00000101 0x00001616>; |
||
161 | |||
162 | gmac-config { |
||
163 | device = <&gmac>; |
||
164 | switch-phy-swap = <1>; |
||
165 | }; |
||
166 | }; |