]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
Merge tag 'sunxi-dt-h3-for-4.12' of https://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / arch / arm / boot / dts / bcm47081-tplink-archer-c5-v2.dts
1 /*
2  * Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
3  *
4  * Licensed under the ISC license.
5  */
6
7 /dts-v1/;
8
9 #include "bcm47081.dtsi"
10
11 / {
12         compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708";
13         model = "TP-LINK Archer C5 V2";
14
15         chosen {
16                 bootargs = "earlycon";
17         };
18
19         memory {
20                 reg = <0x00000000 0x08000000>;
21         };
22
23         leds {
24                 compatible = "gpio-leds";
25
26                 2ghz {
27                         label = "bcm53xx:green:2ghz";
28                         gpios = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
29                 };
30
31                 lan {
32                         label = "bcm53xx:green:lan";
33                         gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
34                 };
35
36                 usb2-port1 {
37                         label = "bcm53xx:green:usb2-port1";
38                         gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
39                 };
40
41                 power {
42                         label = "bcm53xx:green:power";
43                         gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
44                         linux,default-trigger = "default-on";
45                 };
46
47                 wan-green {
48                         label = "bcm53xx:green:wan";
49                         gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
50                 };
51
52                 wps {
53                         label = "bcm53xx:green:wps";
54                         gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
55                 };
56
57                 wan-amber {
58                         label = "bcm53xx:amber:wan";
59                         gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
60                 };
61
62                 5ghz {
63                         label = "bcm53xx:green:5ghz";
64                         gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
65                 };
66
67                 usb2-port2 {
68                         label = "bcm53xx:green:usb2-port2";
69                         gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
70                 };
71         };
72
73         gpio-keys {
74                 compatible = "gpio-keys";
75                 #address-cells = <1>;
76                 #size-cells = <0>;
77
78                 rfkill {
79                         label = "WiFi";
80                         linux,code = <KEY_RFKILL>;
81                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
82                 };
83
84                 restart {
85                         label = "Reset";
86                         linux,code = <KEY_RESTART>;
87                         gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
88                 };
89         };
90 };
91
92 &spi_nor {
93         status = "okay";
94 };
95
96 &usb2 {
97         vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
98 };