| 1 |
// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) |
| 2 |
/* |
| 3 |
* Copyright 2019-2025 TQ-Systems GmbH <[email protected]>, |
| 4 |
* D-82229 Seefeld, Germany. |
| 5 |
* Author: Michael Krummsdorf |
| 6 |
* Author: Matthias Schiffer |
| 7 |
* Author: Alexander Stein |
| 8 |
*/ |
| 9 |
|
| 10 |
#include <dt-bindings/gpio/gpio.h> |
| 11 |
#include <dt-bindings/net/ti-dp83867.h> |
| 12 |
#include "fsl-ls1028a-tqmls1028a.dtsi" |
| 13 |
|
| 14 |
/ { |
| 15 |
aliases { |
| 16 |
crypto = &crypto; |
| 17 |
gpio0 = &gpio1; |
| 18 |
gpio1 = &gpio2; |
| 19 |
gpio2 = &gpio3; |
| 20 |
mmc0 = &esdhc; /* SD-Card */ |
| 21 |
mmc1 = &esdhc1; /* eMMC */ |
| 22 |
serial0 = &duart0; |
| 23 |
serial1 = &duart1; |
| 24 |
}; |
| 25 |
|
| 26 |
chosen { |
| 27 |
stdout-path = &duart0; |
| 28 |
}; |
| 29 |
|
| 30 |
reg_1p8v: regulator-1p8v { |
| 31 |
compatible = "regulator-fixed"; |
| 32 |
regulator-name = "V_1V8"; |
| 33 |
regulator-min-microvolt = <1800000>; |
| 34 |
regulator-max-microvolt = <1800000>; |
| 35 |
regulator-always-on; |
| 36 |
}; |
| 37 |
|
| 38 |
reg_3p3v: regulator-3p3v { |
| 39 |
compatible = "regulator-fixed"; |
| 40 |
regulator-name = "V_3V3"; |
| 41 |
regulator-min-microvolt = <3300000>; |
| 42 |
regulator-max-microvolt = <3300000>; |
| 43 |
regulator-always-on; |
| 44 |
}; |
| 45 |
|
| 46 |
reserved-memory { |
| 47 |
#address-cells = <2>; |
| 48 |
#size-cells = <2>; |
| 49 |
ranges; |
| 50 |
|
| 51 |
/* global autoconfigured region for contiguous allocations */ |
| 52 |
linux,cma { |
| 53 |
compatible = "shared-dma-pool"; |
| 54 |
reusable; |
| 55 |
/* 256 MiB */ |
| 56 |
size = <0 0x10000000>; |
| 57 |
linux,cma-default; |
| 58 |
}; |
| 59 |
}; |
| 60 |
}; |
| 61 |
|
| 62 |
&can0 { |
| 63 |
status = "okay"; |
| 64 |
}; |
| 65 |
|
| 66 |
&can1 { |
| 67 |
status = "okay"; |
| 68 |
}; |
| 69 |
|
| 70 |
&dspi2 { |
| 71 |
bus-num = <2>; |
| 72 |
status = "okay"; |
| 73 |
}; |
| 74 |
|
| 75 |
&duart0 { |
| 76 |
status = "okay"; |
| 77 |
}; |
| 78 |
|
| 79 |
&duart1 { |
| 80 |
status = "okay"; |
| 81 |
}; |
| 82 |
|
| 83 |
&esdhc { |
| 84 |
cd-gpios = <&gpio1 31 GPIO_ACTIVE_LOW>; |
| 85 |
disable-wp; |
| 86 |
no-mmc; |
| 87 |
no-sdio; |
| 88 |
no-1-8-v; |
| 89 |
bus-width = <4>; |
| 90 |
status = "okay"; |
| 91 |
}; |
| 92 |
|
| 93 |
/* When switched to baseboard-internal i2c bus, |
| 94 |
* IIC5 has access to the following devices. |
| 95 |
*/ |
| 96 |
&i2c4 { |
| 97 |
/* TUSB8041 only supports 100 KHz, but it is not connected */ |
| 98 |
clock-frequency = <400000>; |
| 99 |
status = "okay"; |
| 100 |
|
| 101 |
/* SI5338 - set up in U-Boot */ |
| 102 |
/* clockgen@70 */ |
| 103 |
}; |
| 104 |
|
| 105 |
&i2c5 { |
| 106 |
clock-frequency = <400000>; |
| 107 |
status = "okay"; |
| 108 |
|
| 109 |
gpio_exp_1v8: gpio@70 { |
| 110 |
compatible = "nxp,pca9538"; |
| 111 |
reg = <0x70>; |
| 112 |
#gpio-cells = <2>; |
| 113 |
gpio-controller; |
| 114 |
#interrupt-cells = <2>; |
| 115 |
interrupt-controller; |
| 116 |
interrupt-parent = <&gpio1>; |
| 117 |
interrupts = <30 IRQ_TYPE_LEVEL_LOW>; |
| 118 |
vcc-supply = <®_1p8v>; |
| 119 |
|
| 120 |
ec1-intn-hog { |
| 121 |
gpio-hog; |
| 122 |
gpios = <0 0>; |
| 123 |
input; |
| 124 |
line-name = "EC1_INT#"; |
| 125 |
}; |
| 126 |
|
| 127 |
sgmii-intn-hog { |
| 128 |
gpio-hog; |
| 129 |
gpios = <2 0>; |
| 130 |
input; |
| 131 |
line-name = "SGMII_INT#"; |
| 132 |
}; |
| 133 |
|
| 134 |
qsgmii-intn-hog { |
| 135 |
gpio-hog; |
| 136 |
gpios = <4 0>; |
| 137 |
input; |
| 138 |
line-name = "QSGMII_INT#"; |
| 139 |
}; |
| 140 |
|
| 141 |
qsgmii-rstn-hog { |
| 142 |
gpio-hog; |
| 143 |
gpios = <5 0>; |
| 144 |
output-high; |
| 145 |
line-name = "QSGMII_RESET#"; |
| 146 |
}; |
| 147 |
}; |
| 148 |
}; |
| 149 |
|
| 150 |
&enetc_mdio_pf3 { |
| 151 |
mdio0_rgmii_phy00: ethernet-phy@0 { |
| 152 |
compatible = "ethernet-phy-ieee802.3-c22"; |
| 153 |
reg = <0x00>; |
| 154 |
reset-gpios = <&gpio_exp_1v8 1 GPIO_ACTIVE_LOW>; |
| 155 |
reset-assert-us = <1>; |
| 156 |
reset-deassert-us = <200>; |
| 157 |
interrupt-parent = <&gpio_exp_1v8>; |
| 158 |
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
| 159 |
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_50_NS>; |
| 160 |
ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
| 161 |
ti,clk-output-sel = <DP83867_CLK_O_SEL_OFF>; |
| 162 |
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 163 |
}; |
| 164 |
|
| 165 |
mdio0_sgmii_phy03: ethernet-phy@3 { |
| 166 |
compatible = "ethernet-phy-ieee802.3-c22"; |
| 167 |
reg = <0x03>; |
| 168 |
reset-gpios = <&gpio_exp_1v8 3 GPIO_ACTIVE_LOW>; |
| 169 |
/* |
| 170 |
* Long reset to work around PHY incorrect strap pin sampling |
| 171 |
* due to external capacitors for SGMII |
| 172 |
*/ |
| 173 |
reset-assert-us = <2500>; |
| 174 |
reset-deassert-us = <200>; |
| 175 |
interrupt-parent = <&gpio_exp_1v8>; |
| 176 |
interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
| 177 |
ti,clk-output-sel = <DP83867_CLK_O_SEL_OFF>; |
| 178 |
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 179 |
}; |
| 180 |
|
| 181 |
qsgmii_phy1: ethernet-phy@1c { |
| 182 |
reg = <0x1c>; |
| 183 |
}; |
| 184 |
|
| 185 |
qsgmii_phy2: ethernet-phy@1d { |
| 186 |
reg = <0x1d>; |
| 187 |
}; |
| 188 |
|
| 189 |
qsgmii_phy3: ethernet-phy@1e { |
| 190 |
reg = <0x1e>; |
| 191 |
}; |
| 192 |
|
| 193 |
qsgmii_phy4: ethernet-phy@1f { |
| 194 |
reg = <0x1f>; |
| 195 |
}; |
| 196 |
}; |
| 197 |
|
| 198 |
&enetc_port0 { |
| 199 |
phy-handle = <&mdio0_sgmii_phy03>; |
| 200 |
phy-mode = "sgmii"; |
| 201 |
managed = "in-band-status"; |
| 202 |
status = "okay"; |
| 203 |
}; |
| 204 |
|
| 205 |
&enetc_port1 { |
| 206 |
phy-handle = <&mdio0_rgmii_phy00>; |
| 207 |
phy-mode = "rgmii-id"; |
| 208 |
status = "okay"; |
| 209 |
}; |
| 210 |
|
| 211 |
&enetc_port2 { |
| 212 |
status = "okay"; |
| 213 |
}; |
| 214 |
|
| 215 |
&mscc_felix { |
| 216 |
status = "okay"; |
| 217 |
}; |
| 218 |
|
| 219 |
/* l2switch ports */ |
| 220 |
&mscc_felix_port0 { |
| 221 |
phy-handle = <&qsgmii_phy1>; |
| 222 |
phy-mode = "qsgmii"; |
| 223 |
status = "okay"; |
| 224 |
}; |
| 225 |
|
| 226 |
&mscc_felix_port1 { |
| 227 |
phy-handle = <&qsgmii_phy2>; |
| 228 |
phy-mode = "qsgmii"; |
| 229 |
status = "okay"; |
| 230 |
}; |
| 231 |
|
| 232 |
&mscc_felix_port2 { |
| 233 |
phy-handle = <&qsgmii_phy3>; |
| 234 |
phy-mode = "qsgmii"; |
| 235 |
status = "okay"; |
| 236 |
}; |
| 237 |
|
| 238 |
&mscc_felix_port3 { |
| 239 |
phy-handle = <&qsgmii_phy4>; |
| 240 |
phy-mode = "qsgmii"; |
| 241 |
status = "okay"; |
| 242 |
}; |
| 243 |
|
| 244 |
&mscc_felix_port4 { |
| 245 |
ethernet = <&enetc_port2>; |
| 246 |
status = "okay"; |
| 247 |
}; |
| 248 |
|
| 249 |
&pcie2 { |
| 250 |
status = "okay"; |
| 251 |
}; |
| 252 |
|
| 253 |
&sata { |
| 254 |
status = "okay"; |
| 255 |
}; |
| 256 |
|
| 257 |
&usb0 { |
| 258 |
/* dual role is implemented, but not a full featured OTG */ |
| 259 |
hnp-disable; |
| 260 |
srp-disable; |
| 261 |
adp-disable; |
| 262 |
dr_mode = "otg"; |
| 263 |
status = "okay"; |
| 264 |
}; |
| 265 |
|
| 266 |
&usb1 { |
| 267 |
dr_mode = "host"; |
| 268 |
#address-cells = <1>; |
| 269 |
#size-cells = <0>; |
| 270 |
status = "okay"; |
| 271 |
|
| 272 |
hub_2_0: hub@1 { |
| 273 |
compatible = "usb451,8142"; |
| 274 |
reg = <1>; |
| 275 |
peer-hub = <&hub_3_0>; |
| 276 |
reset-gpios = <&gpio_exp_3v3 1 GPIO_ACTIVE_LOW>; |
| 277 |
vdd-supply = <®_3p3v>; |
| 278 |
}; |
| 279 |
|
| 280 |
hub_3_0: hub@2 { |
| 281 |
compatible = "usb451,8140"; |
| 282 |
reg = <2>; |
| 283 |
peer-hub = <&hub_2_0>; |
| 284 |
reset-gpios = <&gpio_exp_3v3 1 GPIO_ACTIVE_LOW>; |
| 285 |
vdd-supply = <®_3p3v>; |
| 286 |
}; |
| 287 |
}; |