GNU Linux-libre 4.19.264-gnu1
[releases.git] / arch / arm / boot / dts / bcm4708-smartrg-sr400ac.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /*
3  * Broadcom BCM470X / BCM5301X arm platform code.
4  * DTS for SmartRG SR400ac
5  *
6  * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
7  */
8
9 /dts-v1/;
10
11 #include "bcm4708.dtsi"
12 #include "bcm5301x-nand-cs0-bch8.dtsi"
13
14 / {
15         compatible = "smartrg,sr400ac", "brcm,bcm4708";
16         model = "SmartRG SR400ac";
17
18         chosen {
19                 bootargs = "console=ttyS0,115200 earlycon";
20         };
21
22         memory {
23                 reg = <0x00000000 0x08000000
24                        0x88000000 0x08000000>;
25         };
26
27         leds {
28                 compatible = "gpio-leds";
29
30                 power-white {
31                         label = "bcm53xx:white:power";
32                         gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
33                         linux,default-trigger = "default-on";
34                 };
35
36                 power-amber {
37                         label = "bcm53xx:amber:power";
38                         gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
39                 };
40
41                 usb2 {
42                         label = "bcm53xx:white:usb2";
43                         gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
44                         trigger-sources = <&ohci_port2>, <&ehci_port2>;
45                         linux,default-trigger = "usbport";
46                 };
47
48                 usb3-white {
49                         label = "bcm53xx:white:usb3";
50                         gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
51                         trigger-sources = <&xhci_port1>;
52                         linux,default-trigger = "usbport";
53                 };
54
55                 usb3-green {
56                         label = "bcm53xx:green:usb3";
57                         gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
58                         trigger-sources = <&ohci_port1>, <&ehci_port1>;
59                         linux,default-trigger = "usbport";
60                 };
61
62                 wps {
63                         label = "bcm53xx:white:wps";
64                         gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
65                 };
66
67                 status-red {
68                         label = "bcm53xx:red:status";
69                         gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
70                 };
71
72                 status-green {
73                         label = "bcm53xx:green:status";
74                         gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
75                 };
76
77                 status-blue {
78                         label = "bcm53xx:blue:status";
79                         gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
80                 };
81
82                 wan-white {
83                         label = "bcm53xx:white:wan";
84                         gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
85                 };
86
87                 wan-red {
88                         label = "bcm53xx:red:wan";
89                         gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
90                 };
91         };
92
93         gpio-keys {
94                 compatible = "gpio-keys";
95                 #address-cells = <1>;
96                 #size-cells = <0>;
97
98                 rfkill {
99                         label = "WiFi";
100                         linux,code = <KEY_RFKILL>;
101                         gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
102                 };
103
104                 wps {
105                         label = "WPS";
106                         linux,code = <KEY_WPS_BUTTON>;
107                         gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
108                 };
109
110                 restart {
111                         label = "Reset";
112                         linux,code = <KEY_RESTART>;
113                         gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
114                 };
115         };
116 };
117
118 &spi_nor {
119         status = "okay";
120 };
121
122 &srab {
123         status = "okay";
124
125         ports {
126                 #address-cells = <1>;
127                 #size-cells = <0>;
128
129                 port@0 {
130                         reg = <0>;
131                         label = "lan4";
132                 };
133
134                 port@1 {
135                         reg = <1>;
136                         label = "lan3";
137                 };
138
139                 port@2 {
140                         reg = <2>;
141                         label = "lan2";
142                 };
143
144                 port@3 {
145                         reg = <3>;
146                         label = "lan1";
147                 };
148
149                 port@4 {
150                         reg = <4>;
151                         label = "wan";
152                 };
153
154                 port@5 {
155                         reg = <5>;
156                         label = "cpu";
157                         ethernet = <&gmac0>;
158                 };
159         };
160 };
161
162 &usb3_phy {
163         status = "okay";
164 };