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 "ns2.dtsi"
0036 
0037 / {
0038         model = "Broadcom NS2 XMC";
0039         compatible = "brcm,ns2-xmc", "brcm,ns2";
0040 
0041         aliases {
0042                 serial0 = &uart3;
0043         };
0044 
0045         chosen {
0046                 stdout-path = "serial0:115200n8";
0047                 bootargs = "earlycon=uart8250,mmio32,0x66130000";
0048         };
0049 
0050         memory {
0051                 device_type = "memory";
0052                 reg = <0x000000000 0x80000000 0x00000001 0x00000000>;
0053         };
0054 };
0055 
0056 &enet {
0057         status = "okay";
0058 };
0059 
0060 &i2c0 {
0061         status = "okay";
0062 };
0063 
0064 &i2c1 {
0065         status = "okay";
0066 };
0067 
0068 &mdio_mux_iproc {
0069         mdio@10 {
0070                 gphy0: eth-phy@10 {
0071                         reg = <0x10>;
0072                 };
0073         };
0074 };
0075 
0076 &nand {
0077         nandcs@0 {
0078                 compatible = "brcm,nandcs";
0079                 reg = <0>;
0080                 nand-ecc-mode = "hw";
0081                 nand-ecc-strength = <8>;
0082                 nand-ecc-step-size = <512>;
0083                 nand-bus-width = <16>;
0084                 brcm,nand-oob-sector-size = <16>;
0085                 #address-cells = <1>;
0086                 #size-cells = <1>;
0087 
0088                 partition@0 {
0089                         label = "nboot";
0090                         reg = <0x00000000 0x00280000>; /*  2.5MB */
0091                         read-only;
0092                 };
0093 
0094                 partition@280000 {
0095                         label = "nenv";
0096                         reg = <0x00280000 0x00040000>; /* 0.25MB */
0097                         read-only;
0098                 };
0099 
0100                 partition@2c0000 {
0101                         label = "ndtb";
0102                         reg = <0x002c0000 0x00040000>; /* 0.25MB */
0103                         read-only;
0104                 };
0105 
0106                 partition@300000 {
0107                         label = "nsystem";
0108                         reg = <0x00300000 0x03d00000>; /*   61MB */
0109                         read-only;
0110                 };
0111 
0112                 partition@4000000 {
0113                         label = "nrootfs";
0114                         reg = <0x04000000 0x06400000>; /*  100MB */
0115                 };
0116 
0117                 partition@a400000{
0118                         label = "ncustfs";
0119                         reg = <0x0a400000 0x35c00000>; /*  860MB */
0120                 };
0121         };
0122 };
0123 
0124 &pci_phy0 {
0125         status = "okay";
0126 };
0127 
0128 &pcie0 {
0129         status = "okay";
0130 };
0131 
0132 &pcie8 {
0133         status = "okay";
0134 };
0135 
0136 &sata_phy0 {
0137         status = "okay";
0138 };
0139 
0140 &sata_phy1 {
0141         status = "okay";
0142 };
0143 
0144 &sata {
0145         status = "okay";
0146 };
0147 
0148 &qspi {
0149         flash: flash@0 {
0150                 #address-cells = <1>;
0151                 #size-cells = <1>;
0152                 compatible = "m25p80";
0153                 spi-max-frequency = <62500000>;
0154                 m25p,default-addr-width = <3>;
0155                 reg = <0x0 0x0>;
0156 
0157                 partition@0 {
0158                         label = "bl0";
0159                         reg = <0x00000000 0x00080000>; /*  512KB */
0160                 };
0161 
0162                 partition@80000 {
0163                         label = "fip";
0164                         reg = <0x00080000 0x00150000>; /* 1344KB */
0165                 };
0166 
0167                 partition@1e0000 {
0168                         label = "env";
0169                         reg = <0x001e0000 0x00010000>;/*    64KB */
0170                 };
0171 
0172                 partition@1f0000 {
0173                         label = "dtb";
0174                         reg = <0x001f0000 0x00010000>; /*   64KB */
0175                 };
0176 
0177                 partition@200000 {
0178                         label = "kernel";
0179                         reg = <0x00200000 0x00e00000>; /*   14MB */
0180                 };
0181 
0182                 partition@1000000 {
0183                         label = "rootfs";
0184                         reg = <0x01000000 0x01000000>; /*   16MB */
0185                 };
0186         };
0187 };
0188 
0189 &uart3 {
0190         status = "okay";
0191 };