Merge branch 'etnaviv/fixes' of https://git.pengutronix.de/git/lst/linux into drm...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / bcm4709-tplink-archer-c9-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /*
3  * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
4  */
5
6 /dts-v1/;
7
8 #include "bcm4709.dtsi"
9
10 / {
11         compatible = "tplink,archer-c9-v1", "brcm,bcm4709", "brcm,bcm4708";
12         model = "TP-LINK Archer C9 V1";
13
14         chosen {
15                 bootargs = "console=ttyS0,115200 earlycon";
16         };
17
18         memory {
19                 reg = <0x00000000 0x08000000>;
20         };
21
22         leds {
23                 compatible = "gpio-leds";
24
25                 lan {
26                         label = "bcm53xx:blue:lan";
27                         gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
28                 };
29
30                 wps {
31                         label = "bcm53xx:blue:wps";
32                         gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
33                 };
34
35                 2ghz {
36                         label = "bcm53xx:blue:2ghz";
37                         gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
38                 };
39
40                 5ghz {
41                         label = "bcm53xx:blue:5ghz";
42                         gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
43                 };
44
45                 usb3 {
46                         label = "bcm53xx:blue:usb3";
47                         gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
48                         trigger-sources = <&ohci_port1>, <&ehci_port1>,
49                                           <&xhci_port1>;
50                         linux,default-trigger = "usbport";
51                 };
52
53                 usb2 {
54                         label = "bcm53xx:blue:usb2";
55                         gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
56                         trigger-sources = <&ohci_port2>, <&ehci_port2>;
57                         linux,default-trigger = "usbport";
58                 };
59
60                 wan-blue {
61                         label = "bcm53xx:blue:wan";
62                         gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
63                 };
64
65                 wan-amber {
66                         label = "bcm53xx:amber:wan";
67                         gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
68                 };
69
70                 power {
71                         label = "bcm53xx:blue:power";
72                         gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
73                         linux,default-trigger = "default-on";
74                 };
75         };
76
77         gpio-keys {
78                 compatible = "gpio-keys";
79                 #address-cells = <1>;
80                 #size-cells = <0>;
81
82                 wps {
83                         label = "WPS";
84                         linux,code = <KEY_WPS_BUTTON>;
85                         gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
86                 };
87
88                 restart {
89                         label = "Reset";
90                         linux,code = <KEY_RESTART>;
91                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
92                 };
93         };
94 };
95
96 &usb2 {
97         vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
98 };
99
100 &usb3 {
101         vcc-gpio = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
102 };
103
104 &spi_nor {
105         status = "okay";
106
107         partitions {
108                 compatible = "fixed-partitions";
109                 #address-cells = <1>;
110                 #size-cells = <1>;
111
112                 boot@0 {
113                         label = "boot";
114                         reg = <0x000000 0x040000>;
115                         read-only;
116                 };
117
118                 os-image@100000 {
119                         label = "os-image";
120                         reg = <0x040000 0x200000>;
121                         compatible = "brcm,trx";
122                 };
123
124                 rootfs@240000 {
125                         label = "rootfs";
126                         reg = <0x240000 0xc00000>;
127                 };
128
129                 nvram@ff0000 {
130                         label = "nvram";
131                         reg = <0xff0000 0x010000>;
132                 };
133         };
134 };
135
136 &usb3_phy {
137         status = "okay";
138 };