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 (BCM958525ER)";
0040 compatible = "brcm,bcm958525er", "brcm,bcm58525", "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 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 &ehci0 {
0074 status = "okay";
0075 };
0076
0077 &nand_controller {
0078 nand@0 {
0079 compatible = "brcm,nandcs";
0080 reg = <0>;
0081 nand-on-flash-bbt;
0082
0083 #address-cells = <1>;
0084 #size-cells = <1>;
0085
0086 nand-ecc-strength = <24>;
0087 nand-ecc-step-size = <1024>;
0088
0089 brcm,nand-oob-sector-size = <27>;
0090
0091 partition@0 {
0092 label = "nboot";
0093 reg = <0x00000000 0x00200000>;
0094 read-only;
0095 };
0096 partition@200000 {
0097 label = "nenv";
0098 reg = <0x00200000 0x00400000>;
0099 };
0100 partition@600000 {
0101 label = "nsystem";
0102 reg = <0x00600000 0x00a00000>;
0103 };
0104 partition@1000000 {
0105 label = "nrootfs";
0106 reg = <0x01000000 0x03000000>;
0107 };
0108 partition@4000000 {
0109 label = "ncustfs";
0110 reg = <0x04000000 0x3c000000>;
0111 };
0112 };
0113 };
0114
0115 &ohci0 {
0116 status = "okay";
0117 };
0118
0119 &pcie0 {
0120 status = "okay";
0121 };
0122
0123 &pcie1 {
0124 status = "okay";
0125 };
0126
0127 &pinctrl {
0128 pinctrl-names = "default";
0129 pinctrl-0 = <&nand_sel>;
0130 nand_sel: nand_sel {
0131 function = "nand";
0132 groups = "nand_grp";
0133 };
0134 };
0135
0136 &qspi {
0137 status = "okay";
0138 bspi-sel = <0>;
0139 flash: flash@0 {
0140 #address-cells = <1>;
0141 #size-cells = <1>;
0142 compatible = "m25p80";
0143 reg = <0x0>;
0144 spi-max-frequency = <12500000>;
0145 m25p,fast-read;
0146 spi-cpol;
0147 spi-cpha;
0148
0149 partition@0 {
0150 label = "boot";
0151 reg = <0x00000000 0x000a0000>;
0152 };
0153
0154 partition@a0000 {
0155 label = "env";
0156 reg = <0x000a0000 0x00060000>;
0157 };
0158
0159 partition@100000 {
0160 label = "system";
0161 reg = <0x00100000 0x00600000>;
0162 };
0163
0164 partition@700000 {
0165 label = "rootfs";
0166 reg = <0x00700000 0x01900000>;
0167 };
0168 };
0169 };
0170
0171 &sata_phy0 {
0172 status = "okay";
0173 };
0174
0175 &sata_phy1 {
0176 status = "okay";
0177 };
0178
0179 &sata {
0180 status = "okay";
0181 };
0182
0183 &uart0 {
0184 status = "okay";
0185 };
0186
0187 &usb3_phy {
0188 status = "okay";
0189 };
0190
0191 &xhci {
0192 status = "okay";
0193 };
0194
0195 &srab {
0196 compatible = "brcm,bcm58525-srab", "brcm,nsp-srab";
0197 };