Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003  * Broadcom BCM470X / BCM5301X arm platform code.
0004  * DTS for SmartRG SR400ac
0005  *
0006  * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
0007  */
0008 
0009 /dts-v1/;
0010 
0011 #include "bcm4708.dtsi"
0012 #include "bcm5301x-nand-cs0-bch8.dtsi"
0013 
0014 / {
0015         compatible = "smartrg,sr400ac", "brcm,bcm4708";
0016         model = "SmartRG SR400ac";
0017 
0018         chosen {
0019                 bootargs = "console=ttyS0,115200 earlycon";
0020         };
0021 
0022         memory@0 {
0023                 device_type = "memory";
0024                 reg = <0x00000000 0x08000000>,
0025                       <0x88000000 0x08000000>;
0026         };
0027 
0028         leds {
0029                 compatible = "gpio-leds";
0030 
0031                 power-white {
0032                         label = "bcm53xx:white:power";
0033                         gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
0034                         linux,default-trigger = "default-on";
0035                 };
0036 
0037                 power-amber {
0038                         label = "bcm53xx:amber:power";
0039                         gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
0040                 };
0041 
0042                 usb2 {
0043                         label = "bcm53xx:white:usb2";
0044                         gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
0045                         trigger-sources = <&ohci_port2>, <&ehci_port2>;
0046                         linux,default-trigger = "usbport";
0047                 };
0048 
0049                 usb3-white {
0050                         label = "bcm53xx:white:usb3";
0051                         gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
0052                         trigger-sources = <&xhci_port1>;
0053                         linux,default-trigger = "usbport";
0054                 };
0055 
0056                 usb3-green {
0057                         label = "bcm53xx:green:usb3";
0058                         gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
0059                         trigger-sources = <&ohci_port1>, <&ehci_port1>;
0060                         linux,default-trigger = "usbport";
0061                 };
0062 
0063                 wps {
0064                         label = "bcm53xx:white:wps";
0065                         gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
0066                 };
0067 
0068                 status-red {
0069                         label = "bcm53xx:red:status";
0070                         gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
0071                 };
0072 
0073                 status-green {
0074                         label = "bcm53xx:green:status";
0075                         gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
0076                 };
0077 
0078                 status-blue {
0079                         label = "bcm53xx:blue:status";
0080                         gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
0081                 };
0082 
0083                 wan-white {
0084                         label = "bcm53xx:white:wan";
0085                         gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
0086                 };
0087 
0088                 wan-red {
0089                         label = "bcm53xx:red:wan";
0090                         gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
0091                 };
0092         };
0093 
0094         gpio-keys {
0095                 compatible = "gpio-keys";
0096 
0097                 button-rfkill {
0098                         label = "WiFi";
0099                         linux,code = <KEY_RFKILL>;
0100                         gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
0101                 };
0102 
0103                 button-wps {
0104                         label = "WPS";
0105                         linux,code = <KEY_WPS_BUTTON>;
0106                         gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
0107                 };
0108 
0109                 button-restart {
0110                         label = "Reset";
0111                         linux,code = <KEY_RESTART>;
0112                         gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
0113                 };
0114         };
0115 };
0116 
0117 &spi_nor {
0118         status = "okay";
0119 };
0120 
0121 &srab {
0122         status = "okay";
0123 
0124         ports {
0125                 port@0 {
0126                         reg = <0>;
0127                         label = "lan4";
0128                 };
0129 
0130                 port@1 {
0131                         reg = <1>;
0132                         label = "lan3";
0133                 };
0134 
0135                 port@2 {
0136                         reg = <2>;
0137                         label = "lan2";
0138                 };
0139 
0140                 port@3 {
0141                         reg = <3>;
0142                         label = "lan1";
0143                 };
0144 
0145                 port@4 {
0146                         reg = <4>;
0147                         label = "wan";
0148                 };
0149 
0150                 port@5 {
0151                         reg = <5>;
0152                         label = "cpu";
0153                         ethernet = <&gmac0>;
0154                 };
0155         };
0156 };
0157 
0158 &usb3_phy {
0159         status = "okay";
0160 };