1/* 2 * BSD LICENSE 3 * 4 * Copyright(c) 2015 Broadcom Corporation. 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 37/ { 38 model = "NorthStar Plus SVK (BCM958625K)"; 39 compatible = "brcm,bcm58625", "brcm,nsp"; 40 41 chosen { 42 stdout-path = "serial0:115200n8"; 43 }; 44 45 memory@60000000 { 46 device_type = "memory"; 47 reg = <0x60000000 0x80000000>; 48 }; 49}; 50 51&amac0 { 52 status = "okay"; 53}; 54 55&amac1 { 56 status = "okay"; 57}; 58 59&amac2 { 60 status = "okay"; 61}; 62 63&ehci0 { 64 status = "okay"; 65}; 66 67&nand { 68 nandcs@0 { 69 compatible = "brcm,nandcs"; 70 reg = <0>; 71 nand-on-flash-bbt; 72 73 #address-cells = <1>; 74 #size-cells = <1>; 75 76 nand-ecc-strength = <24>; 77 nand-ecc-step-size = <1024>; 78 79 brcm,nand-oob-sector-size = <27>; 80 81 partition@0 { 82 label = "nboot"; 83 reg = <0x00000000 0x00200000>; 84 read-only; 85 }; 86 partition@200000 { 87 label = "nenv"; 88 reg = <0x00200000 0x00400000>; 89 }; 90 partition@600000 { 91 label = "nsystem"; 92 reg = <0x00600000 0x00a00000>; 93 }; 94 partition@1000000 { 95 label = "nrootfs"; 96 reg = <0x01000000 0x03000000>; 97 }; 98 partition@4000000 { 99 label = "ncustfs"; 100 reg = <0x04000000 0x3c000000>; 101 }; 102 }; 103}; 104 105&ohci0 { 106 status = "okay"; 107}; 108 109&pcie0 { 110 status = "okay"; 111}; 112 113&pcie1 { 114 status = "okay"; 115}; 116 117&pcie2 { 118 status = "okay"; 119}; 120 121&pinctrl { 122 pinctrl-names = "default"; 123 pinctrl-0 = <&nand_sel>, <&gpiobs>, <&pwmc>; 124 125 nand_sel: nand_sel { 126 function = "nand"; 127 groups = "nand_grp"; 128 }; 129 130 gpiobs: gpiobs { 131 function = "gpio_b"; 132 groups = "gpio_b_0_grp", "gpio_b_1_grp", "gpio_b_2_grp", 133 "gpio_b_3_grp"; 134 }; 135 136 pwmc: pwmc { 137 function = "pwm"; 138 groups = "pwm0_grp", "pwm1_grp", "pwm2_grp", "pwm3_grp"; 139 }; 140 141 emmc_sel: emmc_sel { 142 function = "emmc"; 143 groups = "emmc_grp"; 144 }; 145}; 146 147&pwm { 148 status = "okay"; 149}; 150 151&qspi { 152 bspi-sel = <0>; 153 flash: m25p80@0 { 154 #address-cells = <1>; 155 #size-cells = <1>; 156 compatible = "m25p80"; 157 reg = <0x0>; 158 spi-max-frequency = <12500000>; 159 m25p,fast-read; 160 spi-cpol; 161 spi-cpha; 162 163 partition@0 { 164 label = "boot"; 165 reg = <0x00000000 0x000a0000>; 166 }; 167 168 partition@a0000 { 169 label = "env"; 170 reg = <0x000a0000 0x00060000>; 171 }; 172 173 partition@100000 { 174 label = "system"; 175 reg = <0x00100000 0x00600000>; 176 }; 177 178 partition@700000 { 179 label = "rootfs"; 180 reg = <0x00700000 0x01900000>; 181 }; 182 }; 183}; 184 185&sata_phy0 { 186 status = "okay"; 187}; 188 189&sata_phy1 { 190 status = "okay"; 191}; 192 193&sata { 194 status = "okay"; 195}; 196 197/* 198 * By default the sd slot is functional. For emmc to work add "<&emmc_sel>" 199 * and delete "<&nand_sel>" in "pinctrl-0" property of pinctrl node. Remove the 200 * bus-width property here and disable the nand node with status = "disabled";. 201 * 202 * Ex: pinctrl-0 = <&emmc_sel>, <&gpiobs>, <&pwmc>; 203 */ 204&sdio { 205 bus-width = <4>; 206 no-1-8-v; 207 status = "ok"; 208}; 209 210&srab { 211 compatible = "brcm,bcm58625-srab", "brcm,nsp-srab"; 212 status = "okay"; 213 214 ports { 215 #address-cells = <1>; 216 #size-cells = <0>; 217 218 port@0 { 219 label = "port0"; 220 reg = <0>; 221 }; 222 223 port@1 { 224 label = "port1"; 225 reg = <1>; 226 }; 227 228 port@2 { 229 label = "port2"; 230 reg = <2>; 231 }; 232 233 port@3 { 234 label = "port3"; 235 reg = <3>; 236 }; 237 238 port@4 { 239 label = "port4"; 240 reg = <4>; 241 }; 242 243 port@8 { 244 ethernet = <&amac2>; 245 label = "cpu"; 246 reg = <8>; 247 fixed-link { 248 speed = <1000>; 249 full-duplex; 250 }; 251 }; 252 }; 253}; 254 255&uart0 { 256 status = "okay"; 257}; 258 259&uart1 { 260 status = "okay"; 261}; 262 263&usb3_phy { 264 status = "okay"; 265}; 266 267&xhci { 268 status = "okay"; 269}; 270