0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Copyright 2021-2022 NXP
0004 *
0005 */
0006
0007 /dts-v1/;
0008 #include "ls1021a.dtsi"
0009
0010 / {
0011 model = "LS1021A-IOT Board";
0012 compatible = "fsl,ls1021a-iot", "fsl,ls1021a";
0013
0014 sys_mclk: clock-mclk {
0015 compatible = "fixed-clock";
0016 #clock-cells = <0>;
0017 clock-frequency = <24576000>;
0018 };
0019
0020 reg_3p3v: regulator-3V3 {
0021 compatible = "regulator-fixed";
0022 regulator-name = "3P3V";
0023 regulator-min-microvolt = <3300000>;
0024 regulator-max-microvolt = <3300000>;
0025 regulator-always-on;
0026 };
0027
0028 reg_2p5v: regulator-2V5 {
0029 compatible = "regulator-fixed";
0030 regulator-name = "2P5V";
0031 regulator-min-microvolt = <2500000>;
0032 regulator-max-microvolt = <2500000>;
0033 regulator-always-on;
0034 };
0035
0036 sound {
0037 compatible = "simple-audio-card";
0038 simple-audio-card,format = "i2s";
0039 simple-audio-card,widgets =
0040 "Microphone", "Microphone Jack",
0041 "Headphone", "Headphone Jack",
0042 "Speaker", "Speaker Ext",
0043 "Line", "Line In Jack";
0044 simple-audio-card,routing =
0045 "MIC_IN", "Microphone Jack",
0046 "Microphone Jack", "Mic Bias",
0047 "LINE_IN", "Line In Jack",
0048 "Headphone Jack", "HP_OUT",
0049 "Speaker Ext", "LINE_OUT";
0050
0051 simple-audio-card,cpu {
0052 sound-dai = <&sai2>;
0053 frame-master;
0054 bitclock-master;
0055 };
0056
0057 simple-audio-card,codec {
0058 sound-dai = <&sgtl5000>;
0059 frame-master;
0060 bitclock-master;
0061 };
0062 };
0063 };
0064
0065 &can0{
0066 status = "disabled";
0067 };
0068
0069 &can1{
0070 status = "disabled";
0071 };
0072
0073 &can2{
0074 status = "disabled";
0075 };
0076
0077 &can3{
0078 status = "okay";
0079 };
0080
0081 &dcu {
0082 display = <&display>;
0083 status = "okay";
0084
0085 display: display@0 {
0086 bits-per-pixel = <24>;
0087
0088 display-timings {
0089 native-mode = <&timing0>;
0090
0091 timing0: mode0 {
0092 clock-frequency = <25000000>;
0093 hactive = <640>;
0094 vactive = <480>;
0095 hback-porch = <80>;
0096 hfront-porch = <80>;
0097 vback-porch = <16>;
0098 vfront-porch = <16>;
0099 hsync-len = <12>;
0100 vsync-len = <2>;
0101 hsync-active = <1>;
0102 vsync-active = <1>;
0103 };
0104 };
0105 };
0106 };
0107
0108 &enet0 {
0109 tbi-handle = <&tbi1>;
0110 phy-handle = <&phy1>;
0111 phy-connection-type = "sgmii";
0112 status = "okay";
0113 };
0114
0115 &enet1 {
0116 tbi-handle = <&tbi1>;
0117 phy-handle = <&phy3>;
0118 phy-connection-type = "sgmii";
0119 status = "okay";
0120 };
0121
0122 &enet2 {
0123 fixed-link = <0 1 1000 0 0>;
0124 phy-connection-type = "rgmii-id";
0125 status = "okay";
0126 };
0127
0128 &esdhc{
0129 status = "okay";
0130 };
0131
0132 &i2c0 {
0133 status = "okay";
0134
0135 pca9555: gpio@23 {
0136 compatible = "nxp,pca9555";
0137 reg = <0x23>;
0138 gpio-controller;
0139 #gpio-cells = <2>;
0140 interrupt-controller;
0141 #interrupt-cells = <2>;
0142 };
0143
0144 sgtl5000: audio-codec@2a {
0145 #sound-dai-cells = <0x0>;
0146 compatible = "fsl,sgtl5000";
0147 reg = <0x2a>;
0148 VDDA-supply = <®_3p3v>;
0149 VDDIO-supply = <®_2p5v>;
0150 clocks = <&sys_mclk>;
0151 };
0152
0153 max1239: adc@35 {
0154 compatible = "maxim,max1239";
0155 reg = <0x35>;
0156 #io-channel-cells = <1>;
0157 };
0158
0159 ina2201: core-monitor@44 {
0160 compatible = "ti,ina220";
0161 reg = <0x44>;
0162 shunt-resistor = <1000>;
0163 };
0164
0165 ina2202: current-monitor@45 {
0166 compatible = "ti,ina220";
0167 reg = <0x45>;
0168 shunt-resistor = <1000>;
0169 };
0170
0171 lm75b: thermal-monitor@48 {
0172 compatible = "national,lm75b";
0173 reg = <0x48>;
0174 };
0175 };
0176
0177 &lpuart0 {
0178 status = "okay";
0179 };
0180
0181 &mdio0 {
0182 phy0: ethernet-phy@0 {
0183 reg = <0x0>;
0184 };
0185
0186 phy1: ethernet-phy@1 {
0187 reg = <0x1>;
0188 };
0189
0190 phy2: ethernet-phy@2 {
0191 reg = <0x2>;
0192 };
0193
0194 phy3: ethernet-phy@3 {
0195 reg = <0x3>;
0196 };
0197
0198 tbi1: tbi-phy@1f {
0199 reg = <0x1f>;
0200 device_type = "tbi-phy";
0201 };
0202 };
0203
0204 &qspi {
0205 num-cs = <2>;
0206 status = "okay";
0207
0208 s25fl128s: flash@0 {
0209 compatible = "jedec,spi-nor";
0210 #address-cells = <1>;
0211 #size-cells = <1>;
0212 spi-max-frequency = <20000000>;
0213 reg = <0>;
0214 };
0215 };
0216
0217 &sai2 {
0218 status = "okay";
0219 };
0220
0221 &uart0 {
0222 status = "okay";
0223 };
0224
0225 &uart1 {
0226 status = "okay";
0227 };