* [PATCH 1/2 v3] dt-bindings: arm: fsl: add ls1021a-iot board
@ 2022-04-15 2:55 ` Changming Huang
0 siblings, 0 replies; 6+ messages in thread
From: Changming Huang @ 2022-04-15 2:55 UTC (permalink / raw)
To: robh+dt, krzk+dt, shawnguo, festevam, marcel.ziswiler, l.stach,
tharvey, alexander.stein, ariel.dalessandro, matthias.schiffer,
cniedermaier, sebastian.reichel, leoyang.li, devicetree,
linux-kernel, arnd, olof, soc, linux-arm-kernel
Cc: Changming Huang, Rob Herring
Add the board ls1021a-iot in the binding docuemnt.
Signed-off-by: Changming Huang <jerry.huang@nxp.com>
Acked-by: Rob Herring <robh@kernel.org>
---
changes in v2:
- adjust the location in the alphabetic order
Documentation/devicetree/bindings/arm/fsl.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml
index 08bdd30e511c..242dd99c272c 100644
--- a/Documentation/devicetree/bindings/arm/fsl.yaml
+++ b/Documentation/devicetree/bindings/arm/fsl.yaml
@@ -999,6 +999,7 @@ properties:
- description: LS1021A based Boards
items:
- enum:
+ - fsl,ls1021a-iot
- fsl,ls1021a-moxa-uc-8410a
- fsl,ls1021a-qds
- fsl,ls1021a-tsn
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 1/2 v3] dt-bindings: arm: fsl: add ls1021a-iot board
@ 2022-04-15 2:55 ` Changming Huang
0 siblings, 0 replies; 6+ messages in thread
From: Changming Huang @ 2022-04-15 2:55 UTC (permalink / raw)
To: robh+dt, krzk+dt, shawnguo, festevam, marcel.ziswiler, l.stach,
tharvey, alexander.stein, ariel.dalessandro, matthias.schiffer,
cniedermaier, sebastian.reichel, leoyang.li, devicetree,
linux-kernel, arnd, olof, soc, linux-arm-kernel
Cc: Changming Huang, Rob Herring
Add the board ls1021a-iot in the binding docuemnt.
Signed-off-by: Changming Huang <jerry.huang@nxp.com>
Acked-by: Rob Herring <robh@kernel.org>
---
changes in v2:
- adjust the location in the alphabetic order
Documentation/devicetree/bindings/arm/fsl.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml
index 08bdd30e511c..242dd99c272c 100644
--- a/Documentation/devicetree/bindings/arm/fsl.yaml
+++ b/Documentation/devicetree/bindings/arm/fsl.yaml
@@ -999,6 +999,7 @@ properties:
- description: LS1021A based Boards
items:
- enum:
+ - fsl,ls1021a-iot
- fsl,ls1021a-moxa-uc-8410a
- fsl,ls1021a-qds
- fsl,ls1021a-tsn
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2 v3] ARM: dts: Add initial LS1021A IoT board dts support
2022-04-15 2:55 ` Changming Huang
@ 2022-04-15 2:56 ` Changming Huang
-1 siblings, 0 replies; 6+ messages in thread
From: Changming Huang @ 2022-04-15 2:56 UTC (permalink / raw)
To: robh+dt, krzk+dt, shawnguo, festevam, marcel.ziswiler, l.stach,
tharvey, alexander.stein, ariel.dalessandro, matthias.schiffer,
cniedermaier, sebastian.reichel, leoyang.li, devicetree,
linux-kernel, arnd, olof, soc, linux-arm-kernel
Cc: Changming Huang, Alison Wang
The LS1021A-IoT gateway reference design is a purpose-built,
small footprint hardware platform equipped with a wide array
of both high-speed connectivity and low speed serial interfaces.
CC: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Changming Huang <jerry.huang@nxp.com>
Signed-off-by: Alison Wang <alison.wang@nxp.com>
---
changes in v3:
- adjust to generic node name for i2c nodes
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/ls1021a-iot.dts | 227 ++++++++++++++++++++++++++++++
2 files changed, 228 insertions(+)
create mode 100644 arch/arm/boot/dts/ls1021a-iot.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 7c16f8a2b738..e2faf913e313 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -744,6 +744,7 @@ dtb-$(CONFIG_SOC_IMX7ULP) += \
dtb-$(CONFIG_SOC_LAN966) += \
lan966x-pcb8291.dtb
dtb-$(CONFIG_SOC_LS1021A) += \
+ ls1021a-iot.dtb \
ls1021a-moxa-uc-8410a.dtb \
ls1021a-qds.dtb \
ls1021a-tsn.dtb \
diff --git a/arch/arm/boot/dts/ls1021a-iot.dts b/arch/arm/boot/dts/ls1021a-iot.dts
new file mode 100644
index 000000000000..9e5a41880050
--- /dev/null
+++ b/arch/arm/boot/dts/ls1021a-iot.dts
@@ -0,0 +1,227 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright 2021-2022 NXP
+ *
+ */
+
+/dts-v1/;
+#include "ls1021a.dtsi"
+
+/ {
+ model = "LS1021A-IOT Board";
+ compatible = "fsl,ls1021a-iot", "fsl,ls1021a";
+
+ sys_mclk: clock-mclk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <24576000>;
+ };
+
+ reg_3p3v: regulator-3V3 {
+ compatible = "regulator-fixed";
+ regulator-name = "3P3V";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
+ reg_2p5v: regulator-2V5 {
+ compatible = "regulator-fixed";
+ regulator-name = "2P5V";
+ regulator-min-microvolt = <2500000>;
+ regulator-max-microvolt = <2500000>;
+ regulator-always-on;
+ };
+
+ sound {
+ compatible = "simple-audio-card";
+ simple-audio-card,format = "i2s";
+ simple-audio-card,widgets =
+ "Microphone", "Microphone Jack",
+ "Headphone", "Headphone Jack",
+ "Speaker", "Speaker Ext",
+ "Line", "Line In Jack";
+ simple-audio-card,routing =
+ "MIC_IN", "Microphone Jack",
+ "Microphone Jack", "Mic Bias",
+ "LINE_IN", "Line In Jack",
+ "Headphone Jack", "HP_OUT",
+ "Speaker Ext", "LINE_OUT";
+
+ simple-audio-card,cpu {
+ sound-dai = <&sai2>;
+ frame-master;
+ bitclock-master;
+ };
+
+ simple-audio-card,codec {
+ sound-dai = <&sgtl5000>;
+ frame-master;
+ bitclock-master;
+ };
+ };
+};
+
+&can0{
+ status = "disabled";
+};
+
+&can1{
+ status = "disabled";
+};
+
+&can2{
+ status = "disabled";
+};
+
+&can3{
+ status = "okay";
+};
+
+&dcu {
+ display = <&display>;
+ status = "okay";
+
+ display: display@0 {
+ bits-per-pixel = <24>;
+
+ display-timings {
+ native-mode = <&timing0>;
+
+ timing0: mode0 {
+ clock-frequency = <25000000>;
+ hactive = <640>;
+ vactive = <480>;
+ hback-porch = <80>;
+ hfront-porch = <80>;
+ vback-porch = <16>;
+ vfront-porch = <16>;
+ hsync-len = <12>;
+ vsync-len = <2>;
+ hsync-active = <1>;
+ vsync-active = <1>;
+ };
+ };
+ };
+};
+
+&enet0 {
+ tbi-handle = <&tbi1>;
+ phy-handle = <&phy1>;
+ phy-connection-type = "sgmii";
+ status = "okay";
+};
+
+&enet1 {
+ tbi-handle = <&tbi1>;
+ phy-handle = <&phy3>;
+ phy-connection-type = "sgmii";
+ status = "okay";
+};
+
+&enet2 {
+ fixed-link = <0 1 1000 0 0>;
+ phy-connection-type = "rgmii-id";
+ status = "okay";
+};
+
+&esdhc{
+ status = "okay";
+};
+
+&i2c0 {
+ status = "okay";
+
+ pca9555: gpio@23 {
+ compatible = "nxp,pca9555";
+ reg = <0x23>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
+
+ sgtl5000: codec@2a {
+ #sound-dai-cells=<0x0>;
+ compatible = "fsl,sgtl5000";
+ reg = <0x2a>;
+ VDDA-supply = <®_3p3v>;
+ VDDIO-supply = <®_2p5v>;
+ clocks = <&sys_mclk 1>;
+ };
+
+ max1239: adc@35 {
+ compatible = "maxim,max1239";
+ reg = <0x35>;
+ #io-channel-cells = <1>;
+ };
+
+ ina2201: core_monitor@44 {
+ compatible = "ti,ina220";
+ reg = <0x44>;
+ shunt-resistor = <1000>;
+ };
+
+ ina2202: current_monitor@45 {
+ compatible = "ti,ina220";
+ reg = <0x45>;
+ shunt-resistor = <1000>;
+ };
+
+ lm75b: thermal_monitor@48 {
+ compatible = "national,lm75b";
+ reg = <0x48>;
+ };
+};
+
+&lpuart0 {
+ status = "okay";
+};
+
+&mdio0 {
+ phy0: ethernet-phy@0 {
+ reg = <0x0>;
+ };
+
+ phy1: ethernet-phy@1 {
+ reg = <0x1>;
+ };
+
+ phy2: ethernet-phy@2 {
+ reg = <0x2>;
+ };
+
+ phy3: ethernet-phy@3 {
+ reg = <0x3>;
+ };
+
+ tbi1: tbi-phy@1f {
+ reg = <0x1f>;
+ device_type = "tbi-phy";
+ };
+};
+
+&qspi {
+ num-cs = <2>;
+ status = "okay";
+
+ s25fl128s: flash@0 {
+ compatible = "jedec,spi-nor";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ spi-max-frequency = <20000000>;
+ reg = <0>;
+ };
+};
+
+&sai2 {
+ status = "okay";
+};
+
+&uart0 {
+ status = "okay";
+};
+
+&uart1 {
+ status = "okay";
+};
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2 v3] ARM: dts: Add initial LS1021A IoT board dts support
@ 2022-04-15 2:56 ` Changming Huang
0 siblings, 0 replies; 6+ messages in thread
From: Changming Huang @ 2022-04-15 2:56 UTC (permalink / raw)
To: robh+dt, krzk+dt, shawnguo, festevam, marcel.ziswiler, l.stach,
tharvey, alexander.stein, ariel.dalessandro, matthias.schiffer,
cniedermaier, sebastian.reichel, leoyang.li, devicetree,
linux-kernel, arnd, olof, soc, linux-arm-kernel
Cc: Changming Huang, Alison Wang
The LS1021A-IoT gateway reference design is a purpose-built,
small footprint hardware platform equipped with a wide array
of both high-speed connectivity and low speed serial interfaces.
CC: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Changming Huang <jerry.huang@nxp.com>
Signed-off-by: Alison Wang <alison.wang@nxp.com>
---
changes in v3:
- adjust to generic node name for i2c nodes
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/ls1021a-iot.dts | 227 ++++++++++++++++++++++++++++++
2 files changed, 228 insertions(+)
create mode 100644 arch/arm/boot/dts/ls1021a-iot.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 7c16f8a2b738..e2faf913e313 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -744,6 +744,7 @@ dtb-$(CONFIG_SOC_IMX7ULP) += \
dtb-$(CONFIG_SOC_LAN966) += \
lan966x-pcb8291.dtb
dtb-$(CONFIG_SOC_LS1021A) += \
+ ls1021a-iot.dtb \
ls1021a-moxa-uc-8410a.dtb \
ls1021a-qds.dtb \
ls1021a-tsn.dtb \
diff --git a/arch/arm/boot/dts/ls1021a-iot.dts b/arch/arm/boot/dts/ls1021a-iot.dts
new file mode 100644
index 000000000000..9e5a41880050
--- /dev/null
+++ b/arch/arm/boot/dts/ls1021a-iot.dts
@@ -0,0 +1,227 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright 2021-2022 NXP
+ *
+ */
+
+/dts-v1/;
+#include "ls1021a.dtsi"
+
+/ {
+ model = "LS1021A-IOT Board";
+ compatible = "fsl,ls1021a-iot", "fsl,ls1021a";
+
+ sys_mclk: clock-mclk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <24576000>;
+ };
+
+ reg_3p3v: regulator-3V3 {
+ compatible = "regulator-fixed";
+ regulator-name = "3P3V";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
+ reg_2p5v: regulator-2V5 {
+ compatible = "regulator-fixed";
+ regulator-name = "2P5V";
+ regulator-min-microvolt = <2500000>;
+ regulator-max-microvolt = <2500000>;
+ regulator-always-on;
+ };
+
+ sound {
+ compatible = "simple-audio-card";
+ simple-audio-card,format = "i2s";
+ simple-audio-card,widgets =
+ "Microphone", "Microphone Jack",
+ "Headphone", "Headphone Jack",
+ "Speaker", "Speaker Ext",
+ "Line", "Line In Jack";
+ simple-audio-card,routing =
+ "MIC_IN", "Microphone Jack",
+ "Microphone Jack", "Mic Bias",
+ "LINE_IN", "Line In Jack",
+ "Headphone Jack", "HP_OUT",
+ "Speaker Ext", "LINE_OUT";
+
+ simple-audio-card,cpu {
+ sound-dai = <&sai2>;
+ frame-master;
+ bitclock-master;
+ };
+
+ simple-audio-card,codec {
+ sound-dai = <&sgtl5000>;
+ frame-master;
+ bitclock-master;
+ };
+ };
+};
+
+&can0{
+ status = "disabled";
+};
+
+&can1{
+ status = "disabled";
+};
+
+&can2{
+ status = "disabled";
+};
+
+&can3{
+ status = "okay";
+};
+
+&dcu {
+ display = <&display>;
+ status = "okay";
+
+ display: display@0 {
+ bits-per-pixel = <24>;
+
+ display-timings {
+ native-mode = <&timing0>;
+
+ timing0: mode0 {
+ clock-frequency = <25000000>;
+ hactive = <640>;
+ vactive = <480>;
+ hback-porch = <80>;
+ hfront-porch = <80>;
+ vback-porch = <16>;
+ vfront-porch = <16>;
+ hsync-len = <12>;
+ vsync-len = <2>;
+ hsync-active = <1>;
+ vsync-active = <1>;
+ };
+ };
+ };
+};
+
+&enet0 {
+ tbi-handle = <&tbi1>;
+ phy-handle = <&phy1>;
+ phy-connection-type = "sgmii";
+ status = "okay";
+};
+
+&enet1 {
+ tbi-handle = <&tbi1>;
+ phy-handle = <&phy3>;
+ phy-connection-type = "sgmii";
+ status = "okay";
+};
+
+&enet2 {
+ fixed-link = <0 1 1000 0 0>;
+ phy-connection-type = "rgmii-id";
+ status = "okay";
+};
+
+&esdhc{
+ status = "okay";
+};
+
+&i2c0 {
+ status = "okay";
+
+ pca9555: gpio@23 {
+ compatible = "nxp,pca9555";
+ reg = <0x23>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
+
+ sgtl5000: codec@2a {
+ #sound-dai-cells=<0x0>;
+ compatible = "fsl,sgtl5000";
+ reg = <0x2a>;
+ VDDA-supply = <®_3p3v>;
+ VDDIO-supply = <®_2p5v>;
+ clocks = <&sys_mclk 1>;
+ };
+
+ max1239: adc@35 {
+ compatible = "maxim,max1239";
+ reg = <0x35>;
+ #io-channel-cells = <1>;
+ };
+
+ ina2201: core_monitor@44 {
+ compatible = "ti,ina220";
+ reg = <0x44>;
+ shunt-resistor = <1000>;
+ };
+
+ ina2202: current_monitor@45 {
+ compatible = "ti,ina220";
+ reg = <0x45>;
+ shunt-resistor = <1000>;
+ };
+
+ lm75b: thermal_monitor@48 {
+ compatible = "national,lm75b";
+ reg = <0x48>;
+ };
+};
+
+&lpuart0 {
+ status = "okay";
+};
+
+&mdio0 {
+ phy0: ethernet-phy@0 {
+ reg = <0x0>;
+ };
+
+ phy1: ethernet-phy@1 {
+ reg = <0x1>;
+ };
+
+ phy2: ethernet-phy@2 {
+ reg = <0x2>;
+ };
+
+ phy3: ethernet-phy@3 {
+ reg = <0x3>;
+ };
+
+ tbi1: tbi-phy@1f {
+ reg = <0x1f>;
+ device_type = "tbi-phy";
+ };
+};
+
+&qspi {
+ num-cs = <2>;
+ status = "okay";
+
+ s25fl128s: flash@0 {
+ compatible = "jedec,spi-nor";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ spi-max-frequency = <20000000>;
+ reg = <0>;
+ };
+};
+
+&sai2 {
+ status = "okay";
+};
+
+&uart0 {
+ status = "okay";
+};
+
+&uart1 {
+ status = "okay";
+};
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2 v3] ARM: dts: Add initial LS1021A IoT board dts support
2022-04-15 2:56 ` Changming Huang
@ 2022-04-18 12:45 ` Shawn Guo
-1 siblings, 0 replies; 6+ messages in thread
From: Shawn Guo @ 2022-04-18 12:45 UTC (permalink / raw)
To: Changming Huang
Cc: robh+dt, krzk+dt, festevam, marcel.ziswiler, l.stach, tharvey,
alexander.stein, ariel.dalessandro, matthias.schiffer,
cniedermaier, sebastian.reichel, leoyang.li, devicetree,
linux-kernel, arnd, olof, soc, linux-arm-kernel, Alison Wang
On Fri, Apr 15, 2022 at 10:56:00AM +0800, Changming Huang wrote:
> The LS1021A-IoT gateway reference design is a purpose-built,
> small footprint hardware platform equipped with a wide array
> of both high-speed connectivity and low speed serial interfaces.
>
> CC: Li Yang <leoyang.li@nxp.com>
> Signed-off-by: Changming Huang <jerry.huang@nxp.com>
> Signed-off-by: Alison Wang <alison.wang@nxp.com>
> ---
> changes in v3:
> - adjust to generic node name for i2c nodes
>
> arch/arm/boot/dts/Makefile | 1 +
> arch/arm/boot/dts/ls1021a-iot.dts | 227 ++++++++++++++++++++++++++++++
> 2 files changed, 228 insertions(+)
> create mode 100644 arch/arm/boot/dts/ls1021a-iot.dts
>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index 7c16f8a2b738..e2faf913e313 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -744,6 +744,7 @@ dtb-$(CONFIG_SOC_IMX7ULP) += \
> dtb-$(CONFIG_SOC_LAN966) += \
> lan966x-pcb8291.dtb
> dtb-$(CONFIG_SOC_LS1021A) += \
> + ls1021a-iot.dtb \
> ls1021a-moxa-uc-8410a.dtb \
> ls1021a-qds.dtb \
> ls1021a-tsn.dtb \
> diff --git a/arch/arm/boot/dts/ls1021a-iot.dts b/arch/arm/boot/dts/ls1021a-iot.dts
> new file mode 100644
> index 000000000000..9e5a41880050
> --- /dev/null
> +++ b/arch/arm/boot/dts/ls1021a-iot.dts
> @@ -0,0 +1,227 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Copyright 2021-2022 NXP
> + *
> + */
> +
> +/dts-v1/;
> +#include "ls1021a.dtsi"
> +
> +/ {
> + model = "LS1021A-IOT Board";
> + compatible = "fsl,ls1021a-iot", "fsl,ls1021a";
> +
> + sys_mclk: clock-mclk {
> + compatible = "fixed-clock";
> + #clock-cells = <0>;
> + clock-frequency = <24576000>;
> + };
> +
> + reg_3p3v: regulator-3V3 {
> + compatible = "regulator-fixed";
> + regulator-name = "3P3V";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-always-on;
> + };
> +
> + reg_2p5v: regulator-2V5 {
> + compatible = "regulator-fixed";
> + regulator-name = "2P5V";
> + regulator-min-microvolt = <2500000>;
> + regulator-max-microvolt = <2500000>;
> + regulator-always-on;
> + };
> +
> + sound {
> + compatible = "simple-audio-card";
> + simple-audio-card,format = "i2s";
> + simple-audio-card,widgets =
> + "Microphone", "Microphone Jack",
> + "Headphone", "Headphone Jack",
> + "Speaker", "Speaker Ext",
> + "Line", "Line In Jack";
> + simple-audio-card,routing =
> + "MIC_IN", "Microphone Jack",
> + "Microphone Jack", "Mic Bias",
> + "LINE_IN", "Line In Jack",
> + "Headphone Jack", "HP_OUT",
> + "Speaker Ext", "LINE_OUT";
> +
> + simple-audio-card,cpu {
> + sound-dai = <&sai2>;
> + frame-master;
> + bitclock-master;
> + };
> +
> + simple-audio-card,codec {
> + sound-dai = <&sgtl5000>;
> + frame-master;
> + bitclock-master;
> + };
> + };
> +};
> +
> +&can0{
> + status = "disabled";
> +};
> +
> +&can1{
> + status = "disabled";
> +};
> +
> +&can2{
> + status = "disabled";
> +};
> +
> +&can3{
> + status = "okay";
> +};
> +
> +&dcu {
> + display = <&display>;
> + status = "okay";
> +
> + display: display@0 {
> + bits-per-pixel = <24>;
> +
> + display-timings {
> + native-mode = <&timing0>;
> +
> + timing0: mode0 {
> + clock-frequency = <25000000>;
> + hactive = <640>;
> + vactive = <480>;
> + hback-porch = <80>;
> + hfront-porch = <80>;
> + vback-porch = <16>;
> + vfront-porch = <16>;
> + hsync-len = <12>;
> + vsync-len = <2>;
> + hsync-active = <1>;
> + vsync-active = <1>;
> + };
> + };
> + };
> +};
> +
> +&enet0 {
> + tbi-handle = <&tbi1>;
> + phy-handle = <&phy1>;
> + phy-connection-type = "sgmii";
> + status = "okay";
> +};
> +
> +&enet1 {
> + tbi-handle = <&tbi1>;
> + phy-handle = <&phy3>;
> + phy-connection-type = "sgmii";
> + status = "okay";
> +};
> +
> +&enet2 {
> + fixed-link = <0 1 1000 0 0>;
> + phy-connection-type = "rgmii-id";
> + status = "okay";
> +};
> +
> +&esdhc{
> + status = "okay";
> +};
> +
> +&i2c0 {
> + status = "okay";
> +
> + pca9555: gpio@23 {
> + compatible = "nxp,pca9555";
> + reg = <0x23>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + };
> +
> + sgtl5000: codec@2a {
audio-codec for node name.
> + #sound-dai-cells=<0x0>;
> + compatible = "fsl,sgtl5000";
> + reg = <0x2a>;
> + VDDA-supply = <®_3p3v>;
> + VDDIO-supply = <®_2p5v>;
> + clocks = <&sys_mclk 1>;
> + };
> +
> + max1239: adc@35 {
> + compatible = "maxim,max1239";
> + reg = <0x35>;
> + #io-channel-cells = <1>;
> + };
> +
> + ina2201: core_monitor@44 {
Hyphen rather than underscore is recommended for node name.
Shawn
> + compatible = "ti,ina220";
> + reg = <0x44>;
> + shunt-resistor = <1000>;
> + };
> +
> + ina2202: current_monitor@45 {
> + compatible = "ti,ina220";
> + reg = <0x45>;
> + shunt-resistor = <1000>;
> + };
> +
> + lm75b: thermal_monitor@48 {
> + compatible = "national,lm75b";
> + reg = <0x48>;
> + };
> +};
> +
> +&lpuart0 {
> + status = "okay";
> +};
> +
> +&mdio0 {
> + phy0: ethernet-phy@0 {
> + reg = <0x0>;
> + };
> +
> + phy1: ethernet-phy@1 {
> + reg = <0x1>;
> + };
> +
> + phy2: ethernet-phy@2 {
> + reg = <0x2>;
> + };
> +
> + phy3: ethernet-phy@3 {
> + reg = <0x3>;
> + };
> +
> + tbi1: tbi-phy@1f {
> + reg = <0x1f>;
> + device_type = "tbi-phy";
> + };
> +};
> +
> +&qspi {
> + num-cs = <2>;
> + status = "okay";
> +
> + s25fl128s: flash@0 {
> + compatible = "jedec,spi-nor";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + spi-max-frequency = <20000000>;
> + reg = <0>;
> + };
> +};
> +
> +&sai2 {
> + status = "okay";
> +};
> +
> +&uart0 {
> + status = "okay";
> +};
> +
> +&uart1 {
> + status = "okay";
> +};
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2 v3] ARM: dts: Add initial LS1021A IoT board dts support
@ 2022-04-18 12:45 ` Shawn Guo
0 siblings, 0 replies; 6+ messages in thread
From: Shawn Guo @ 2022-04-18 12:45 UTC (permalink / raw)
To: Changming Huang
Cc: robh+dt, krzk+dt, festevam, marcel.ziswiler, l.stach, tharvey,
alexander.stein, ariel.dalessandro, matthias.schiffer,
cniedermaier, sebastian.reichel, leoyang.li, devicetree,
linux-kernel, arnd, olof, soc, linux-arm-kernel, Alison Wang
On Fri, Apr 15, 2022 at 10:56:00AM +0800, Changming Huang wrote:
> The LS1021A-IoT gateway reference design is a purpose-built,
> small footprint hardware platform equipped with a wide array
> of both high-speed connectivity and low speed serial interfaces.
>
> CC: Li Yang <leoyang.li@nxp.com>
> Signed-off-by: Changming Huang <jerry.huang@nxp.com>
> Signed-off-by: Alison Wang <alison.wang@nxp.com>
> ---
> changes in v3:
> - adjust to generic node name for i2c nodes
>
> arch/arm/boot/dts/Makefile | 1 +
> arch/arm/boot/dts/ls1021a-iot.dts | 227 ++++++++++++++++++++++++++++++
> 2 files changed, 228 insertions(+)
> create mode 100644 arch/arm/boot/dts/ls1021a-iot.dts
>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index 7c16f8a2b738..e2faf913e313 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -744,6 +744,7 @@ dtb-$(CONFIG_SOC_IMX7ULP) += \
> dtb-$(CONFIG_SOC_LAN966) += \
> lan966x-pcb8291.dtb
> dtb-$(CONFIG_SOC_LS1021A) += \
> + ls1021a-iot.dtb \
> ls1021a-moxa-uc-8410a.dtb \
> ls1021a-qds.dtb \
> ls1021a-tsn.dtb \
> diff --git a/arch/arm/boot/dts/ls1021a-iot.dts b/arch/arm/boot/dts/ls1021a-iot.dts
> new file mode 100644
> index 000000000000..9e5a41880050
> --- /dev/null
> +++ b/arch/arm/boot/dts/ls1021a-iot.dts
> @@ -0,0 +1,227 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Copyright 2021-2022 NXP
> + *
> + */
> +
> +/dts-v1/;
> +#include "ls1021a.dtsi"
> +
> +/ {
> + model = "LS1021A-IOT Board";
> + compatible = "fsl,ls1021a-iot", "fsl,ls1021a";
> +
> + sys_mclk: clock-mclk {
> + compatible = "fixed-clock";
> + #clock-cells = <0>;
> + clock-frequency = <24576000>;
> + };
> +
> + reg_3p3v: regulator-3V3 {
> + compatible = "regulator-fixed";
> + regulator-name = "3P3V";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-always-on;
> + };
> +
> + reg_2p5v: regulator-2V5 {
> + compatible = "regulator-fixed";
> + regulator-name = "2P5V";
> + regulator-min-microvolt = <2500000>;
> + regulator-max-microvolt = <2500000>;
> + regulator-always-on;
> + };
> +
> + sound {
> + compatible = "simple-audio-card";
> + simple-audio-card,format = "i2s";
> + simple-audio-card,widgets =
> + "Microphone", "Microphone Jack",
> + "Headphone", "Headphone Jack",
> + "Speaker", "Speaker Ext",
> + "Line", "Line In Jack";
> + simple-audio-card,routing =
> + "MIC_IN", "Microphone Jack",
> + "Microphone Jack", "Mic Bias",
> + "LINE_IN", "Line In Jack",
> + "Headphone Jack", "HP_OUT",
> + "Speaker Ext", "LINE_OUT";
> +
> + simple-audio-card,cpu {
> + sound-dai = <&sai2>;
> + frame-master;
> + bitclock-master;
> + };
> +
> + simple-audio-card,codec {
> + sound-dai = <&sgtl5000>;
> + frame-master;
> + bitclock-master;
> + };
> + };
> +};
> +
> +&can0{
> + status = "disabled";
> +};
> +
> +&can1{
> + status = "disabled";
> +};
> +
> +&can2{
> + status = "disabled";
> +};
> +
> +&can3{
> + status = "okay";
> +};
> +
> +&dcu {
> + display = <&display>;
> + status = "okay";
> +
> + display: display@0 {
> + bits-per-pixel = <24>;
> +
> + display-timings {
> + native-mode = <&timing0>;
> +
> + timing0: mode0 {
> + clock-frequency = <25000000>;
> + hactive = <640>;
> + vactive = <480>;
> + hback-porch = <80>;
> + hfront-porch = <80>;
> + vback-porch = <16>;
> + vfront-porch = <16>;
> + hsync-len = <12>;
> + vsync-len = <2>;
> + hsync-active = <1>;
> + vsync-active = <1>;
> + };
> + };
> + };
> +};
> +
> +&enet0 {
> + tbi-handle = <&tbi1>;
> + phy-handle = <&phy1>;
> + phy-connection-type = "sgmii";
> + status = "okay";
> +};
> +
> +&enet1 {
> + tbi-handle = <&tbi1>;
> + phy-handle = <&phy3>;
> + phy-connection-type = "sgmii";
> + status = "okay";
> +};
> +
> +&enet2 {
> + fixed-link = <0 1 1000 0 0>;
> + phy-connection-type = "rgmii-id";
> + status = "okay";
> +};
> +
> +&esdhc{
> + status = "okay";
> +};
> +
> +&i2c0 {
> + status = "okay";
> +
> + pca9555: gpio@23 {
> + compatible = "nxp,pca9555";
> + reg = <0x23>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + };
> +
> + sgtl5000: codec@2a {
audio-codec for node name.
> + #sound-dai-cells=<0x0>;
> + compatible = "fsl,sgtl5000";
> + reg = <0x2a>;
> + VDDA-supply = <®_3p3v>;
> + VDDIO-supply = <®_2p5v>;
> + clocks = <&sys_mclk 1>;
> + };
> +
> + max1239: adc@35 {
> + compatible = "maxim,max1239";
> + reg = <0x35>;
> + #io-channel-cells = <1>;
> + };
> +
> + ina2201: core_monitor@44 {
Hyphen rather than underscore is recommended for node name.
Shawn
> + compatible = "ti,ina220";
> + reg = <0x44>;
> + shunt-resistor = <1000>;
> + };
> +
> + ina2202: current_monitor@45 {
> + compatible = "ti,ina220";
> + reg = <0x45>;
> + shunt-resistor = <1000>;
> + };
> +
> + lm75b: thermal_monitor@48 {
> + compatible = "national,lm75b";
> + reg = <0x48>;
> + };
> +};
> +
> +&lpuart0 {
> + status = "okay";
> +};
> +
> +&mdio0 {
> + phy0: ethernet-phy@0 {
> + reg = <0x0>;
> + };
> +
> + phy1: ethernet-phy@1 {
> + reg = <0x1>;
> + };
> +
> + phy2: ethernet-phy@2 {
> + reg = <0x2>;
> + };
> +
> + phy3: ethernet-phy@3 {
> + reg = <0x3>;
> + };
> +
> + tbi1: tbi-phy@1f {
> + reg = <0x1f>;
> + device_type = "tbi-phy";
> + };
> +};
> +
> +&qspi {
> + num-cs = <2>;
> + status = "okay";
> +
> + s25fl128s: flash@0 {
> + compatible = "jedec,spi-nor";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + spi-max-frequency = <20000000>;
> + reg = <0>;
> + };
> +};
> +
> +&sai2 {
> + status = "okay";
> +};
> +
> +&uart0 {
> + status = "okay";
> +};
> +
> +&uart1 {
> + status = "okay";
> +};
> --
> 2.25.1
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-04-18 12:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-15 2:55 [PATCH 1/2 v3] dt-bindings: arm: fsl: add ls1021a-iot board Changming Huang
2022-04-15 2:55 ` Changming Huang
2022-04-15 2:56 ` [PATCH 2/2 v3] ARM: dts: Add initial LS1021A IoT board dts support Changming Huang
2022-04-15 2:56 ` Changming Huang
2022-04-18 12:45 ` Shawn Guo
2022-04-18 12:45 ` Shawn Guo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.