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 = "comfast,cf-e110n-v2", "qca,qca9533"; |
||
11 | model = "COMFAST CF-E110N v2"; |
||
12 | |||
13 | aliases { |
||
14 | serial0 = &uart; |
||
15 | led-boot = &wan; |
||
16 | led-failsafe = &wan; |
||
17 | led-upgrade = &wan; |
||
18 | }; |
||
19 | |||
20 | leds { |
||
21 | compatible = "gpio-leds"; |
||
22 | |||
23 | pinctrl-names = "default"; |
||
24 | pinctrl-0 = <&jtag_disable_pins &led_rssilow_pin &led_rssimediumhigh_pin &led_rssihigh_pin>; |
||
25 | |||
26 | wan: wan { |
||
27 | label = "cf-e110n-v2:green:wan"; |
||
28 | gpios = <&gpio 3 GPIO_ACTIVE_LOW>; |
||
29 | }; |
||
30 | |||
31 | lan { |
||
32 | label = "cf-e110n-v2:green:lan"; |
||
33 | gpios = <&gpio 2 GPIO_ACTIVE_LOW>; |
||
34 | }; |
||
35 | |||
36 | rssilow { |
||
37 | label = "cf-e110n-v2:red:rssilow"; |
||
38 | gpios = <&gpio 11 GPIO_ACTIVE_LOW>; |
||
39 | }; |
||
40 | |||
41 | rssimediumlow { |
||
42 | label = "cf-e110n-v2:red:rssimediumlow"; |
||
43 | gpios = <&gpio 12 GPIO_ACTIVE_LOW>; |
||
44 | }; |
||
45 | |||
46 | rssimediumhigh { |
||
47 | label = "cf-e110n-v2:green:rssimediumhigh"; |
||
48 | gpios = <&gpio 14 GPIO_ACTIVE_LOW>; |
||
49 | }; |
||
50 | |||
51 | rssihigh { |
||
52 | label = "cf-e110n-v2:green:rssihigh"; |
||
53 | gpios = <&gpio 16 GPIO_ACTIVE_LOW>; |
||
54 | }; |
||
55 | }; |
||
56 | |||
57 | ath9k-leds { |
||
58 | compatible = "gpio-leds"; |
||
59 | |||
60 | wlan { |
||
61 | label = "cf-e110n-v2:green:wlan"; |
||
62 | gpios = <&gpio 0 GPIO_ACTIVE_LOW>; |
||
63 | linux,default-trigger = "phy0tpt"; |
||
64 | }; |
||
65 | }; |
||
66 | |||
67 | keys { |
||
68 | compatible = "gpio-keys-polled"; |
||
69 | poll-interval = <20>; |
||
70 | |||
71 | reset { |
||
72 | label = "reset"; |
||
73 | linux,code = <KEY_RESTART>; |
||
74 | gpios = <&gpio 17 GPIO_ACTIVE_LOW>; |
||
75 | debounce-interval = <60>; |
||
76 | }; |
||
77 | }; |
||
78 | }; |
||
79 | |||
80 | &pinmux { |
||
81 | led_rssilow_pin: pinmux_rssilow_pin { |
||
82 | pinctrl-single,bits = <0x8 0x0 0xff000000>; |
||
83 | }; |
||
84 | |||
85 | led_rssimediumhigh_pin: pinmux_rssimediumhigh_pin { |
||
86 | pinctrl-single,bits = <0xc 0x0 0x00ff0000>; |
||
87 | }; |
||
88 | |||
89 | led_rssihigh_pin: pinmux_rssihigh_pin { |
||
90 | pinctrl-single,bits = <0x10 0x0 0x000000ff>; |
||
91 | }; |
||
92 | }; |
||
93 | |||
94 | &spi { |
||
95 | status = "okay"; |
||
96 | num-cs = <1>; |
||
97 | |||
98 | flash@0 { |
||
99 | compatible = "winbond,w25q128", "jedec,spi-nor"; |
||
100 | reg = <0>; |
||
101 | spi-max-frequency = <25000000>; |
||
102 | |||
103 | partitions { |
||
104 | compatible = "fixed-partitions"; |
||
105 | #address-cells = <1>; |
||
106 | #size-cells = <1>; |
||
107 | |||
108 | partition@0 { |
||
109 | label = "u-boot"; |
||
110 | reg = <0x000000 0x010000>; |
||
111 | read-only; |
||
112 | }; |
||
113 | |||
114 | art: partition@10000 { |
||
115 | label = "art"; |
||
116 | reg = <0x010000 0x010000>; |
||
117 | read-only; |
||
118 | }; |
||
119 | |||
120 | partition@20000 { |
||
121 | compatible = "denx,uimage"; |
||
122 | label = "firmware"; |
||
123 | reg = <0x020000 0xfd0000>; |
||
124 | }; |
||
125 | |||
126 | partition@ff0000 { |
||
127 | label = "nvram"; |
||
128 | reg = <0xff0000 0x010000>; |
||
129 | read-only; |
||
130 | }; |
||
131 | }; |
||
132 | }; |
||
133 | }; |
||
134 | |||
135 | &uart { |
||
136 | status = "okay"; |
||
137 | }; |
||
138 | |||
139 | ð0 { |
||
140 | status = "okay"; |
||
141 | mtd-mac-address = <&art 0x0>; |
||
142 | phy-handle = <&swphy4>; |
||
143 | }; |
||
144 | |||
145 | ð1 { |
||
146 | status = "okay"; |
||
147 | mtd-mac-address = <&art 0x1002>; |
||
148 | |||
149 | gmac-config { |
||
150 | device = <&gmac>; |
||
151 | }; |
||
152 | }; |
||
153 | |||
154 | &wmac { |
||
155 | status = "okay"; |
||
156 | mtd-cal-data = <&art 0x1000>; |
||
157 | mtd-mac-address = <&art 0x6>; |
||
158 | }; |