Jon Mason | a7dd623 | 2016-05-05 19:29:32 -0400 | [diff] [blame] | 1 | /* |
| 2 | * BSD LICENSE |
| 3 | * |
Jon Mason | 1fd2bb6 | 2016-12-13 13:13:45 -0500 | [diff] [blame] | 4 | * Copyright(c) 2016 Broadcom. All rights reserved. |
Jon Mason | a7dd623 | 2016-05-05 19:29:32 -0400 | [diff] [blame] | 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" |
Jon Mason | b1aaf88 | 2016-08-03 14:39:00 -0400 | [diff] [blame] | 36 | #include <dt-bindings/gpio/gpio.h> |
Jon Mason | a7dd623 | 2016-05-05 19:29:32 -0400 | [diff] [blame] | 37 | |
| 38 | / { |
| 39 | model = "NorthStar Plus SVK (BCM958625HR)"; |
| 40 | compatible = "brcm,bcm58625", "brcm,nsp"; |
| 41 | |
| 42 | aliases { |
| 43 | serial0 = &uart0; |
| 44 | }; |
| 45 | |
| 46 | chosen { |
| 47 | stdout-path = "serial0:115200n8"; |
| 48 | }; |
Florian Fainelli | 9a4865d | 2016-06-28 18:04:21 -0700 | [diff] [blame] | 49 | |
| 50 | memory { |
Jon Mason | c53beb4 | 2016-07-14 16:14:17 -0400 | [diff] [blame] | 51 | device_type = "memory"; |
| 52 | reg = <0x60000000 0x80000000>; |
Florian Fainelli | 9a4865d | 2016-06-28 18:04:21 -0700 | [diff] [blame] | 53 | }; |
Jon Mason | b1aaf88 | 2016-08-03 14:39:00 -0400 | [diff] [blame] | 54 | |
| 55 | gpio-restart { |
| 56 | compatible = "gpio-restart"; |
| 57 | gpios = <&gpioa 15 GPIO_ACTIVE_LOW>; |
| 58 | priority = <200>; |
| 59 | }; |
Jon Mason | a7dd623 | 2016-05-05 19:29:32 -0400 | [diff] [blame] | 60 | }; |
| 61 | |
Jon Mason | 1fd2bb6 | 2016-12-13 13:13:45 -0500 | [diff] [blame] | 62 | &amac0 { |
| 63 | status = "okay"; |
| 64 | }; |
| 65 | |
Jon Mason | 5aeda7b | 2016-12-13 13:13:49 -0500 | [diff] [blame] | 66 | &amac1 { |
| 67 | status = "okay"; |
| 68 | }; |
| 69 | |
| 70 | &amac2 { |
| 71 | status = "okay"; |
| 72 | }; |
| 73 | |
Jon Mason | 1d8ece6 | 2017-03-07 18:34:04 -0500 | [diff] [blame^] | 74 | &ehci0 { |
| 75 | status = "okay"; |
| 76 | }; |
| 77 | |
Jon Mason | a7dd623 | 2016-05-05 19:29:32 -0400 | [diff] [blame] | 78 | &nand { |
| 79 | nandcs@0 { |
| 80 | compatible = "brcm,nandcs"; |
| 81 | reg = <0>; |
| 82 | nand-on-flash-bbt; |
| 83 | |
| 84 | #address-cells = <1>; |
| 85 | #size-cells = <1>; |
| 86 | |
| 87 | nand-ecc-strength = <24>; |
| 88 | nand-ecc-step-size = <1024>; |
| 89 | |
| 90 | brcm,nand-oob-sector-size = <27>; |
| 91 | |
| 92 | partition@0 { |
| 93 | label = "nboot"; |
| 94 | reg = <0x00000000 0x00200000>; |
| 95 | read-only; |
| 96 | }; |
| 97 | partition@200000 { |
| 98 | label = "nenv"; |
| 99 | reg = <0x00200000 0x00400000>; |
| 100 | }; |
| 101 | partition@600000 { |
| 102 | label = "nsystem"; |
| 103 | reg = <0x00600000 0x00a00000>; |
| 104 | }; |
| 105 | partition@1000000 { |
| 106 | label = "nrootfs"; |
| 107 | reg = <0x01000000 0x03000000>; |
| 108 | }; |
| 109 | partition@4000000 { |
| 110 | label = "ncustfs"; |
| 111 | reg = <0x04000000 0x3c000000>; |
| 112 | }; |
| 113 | }; |
| 114 | }; |
| 115 | |
Jon Mason | 1d8ece6 | 2017-03-07 18:34:04 -0500 | [diff] [blame^] | 116 | &ohci0 { |
| 117 | status = "okay"; |
| 118 | }; |
| 119 | |
Jon Mason | a7dd623 | 2016-05-05 19:29:32 -0400 | [diff] [blame] | 120 | &pcie0 { |
| 121 | status = "okay"; |
| 122 | }; |
| 123 | |
| 124 | &pcie1 { |
| 125 | status = "okay"; |
| 126 | }; |
| 127 | |
| 128 | &pinctrl { |
| 129 | pinctrl-names = "default"; |
| 130 | pinctrl-0 = <&nand_sel>; |
| 131 | nand_sel: nand_sel { |
| 132 | function = "nand"; |
| 133 | groups = "nand_grp"; |
| 134 | }; |
| 135 | }; |
Florian Fainelli | 1bc1d82 | 2016-07-08 11:49:29 -0700 | [diff] [blame] | 136 | |
Jon Mason | 89b0a4c | 2016-12-13 13:13:47 -0500 | [diff] [blame] | 137 | &qspi { |
| 138 | bspi-sel = <0>; |
| 139 | flash: m25p80@0 { |
| 140 | #address-cells = <1>; |
| 141 | #size-cells = <1>; |
| 142 | compatible = "m25p80"; |
| 143 | reg = <0x0>; |
| 144 | spi-max-frequency = <12500000>; |
| 145 | m25p,fast-read; |
| 146 | spi-cpol; |
| 147 | spi-cpha; |
| 148 | |
| 149 | partition@0 { |
| 150 | label = "boot"; |
| 151 | reg = <0x00000000 0x000a0000>; |
| 152 | }; |
| 153 | |
| 154 | partition@a0000 { |
| 155 | label = "env"; |
| 156 | reg = <0x000a0000 0x00060000>; |
| 157 | }; |
| 158 | |
| 159 | partition@100000 { |
| 160 | label = "system"; |
| 161 | reg = <0x00100000 0x00600000>; |
| 162 | }; |
| 163 | |
| 164 | partition@700000 { |
| 165 | label = "rootfs"; |
| 166 | reg = <0x00700000 0x01900000>; |
| 167 | }; |
| 168 | }; |
| 169 | }; |
| 170 | |
Jon Mason | 1fd2bb6 | 2016-12-13 13:13:45 -0500 | [diff] [blame] | 171 | &sata_phy0 { |
| 172 | status = "okay"; |
| 173 | }; |
| 174 | |
| 175 | &sata_phy1 { |
| 176 | status = "okay"; |
| 177 | }; |
| 178 | |
| 179 | &sata { |
Florian Fainelli | 1bc1d82 | 2016-07-08 11:49:29 -0700 | [diff] [blame] | 180 | status = "okay"; |
| 181 | }; |
| 182 | |
| 183 | &srab { |
| 184 | compatible = "brcm,bcm58625-srab", "brcm,nsp-srab"; |
| 185 | status = "okay"; |
| 186 | |
| 187 | ports { |
| 188 | #address-cells = <1>; |
| 189 | #size-cells = <0>; |
| 190 | |
| 191 | port@0 { |
| 192 | label = "port0"; |
| 193 | reg = <0>; |
| 194 | }; |
| 195 | |
| 196 | port@1 { |
| 197 | label = "port1"; |
| 198 | reg = <1>; |
| 199 | }; |
| 200 | |
| 201 | port@2 { |
| 202 | label = "port2"; |
| 203 | reg = <2>; |
| 204 | }; |
| 205 | |
| 206 | port@3 { |
| 207 | label = "port3"; |
| 208 | reg = <3>; |
| 209 | }; |
| 210 | |
| 211 | port@4 { |
| 212 | label = "port4"; |
| 213 | reg = <4>; |
| 214 | }; |
| 215 | |
| 216 | port@5 { |
| 217 | ethernet = <&amac0>; |
| 218 | label = "cpu"; |
| 219 | reg = <5>; |
| 220 | fixed-link { |
| 221 | speed = <1000>; |
| 222 | full-duplex; |
| 223 | }; |
| 224 | }; |
| 225 | }; |
| 226 | }; |
Jon Mason | 70725d6 | 2016-08-03 14:38:56 -0400 | [diff] [blame] | 227 | |
Jon Mason | 1fd2bb6 | 2016-12-13 13:13:45 -0500 | [diff] [blame] | 228 | &uart0 { |
Jon Mason | 70725d6 | 2016-08-03 14:38:56 -0400 | [diff] [blame] | 229 | status = "okay"; |
| 230 | }; |