Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  *  BSD LICENSE
0003  *
0004  *  Copyright(c) 2015 Broadcom Corporation.  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 SVK";
0039         compatible = "brcm,ns2-svk", "brcm,ns2";
0040 
0041         aliases {
0042                 serial0 = &uart3;
0043                 serial1 = &uart0;
0044                 serial2 = &uart1;
0045                 serial3 = &uart2;
0046         };
0047 
0048         chosen {
0049                 stdout-path = "serial0:115200n8";
0050                 bootargs = "earlycon=uart8250,mmio32,0x66130000";
0051         };
0052 
0053         memory {
0054                 device_type = "memory";
0055                 reg = <0x000000000 0x80000000 0x00000000 0x40000000>;
0056         };
0057 };
0058 
0059 &enet {
0060         status = "okay";
0061 };
0062 
0063 &pci_phy0 {
0064         status = "okay";
0065 };
0066 
0067 &pci_phy1 {
0068         status = "okay";
0069 };
0070 
0071 &pcie0 {
0072         status = "okay";
0073 };
0074 
0075 &pcie4 {
0076         status = "okay";
0077 };
0078 
0079 &pcie8 {
0080         status = "okay";
0081 };
0082 
0083 &i2c0 {
0084         status = "okay";
0085 };
0086 
0087 &i2c1 {
0088         status = "okay";
0089 };
0090 
0091 &uart0 {
0092         status = "okay";
0093 };
0094 
0095 &uart1 {
0096         status = "okay";
0097 };
0098 
0099 &uart2 {
0100         status = "okay";
0101 };
0102 
0103 &uart3 {
0104         status = "okay";
0105 };
0106 
0107 &ssp0 {
0108         status = "okay";
0109 
0110         slic@0 {
0111                 compatible = "silabs,si3226x";
0112                 reg = <0>;
0113                 spi-max-frequency = <5000000>;
0114                 spi-cpha;
0115                 spi-cpol;
0116                 pl022,hierarchy = <0>;
0117                 pl022,interface = <0>;
0118                 pl022,slave-tx-disable = <0>;
0119                 pl022,com-mode = <0>;
0120                 pl022,rx-level-trig = <1>;
0121                 pl022,tx-level-trig = <1>;
0122                 pl022,ctrl-len = <11>;
0123                 pl022,wait-state = <0>;
0124                 pl022,duplex = <0>;
0125         };
0126 };
0127 
0128 &ssp1 {
0129         status = "okay";
0130 
0131         at25@0 {
0132                 compatible = "atmel,at25";
0133                 reg = <0>;
0134                 spi-max-frequency = <5000000>;
0135                 at25,byte-len = <0x8000>;
0136                 at25,addr-mode = <2>;
0137                 at25,page-size = <64>;
0138                 spi-cpha;
0139                 spi-cpol;
0140                 pl022,hierarchy = <0>;
0141                 pl022,interface = <0>;
0142                 pl022,slave-tx-disable = <0>;
0143                 pl022,com-mode = <0>;
0144                 pl022,rx-level-trig = <1>;
0145                 pl022,tx-level-trig = <1>;
0146                 pl022,ctrl-len = <11>;
0147                 pl022,wait-state = <0>;
0148                 pl022,duplex = <0>;
0149         };
0150 };
0151 
0152 &sata_phy0 {
0153         status = "okay";
0154 };
0155 
0156 &sata_phy1 {
0157         status = "okay";
0158 };
0159 
0160 &sata {
0161         status = "okay";
0162 };
0163 
0164 &sdio0 {
0165         status = "okay";
0166 };
0167 
0168 &sdio1 {
0169         status = "okay";
0170 };
0171 
0172 &nand {
0173         nandcs@0 {
0174                 compatible = "brcm,nandcs";
0175                 reg = <0>;
0176                 nand-ecc-mode = "hw";
0177                 nand-ecc-strength = <8>;
0178                 nand-ecc-step-size = <512>;
0179                 nand-bus-width = <16>;
0180                 brcm,nand-oob-sector-size = <16>;
0181                 #address-cells = <1>;
0182                 #size-cells = <1>;
0183         };
0184 };
0185 
0186 &mdio_mux_iproc {
0187         mdio@10 {
0188                 gphy0: eth-phy@10 {
0189                         enet-phy-lane-swap;
0190                         reg = <0x10>;
0191                 };
0192         };
0193 };
0194 
0195 &pinctrl {
0196         pinctrl-names = "default";
0197         pinctrl-0 = <&nand_sel>;
0198         nand_sel: nand_sel {
0199                 function = "nand";
0200                 groups = "nand_grp";
0201         };
0202 };
0203 
0204 &qspi {
0205         bspi-sel = <0>;
0206         flash: flash@0 {
0207                 #address-cells = <1>;
0208                 #size-cells = <1>;
0209                 compatible = "m25p80";
0210                 reg = <0x0>;
0211                 spi-max-frequency = <12500000>;
0212                 m25p,fast-read;
0213                 spi-cpol;
0214                 spi-cpha;
0215 
0216                 partition@0 {
0217                         label = "boot";
0218                         reg = <0x00000000 0x000a0000>;
0219                 };
0220 
0221                 partition@a0000 {
0222                         label = "env";
0223                         reg = <0x000a0000 0x00060000>;
0224                 };
0225 
0226                 partition@100000 {
0227                         label = "system";
0228                         reg = <0x00100000 0x00600000>;
0229                 };
0230 
0231                 partition@700000 {
0232                         label = "rootfs";
0233                         reg = <0x00700000 0x01900000>;
0234                 };
0235         };
0236 };