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 "ar9331.dtsi" |
||
8 | |||
9 | / { |
||
10 | compatible = "tplink,tl-wr741n-v4", "qca,ar9331"; |
||
11 | model = "TP-Link TL-WR741N/ND v4"; |
||
12 | |||
13 | aliases { |
||
14 | serial0 = &uart; |
||
15 | led-boot = &system; |
||
16 | led-failsafe = &system; |
||
17 | led-running = &system; |
||
18 | led-upgrade = &system; |
||
19 | }; |
||
20 | |||
21 | keys { |
||
22 | compatible = "gpio-keys-polled"; |
||
23 | poll-interval = <20>; |
||
24 | |||
25 | reset { |
||
26 | label = "reset"; |
||
27 | linux,code = <KEY_RESTART>; |
||
28 | gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; |
||
29 | debounce-interval = <60>; |
||
30 | }; |
||
31 | |||
32 | wps { |
||
33 | label = "wps"; |
||
34 | linux,code = <KEY_WPS_BUTTON>; |
||
35 | gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; |
||
36 | debounce-interval = <60>; |
||
37 | }; |
||
38 | }; |
||
39 | |||
40 | leds { |
||
41 | compatible = "gpio-leds"; |
||
42 | pinctrl-names = "default"; |
||
43 | pinctrl-0 = <&switch_led_pins>; |
||
44 | |||
45 | lan1 { |
||
46 | label = "tp-link:green:lan1"; |
||
47 | gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; |
||
48 | }; |
||
49 | |||
50 | lan2 { |
||
51 | label = "tp-link:green:lan2"; |
||
52 | gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; |
||
53 | }; |
||
54 | |||
55 | lan3 { |
||
56 | label = "tp-link:green:lan3"; |
||
57 | gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; |
||
58 | }; |
||
59 | |||
60 | lan4 { |
||
61 | label = "tp-link:green:lan4"; |
||
62 | gpios = <&gpio 17 GPIO_ACTIVE_LOW>; |
||
63 | }; |
||
64 | |||
65 | qss { |
||
66 | label = "tp-link:green:qss"; |
||
67 | gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; |
||
68 | }; |
||
69 | |||
70 | system: system { |
||
71 | label = "tp-link:green:system"; |
||
72 | gpios = <&gpio 27 GPIO_ACTIVE_LOW>; |
||
73 | }; |
||
74 | |||
75 | wan { |
||
76 | label = "tp-link:green:wan"; |
||
77 | gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; |
||
78 | }; |
||
79 | |||
80 | wlan { |
||
81 | label = "tp-link:green:wlan"; |
||
82 | gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; |
||
83 | linux,default-trigger = "phy0tpt"; |
||
84 | }; |
||
85 | }; |
||
86 | }; |
||
87 | |||
88 | &spi { |
||
89 | status = "okay"; |
||
90 | num-cs = <1>; |
||
91 | |||
92 | flash@0 { |
||
93 | compatible = "jedec,spi-nor"; |
||
94 | reg = <0>; |
||
95 | spi-max-frequency = <25000000>; |
||
96 | |||
97 | partitions { |
||
98 | compatible = "fixed-partitions"; |
||
99 | #address-cells = <1>; |
||
100 | #size-cells = <1>; |
||
101 | |||
102 | uboot: partition@0 { |
||
103 | reg = <0x0 0x20000>; |
||
104 | label = "u-boot"; |
||
105 | read-only; |
||
106 | }; |
||
107 | |||
108 | firmware: partition@20000 { |
||
109 | compatible = "tplink,firmware"; |
||
110 | reg = <0x20000 0x3d0000>; |
||
111 | label = "firmware"; |
||
112 | }; |
||
113 | |||
114 | art: partition@3f0000 { |
||
115 | reg = <0x3f0000 0x10000>; |
||
116 | label = "art"; |
||
117 | read-only; |
||
118 | }; |
||
119 | }; |
||
120 | }; |
||
121 | }; |
||
122 | |||
123 | ð0 { |
||
124 | status = "okay"; |
||
125 | |||
126 | mtd-mac-address = <&uboot 0x1fc00>; |
||
127 | mtd-mac-address-increment = <1>; |
||
128 | |||
129 | gmac-config { |
||
130 | device = <&gmac>; |
||
131 | |||
132 | switch-phy-addr-swap = <1>; |
||
133 | switch-phy-swap = <1>; |
||
134 | }; |
||
135 | }; |
||
136 | |||
137 | ð1 { |
||
138 | status = "okay"; |
||
139 | |||
140 | mtd-mac-address = <&uboot 0x1fc00>; |
||
141 | mtd-mac-address-increment = <(-1)>; |
||
142 | }; |
||
143 | |||
144 | &gpio { |
||
145 | status = "okay"; |
||
146 | }; |
||
147 | |||
148 | &uart { |
||
149 | status = "okay"; |
||
150 | }; |
||
151 | |||
152 | &wmac { |
||
153 | status = "okay"; |
||
154 | mtd-cal-data = <&art 0x1000>; |
||
155 | mtd-mac-address = <&uboot 0x1fc00>; |
||
156 | }; |