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 "qca953x.dtsi" |
||
8 | |||
9 | / { |
||
10 | chosen { |
||
11 | bootargs = "console=ttyS0,115200n8"; |
||
12 | }; |
||
13 | |||
14 | gpio_leds: leds { |
||
15 | compatible = "gpio-leds"; |
||
16 | |||
17 | wifi { |
||
18 | label = "tp-link:green:wlan"; |
||
19 | gpios = <&gpio 13 GPIO_ACTIVE_LOW>; |
||
20 | linux,default-trigger = "phy0tpt"; |
||
21 | }; |
||
22 | |||
23 | qss_led: qss { |
||
24 | label = "tp-link:green:qss"; |
||
25 | gpios = <&gpio 3 GPIO_ACTIVE_LOW>; |
||
26 | }; |
||
27 | |||
28 | wan { |
||
29 | label = "tp-link:green:wan"; |
||
30 | gpios = <&gpio 4 GPIO_ACTIVE_LOW>; |
||
31 | }; |
||
32 | |||
33 | lan1 { |
||
34 | label = "tp-link:green:lan1"; |
||
35 | gpios = <&gpio 16 GPIO_ACTIVE_LOW>; |
||
36 | }; |
||
37 | |||
38 | lan2 { |
||
39 | label = "tp-link:green:lan2"; |
||
40 | gpios = <&gpio 15 GPIO_ACTIVE_LOW>; |
||
41 | }; |
||
42 | |||
43 | lan3 { |
||
44 | label = "tp-link:green:lan3"; |
||
45 | gpios = <&gpio 14 GPIO_ACTIVE_LOW>; |
||
46 | }; |
||
47 | |||
48 | lan4 { |
||
49 | label = "tp-link:green:lan4"; |
||
50 | gpios = <&gpio 11 GPIO_ACTIVE_LOW>; |
||
51 | }; |
||
52 | }; |
||
53 | |||
54 | keys { |
||
55 | compatible = "gpio-keys"; |
||
56 | |||
57 | reset { |
||
58 | label = "Reset button"; |
||
59 | linux,code = <KEY_RESTART>; |
||
60 | gpios = <&gpio 12 GPIO_ACTIVE_LOW>; |
||
61 | debounce-interval = <60>; |
||
62 | }; |
||
63 | |||
64 | rfkill { |
||
65 | label = "RFKILL button"; |
||
66 | linux,code = <KEY_RFKILL>; |
||
67 | gpios = <&gpio 17 GPIO_ACTIVE_LOW>; |
||
68 | debounce-interval = <60>; |
||
69 | }; |
||
70 | }; |
||
71 | }; |
||
72 | |||
73 | &uart { |
||
74 | status = "okay"; |
||
75 | }; |
||
76 | |||
77 | &spi { |
||
78 | status = "okay"; |
||
79 | num-cs = <1>; |
||
80 | |||
81 | flash@0 { |
||
82 | compatible = "jedec,spi-nor"; |
||
83 | reg = <0>; |
||
84 | spi-max-frequency = <25000000>; |
||
85 | |||
86 | partitions { |
||
87 | compatible = "fixed-partitions"; |
||
88 | #address-cells = <1>; |
||
89 | #size-cells = <1>; |
||
90 | |||
91 | uboot: partition@0 { |
||
92 | label = "u-boot"; |
||
93 | reg = <0x000000 0x020000>; |
||
94 | read-only; |
||
95 | }; |
||
96 | |||
97 | partition@20000 { |
||
98 | compatible = "tplink,firmware"; |
||
99 | label = "firmware"; |
||
100 | reg = <0x020000 0x3d0000>; |
||
101 | }; |
||
102 | |||
103 | art: partition@3f0000 { |
||
104 | label = "art"; |
||
105 | reg = <0x3f0000 0x010000>; |
||
106 | read-only; |
||
107 | }; |
||
108 | }; |
||
109 | }; |
||
110 | }; |
||
111 | |||
112 | ð1 { |
||
113 | mtd-mac-address = <&uboot 0x1fc00>; |
||
114 | }; |
||
115 | |||
116 | ð0 { |
||
117 | status = "okay"; |
||
118 | phy-handle = <&swphy4>; |
||
119 | |||
120 | mtd-mac-address = <&uboot 0x1fc00>; |
||
121 | mtd-mac-address-increment = <1>; |
||
122 | }; |
||
123 | |||
124 | &wmac { |
||
125 | status = "okay"; |
||
126 | mtd-cal-data = <&art 0x1000>; |
||
127 | mtd-mac-address = <&uboot 0x1fc00>; |
||
128 | }; |