Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  *  BSD LICENSE
0003  *
0004  *  Copyright(c) 2016 Broadcom.  All rights reserved.
0005  *
0006  *  Redistribution and use in source and binary forms, with or without
0007  *  modification, are permitted provided that the following conditions
0008  *  are met:
0009  *
0010  *    * Redistributions of source code must retain the above copyright
0011  *      notice, this list of conditions and the following disclaimer.
0012  *    * Redistributions in binary form must reproduce the above copyright
0013  *      notice, this list of conditions and the following disclaimer in
0014  *      the documentation and/or other materials provided with the
0015  *      distribution.
0016  *    * Neither the name of Broadcom Corporation nor the names of its
0017  *      contributors may be used to endorse or promote products derived
0018  *      from this software without specific prior written permission.
0019  *
0020  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0021  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0022  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
0023  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
0024  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0025  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0026  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0027  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0028  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0029  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0030  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0031  */
0032 
0033 /dts-v1/;
0034 
0035 #include "bcm-nsp.dtsi"
0036 #include <dt-bindings/gpio/gpio.h>
0037 
0038 / {
0039         model = "NorthStar Plus SVK (BCM958625HR)";
0040         compatible = "brcm,bcm958625hr", "brcm,bcm58625", "brcm,nsp";
0041 
0042         chosen {
0043                 stdout-path = "serial0:115200n8";
0044         };
0045 
0046         memory@60000000 {
0047                 device_type = "memory";
0048                 reg = <0x60000000 0x20000000>;
0049         };
0050 
0051         gpio-restart {
0052                 compatible = "gpio-restart";
0053                 gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
0054                 open-source;
0055                 priority = <200>;
0056         };
0057 
0058         sfp: sfp {
0059                 compatible = "sff,sfp";
0060                 i2c-bus = <&i2c0>;
0061                 mod-def0-gpios = <&gpioa 28 GPIO_ACTIVE_LOW>;
0062                 los-gpios = <&gpioa 24 GPIO_ACTIVE_HIGH>;
0063                 tx-fault-gpios = <&gpioa 30 GPIO_ACTIVE_HIGH>;
0064                 tx-disable-gpios = <&gpioa 26 GPIO_ACTIVE_HIGH>;
0065         };
0066 };
0067 
0068 &i2c0 {
0069         status = "okay";
0070 };
0071 
0072 &dma {
0073         status = "okay";
0074 };
0075 
0076 &amac0 {
0077         status = "okay";
0078 };
0079 
0080 &amac1 {
0081         status = "okay";
0082 };
0083 
0084 &amac2 {
0085         status = "okay";
0086 };
0087 
0088 &ehci0 {
0089         status = "okay";
0090 };
0091 
0092 &nand_controller {
0093         nand@0 {
0094                 compatible = "brcm,nandcs";
0095                 reg = <0>;
0096                 nand-on-flash-bbt;
0097 
0098                 #address-cells = <1>;
0099                 #size-cells = <1>;
0100 
0101                 nand-ecc-strength = <24>;
0102                 nand-ecc-step-size = <1024>;
0103 
0104                 brcm,nand-oob-sector-size = <27>;
0105 
0106                 partition@0 {
0107                         label = "nboot";
0108                         reg = <0x00000000 0x00200000>;
0109                         read-only;
0110                 };
0111                 partition@200000 {
0112                         label = "nenv";
0113                         reg = <0x00200000 0x00400000>;
0114                 };
0115                 partition@600000 {
0116                         label = "nsystem";
0117                         reg = <0x00600000 0x00a00000>;
0118                 };
0119                 partition@1000000 {
0120                         label = "nrootfs";
0121                         reg = <0x01000000 0x03000000>;
0122                 };
0123                 partition@4000000 {
0124                         label = "ncustfs";
0125                         reg = <0x04000000 0x3c000000>;
0126                 };
0127         };
0128 };
0129 
0130 &ohci0 {
0131         status = "okay";
0132 };
0133 
0134 &pcie0 {
0135         status = "okay";
0136 };
0137 
0138 &pcie1 {
0139         status = "okay";
0140 };
0141 
0142 &pinctrl {
0143         pinctrl-names = "default";
0144         pinctrl-0 = <&nand_sel>;
0145         nand_sel: nand_sel {
0146                 function = "nand";
0147                 groups = "nand_grp";
0148         };
0149 };
0150 
0151 &qspi {
0152         status = "okay";
0153         bspi-sel = <0>;
0154         flash: flash@0 {
0155                 #address-cells = <1>;
0156                 #size-cells = <1>;
0157                 compatible = "m25p80";
0158                 reg = <0x0>;
0159                 spi-max-frequency = <12500000>;
0160                 m25p,fast-read;
0161                 spi-cpol;
0162                 spi-cpha;
0163 
0164                 partition@0 {
0165                         label = "boot";
0166                         reg = <0x00000000 0x000a0000>;
0167                 };
0168 
0169                 partition@a0000 {
0170                         label = "env";
0171                         reg = <0x000a0000 0x00060000>;
0172                 };
0173 
0174                 partition@100000 {
0175                         label = "system";
0176                         reg = <0x00100000 0x00600000>;
0177                 };
0178 
0179                 partition@700000 {
0180                         label = "rootfs";
0181                         reg = <0x00700000 0x01900000>;
0182                 };
0183         };
0184 };
0185 
0186 &sata_phy0 {
0187         status = "okay";
0188 };
0189 
0190 &sata_phy1 {
0191         status = "okay";
0192 };
0193 
0194 &srab {
0195         compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
0196         status = "okay";
0197 
0198         ports {
0199                 port@0 {
0200                         label = "port0";
0201                         reg = <0>;
0202                 };
0203 
0204                 port@1 {
0205                         label = "port1";
0206                         reg = <1>;
0207                 };
0208 
0209                 port@2 {
0210                         label = "port2";
0211                         reg = <2>;
0212                 };
0213 
0214                 port@3 {
0215                         label = "port3";
0216                         reg = <3>;
0217                 };
0218 
0219                 port@4 {
0220                         label = "port4";
0221                         reg = <4>;
0222                 };
0223 
0224                 port@5 {
0225                         label = "sfp";
0226                         phy-mode = "sgmii";
0227                         reg = <5>;
0228                         sfp = <&sfp>;
0229                         managed = "in-band-status";
0230                 };
0231 
0232                 port@8 {
0233                         ethernet = <&amac2>;
0234                         label = "cpu";
0235                         reg = <8>;
0236                         fixed-link {
0237                                 speed = <1000>;
0238                                 full-duplex;
0239                         };
0240                 };
0241         };
0242 };
0243 
0244 &uart0 {
0245         status = "okay";
0246 };
0247 
0248 &usb3_phy {
0249         status = "okay";
0250 };
0251 
0252 &xhci {
0253         status = "okay";
0254 };