blob: f7f834cd3448d0b4f7ea54869285a50f9455d409 [file] [log] [blame]
Rafał Miłecki2b3db672018-05-02 16:11:02 +02001// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
Rafał Miłecki691917f2015-05-13 09:10:53 +02002/*
3 * Broadcom BCM470X / BCM5301X arm platform code.
4 * DTS for SmartRG SR400ac
5 *
6 * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
Rafał Miłecki691917f2015-05-13 09:10:53 +02007 */
8
9/dts-v1/;
10
11#include "bcm4708.dtsi"
Hauke Mehrtens9faa5962015-05-29 23:39:47 +020012#include "bcm5301x-nand-cs0-bch8.dtsi"
Rafał Miłecki691917f2015-05-13 09:10:53 +020013
14/ {
15 compatible = "smartrg,sr400ac", "brcm,bcm4708";
16 model = "SmartRG SR400ac";
17
18 chosen {
Rafał Miłecki5a6516f2016-04-06 18:49:55 +020019 bootargs = "console=ttyS0,115200 earlycon";
Rafał Miłecki691917f2015-05-13 09:10:53 +020020 };
21
22 memory {
Rafał Miłeckia252ccd32016-12-07 08:56:54 +010023 reg = <0x00000000 0x08000000
24 0x88000000 0x08000000>;
Rafał Miłecki691917f2015-05-13 09:10:53 +020025 };
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>;
Rafał Miłecki691917f2015-05-13 09:10:53 +020039 };
40
41 usb2 {
42 label = "bcm53xx:white:usb2";
43 gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
Rafał Miłecki0b1f1102017-08-02 06:40:41 +020044 trigger-sources = <&ohci_port2>, <&ehci_port2>;
45 linux,default-trigger = "usbport";
Rafał Miłecki691917f2015-05-13 09:10:53 +020046 };
47
48 usb3-white {
49 label = "bcm53xx:white:usb3";
50 gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
Rafał Miłecki0b1f1102017-08-02 06:40:41 +020051 trigger-sources = <&xhci_port1>;
52 linux,default-trigger = "usbport";
Rafał Miłecki691917f2015-05-13 09:10:53 +020053 };
54
55 usb3-green {
56 label = "bcm53xx:green:usb3";
57 gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
Rafał Miłecki0b1f1102017-08-02 06:40:41 +020058 trigger-sources = <&ohci_port1>, <&ehci_port1>;
59 linux,default-trigger = "usbport";
Rafał Miłecki691917f2015-05-13 09:10:53 +020060 };
61
62 wps {
63 label = "bcm53xx:white:wps";
64 gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
Rafał Miłecki691917f2015-05-13 09:10:53 +020065 };
66
67 status-red {
68 label = "bcm53xx:red:status";
69 gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
Rafał Miłecki691917f2015-05-13 09:10:53 +020070 };
71
72 status-green {
73 label = "bcm53xx:green:status";
74 gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
Rafał Miłecki691917f2015-05-13 09:10:53 +020075 };
76
77 status-blue {
78 label = "bcm53xx:blue:status";
79 gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
Rafał Miłecki691917f2015-05-13 09:10:53 +020080 };
81
82 wan-white {
83 label = "bcm53xx:white:wan";
84 gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
Rafał Miłecki691917f2015-05-13 09:10:53 +020085 };
86
87 wan-red {
88 label = "bcm53xx:red:wan";
89 gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
Rafał Miłecki691917f2015-05-13 09:10:53 +020090 };
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};
Rafał Miłecki0dfc7f62015-06-29 07:22:16 +0200117
Rafał Miłecki1b47b982016-04-19 08:56:46 +0200118&spi_nor {
119 status = "okay";
120};
Florian Fainelli2df18082016-05-25 16:55:35 -0700121
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};
Vivek Unune37f6130e2018-04-09 18:31:53 -0400161
162&usb3_phy {
163 status = "okay";
164};