Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 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 "ns2.dtsi" |
| 36 | |
| 37 | / { |
| 38 | model = "Broadcom NS2 SVK"; |
| 39 | compatible = "brcm,ns2-svk", "brcm,ns2"; |
| 40 | |
| 41 | aliases { |
| 42 | serial0 = &uart3; |
| 43 | serial1 = &uart0; |
| 44 | serial2 = &uart1; |
| 45 | serial3 = &uart2; |
| 46 | }; |
| 47 | |
| 48 | chosen { |
| 49 | stdout-path = "serial0:115200n8"; |
| 50 | bootargs = "earlycon=uart8250,mmio32,0x66130000"; |
| 51 | }; |
| 52 | |
| 53 | memory { |
| 54 | device_type = "memory"; |
| 55 | reg = <0x00000000 0x80000000 0x00000000 0x40000000>; |
| 56 | }; |
| 57 | }; |
| 58 | |
| 59 | &enet { |
| 60 | status = "okay"; |
| 61 | }; |
| 62 | |
| 63 | &pci_phy0 { |
| 64 | status = "okay"; |
| 65 | }; |
| 66 | |
| 67 | &pci_phy1 { |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | |
| 71 | &pcie0 { |
| 72 | status = "okay"; |
| 73 | }; |
| 74 | |
| 75 | &pcie4 { |
| 76 | status = "okay"; |
| 77 | }; |
| 78 | |
| 79 | &pcie8 { |
| 80 | status = "okay"; |
| 81 | }; |
| 82 | |
| 83 | &i2c0 { |
| 84 | status = "okay"; |
| 85 | }; |
| 86 | |
| 87 | &i2c1 { |
| 88 | status = "okay"; |
| 89 | }; |
| 90 | |
| 91 | &uart0 { |
| 92 | status = "okay"; |
| 93 | }; |
| 94 | |
| 95 | &uart1 { |
| 96 | status = "okay"; |
| 97 | }; |
| 98 | |
| 99 | &uart2 { |
| 100 | status = "okay"; |
| 101 | }; |
| 102 | |
| 103 | &uart3 { |
| 104 | status = "okay"; |
| 105 | }; |
| 106 | |
| 107 | &ssp0 { |
| 108 | status = "okay"; |
| 109 | |
| 110 | slic@0 { |
| 111 | compatible = "silabs,si3226x"; |
| 112 | reg = <0>; |
| 113 | spi-max-frequency = <5000000>; |
| 114 | spi-cpha; |
| 115 | spi-cpol; |
| 116 | pl022,interface = <0>; |
| 117 | pl022,slave-tx-disable = <0>; |
| 118 | pl022,com-mode = <0>; |
| 119 | pl022,rx-level-trig = <1>; |
| 120 | pl022,tx-level-trig = <1>; |
| 121 | pl022,ctrl-len = <11>; |
| 122 | pl022,wait-state = <0>; |
| 123 | pl022,duplex = <0>; |
| 124 | }; |
| 125 | }; |
| 126 | |
| 127 | &ssp1 { |
| 128 | status = "okay"; |
| 129 | |
| 130 | at25@0 { |
| 131 | compatible = "atmel,at25"; |
| 132 | reg = <0>; |
| 133 | spi-max-frequency = <5000000>; |
| 134 | at25,byte-len = <0x8000>; |
| 135 | at25,addr-mode = <2>; |
| 136 | at25,page-size = <64>; |
| 137 | spi-cpha; |
| 138 | spi-cpol; |
| 139 | pl022,interface = <0>; |
| 140 | pl022,slave-tx-disable = <0>; |
| 141 | pl022,com-mode = <0>; |
| 142 | pl022,rx-level-trig = <1>; |
| 143 | pl022,tx-level-trig = <1>; |
| 144 | pl022,ctrl-len = <11>; |
| 145 | pl022,wait-state = <0>; |
| 146 | pl022,duplex = <0>; |
| 147 | }; |
| 148 | }; |
| 149 | |
| 150 | &sata_phy0 { |
| 151 | status = "okay"; |
| 152 | }; |
| 153 | |
| 154 | &sata_phy1 { |
| 155 | status = "okay"; |
| 156 | }; |
| 157 | |
| 158 | &sata { |
| 159 | status = "okay"; |
| 160 | }; |
| 161 | |
| 162 | &sdio0 { |
| 163 | status = "okay"; |
| 164 | }; |
| 165 | |
| 166 | &sdio1 { |
| 167 | status = "okay"; |
| 168 | }; |
| 169 | |
| 170 | &nand { |
| 171 | nandcs@0 { |
| 172 | compatible = "brcm,nandcs"; |
| 173 | reg = <0>; |
| 174 | nand-ecc-mode = "hw"; |
| 175 | nand-ecc-strength = <8>; |
| 176 | nand-ecc-step-size = <512>; |
| 177 | nand-bus-width = <16>; |
| 178 | brcm,nand-oob-sector-size = <16>; |
| 179 | #address-cells = <1>; |
| 180 | #size-cells = <1>; |
| 181 | }; |
| 182 | }; |
| 183 | |
| 184 | &mdio_mux_iproc { |
| 185 | mdio@10 { |
| 186 | gphy0: eth-phy@10 { |
| 187 | enet-phy-lane-swap; |
| 188 | reg = <0x10>; |
| 189 | }; |
| 190 | }; |
| 191 | }; |
| 192 | |
| 193 | &pinctrl { |
| 194 | pinctrl-names = "default"; |
| 195 | pinctrl-0 = <&nand_sel>; |
| 196 | nand_sel: nand_sel { |
| 197 | function = "nand"; |
| 198 | groups = "nand_grp"; |
| 199 | }; |
| 200 | }; |
| 201 | |
| 202 | &qspi { |
| 203 | bspi-sel = <0>; |
| 204 | flash: flash@0 { |
| 205 | #address-cells = <1>; |
| 206 | #size-cells = <1>; |
| 207 | compatible = "m25p80"; |
| 208 | reg = <0x0>; |
| 209 | spi-max-frequency = <12500000>; |
| 210 | m25p,fast-read; |
| 211 | spi-cpol; |
| 212 | spi-cpha; |
| 213 | |
| 214 | partition@0 { |
| 215 | label = "boot"; |
| 216 | reg = <0x00000000 0x000a0000>; |
| 217 | }; |
| 218 | |
| 219 | partition@a0000 { |
| 220 | label = "env"; |
| 221 | reg = <0x000a0000 0x00060000>; |
| 222 | }; |
| 223 | |
| 224 | partition@100000 { |
| 225 | label = "system"; |
| 226 | reg = <0x00100000 0x00600000>; |
| 227 | }; |
| 228 | |
| 229 | partition@700000 { |
| 230 | label = "rootfs"; |
| 231 | reg = <0x00700000 0x01900000>; |
| 232 | }; |
| 233 | }; |
| 234 | }; |