]>
Commit | Line | Data |
---|---|---|
2b3db67c | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
d6661da8 RM |
2 | /* |
3 | * Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl> | |
d6661da8 RM |
4 | */ |
5 | ||
6 | /dts-v1/; | |
7 | ||
8 | #include "bcm47081.dtsi" | |
9 | ||
10 | / { | |
11 | compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708"; | |
12 | model = "TP-LINK Archer C5 V2"; | |
13 | ||
14 | chosen { | |
15 | bootargs = "earlycon"; | |
16 | }; | |
17 | ||
18 | memory { | |
19 | reg = <0x00000000 0x08000000>; | |
20 | }; | |
21 | ||
22 | leds { | |
23 | compatible = "gpio-leds"; | |
24 | ||
25 | 2ghz { | |
26 | label = "bcm53xx:green:2ghz"; | |
27 | gpios = <&chipcommon 0 GPIO_ACTIVE_HIGH>; | |
28 | }; | |
29 | ||
30 | lan { | |
31 | label = "bcm53xx:green:lan"; | |
32 | gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>; | |
33 | }; | |
34 | ||
35 | usb2-port1 { | |
36 | label = "bcm53xx:green:usb2-port1"; | |
37 | gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>; | |
0b1f1100 RM |
38 | trigger-sources = <&ohci_port1>, <&ehci_port1>; |
39 | linux,default-trigger = "usbport"; | |
d6661da8 RM |
40 | }; |
41 | ||
42 | power { | |
43 | label = "bcm53xx:green:power"; | |
44 | gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>; | |
45 | linux,default-trigger = "default-on"; | |
46 | }; | |
47 | ||
48 | wan-green { | |
49 | label = "bcm53xx:green:wan"; | |
50 | gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; | |
51 | }; | |
52 | ||
53 | wps { | |
54 | label = "bcm53xx:green:wps"; | |
55 | gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>; | |
56 | }; | |
57 | ||
58 | wan-amber { | |
59 | label = "bcm53xx:amber:wan"; | |
60 | gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>; | |
61 | }; | |
62 | ||
63 | 5ghz { | |
64 | label = "bcm53xx:green:5ghz"; | |
65 | gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>; | |
66 | }; | |
67 | ||
68 | usb2-port2 { | |
69 | label = "bcm53xx:green:usb2-port2"; | |
70 | gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>; | |
0b1f1100 RM |
71 | trigger-sources = <&ohci_port2>, <&ehci_port2>; |
72 | linux,default-trigger = "usbport"; | |
d6661da8 RM |
73 | }; |
74 | }; | |
75 | ||
76 | gpio-keys { | |
77 | compatible = "gpio-keys"; | |
78 | #address-cells = <1>; | |
79 | #size-cells = <0>; | |
80 | ||
81 | rfkill { | |
82 | label = "WiFi"; | |
83 | linux,code = <KEY_RFKILL>; | |
84 | gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; | |
85 | }; | |
86 | ||
87 | restart { | |
88 | label = "Reset"; | |
89 | linux,code = <KEY_RESTART>; | |
90 | gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; | |
91 | }; | |
92 | }; | |
93 | }; | |
94 | ||
95 | &spi_nor { | |
96 | status = "okay"; | |
97 | }; | |
98 | ||
99 | &usb2 { | |
100 | vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>; | |
101 | }; |