1/* 2 * BSD LICENSE 3 * 4 * Copyright(c) 2016 Broadcom. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 10 * * Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * * Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in 14 * the documentation and/or other materials provided with the 15 * distribution. 16 * * Neither the name of Broadcom Corporation nor the names of its 17 * contributors may be used to endorse or promote products derived 18 * from this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33/dts-v1/; 34 35#include "bcm-nsp.dtsi" 36#include <dt-bindings/gpio/gpio.h> 37 38/ { 39 model = "NorthStar Plus SVK (BCM958622HR)"; 40 compatible = "brcm,bcm58622", "brcm,nsp"; 41 42 aliases { 43 serial0 = &uart0; 44 }; 45 46 chosen { 47 stdout-path = "serial0:115200n8"; 48 }; 49 50 memory { 51 device_type = "memory"; 52 reg = <0x60000000 0x80000000>; 53 }; 54 55 gpio-restart { 56 compatible = "gpio-restart"; 57 gpios = <&gpioa 15 GPIO_ACTIVE_LOW>; 58 open-source; 59 priority = <200>; 60 }; 61}; 62 63/* USB 2/3 and SLIC support needed to be complete */ 64 65&amac0 { 66 status = "okay"; 67}; 68 69&nand { 70 nandcs@0 { 71 compatible = "brcm,nandcs"; 72 reg = <0>; 73 nand-on-flash-bbt; 74 75 #address-cells = <1>; 76 #size-cells = <1>; 77 78 nand-ecc-strength = <24>; 79 nand-ecc-step-size = <1024>; 80 81 brcm,nand-oob-sector-size = <27>; 82 83 partition@0 { 84 label = "nboot"; 85 reg = <0x00000000 0x00200000>; 86 read-only; 87 }; 88 partition@200000 { 89 label = "nenv"; 90 reg = <0x00200000 0x00400000>; 91 }; 92 partition@600000 { 93 label = "nsystem"; 94 reg = <0x00600000 0x00a00000>; 95 }; 96 partition@1000000 { 97 label = "nrootfs"; 98 reg = <0x01000000 0x03000000>; 99 }; 100 partition@4000000 { 101 label = "ncustfs"; 102 reg = <0x04000000 0x3c000000>; 103 }; 104 }; 105}; 106 107&pcie0 { 108 status = "okay"; 109}; 110 111&pcie1 { 112 status = "okay"; 113}; 114 115&pinctrl { 116 pinctrl-names = "default"; 117 pinctrl-0 = <&nand_sel>; 118 nand_sel: nand_sel { 119 function = "nand"; 120 groups = "nand_grp"; 121 }; 122}; 123 124&srab { 125 compatible = "brcm,bcm58622-srab", "brcm,nsp-srab"; 126 status = "okay"; 127 128 ports { 129 #address-cells = <1>; 130 #size-cells = <0>; 131 132 port@0 { 133 label = "port0"; 134 reg = <0>; 135 }; 136 137 port@1 { 138 label = "port1"; 139 reg = <1>; 140 }; 141 142 port@2 { 143 label = "port2"; 144 reg = <2>; 145 }; 146 147 port@3 { 148 label = "port3"; 149 reg = <3>; 150 }; 151 152 port@4 { 153 label = "port4"; 154 reg = <4>; 155 }; 156 157 port@5 { 158 ethernet = <&amac0>; 159 label = "cpu"; 160 reg = <5>; 161 fixed-link { 162 speed = <1000>; 163 full-duplex; 164 }; 165 }; 166 }; 167}; 168 169&uart0 { 170 status = "okay"; 171}; 172