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 XMC (BCM958525xmc)";
0040         compatible = "brcm,bcm958525xmc", "brcm,bcm58525", "brcm,nsp";
0041 
0042         chosen {
0043                 stdout-path = "serial0:115200n8";
0044         };
0045 
0046         memory@60000000 {
0047                 device_type = "memory";
0048                 reg = <0x60000000 0x40000000>;
0049         };
0050 
0051         gpio-restart {
0052                 compatible = "gpio-restart";
0053                 gpios = <&gpioa 31 GPIO_ACTIVE_LOW>;
0054                 open-source;
0055                 priority = <200>;
0056         };
0057 };
0058 
0059 /* XHCI support needed to be complete */
0060 
0061 &dma {
0062         status = "okay";
0063 };
0064 
0065 &amac0 {
0066         status = "okay";
0067 };
0068 
0069 &ehci0 {
0070         status = "okay";
0071 };
0072 
0073 &i2c0 {
0074         status = "okay";
0075 
0076         temperature-sensor@4c {
0077                 compatible = "adi,adt7461a";
0078                 reg = <0x4c>;
0079         };
0080 
0081         eeprom@52 {
0082                 compatible = "atmel,24c02";
0083                 reg = <0x52>;
0084                 pagesize = <16>;
0085         };
0086 
0087         rtc@68 {
0088                 compatible = "st,m41t81";
0089                 reg = <0x68>;
0090         };
0091 };
0092 
0093 &nand_controller {
0094         nand@0 {
0095                 compatible = "brcm,nandcs";
0096                 reg = <0>;
0097                 nand-on-flash-bbt;
0098 
0099                 #address-cells = <1>;
0100                 #size-cells = <1>;
0101 
0102                 nand-ecc-strength = <24>;
0103                 nand-ecc-step-size = <1024>;
0104 
0105                 brcm,nand-oob-sector-size = <27>;
0106 
0107                 partition@0 {
0108                         label = "nboot";
0109                         reg = <0x00000000 0x00200000>;
0110                         read-only;
0111                 };
0112                 partition@200000 {
0113                         label = "nenv";
0114                         reg = <0x00200000 0x00400000>;
0115                 };
0116                 partition@600000 {
0117                         label = "nsystem";
0118                         reg = <0x00600000 0x00a00000>;
0119                 };
0120                 partition@1000000 {
0121                         label = "nrootfs";
0122                         reg = <0x01000000 0x03000000>;
0123                 };
0124                 partition@4000000 {
0125                         label = "ncustfs";
0126                         reg = <0x04000000 0x3c000000>;
0127                 };
0128         };
0129 };
0130 
0131 &ohci0 {
0132         status = "okay";
0133 };
0134 
0135 &pcie0 {
0136         status = "okay";
0137 };
0138 
0139 &pcie1 {
0140         status = "okay";
0141 };
0142 
0143 &pinctrl {
0144         pinctrl-names = "default";
0145         pinctrl-0 = <&nand_sel>;
0146         nand_sel: nand_sel {
0147                 function = "nand";
0148                 groups = "nand_grp";
0149         };
0150 };
0151 
0152 &qspi {
0153         status = "okay";
0154         bspi-sel = <0>;
0155         flash: flash@0 {
0156                 #address-cells = <1>;
0157                 #size-cells = <1>;
0158                 compatible = "m25p80";
0159                 reg = <0x0>;
0160                 spi-max-frequency = <12500000>;
0161                 m25p,fast-read;
0162                 spi-cpol;
0163                 spi-cpha;
0164 
0165                 partition@0 {
0166                         label = "boot";
0167                         reg = <0x00000000 0x000a0000>;
0168                 };
0169 
0170                 partition@a0000 {
0171                         label = "env";
0172                         reg = <0x000a0000 0x00060000>;
0173                 };
0174 
0175                 partition@100000 {
0176                         label = "system";
0177                         reg = <0x00100000 0x00600000>;
0178                 };
0179 
0180                 partition@700000 {
0181                         label = "rootfs";
0182                         reg = <0x00700000 0x01900000>;
0183                 };
0184         };
0185 };
0186 
0187 &sata_phy0 {
0188         status = "okay";
0189 };
0190 
0191 &sata_phy1 {
0192         status = "okay";
0193 };
0194 
0195 &sata {
0196         status = "okay";
0197 };
0198 
0199 &sdio {
0200         status = "okay";
0201 };
0202 
0203 &uart0 {
0204         status = "okay";
0205 };
0206 
0207 &usb3_phy {
0208         status = "okay";
0209 };
0210 
0211 &xhci {
0212         status = "okay";
0213 };
0214 
0215 &srab {
0216         compatible = "brcm,bcm58525-srab", "brcm,nsp-srab";
0217 };