OpenWrt – Blame information for rev 1
?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 "ar9344.dtsi" |
||
8 | |||
9 | / { |
||
10 | compatible = "comfast,cf-e120a-v3", "qca,ar9344"; |
||
11 | model = "COMFAST CF-E120A v3"; |
||
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 = <&led_rssimediumhigh_pin>; |
||
25 | |||
26 | wan: wan { |
||
27 | label = "cf-e120a-v3:green:wan"; |
||
28 | gpios = <&gpio 3 GPIO_ACTIVE_LOW>; |
||
29 | }; |
||
30 | |||
31 | lan { |
||
32 | label = "cf-e120a-v3:green:lan"; |
||
33 | gpios = <&gpio 2 GPIO_ACTIVE_LOW>; |
||
34 | }; |
||
35 | |||
36 | wlan { |
||
37 | label = "cf-e120a-v3:green:wlan"; |
||
38 | gpios = <&gpio 0 GPIO_ACTIVE_LOW>; |
||
39 | linux,default-trigger = "phy0tpt"; |
||
40 | }; |
||
41 | |||
42 | rssilow { |
||
43 | label = "cf-e120a-v3:red:rssilow"; |
||
44 | gpios = <&gpio 14 GPIO_ACTIVE_LOW>; |
||
45 | }; |
||
46 | |||
47 | rssimediumlow { |
||
48 | label = "cf-e120a-v3:red:rssimediumlow"; |
||
49 | gpios = <&gpio 15 GPIO_ACTIVE_LOW>; |
||
50 | }; |
||
51 | |||
52 | rssimediumhigh { |
||
53 | label = "cf-e120a-v3:green:rssimediumhigh"; |
||
54 | gpios = <&gpio 16 GPIO_ACTIVE_LOW>; |
||
55 | }; |
||
56 | |||
57 | rssihigh { |
||
58 | label = "cf-e120a-v3:green:rssihigh"; |
||
59 | gpios = <&gpio 17 GPIO_ACTIVE_LOW>; |
||
60 | }; |
||
61 | }; |
||
62 | |||
63 | keys { |
||
64 | compatible = "gpio-keys-polled"; |
||
65 | poll-interval = <20>; |
||
66 | |||
67 | reset { |
||
68 | label = "reset"; |
||
69 | linux,code = <KEY_RESTART>; |
||
70 | gpios = <&gpio 22 GPIO_ACTIVE_LOW>; |
||
71 | debounce-interval = <60>; |
||
72 | }; |
||
73 | }; |
||
74 | }; |
||
75 | |||
76 | &pinmux { |
||
77 | led_rssimediumhigh_pin: pinmux_rssimediumhigh_pin { |
||
78 | pinctrl-single,bits = <0x10 0x0 0xff>; |
||
79 | }; |
||
80 | }; |
||
81 | |||
82 | &spi { |
||
83 | status = "okay"; |
||
84 | num-cs = <1>; |
||
85 | |||
86 | flash@0 { |
||
87 | compatible = "jedec,spi-nor"; |
||
88 | reg = <0>; |
||
89 | spi-max-frequency = <25000000>; |
||
90 | |||
91 | partitions { |
||
92 | compatible = "fixed-partitions"; |
||
93 | #address-cells = <1>; |
||
94 | #size-cells = <1>; |
||
95 | |||
96 | uboot: partition@0 { |
||
97 | label = "u-boot"; |
||
98 | reg = <0x000000 0x010000>; |
||
99 | read-only; |
||
100 | }; |
||
101 | |||
102 | art: partition@10000 { |
||
103 | label = "art"; |
||
104 | reg = <0x010000 0x010000>; |
||
105 | read-only; |
||
106 | }; |
||
107 | |||
108 | firmware: partition@20000 { |
||
109 | compatible = "denx,uimage"; |
||
110 | label = "firmware"; |
||
111 | reg = <0x020000 0x7d0000>; |
||
112 | }; |
||
113 | |||
114 | nvram: partition@7f0000 { |
||
115 | label = "nvram"; |
||
116 | reg = <0x7f0000 0x010000>; |
||
117 | read-only; |
||
118 | }; |
||
119 | }; |
||
120 | }; |
||
121 | }; |
||
122 | |||
123 | &uart { |
||
124 | status = "okay"; |
||
125 | }; |
||
126 | |||
127 | ð0 { |
||
128 | status = "okay"; |
||
129 | phy-handle = <&swphy0>; |
||
130 | mtd-mac-address = <&art 0x0>; |
||
131 | |||
132 | gmac-config { |
||
133 | device = <&gmac>; |
||
134 | switch-phy-swap = <1>; |
||
135 | }; |
||
136 | }; |
||
137 | |||
138 | ð1 { |
||
139 | status = "okay"; |
||
140 | mtd-mac-address = <&art 0x6>; |
||
141 | }; |
||
142 | |||
143 | &wmac { |
||
144 | status = "okay"; |
||
145 | mtd-cal-data = <&art 0x1000>; |
||
146 | }; |