Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003  * Copyright 2016 Luxul Inc.
0004  */
0005 
0006 /dts-v1/;
0007 
0008 #include "bcm47094.dtsi"
0009 #include "bcm5301x-nand-cs0-bch4.dtsi"
0010 
0011 / {
0012         compatible = "luxul,xwr-3100v1", "brcm,bcm47094", "brcm,bcm4708";
0013         model = "Luxul XWR-3100 V1";
0014 
0015         chosen {
0016                 bootargs = "console=ttyS0,115200 earlycon";
0017         };
0018 
0019         memory@0 {
0020                 device_type = "memory";
0021                 reg = <0x00000000 0x08000000>,
0022                       <0x88000000 0x08000000>;
0023         };
0024 
0025         nvram@1eff0000 {
0026                 compatible = "brcm,nvram";
0027                 reg = <0x1eff0000 0x10000>;
0028         };
0029 
0030         leds {
0031                 compatible = "gpio-leds";
0032 
0033                 power   {
0034                         label = "bcm53xx:green:power";
0035                         gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
0036                         linux,default-trigger = "default-on";
0037                 };
0038 
0039                 lan3    {
0040                         label = "bcm53xx:green:lan3";
0041                         gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
0042                 };
0043 
0044                 lan4    {
0045                         label = "bcm53xx:green:lan4";
0046                         gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
0047                 };
0048 
0049                 wan     {
0050                         label = "bcm53xx:green:wan";
0051                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
0052                 };
0053 
0054                 lan1    {
0055                         label = "bcm53xx:green:lan1";
0056                         gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
0057                 };
0058 
0059                 lan2    {
0060                         label = "bcm53xx:green:lan2";
0061                         gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
0062                 };
0063 
0064                 usb3    {
0065                         label = "bcm53xx:green:usb3";
0066                         gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
0067                         trigger-sources = <&ohci_port1>, <&ehci_port1>,
0068                                           <&xhci_port1>;
0069                         linux,default-trigger = "usbport";
0070                 };
0071 
0072                 status  {
0073                         label = "bcm53xx:green:status";
0074                         gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
0075                         linux,default-trigger = "timer";
0076                 };
0077 
0078                 2ghz {
0079                         label = "bcm53xx:green:2ghz";
0080                         gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
0081                 };
0082 
0083                 5ghz {
0084                         label = "bcm53xx:green:5ghz";
0085                         gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
0086                 };
0087         };
0088 
0089         gpio-keys {
0090                 compatible = "gpio-keys";
0091 
0092                 button-restart {
0093                         label = "Reset";
0094                         linux,code = <KEY_RESTART>;
0095                         gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
0096                 };
0097         };
0098 };
0099 
0100 &usb3 {
0101         vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
0102 };
0103 
0104 &spi_nor {
0105         status = "okay";
0106 };
0107 
0108 &usb3_phy {
0109         status = "okay";
0110 };
0111 
0112 &srab {
0113         status = "okay";
0114 
0115         ports {
0116                 port@0 {
0117                         reg = <0>;
0118                         label = "lan4";
0119                 };
0120 
0121                 port@1 {
0122                         reg = <1>;
0123                         label = "lan3";
0124                 };
0125 
0126                 port@2 {
0127                         reg = <2>;
0128                         label = "lan2";
0129                 };
0130 
0131                 port@3 {
0132                         reg = <3>;
0133                         label = "lan1";
0134                 };
0135 
0136                 port@4 {
0137                         reg = <4>;
0138                         label = "wan";
0139                 };
0140 
0141                 port@5 {
0142                         reg = <5>;
0143                         label = "cpu";
0144                         ethernet = <&gmac0>;
0145                 };
0146         };
0147 };