]>
Commit | Line | Data |
---|---|---|
a5fcc652 AB |
1 | /dts-v1/; |
2 | ||
3 | #include <dt-bindings/gpio/gpio.h> | |
4 | #include <dt-bindings/input/input.h> | |
5 | ||
6 | #include "ar9132.dtsi" | |
7 | ||
8 | / { | |
9 | compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132"; | |
10 | model = "TP-Link TL-WR1043ND Version 1"; | |
11 | ||
12 | alias { | |
13 | serial0 = "/ahb/apb/uart@18020000"; | |
14 | }; | |
15 | ||
16 | memory@0 { | |
17 | device_type = "memory"; | |
18 | reg = <0x0 0x2000000>; | |
19 | }; | |
20 | ||
f7f797cf | 21 | extosc: ref { |
a5fcc652 AB |
22 | compatible = "fixed-clock"; |
23 | #clock-cells = <0>; | |
24 | clock-frequency = <40000000>; | |
25 | }; | |
26 | ||
27 | ahb { | |
28 | apb { | |
29 | uart@18020000 { | |
30 | status = "okay"; | |
31 | }; | |
32 | ||
33 | pll-controller@18050000 { | |
34 | clocks = <&extosc>; | |
35 | }; | |
36 | }; | |
37 | ||
76654c7b AB |
38 | usb@1b000100 { |
39 | status = "okay"; | |
40 | }; | |
41 | ||
a5fcc652 AB |
42 | spi@1f000000 { |
43 | status = "okay"; | |
44 | num-cs = <1>; | |
45 | ||
46 | flash@0 { | |
47 | #address-cells = <1>; | |
48 | #size-cells = <1>; | |
49 | compatible = "s25sl064a"; | |
50 | reg = <0>; | |
51 | spi-max-frequency = <25000000>; | |
52 | ||
53 | partition@0 { | |
54 | label = "u-boot"; | |
55 | reg = <0x000000 0x020000>; | |
56 | }; | |
57 | ||
58 | partition@1 { | |
59 | label = "firmware"; | |
60 | reg = <0x020000 0x7D0000>; | |
61 | }; | |
62 | ||
63 | partition@2 { | |
64 | label = "art"; | |
65 | reg = <0x7F0000 0x010000>; | |
66 | read-only; | |
67 | }; | |
68 | }; | |
69 | }; | |
70 | }; | |
71 | ||
76654c7b AB |
72 | usb-phy { |
73 | status = "okay"; | |
74 | }; | |
75 | ||
a5fcc652 AB |
76 | gpio-keys { |
77 | compatible = "gpio-keys-polled"; | |
78 | #address-cells = <1>; | |
79 | #size-cells = <0>; | |
80 | ||
81 | poll-interval = <20>; | |
82 | button@0 { | |
83 | label = "reset"; | |
84 | linux,code = <KEY_RESTART>; | |
85 | gpios = <&gpio 3 GPIO_ACTIVE_LOW>; | |
86 | debounce-interval = <60>; | |
87 | }; | |
88 | ||
89 | button@1 { | |
90 | label = "qss"; | |
91 | linux,code = <KEY_WPS_BUTTON>; | |
92 | gpios = <&gpio 7 GPIO_ACTIVE_LOW>; | |
93 | debounce-interval = <60>; | |
94 | }; | |
95 | }; | |
96 | ||
97 | leds { | |
98 | compatible = "gpio-leds"; | |
99 | led@0 { | |
100 | label = "tp-link:green:usb"; | |
101 | gpios = <&gpio 1 GPIO_ACTIVE_LOW>; | |
102 | }; | |
103 | ||
104 | led@1 { | |
105 | label = "tp-link:green:system"; | |
106 | gpios = <&gpio 2 GPIO_ACTIVE_LOW>; | |
107 | linux,default-trigger = "heartbeat"; | |
108 | }; | |
109 | ||
110 | led@2 { | |
111 | label = "tp-link:green:qss"; | |
112 | gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; | |
113 | }; | |
114 | ||
115 | led@3 { | |
116 | label = "tp-link:green:wlan"; | |
117 | gpios = <&gpio 9 GPIO_ACTIVE_LOW>; | |
118 | }; | |
119 | }; | |
120 | }; |