1 /* 1 /* 2 * BSD LICENSE 2 * BSD LICENSE 3 * 3 * 4 * Copyright(c) 2016 Broadcom. All rights re 4 * Copyright(c) 2016 Broadcom. All rights reserved. 5 * 5 * 6 * Redistribution and use in source and binar 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that 7 * modification, are permitted provided that the following conditions 8 * are met: 8 * are met: 9 * 9 * 10 * * Redistributions of source code must re 10 * * Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and th 11 * notice, this list of conditions and the following disclaimer. 12 * * Redistributions in binary form must re 12 * * Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and th 13 * notice, this list of conditions and the following disclaimer in 14 * the documentation and/or other materia 14 * the documentation and/or other materials provided with the 15 * distribution. 15 * distribution. 16 * * Neither the name of Broadcom Corporati 16 * * Neither the name of Broadcom Corporation nor the names of its 17 * contributors may be used to endorse or 17 * contributors may be used to endorse or promote products derived 18 * from this software without specific pr 18 * from this software without specific prior written permission. 19 * 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANT 21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERC 22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO 23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DI 24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAG 25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOOD 26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISIN 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE P 30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 */ 31 */ 32 32 33 /dts-v1/; 33 /dts-v1/; 34 34 35 #include "bcm-nsp.dtsi" 35 #include "bcm-nsp.dtsi" 36 #include <dt-bindings/gpio/gpio.h> 36 #include <dt-bindings/gpio/gpio.h> 37 37 38 / { 38 / { 39 model = "NorthStar Plus SVK (BCM958625 39 model = "NorthStar Plus SVK (BCM958625HR)"; 40 compatible = "brcm,bcm958625hr", "brcm 40 compatible = "brcm,bcm958625hr", "brcm,bcm58625", "brcm,nsp"; 41 41 42 chosen { 42 chosen { 43 stdout-path = "serial0:115200n 43 stdout-path = "serial0:115200n8"; 44 }; 44 }; 45 45 46 memory@60000000 { 46 memory@60000000 { 47 device_type = "memory"; 47 device_type = "memory"; 48 reg = <0x60000000 0x20000000>; 48 reg = <0x60000000 0x20000000>; 49 }; 49 }; 50 50 51 gpio-restart { 51 gpio-restart { 52 compatible = "gpio-restart"; 52 compatible = "gpio-restart"; 53 gpios = <&gpioa 15 GPIO_ACTIVE 53 gpios = <&gpioa 15 GPIO_ACTIVE_LOW>; 54 open-source; 54 open-source; 55 priority = <200>; 55 priority = <200>; 56 }; 56 }; 57 57 58 sfp: sfp { 58 sfp: sfp { 59 compatible = "sff,sfp"; 59 compatible = "sff,sfp"; 60 i2c-bus = <&i2c0>; 60 i2c-bus = <&i2c0>; 61 mod-def0-gpios = <&gpioa 28 GP 61 mod-def0-gpios = <&gpioa 28 GPIO_ACTIVE_LOW>; 62 los-gpios = <&gpioa 24 GPIO_AC 62 los-gpios = <&gpioa 24 GPIO_ACTIVE_HIGH>; 63 tx-fault-gpios = <&gpioa 30 GP 63 tx-fault-gpios = <&gpioa 30 GPIO_ACTIVE_HIGH>; 64 tx-disable-gpios = <&gpioa 26 64 tx-disable-gpios = <&gpioa 26 GPIO_ACTIVE_HIGH>; 65 }; 65 }; 66 }; 66 }; 67 67 68 &i2c0 { 68 &i2c0 { 69 status = "okay"; 69 status = "okay"; 70 }; 70 }; 71 71 72 &dma { 72 &dma { 73 status = "okay"; 73 status = "okay"; 74 }; 74 }; 75 75 76 &amac0 { 76 &amac0 { 77 status = "okay"; 77 status = "okay"; 78 }; 78 }; 79 79 80 &amac1 { 80 &amac1 { 81 status = "okay"; 81 status = "okay"; 82 }; 82 }; 83 83 84 &amac2 { 84 &amac2 { 85 status = "okay"; 85 status = "okay"; 86 }; 86 }; 87 87 88 &ehci0 { 88 &ehci0 { 89 status = "okay"; 89 status = "okay"; 90 }; 90 }; 91 91 92 &nand_controller { 92 &nand_controller { 93 nand@0 { 93 nand@0 { 94 compatible = "brcm,nandcs"; 94 compatible = "brcm,nandcs"; 95 reg = <0>; 95 reg = <0>; 96 nand-on-flash-bbt; 96 nand-on-flash-bbt; 97 97 98 #address-cells = <1>; 98 #address-cells = <1>; 99 #size-cells = <1>; 99 #size-cells = <1>; 100 100 101 nand-ecc-strength = <24>; 101 nand-ecc-strength = <24>; 102 nand-ecc-step-size = <1024>; 102 nand-ecc-step-size = <1024>; 103 103 104 brcm,nand-oob-sector-size = <2 104 brcm,nand-oob-sector-size = <27>; 105 105 106 partition@0 { 106 partition@0 { 107 label = "nboot"; 107 label = "nboot"; 108 reg = <0x00000000 0x00 108 reg = <0x00000000 0x00200000>; 109 read-only; 109 read-only; 110 }; 110 }; 111 partition@200000 { 111 partition@200000 { 112 label = "nenv"; 112 label = "nenv"; 113 reg = <0x00200000 0x00 113 reg = <0x00200000 0x00400000>; 114 }; 114 }; 115 partition@600000 { 115 partition@600000 { 116 label = "nsystem"; 116 label = "nsystem"; 117 reg = <0x00600000 0x00 117 reg = <0x00600000 0x00a00000>; 118 }; 118 }; 119 partition@1000000 { 119 partition@1000000 { 120 label = "nrootfs"; 120 label = "nrootfs"; 121 reg = <0x01000000 0x03 121 reg = <0x01000000 0x03000000>; 122 }; 122 }; 123 partition@4000000 { 123 partition@4000000 { 124 label = "ncustfs"; 124 label = "ncustfs"; 125 reg = <0x04000000 0x3c 125 reg = <0x04000000 0x3c000000>; 126 }; 126 }; 127 }; 127 }; 128 }; 128 }; 129 129 130 &ohci0 { 130 &ohci0 { 131 status = "okay"; 131 status = "okay"; 132 }; 132 }; 133 133 134 &pcie0 { 134 &pcie0 { 135 status = "okay"; 135 status = "okay"; 136 }; 136 }; 137 137 138 &pcie1 { 138 &pcie1 { 139 status = "okay"; 139 status = "okay"; 140 }; 140 }; 141 141 142 &pinctrl { 142 &pinctrl { 143 pinctrl-names = "default"; 143 pinctrl-names = "default"; 144 pinctrl-0 = <&nand_sel>; 144 pinctrl-0 = <&nand_sel>; 145 nand_sel: nand_sel { 145 nand_sel: nand_sel { 146 function = "nand"; 146 function = "nand"; 147 groups = "nand_grp"; 147 groups = "nand_grp"; 148 }; 148 }; 149 }; 149 }; 150 150 151 &qspi { 151 &qspi { 152 status = "okay"; 152 status = "okay"; 153 bspi-sel = <0>; 153 bspi-sel = <0>; 154 flash: flash@0 { 154 flash: flash@0 { 155 #address-cells = <1>; 155 #address-cells = <1>; 156 #size-cells = <1>; 156 #size-cells = <1>; 157 compatible = "m25p80"; 157 compatible = "m25p80"; 158 reg = <0x0>; 158 reg = <0x0>; 159 spi-max-frequency = <12500000> 159 spi-max-frequency = <12500000>; 160 m25p,fast-read; 160 m25p,fast-read; 161 spi-cpol; 161 spi-cpol; 162 spi-cpha; 162 spi-cpha; 163 163 164 partition@0 { 164 partition@0 { 165 label = "boot"; 165 label = "boot"; 166 reg = <0x00000000 0x00 166 reg = <0x00000000 0x000a0000>; 167 }; 167 }; 168 168 169 partition@a0000 { 169 partition@a0000 { 170 label = "env"; 170 label = "env"; 171 reg = <0x000a0000 0x00 171 reg = <0x000a0000 0x00060000>; 172 }; 172 }; 173 173 174 partition@100000 { 174 partition@100000 { 175 label = "system"; 175 label = "system"; 176 reg = <0x00100000 0x00 176 reg = <0x00100000 0x00600000>; 177 }; 177 }; 178 178 179 partition@700000 { 179 partition@700000 { 180 label = "rootfs"; 180 label = "rootfs"; 181 reg = <0x00700000 0x01 181 reg = <0x00700000 0x01900000>; 182 }; 182 }; 183 }; 183 }; 184 }; 184 }; 185 185 186 &sata_phy0 { 186 &sata_phy0 { 187 status = "okay"; 187 status = "okay"; 188 }; 188 }; 189 189 190 &sata_phy1 { 190 &sata_phy1 { 191 status = "okay"; 191 status = "okay"; 192 }; 192 }; 193 193 194 &srab { 194 &srab { 195 compatible = "brcm,bcm58625-srab", "br 195 compatible = "brcm,bcm58625-srab", "brcm,nsp-srab"; 196 status = "okay"; 196 status = "okay"; 197 197 198 ports { 198 ports { 199 port@0 { 199 port@0 { 200 label = "port0"; 200 label = "port0"; 201 reg = <0>; 201 reg = <0>; 202 }; 202 }; 203 203 204 port@1 { 204 port@1 { 205 label = "port1"; 205 label = "port1"; 206 reg = <1>; 206 reg = <1>; 207 }; 207 }; 208 208 209 port@2 { 209 port@2 { 210 label = "port2"; 210 label = "port2"; 211 reg = <2>; 211 reg = <2>; 212 }; 212 }; 213 213 214 port@3 { 214 port@3 { 215 label = "port3"; 215 label = "port3"; 216 reg = <3>; 216 reg = <3>; 217 }; 217 }; 218 218 219 port@4 { 219 port@4 { 220 label = "port4"; 220 label = "port4"; 221 reg = <4>; 221 reg = <4>; 222 }; 222 }; 223 223 224 port@5 { 224 port@5 { 225 label = "sfp"; 225 label = "sfp"; 226 phy-mode = "sgmii"; 226 phy-mode = "sgmii"; 227 reg = <5>; 227 reg = <5>; 228 sfp = <&sfp>; 228 sfp = <&sfp>; 229 managed = "in-band-sta 229 managed = "in-band-status"; 230 }; 230 }; 231 231 232 port@8 { 232 port@8 { 233 ethernet = <&amac2>; 233 ethernet = <&amac2>; 234 label = "cpu"; 234 label = "cpu"; 235 reg = <8>; 235 reg = <8>; 236 fixed-link { 236 fixed-link { 237 speed = <1000> 237 speed = <1000>; 238 full-duplex; 238 full-duplex; 239 }; 239 }; 240 }; 240 }; 241 }; 241 }; 242 }; 242 }; 243 243 244 &uart0 { 244 &uart0 { 245 status = "okay"; 245 status = "okay"; 246 }; 246 }; 247 247 248 &usb3_phy { 248 &usb3_phy { 249 status = "okay"; 249 status = "okay"; 250 }; 250 }; 251 251 252 &xhci { 252 &xhci { 253 status = "okay"; 253 status = "okay"; 254 }; 254 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.