Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / bcm4709-tplink-archer-c9-v1.dts
1 /*
2  * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
3  *
4  * Licensed under the ISC license.
5  */
6
7 /dts-v1/;
8
9 #include "bcm4709.dtsi"
10
11 / {
12         compatible = "tplink,archer-c9-v1", "brcm,bcm4709", "brcm,bcm4708";
13         model = "TP-LINK Archer C9 V1";
14
15         chosen {
16                 bootargs = "console=ttyS0,115200 earlycon";
17         };
18
19         memory {
20                 reg = <0x00000000 0x08000000>;
21         };
22
23         leds {
24                 compatible = "gpio-leds";
25
26                 lan {
27                         label = "bcm53xx:blue:lan";
28                         gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
29                         linux,default-trigger = "default-off";
30                 };
31
32                 wps {
33                         label = "bcm53xx:blue:wps";
34                         gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
35                         linux,default-trigger = "default-off";
36                 };
37
38                 2ghz {
39                         label = "bcm53xx:blue:2ghz";
40                         gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
41                         linux,default-trigger = "default-off";
42                 };
43
44                 5ghz {
45                         label = "bcm53xx:blue:5ghz";
46                         gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
47                         linux,default-trigger = "default-off";
48                 };
49
50                 usb3 {
51                         label = "bcm53xx:blue:usb3";
52                         gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
53                         linux,default-trigger = "default-off";
54                 };
55
56                 usb2 {
57                         label = "bcm53xx:blue:usb2";
58                         gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
59                         linux,default-trigger = "default-off";
60                 };
61
62                 wan-blue {
63                         label = "bcm53xx:blue:wan";
64                         gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
65                         linux,default-trigger = "default-off";
66                 };
67
68                 wan-amber {
69                         label = "bcm53xx:amber:wan";
70                         gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
71                         linux,default-trigger = "default-off";
72                 };
73
74                 power {
75                         label = "bcm53xx:blue:power";
76                         gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
77                         linux,default-trigger = "default-on";
78                 };
79         };
80
81         gpio-keys {
82                 compatible = "gpio-keys";
83                 #address-cells = <1>;
84                 #size-cells = <0>;
85
86                 wps {
87                         label = "WPS";
88                         linux,code = <KEY_WPS_BUTTON>;
89                         gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
90                 };
91
92                 restart {
93                         label = "Reset";
94                         linux,code = <KEY_RESTART>;
95                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
96                 };
97         };
98 };
99
100 &usb2 {
101         vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
102 };
103
104 &usb3 {
105         vcc-gpio = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
106 };
107
108 &spi_nor {
109         status = "okay";
110 };