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 (BCM958623HR)";
0040         compatible = "brcm,bcm958623hr", "brcm,bcm58623", "brcm,nsp";
0041 
0042         chosen {
0043                 stdout-path = "serial0:115200n8";
0044         };
0045 
0046         memory@60000000 {
0047                 device_type = "memory";
0048                 reg = <0x60000000 0x80000000>;
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 
0059 /* USB 3 and SLIC support needed to be complete */
0060 
0061 &dma {
0062         status = "okay";
0063 };
0064 
0065 &amac0 {
0066         status = "okay";
0067 };
0068 
0069 &amac1 {
0070         status = "okay";
0071 };
0072 
0073 &amac2 {
0074         status = "okay";
0075 };
0076 
0077 &ehci0 {
0078         status = "okay";
0079 };
0080 
0081 &nand_controller {
0082         nand@0 {
0083                 compatible = "brcm,nandcs";
0084                 reg = <0>;
0085                 nand-on-flash-bbt;
0086 
0087                 #address-cells = <1>;
0088                 #size-cells = <1>;
0089 
0090                 nand-ecc-strength = <24>;
0091                 nand-ecc-step-size = <1024>;
0092 
0093                 brcm,nand-oob-sector-size = <27>;
0094 
0095                 partition@0 {
0096                         label = "nboot";
0097                         reg = <0x00000000 0x00200000>;
0098                         read-only;
0099                 };
0100                 partition@200000 {
0101                         label = "nenv";
0102                         reg = <0x00200000 0x00400000>;
0103                 };
0104                 partition@600000 {
0105                         label = "nsystem";
0106                         reg = <0x00600000 0x00a00000>;
0107                 };
0108                 partition@1000000 {
0109                         label = "nrootfs";
0110                         reg = <0x01000000 0x03000000>;
0111                 };
0112                 partition@4000000 {
0113                         label = "ncustfs";
0114                         reg = <0x04000000 0x3c000000>;
0115                 };
0116         };
0117 };
0118 
0119 &ohci0 {
0120         status = "okay";
0121 };
0122 
0123 &pcie0 {
0124         status = "okay";
0125 };
0126 
0127 &pcie1 {
0128         status = "okay";
0129 };
0130 
0131 &pinctrl {
0132         pinctrl-names = "default";
0133         pinctrl-0 = <&nand_sel>;
0134         nand_sel: nand_sel {
0135                 function = "nand";
0136                 groups = "nand_grp";
0137         };
0138 };
0139 
0140 &sata_phy0 {
0141         status = "okay";
0142 };
0143 
0144 &qspi {
0145         status = "okay";
0146         bspi-sel = <0>;
0147         flash: flash@0 {
0148                 #address-cells = <1>;
0149                 #size-cells = <1>;
0150                 compatible = "m25p80";
0151                 reg = <0x0>;
0152                 spi-max-frequency = <12500000>;
0153                 m25p,fast-read;
0154                 spi-cpol;
0155                 spi-cpha;
0156 
0157                 partition@0 {
0158                         label = "boot";
0159                         reg = <0x00000000 0x000a0000>;
0160                 };
0161 
0162                 partition@a0000 {
0163                         label = "env";
0164                         reg = <0x000a0000 0x00060000>;
0165                 };
0166 
0167                 partition@100000 {
0168                         label = "system";
0169                         reg = <0x00100000 0x00600000>;
0170                 };
0171 
0172                 partition@700000 {
0173                         label = "rootfs";
0174                         reg = <0x00700000 0x01900000>;
0175                 };
0176         };
0177 };
0178 
0179 &srab {
0180         compatible = "brcm,bcm58623-srab", "brcm,nsp-srab";
0181         status = "okay";
0182 
0183         ports {
0184                 port@0 {
0185                         label = "port0";
0186                         reg = <0>;
0187                 };
0188 
0189                 port@1 {
0190                         label = "port1";
0191                         reg = <1>;
0192                 };
0193 
0194                 port@2 {
0195                         label = "port2";
0196                         reg = <2>;
0197                 };
0198 
0199                 port@3 {
0200                         label = "port3";
0201                         reg = <3>;
0202                 };
0203 
0204                 port@4 {
0205                         label = "port4";
0206                         reg = <4>;
0207                 };
0208 
0209                 port@8 {
0210                         ethernet = <&amac2>;
0211                         label = "cpu";
0212                         reg = <8>;
0213                         fixed-link {
0214                                 speed = <1000>;
0215                                 full-duplex;
0216                         };
0217                 };
0218         };
0219 };
0220 
0221 &uart0 {
0222         status = "okay";
0223 };
0224 
0225 &usb3_phy {
0226         status = "okay";
0227 };
0228 
0229 &xhci {
0230         status = "okay";
0231 };