Merge tag 'csky-for-linus-4.21' of git://github.com/c-sky/csky-linux
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / bcm47189-tenda-ac9.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 "bcm53573.dtsi"
9
10 / {
11         compatible = "tenda,ac9", "brcm,bcm47189", "brcm,bcm53573";
12         model = "Tenda AC9";
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                 usb {
26                         label = "bcm53xx:blue:usb";
27                         gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
28                         trigger-sources = <&ohci_port1>, <&ehci_port1>;
29                         linux,default-trigger = "usbport";
30                 };
31
32                 wps {
33                         label = "bcm53xx:blue:wps";
34                         gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
35                 };
36
37                 5ghz {
38                         label = "bcm53xx:blue:5ghz";
39                         gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
40                 };
41
42                 system {
43                         label = "bcm53xx:blue:system";
44                         gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
45                         linux,default-trigger = "timer";
46                 };
47         };
48
49         pcie0_leds {
50                 compatible = "gpio-leds";
51
52                 2ghz {
53                         label = "bcm53xx:blue:2ghz";
54                         gpios = <&pcie0_chipcommon 3 GPIO_ACTIVE_HIGH>;
55                 };
56         };
57
58         gpio-keys {
59                 compatible = "gpio-keys";
60                 #address-cells = <1>;
61                 #size-cells = <0>;
62
63                 rfkill {
64                         label = "WiFi";
65                         linux,code = <KEY_RFKILL>;
66                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
67                 };
68
69                 restart {
70                         label = "Reset";
71                         linux,code = <KEY_RESTART>;
72                         gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
73                 };
74
75                 wps {
76                         label = "WPS";
77                         linux,code = <KEY_WPS_BUTTON>;
78                         gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
79                 };
80         };
81 };
82
83 &pcie0 {
84         ranges = <0x00000000 0 0 0 0 0x00100000>;
85         #address-cells = <3>;
86         #size-cells = <2>;
87
88         bridge@0,0,0 {
89                 reg = <0x0000 0 0 0 0>;
90                 ranges = <0x00000000 0 0 0 0 0 0 0x00100000>;
91                 #address-cells = <3>;
92                 #size-cells = <2>;
93
94                 wifi@0,1,0 {
95                         reg = <0x0000 0 0 0 0>;
96                         ranges = <0x00000000 0 0 0 0x00100000>;
97                         #address-cells = <1>;
98                         #size-cells = <1>;
99
100                         pcie0_chipcommon: chipcommon@0 {
101                                 reg = <0 0x1000>;
102
103                                 gpio-controller;
104                                 #gpio-cells = <2>;
105                         };
106                 };
107         };
108 };