Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright 2013-2014 Freescale Semiconductor, Inc.
0004  * Copyright 2018 NXP
0005  */
0006 
0007 /dts-v1/;
0008 #include "ls1021a.dtsi"
0009 
0010 / {
0011         model = "LS1021A TWR Board";
0012         compatible = "fsl,ls1021a-twr", "fsl,ls1021a";
0013 
0014         aliases {
0015                 enet2_rgmii_phy = &rgmii_phy1;
0016                 enet0_sgmii_phy = &sgmii_phy2;
0017                 enet1_sgmii_phy = &sgmii_phy0;
0018         };
0019 
0020         sys_mclk: clock-mclk {
0021                 compatible = "fixed-clock";
0022                 #clock-cells = <0>;
0023                 clock-frequency = <24576000>;
0024         };
0025 
0026         reg_3p3v: regulator {
0027                 compatible = "regulator-fixed";
0028                 regulator-name = "3P3V";
0029                 regulator-min-microvolt = <3300000>;
0030                 regulator-max-microvolt = <3300000>;
0031                 regulator-always-on;
0032         };
0033 
0034         sound {
0035                 compatible = "simple-audio-card";
0036                 simple-audio-card,format = "i2s";
0037                 simple-audio-card,widgets =
0038                         "Microphone", "Microphone Jack",
0039                         "Headphone", "Headphone Jack",
0040                         "Speaker", "Speaker Ext",
0041                         "Line", "Line In Jack";
0042                 simple-audio-card,routing =
0043                         "MIC_IN", "Microphone Jack",
0044                         "Microphone Jack", "Mic Bias",
0045                         "LINE_IN", "Line In Jack",
0046                         "Headphone Jack", "HP_OUT",
0047                         "Speaker Ext", "LINE_OUT";
0048 
0049                 simple-audio-card,cpu {
0050                         sound-dai = <&sai1>;
0051                         frame-master;
0052                         bitclock-master;
0053                 };
0054 
0055                 simple-audio-card,codec {
0056                         sound-dai = <&codec>;
0057                         frame-master;
0058                         bitclock-master;
0059                 };
0060         };
0061 
0062         panel: panel {
0063                 compatible = "nec,nl4827hc19-05b";
0064 
0065                 port {
0066                         panel_in: endpoint {
0067                                 remote-endpoint = <&dcu_out>;
0068                         };
0069                 };
0070         };
0071 };
0072 
0073 &dcu {
0074         status = "okay";
0075 
0076         port {
0077                 dcu_out: endpoint {
0078                         remote-endpoint = <&panel_in>;
0079                 };
0080         };
0081 };
0082 
0083 &dspi1 {
0084         bus-num = <0>;
0085         status = "okay";
0086 
0087         dspiflash: s25fl064k@0 {
0088                 #address-cells = <1>;
0089                 #size-cells = <1>;
0090                 compatible = "spansion,s25fl064k";
0091                 spi-max-frequency = <16000000>;
0092                 spi-cpol;
0093                 spi-cpha;
0094                 reg = <0>;
0095         };
0096 };
0097 
0098 &enet0 {
0099         tbi-handle = <&tbi0>;
0100         phy-handle = <&sgmii_phy2>;
0101         phy-connection-type = "sgmii";
0102         status = "okay";
0103 };
0104 
0105 &enet1 {
0106         tbi-handle = <&tbi1>;
0107         phy-handle = <&sgmii_phy0>;
0108         phy-connection-type = "sgmii";
0109         status = "okay";
0110 };
0111 
0112 &enet2 {
0113         phy-handle = <&rgmii_phy1>;
0114         phy-connection-type = "rgmii-id";
0115         status = "okay";
0116 };
0117 
0118 &i2c0 {
0119         status = "okay";
0120 
0121         ina220@40 {
0122                 compatible = "ti,ina220";
0123                 reg = <0x40>;
0124                 shunt-resistor = <1000>;
0125         };
0126 
0127         ina220@41 {
0128                 compatible = "ti,ina220";
0129                 reg = <0x41>;
0130                 shunt-resistor = <1000>;
0131         };
0132 
0133 };
0134 
0135 &i2c1 {
0136         status = "okay";
0137         codec: sgtl5000@a {
0138                 #sound-dai-cells = <0>;
0139                 compatible = "fsl,sgtl5000";
0140                 reg = <0x0a>;
0141                 VDDA-supply = <&reg_3p3v>;
0142                 VDDIO-supply = <&reg_3p3v>;
0143                 clocks = <&sys_mclk>;
0144         };
0145 };
0146 
0147 &ifc {
0148         #address-cells = <2>;
0149         #size-cells = <1>;
0150         /* NOR Flash on board */
0151         ranges = <0x0 0x0 0x0 0x60000000 0x08000000>;
0152         status = "okay";
0153 
0154         nor@0,0 {
0155                 #address-cells = <1>;
0156                 #size-cells = <1>;
0157                 compatible = "cfi-flash";
0158                 reg = <0x0 0x0 0x8000000>;
0159                 big-endian;
0160                 bank-width = <2>;
0161                 device-width = <1>;
0162         };
0163 };
0164 
0165 &lpuart0 {
0166         status = "okay";
0167 };
0168 
0169 &mdio0 {
0170         sgmii_phy0: ethernet-phy@0 {
0171                 reg = <0x0>;
0172         };
0173         rgmii_phy1: ethernet-phy@1 {
0174                 reg = <0x1>;
0175         };
0176         sgmii_phy2: ethernet-phy@2 {
0177                 reg = <0x2>;
0178         };
0179         tbi0: tbi-phy@1f {
0180                 reg = <0x1f>;
0181                 device_type = "tbi-phy";
0182         };
0183 };
0184 
0185 &mdio1 {
0186         tbi1: tbi-phy@1f {
0187                 reg = <0x1f>;
0188                 device_type = "tbi-phy";
0189         };
0190 };
0191 
0192 &esdhc {
0193         status = "okay";
0194 };
0195 
0196 &qspi {
0197         status = "okay";
0198 
0199         n25q128a130: flash@0 {
0200                 compatible = "jedec,spi-nor";
0201                 #address-cells = <1>;
0202                 #size-cells = <1>;
0203                 spi-max-frequency = <50000000>;
0204                 reg = <0>;
0205                 spi-rx-bus-width = <4>;
0206                 spi-tx-bus-width = <4>;
0207         };
0208 };
0209 
0210 &sai1 {
0211         status = "okay";
0212 };
0213 
0214 &sata {
0215         status = "okay";
0216 };
0217 
0218 &uart0 {
0219         status = "okay";
0220 };
0221 
0222 &uart1 {
0223         status = "okay";
0224 };
0225 
0226 &can0 {
0227         status = "okay";
0228 };
0229 
0230 &can1 {
0231         status = "okay";
0232 };
0233 
0234 &can2 {
0235         status = "disabled";
0236 };
0237 
0238 &can3 {
0239         status = "disabled";
0240 };