| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Device Tree Include file for Freescale Layerscape-1046A family SoC. |
| 4 |
* |
| 5 |
* Copyright 2016 Freescale Semiconductor, Inc. |
| 6 |
* Copyright 2018-2019 NXP |
| 7 |
* |
| 8 |
* Shaohui Xie <[email protected]> |
| 9 |
*/ |
| 10 |
|
| 11 |
/dts-v1/; |
| 12 |
|
| 13 |
#include "fsl-ls1046a.dtsi" |
| 14 |
|
| 15 |
/ { |
| 16 |
model = "LS1046A QDS Board"; |
| 17 |
compatible = "fsl,ls1046a-qds", "fsl,ls1046a"; |
| 18 |
|
| 19 |
aliases { |
| 20 |
emi1-slot1 = &ls1046mdio_s1; |
| 21 |
emi1-slot2 = &ls1046mdio_s2; |
| 22 |
emi1-slot4 = &ls1046mdio_s4; |
| 23 |
gpio0 = &gpio0; |
| 24 |
gpio1 = &gpio1; |
| 25 |
gpio2 = &gpio2; |
| 26 |
gpio3 = &gpio3; |
| 27 |
qsgmii-s2-p1 = &qsgmii_phy_s2_p1; |
| 28 |
qsgmii-s2-p2 = &qsgmii_phy_s2_p2; |
| 29 |
qsgmii-s2-p3 = &qsgmii_phy_s2_p3; |
| 30 |
qsgmii-s2-p4 = &qsgmii_phy_s2_p4; |
| 31 |
serial0 = &duart0; |
| 32 |
serial1 = &duart1; |
| 33 |
serial2 = &duart2; |
| 34 |
serial3 = &duart3; |
| 35 |
sgmii-s1-p1 = &sgmii_phy_s1_p1; |
| 36 |
sgmii-s1-p2 = &sgmii_phy_s1_p2; |
| 37 |
sgmii-s1-p3 = &sgmii_phy_s1_p3; |
| 38 |
sgmii-s1-p4 = &sgmii_phy_s1_p4; |
| 39 |
sgmii-s4-p1 = &sgmii_phy_s4_p1; |
| 40 |
}; |
| 41 |
|
| 42 |
chosen { |
| 43 |
stdout-path = "serial0:115200n8"; |
| 44 |
}; |
| 45 |
|
| 46 |
sfp1: sfp-1 { |
| 47 |
compatible = "sff,sfp"; |
| 48 |
i2c-bus = <&sfp1_i2c>; |
| 49 |
maximum-power-milliwatt = <2000>; |
| 50 |
mod-def0-gpios = <&stat_pres2 6 GPIO_ACTIVE_LOW>; |
| 51 |
}; |
| 52 |
|
| 53 |
sfp2: sfp-2 { |
| 54 |
compatible = "sff,sfp"; |
| 55 |
i2c-bus = <&sfp2_i2c>; |
| 56 |
maximum-power-milliwatt = <2000>; |
| 57 |
mod-def0-gpios = <&stat_pres2 7 GPIO_ACTIVE_LOW>; |
| 58 |
}; |
| 59 |
|
| 60 |
}; |
| 61 |
|
| 62 |
&dspi { |
| 63 |
bus-num = <0>; |
| 64 |
status = "okay"; |
| 65 |
|
| 66 |
flash@0 { |
| 67 |
#address-cells = <1>; |
| 68 |
#size-cells = <1>; |
| 69 |
compatible = "n25q128a11", "jedec,spi-nor"; |
| 70 |
reg = <0>; |
| 71 |
spi-max-frequency = <10000000>; |
| 72 |
}; |
| 73 |
|
| 74 |
flash@1 { |
| 75 |
#address-cells = <1>; |
| 76 |
#size-cells = <1>; |
| 77 |
compatible = "sst25wf040b", "jedec,spi-nor"; |
| 78 |
spi-cpol; |
| 79 |
spi-cpha; |
| 80 |
reg = <1>; |
| 81 |
spi-max-frequency = <10000000>; |
| 82 |
}; |
| 83 |
|
| 84 |
flash@2 { |
| 85 |
#address-cells = <1>; |
| 86 |
#size-cells = <1>; |
| 87 |
compatible = "jedec,spi-nor"; |
| 88 |
spi-cpol; |
| 89 |
spi-cpha; |
| 90 |
reg = <2>; |
| 91 |
spi-max-frequency = <10000000>; |
| 92 |
}; |
| 93 |
}; |
| 94 |
|
| 95 |
&duart0 { |
| 96 |
status = "okay"; |
| 97 |
}; |
| 98 |
|
| 99 |
&duart1 { |
| 100 |
status = "okay"; |
| 101 |
}; |
| 102 |
|
| 103 |
&i2c0 { |
| 104 |
status = "okay"; |
| 105 |
|
| 106 |
i2c-mux@77 { |
| 107 |
compatible = "nxp,pca9547"; |
| 108 |
reg = <0x77>; |
| 109 |
#address-cells = <1>; |
| 110 |
#size-cells = <0>; |
| 111 |
|
| 112 |
i2c@2 { |
| 113 |
#address-cells = <1>; |
| 114 |
#size-cells = <0>; |
| 115 |
reg = <0x2>; |
| 116 |
|
| 117 |
ina220@40 { |
| 118 |
compatible = "ti,ina220"; |
| 119 |
reg = <0x40>; |
| 120 |
shunt-resistor = <1000>; |
| 121 |
}; |
| 122 |
|
| 123 |
ina220@41 { |
| 124 |
compatible = "ti,ina220"; |
| 125 |
reg = <0x41>; |
| 126 |
shunt-resistor = <1000>; |
| 127 |
}; |
| 128 |
}; |
| 129 |
|
| 130 |
i2c@3 { |
| 131 |
#address-cells = <1>; |
| 132 |
#size-cells = <0>; |
| 133 |
reg = <0x3>; |
| 134 |
|
| 135 |
rtc@51 { |
| 136 |
compatible = "nxp,pcf2129"; |
| 137 |
reg = <0x51>; |
| 138 |
/* IRQ10_B */ |
| 139 |
interrupts = <0 150 0x4>; |
| 140 |
}; |
| 141 |
|
| 142 |
eeprom@56 { |
| 143 |
compatible = "atmel,24c512"; |
| 144 |
reg = <0x56>; |
| 145 |
}; |
| 146 |
|
| 147 |
eeprom@57 { |
| 148 |
compatible = "atmel,24c512"; |
| 149 |
reg = <0x57>; |
| 150 |
}; |
| 151 |
|
| 152 |
temp-sensor@4c { |
| 153 |
compatible = "adi,adt7461a"; |
| 154 |
reg = <0x4c>; |
| 155 |
}; |
| 156 |
}; |
| 157 |
|
| 158 |
i2c@7 { |
| 159 |
reg = <0x7>; |
| 160 |
#address-cells = <1>; |
| 161 |
#size-cells = <0>; |
| 162 |
|
| 163 |
i2c-mux@76 { |
| 164 |
compatible = "nxp,pca9547"; |
| 165 |
reg = <0x76>; |
| 166 |
#address-cells = <1>; |
| 167 |
#size-cells = <0>; |
| 168 |
|
| 169 |
sfp1_i2c: i2c@6 { |
| 170 |
reg = <0x6>; |
| 171 |
#address-cells = <1>; |
| 172 |
#size-cells = <0>; |
| 173 |
}; |
| 174 |
|
| 175 |
sfp2_i2c: i2c@7 { |
| 176 |
reg = <0x7>; |
| 177 |
#address-cells = <1>; |
| 178 |
#size-cells = <0>; |
| 179 |
}; |
| 180 |
}; |
| 181 |
}; |
| 182 |
}; |
| 183 |
}; |
| 184 |
|
| 185 |
&ifc { |
| 186 |
#address-cells = <2>; |
| 187 |
#size-cells = <1>; |
| 188 |
/* NOR, NAND Flashes and FPGA on board */ |
| 189 |
ranges = <0x0 0x0 0x0 0x60000000 0x08000000 |
| 190 |
0x1 0x0 0x0 0x7e800000 0x00010000 |
| 191 |
0x2 0x0 0x0 0x7fb00000 0x00000100>; |
| 192 |
status = "okay"; |
| 193 |
|
| 194 |
flash@0,0 { |
| 195 |
compatible = "cfi-flash"; |
| 196 |
reg = <0x0 0x0 0x8000000>; |
| 197 |
big-endian; |
| 198 |
bank-width = <2>; |
| 199 |
device-width = <1>; |
| 200 |
}; |
| 201 |
|
| 202 |
nand@1,0 { |
| 203 |
compatible = "fsl,ifc-nand"; |
| 204 |
reg = <0x1 0x0 0x10000>; |
| 205 |
}; |
| 206 |
|
| 207 |
fpga: board-control@2,0 { |
| 208 |
compatible = "fsl,ls1046aqds-fpga", "fsl,fpga-qixis", "simple-mfd"; |
| 209 |
#address-cells = <1>; |
| 210 |
#size-cells = <1>; |
| 211 |
reg = <0x2 0x0 0x0000100>; |
| 212 |
ranges = <0 2 0 0x100>; |
| 213 |
|
| 214 |
stat_pres2: gpio@c { |
| 215 |
compatible = "fsl,ls1046aqds-fpga-gpio-stat-pres2"; |
| 216 |
reg = <0xc 1>; |
| 217 |
gpio-controller; |
| 218 |
#gpio-cells = <2>; |
| 219 |
gpio-line-names = |
| 220 |
"SLOT1", "SLOT2", "SLOT3", "SLOT4", "SLOT5", "SLOT6", |
| 221 |
"SFP1_MOD_DEF", "SFP2_MOD_DEF"; |
| 222 |
}; |
| 223 |
}; |
| 224 |
}; |
| 225 |
|
| 226 |
&lpuart0 { |
| 227 |
status = "okay"; |
| 228 |
}; |
| 229 |
|
| 230 |
&qspi { |
| 231 |
status = "okay"; |
| 232 |
|
| 233 |
qflash0: flash@0 { |
| 234 |
compatible = "spansion,m25p80"; |
| 235 |
#address-cells = <1>; |
| 236 |
#size-cells = <1>; |
| 237 |
spi-max-frequency = <50000000>; |
| 238 |
spi-rx-bus-width = <4>; |
| 239 |
spi-tx-bus-width = <4>; |
| 240 |
reg = <0>; |
| 241 |
}; |
| 242 |
}; |
| 243 |
|
| 244 |
#include "fsl-ls1046-post.dtsi" |
| 245 |
|
| 246 |
&fman0 { |
| 247 |
ethernet@e0000 { |
| 248 |
phy-handle = <&qsgmii_phy_s2_p1>; |
| 249 |
phy-connection-type = "sgmii"; |
| 250 |
}; |
| 251 |
|
| 252 |
ethernet@e2000 { |
| 253 |
phy-handle = <&sgmii_phy_s4_p1>; |
| 254 |
phy-connection-type = "sgmii"; |
| 255 |
}; |
| 256 |
|
| 257 |
ethernet@e4000 { |
| 258 |
phy-handle = <&rgmii_phy1>; |
| 259 |
phy-connection-type = "rgmii"; |
| 260 |
}; |
| 261 |
|
| 262 |
ethernet@e6000 { |
| 263 |
phy-handle = <&rgmii_phy2>; |
| 264 |
phy-connection-type = "rgmii"; |
| 265 |
}; |
| 266 |
|
| 267 |
ethernet@e8000 { |
| 268 |
phy-handle = <&sgmii_phy_s1_p3>; |
| 269 |
phy-connection-type = "sgmii"; |
| 270 |
}; |
| 271 |
|
| 272 |
ethernet@ea000 { |
| 273 |
phy-handle = <&sgmii_phy_s1_p4>; |
| 274 |
phy-connection-type = "sgmii"; |
| 275 |
}; |
| 276 |
|
| 277 |
ethernet@f0000 { /* DTSEC9/10GEC1 */ |
| 278 |
phy-handle = <&sgmii_phy_s1_p1>; |
| 279 |
phy-connection-type = "xgmii"; |
| 280 |
}; |
| 281 |
|
| 282 |
ethernet@f2000 { /* DTSEC10/10GEC2 */ |
| 283 |
phy-handle = <&sgmii_phy_s1_p2>; |
| 284 |
phy-connection-type = "xgmii"; |
| 285 |
}; |
| 286 |
}; |
| 287 |
|
| 288 |
&fpga { |
| 289 |
#address-cells = <1>; |
| 290 |
#size-cells = <1>; |
| 291 |
|
| 292 |
mdio-mux@54 { |
| 293 |
compatible = "mdio-mux-mmioreg", "mdio-mux"; |
| 294 |
mdio-parent-bus = <&mdio0>; |
| 295 |
#address-cells = <1>; |
| 296 |
#size-cells = <0>; |
| 297 |
reg = <0x54 1>; /* BRDCFG4 */ |
| 298 |
mux-mask = <0xe0>; /* EMI1 */ |
| 299 |
|
| 300 |
/* On-board RGMII1 PHY */ |
| 301 |
ls1046mdio0: mdio@0 { |
| 302 |
reg = <0>; |
| 303 |
#address-cells = <1>; |
| 304 |
#size-cells = <0>; |
| 305 |
|
| 306 |
rgmii_phy1: ethernet-phy@1 { /* MAC3 */ |
| 307 |
reg = <0x1>; |
| 308 |
}; |
| 309 |
}; |
| 310 |
|
| 311 |
/* On-board RGMII2 PHY */ |
| 312 |
ls1046mdio1: mdio@1 { |
| 313 |
reg = <0x20>; |
| 314 |
#address-cells = <1>; |
| 315 |
#size-cells = <0>; |
| 316 |
|
| 317 |
rgmii_phy2: ethernet-phy@2 { /* MAC4 */ |
| 318 |
reg = <0x2>; |
| 319 |
}; |
| 320 |
}; |
| 321 |
|
| 322 |
/* Slot 1 */ |
| 323 |
ls1046mdio_s1: mdio@2 { |
| 324 |
reg = <0x40>; |
| 325 |
#address-cells = <1>; |
| 326 |
#size-cells = <0>; |
| 327 |
status = "disabled"; |
| 328 |
|
| 329 |
sgmii_phy_s1_p1: ethernet-phy@1c { |
| 330 |
reg = <0x1c>; |
| 331 |
}; |
| 332 |
|
| 333 |
sgmii_phy_s1_p2: ethernet-phy@1d { |
| 334 |
reg = <0x1d>; |
| 335 |
}; |
| 336 |
|
| 337 |
sgmii_phy_s1_p3: ethernet-phy@1e { |
| 338 |
reg = <0x1e>; |
| 339 |
}; |
| 340 |
|
| 341 |
sgmii_phy_s1_p4: ethernet-phy@1f { |
| 342 |
reg = <0x1f>; |
| 343 |
}; |
| 344 |
}; |
| 345 |
|
| 346 |
/* Slot 2 */ |
| 347 |
ls1046mdio_s2: mdio@3 { |
| 348 |
reg = <0x60>; |
| 349 |
#address-cells = <1>; |
| 350 |
#size-cells = <0>; |
| 351 |
status = "disabled"; |
| 352 |
|
| 353 |
qsgmii_phy_s2_p1: ethernet-phy@8 { |
| 354 |
reg = <0x8>; |
| 355 |
}; |
| 356 |
|
| 357 |
qsgmii_phy_s2_p2: ethernet-phy@9 { |
| 358 |
reg = <0x9>; |
| 359 |
}; |
| 360 |
|
| 361 |
qsgmii_phy_s2_p3: ethernet-phy@a { |
| 362 |
reg = <0xa>; |
| 363 |
}; |
| 364 |
|
| 365 |
qsgmii_phy_s2_p4: ethernet-phy@b { |
| 366 |
reg = <0xb>; |
| 367 |
}; |
| 368 |
}; |
| 369 |
|
| 370 |
/* Slot 4 */ |
| 371 |
ls1046mdio_s4: mdio@5 { |
| 372 |
reg = <0x80>; |
| 373 |
#address-cells = <1>; |
| 374 |
#size-cells = <0>; |
| 375 |
status = "disabled"; |
| 376 |
|
| 377 |
sgmii_phy_s4_p1: ethernet-phy@1c { |
| 378 |
reg = <0x1c>; |
| 379 |
}; |
| 380 |
}; |
| 381 |
}; |
| 382 |
}; |