0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Device Tree file for NXP LS1028A RDB Board.
0004 *
0005 * Copyright 2018-2021 NXP
0006 *
0007 * Harninder Rai <harninder.rai@nxp.com>
0008 *
0009 */
0010
0011 /dts-v1/;
0012 #include "fsl-ls1028a.dtsi"
0013
0014 / {
0015 model = "LS1028A RDB Board";
0016 compatible = "fsl,ls1028a-rdb", "fsl,ls1028a";
0017
0018 aliases {
0019 crypto = &crypto;
0020 serial0 = &duart0;
0021 serial1 = &duart1;
0022 mmc0 = &esdhc;
0023 mmc1 = &esdhc1;
0024 rtc1 = &ftm_alarm1;
0025 spi0 = &fspi;
0026 ethernet0 = &enetc_port0;
0027 ethernet1 = &enetc_port2;
0028 ethernet2 = &mscc_felix_port0;
0029 ethernet3 = &mscc_felix_port1;
0030 ethernet4 = &mscc_felix_port2;
0031 ethernet5 = &mscc_felix_port3;
0032 };
0033
0034 chosen {
0035 stdout-path = "serial0:115200n8";
0036 };
0037
0038 memory@80000000 {
0039 device_type = "memory";
0040 reg = <0x0 0x80000000 0x1 0x0000000>;
0041 };
0042
0043 sys_mclk: clock-mclk {
0044 compatible = "fixed-clock";
0045 #clock-cells = <0>;
0046 clock-frequency = <25000000>;
0047 };
0048
0049 reg_1p8v: regulator-1p8v {
0050 compatible = "regulator-fixed";
0051 regulator-name = "1P8V";
0052 regulator-min-microvolt = <1800000>;
0053 regulator-max-microvolt = <1800000>;
0054 regulator-always-on;
0055 };
0056
0057 sb_3v3: regulator-sb3v3 {
0058 compatible = "regulator-fixed";
0059 regulator-name = "3v3_vbus";
0060 regulator-min-microvolt = <3300000>;
0061 regulator-max-microvolt = <3300000>;
0062 regulator-boot-on;
0063 regulator-always-on;
0064 };
0065
0066 sound {
0067 compatible = "simple-audio-card";
0068 simple-audio-card,format = "i2s";
0069 simple-audio-card,widgets =
0070 "Microphone", "Microphone Jack",
0071 "Headphone", "Headphone Jack",
0072 "Speaker", "Speaker Ext",
0073 "Line", "Line In Jack";
0074 simple-audio-card,routing =
0075 "MIC_IN", "Microphone Jack",
0076 "Microphone Jack", "Mic Bias",
0077 "LINE_IN", "Line In Jack",
0078 "Headphone Jack", "HP_OUT",
0079 "Speaker Ext", "LINE_OUT";
0080
0081 simple-audio-card,cpu {
0082 sound-dai = <&sai4>;
0083 frame-master;
0084 bitclock-master;
0085 };
0086
0087 simple-audio-card,codec {
0088 sound-dai = <&sgtl5000>;
0089 frame-master;
0090 bitclock-master;
0091 system-clock-frequency = <25000000>;
0092 };
0093 };
0094 };
0095
0096 &can0 {
0097 status = "okay";
0098
0099 can-transceiver {
0100 max-bitrate = <5000000>;
0101 };
0102 };
0103
0104 &can1 {
0105 status = "okay";
0106
0107 can-transceiver {
0108 max-bitrate = <5000000>;
0109 };
0110 };
0111
0112 &duart0 {
0113 status = "okay";
0114 };
0115
0116 &duart1 {
0117 status = "okay";
0118 };
0119
0120 &enetc_mdio_pf3 {
0121 sgmii_phy0: ethernet-phy@2 {
0122 reg = <0x2>;
0123 };
0124
0125 /* VSC8514 QSGMII quad PHY */
0126 qsgmii_phy0: ethernet-phy@10 {
0127 reg = <0x10>;
0128 };
0129
0130 qsgmii_phy1: ethernet-phy@11 {
0131 reg = <0x11>;
0132 };
0133
0134 qsgmii_phy2: ethernet-phy@12 {
0135 reg = <0x12>;
0136 };
0137
0138 qsgmii_phy3: ethernet-phy@13 {
0139 reg = <0x13>;
0140 };
0141 };
0142
0143 &enetc_port0 {
0144 phy-handle = <&sgmii_phy0>;
0145 phy-mode = "sgmii";
0146 managed = "in-band-status";
0147 status = "okay";
0148 };
0149
0150 &enetc_port2 {
0151 status = "okay";
0152 };
0153
0154 &esdhc {
0155 sd-uhs-sdr104;
0156 sd-uhs-sdr50;
0157 sd-uhs-sdr25;
0158 sd-uhs-sdr12;
0159 status = "okay";
0160 };
0161
0162 &esdhc1 {
0163 mmc-hs200-1_8v;
0164 mmc-hs400-1_8v;
0165 bus-width = <8>;
0166 status = "okay";
0167 };
0168
0169 &fspi {
0170 status = "okay";
0171
0172 mt35xu02g0: flash@0 {
0173 compatible = "jedec,spi-nor";
0174 #address-cells = <1>;
0175 #size-cells = <1>;
0176 spi-max-frequency = <50000000>;
0177 /* The following setting enables 1-1-8 (CMD-ADDR-DATA) mode */
0178 spi-rx-bus-width = <8>; /* 8 SPI Rx lines */
0179 spi-tx-bus-width = <1>; /* 1 SPI Tx line */
0180 reg = <0>;
0181 };
0182 };
0183
0184 &ftm_alarm1 {
0185 status = "okay";
0186 };
0187
0188 &i2c0 {
0189 status = "okay";
0190
0191 i2c-mux@77 {
0192 compatible = "nxp,pca9847";
0193 reg = <0x77>;
0194 #address-cells = <1>;
0195 #size-cells = <0>;
0196
0197 i2c@1 {
0198 #address-cells = <1>;
0199 #size-cells = <0>;
0200 reg = <0x1>;
0201
0202 sgtl5000: audio-codec@a {
0203 #sound-dai-cells = <0>;
0204 compatible = "fsl,sgtl5000";
0205 reg = <0xa>;
0206 VDDA-supply = <®_1p8v>;
0207 VDDIO-supply = <®_1p8v>;
0208 clocks = <&sys_mclk>;
0209 sclk-strength = <3>;
0210 };
0211 };
0212
0213 i2c@2 {
0214 #address-cells = <1>;
0215 #size-cells = <0>;
0216 reg = <0x02>;
0217
0218 current-monitor@40 {
0219 compatible = "ti,ina220";
0220 reg = <0x40>;
0221 shunt-resistor = <500>;
0222 };
0223 };
0224
0225 i2c@3 {
0226 #address-cells = <1>;
0227 #size-cells = <0>;
0228 reg = <0x3>;
0229
0230 temperature-sensor@4c {
0231 compatible = "nxp,sa56004";
0232 reg = <0x4c>;
0233 vcc-supply = <&sb_3v3>;
0234 };
0235
0236 rtc@51 {
0237 compatible = "nxp,pcf2129";
0238 reg = <0x51>;
0239 };
0240 };
0241 };
0242 };
0243
0244 &mscc_felix {
0245 status = "okay";
0246 };
0247
0248 &mscc_felix_port0 {
0249 label = "swp0";
0250 managed = "in-band-status";
0251 phy-handle = <&qsgmii_phy0>;
0252 phy-mode = "qsgmii";
0253 status = "okay";
0254 };
0255
0256 &mscc_felix_port1 {
0257 label = "swp1";
0258 managed = "in-band-status";
0259 phy-handle = <&qsgmii_phy1>;
0260 phy-mode = "qsgmii";
0261 status = "okay";
0262 };
0263
0264 &mscc_felix_port2 {
0265 label = "swp2";
0266 managed = "in-band-status";
0267 phy-handle = <&qsgmii_phy2>;
0268 phy-mode = "qsgmii";
0269 status = "okay";
0270 };
0271
0272 &mscc_felix_port3 {
0273 label = "swp3";
0274 managed = "in-band-status";
0275 phy-handle = <&qsgmii_phy3>;
0276 phy-mode = "qsgmii";
0277 status = "okay";
0278 };
0279
0280 &mscc_felix_port4 {
0281 ethernet = <&enetc_port2>;
0282 status = "okay";
0283 };
0284
0285 &optee {
0286 status = "okay";
0287 };
0288
0289 &pwm0 {
0290 status = "okay";
0291 };
0292
0293 &sai4 {
0294 status = "okay";
0295 };
0296
0297 &sata {
0298 status = "okay";
0299 };
0300
0301 &usb0 {
0302 dr_mode = "host";
0303 status = "okay";
0304 };
0305
0306 &usb1 {
0307 status = "okay";
0308 };