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 (BCM958622HR)";
0040 compatible = "brcm,bcm958622hr", "brcm,bcm58622", "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 &qspi {
0141 status = "okay";
0142 bspi-sel = <0>;
0143 flash: flash@0 {
0144 #address-cells = <1>;
0145 #size-cells = <1>;
0146 compatible = "m25p80";
0147 reg = <0x0>;
0148 spi-max-frequency = <12500000>;
0149 m25p,fast-read;
0150 spi-cpol;
0151 spi-cpha;
0152
0153 partition@0 {
0154 label = "boot";
0155 reg = <0x00000000 0x000a0000>;
0156 };
0157
0158 partition@a0000 {
0159 label = "env";
0160 reg = <0x000a0000 0x00060000>;
0161 };
0162
0163 partition@100000 {
0164 label = "system";
0165 reg = <0x00100000 0x00600000>;
0166 };
0167
0168 partition@700000 {
0169 label = "rootfs";
0170 reg = <0x00700000 0x01900000>;
0171 };
0172 };
0173 };
0174
0175 &srab {
0176 compatible = "brcm,bcm58622-srab", "brcm,nsp-srab";
0177 status = "okay";
0178
0179 ports {
0180 port@0 {
0181 label = "port0";
0182 reg = <0>;
0183 };
0184
0185 port@1 {
0186 label = "port1";
0187 reg = <1>;
0188 };
0189
0190 port@2 {
0191 label = "port2";
0192 reg = <2>;
0193 };
0194
0195 port@3 {
0196 label = "port3";
0197 reg = <3>;
0198 };
0199
0200 port@4 {
0201 label = "port4";
0202 reg = <4>;
0203 };
0204
0205 port@8 {
0206 ethernet = <&amac2>;
0207 label = "cpu";
0208 reg = <8>;
0209 fixed-link {
0210 speed = <1000>;
0211 full-duplex;
0212 };
0213 };
0214 };
0215 };
0216
0217 &uart0 {
0218 status = "okay";
0219 };
0220
0221 &usb3_phy {
0222 status = "okay";
0223 };
0224
0225 &xhci {
0226 status = "okay";
0227 };