Skip to contentSkip to conversation

create patches for nxp-ls1046a platform watchdog feature

PATCH Superseded Meng Li 3 participants 7 messages Jun 3, 2025 – Jun 5, 2025

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Meng Li

author
#0 lore raw

v3 cover create patches for nxp-ls1046a platform watchdog feature

v3:
- merge patch 0002 into patch 0001
- improve the commit log of patches

v2:
- improve the commit log of patch 0001
- add another 2 patches to fix below warning
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dtb: watchdog@2ad0000(fsl,imx21-wdt): big-endian: False schema does not allow True

v1:
- create patch 0001-arch-arm64-dts-add-big-endian-property-back-into-wat.patch

Meng Li (2):
dt-bindings: watchdog: fsl-imx-wdt: add compatible string

    fsl,ls1046a-wdt

arch: arm64: dts: add big-endian property back into watchdog node

 Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml | 2 ++
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi              | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH v3 1/2 dt-bindings: watchdog: fsl-imx-wdt: add compatible string fsl,ls1046a-wdt

Add compatible string fsl,ls1046a-wdt for ls1046a SoC. fsl,ls1046a-wdt allows big-endian property.

---
 Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml +2 -0
index 8a6c3a75a547..34951783a633 100644
@@ -37,6 +37,7 @@ properties:
               - fsl,ls1012a-wdt
               - fsl,ls1021a-wdt
               - fsl,ls1043a-wdt
+              - fsl,ls1046a-wdt
               - fsl,vf610-wdt
           - const: fsl,imx21-wdt
 
@@ -105,6 +106,7 @@ allOf:
                 - fsl,ls1012a-wdt
                 - fsl,ls1021a-wdt
                 - fsl,ls1043a-wdt
+                - fsl,ls1046a-wdt
     then:
       properties:
         big-endian: false
Signature · 1 line
2.34.1
maintainer Reviewed-by on v3 1/2
#2 lore raw

Re: [v3 PATCH 1/2] dt-bindings: watchdog: fsl-imx-wdt: add compatible string fsl,ls1046a-wdt

Quoted 4 lines · Meng Li

Add compatible string fsl,ls1046a-wdt for ls1046a SoC. fsl,ls1046a-wdt allows big-endian property.

Quoted 27 lines
---
 Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml +2 -1
index 8a6c3a75a547..34951783a633 100644
@@ -37,6 +37,7 @@ properties:
               - fsl,ls1012a-wdt
               - fsl,ls1021a-wdt
               - fsl,ls1043a-wdt
+              - fsl,ls1046a-wdt
               - fsl,vf610-wdt
           - const: fsl,imx21-wdt
 
@@ -105,6 +106,7 @@ allOf:
                 - fsl,ls1012a-wdt
                 - fsl,ls1021a-wdt
                 - fsl,ls1043a-wdt
+                - fsl,ls1046a-wdt
     then:
       properties:
         big-endian: false
--

2.34.1

author
#3 lore raw

PATCH v3 2/2 arch: arm64: dts: add big-endian property back into watchdog node

In reply to Meng Li

When verifying watchdog feature on NXP ls1046ardb board,
it doesn't work. Because in commit 7c8ffc5555cb("arm64: dts: layerscape:
remove big-endian for mmc nodes"), it intented to remove the big-endian from mmc node, but the big-endian of watchdog node is also removed by accident. So, add watchdog big-endian property back.
In addition, fsl,ls1046a-wdt allows big-endian property, so add it into compatible property.

Fixes 7c8ffc5555cb ("arm64: dts: layerscape: remove big-endian for mmc nodes")
---
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +2 -1
index 0baf256b4400..983b2f0e8797 100644
@@ -687,11 +687,12 @@ lpuart5: serial@29a0000 {
 		};
 
 		wdog0: watchdog@2ad0000 {
-			compatible = "fsl,imx21-wdt";
+			compatible = "fsl,ls1046a-wdt", "fsl,imx21-wdt";
 			reg = <0x0 0x2ad0000 0x0 0x10000>;
 			interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
 					    QORIQ_CLK_PLL_DIV(2)>;
+			big-endian;
 		};
 
 		edma0: dma-controller@2c00000 {
Signature · 1 line
2.34.1
maintainer Reviewed-by on v3 2/2
#4 lore raw

Re: [v3 PATCH 2/2] arch: arm64: dts: add big-endian property back into watchdog node

Quoted 2 lines · Meng Li

When verifying watchdog feature on NXP ls1046ardb board,
it doesn't work. Because in commit 7c8ffc5555cb("arm64: dts: layerscape:

Watchdog doesn't work on NXP ls1046ardb board because ...

please wrap at 75 chas.

Quoted 3 lines

remove big-endian for mmc nodes"), it intented to remove the big-endian from mmc node, but the big-endian of watchdog node is also removed by accident. So, add watchdog big-endian property back.

extra empty line here.

Quoted 2 lines

In addition, fsl,ls1046a-wdt allows big-endian property, so add it into compatible property.

In addition, add compatible string fsl,ls1046a-wdt, which allow big-endian property.

Quoted 4 lines
Fixes 7c8ffc5555cb ("arm64: dts: layerscape: remove big-endian for mmc nodes")

after above small fix

Quoted 25 lines
---
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +2 -2
index 0baf256b4400..983b2f0e8797 100644
@@ -687,11 +687,12 @@ lpuart5: serial@29a0000 {
 		};
 
 		wdog0: watchdog@2ad0000 {
-			compatible = "fsl,imx21-wdt";
+			compatible = "fsl,ls1046a-wdt", "fsl,imx21-wdt";
 			reg = <0x0 0x2ad0000 0x0 0x10000>;
 			interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
 					    QORIQ_CLK_PLL_DIV(2)>;
+			big-endian;
 		};
 
 		edma0: dma-controller@2c00000 {
--

2.34.1

#5 lore raw

Re: [v3 PATCH 2/2] arch: arm64: dts: add big-endian property back into watchdog node

Quoted 39 lines · Frank Li
Quoted 2 lines · Meng Li

When verifying watchdog feature on NXP ls1046ardb board,
it doesn't work. Because in commit 7c8ffc5555cb("arm64: dts: layerscape:

Watchdog doesn't work on NXP ls1046ardb board because ...

please wrap at 75 chas.

Quoted 3 lines

remove big-endian for mmc nodes"), it intented to remove the big-endian from mmc node, but the big-endian of watchdog node is also removed by accident. So, add watchdog big-endian property back.

extra empty line here.

Quoted 2 lines

In addition, fsl,ls1046a-wdt allows big-endian property, so add it into compatible property.

In addition, add compatible string fsl,ls1046a-wdt, which allow big-endian property.

Quoted 4 lines
Fixes 7c8ffc5555cb ("arm64: dts: layerscape: remove big-endian for mmc nodes")

after above small fix

Quoted 11 lines
---
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +0 -0
index 0baf256b4400..983b2f0e8797 100644
@@ -687,11 +687,12 @@ lpuart5: serial@29a0000 {
 		};
 
Quoted 3 lines

arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi lpuart5: serial@29a0000 { · line 690

Quoted 3 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +1 -1
 		wdog0: watchdog@2ad0000 {
-			compatible = "fsl,imx21-wdt";
+			compatible = "fsl,ls1046a-wdt", "fsl,imx21-wdt";

So ls1046a is really compatible with imx21?

Regards,
Peng

Quoted 11 lines
Quoted 11 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +1 -1
 			reg = <0x0 0x2ad0000 0x0 0x10000>;
 			interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
 					    QORIQ_CLK_PLL_DIV(2)>;
+			big-endian;
 		};
 
 		edma0: dma-controller@2c00000 {
--

2.34.1

author
#6 lore raw

RE: [v3 PATCH 2/2] arch: arm64: dts: add big-endian property back into watchdog node

Quoted 60 lines

-----Original Message-----
From: Peng Fan <[email protected]>
Sent: Thursday, June 5, 2025 10:42 AM
To: Frank Li <[email protected]>
Cc: Li, Meng <[email protected]>; [email protected]; [email protected]; [email protected]; linux- [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [v3 PATCH 2/2] arch: arm64: dts: add big-endian property back into watchdog node

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 41 lines · Frank Li
Quoted 2 lines · Meng Li

When verifying watchdog feature on NXP ls1046ardb board, it doesn't work. Because in commit 7c8ffc5555cb("arm64: dts: layerscape:

Watchdog doesn't work on NXP ls1046ardb board because ...

please wrap at 75 chas.

Quoted 3 lines

remove big-endian for mmc nodes"), it intented to remove the big-endian from mmc node, but the big-endian of watchdog node is also removed by accident. So, add watchdog big-endian property back.

extra empty line here.

Quoted 2 lines

In addition, fsl,ls1046a-wdt allows big-endian property, so add it into compatible property.

In addition, add compatible string fsl,ls1046a-wdt, which allow big-endian property.

Quoted 5 lines
Fixes 7c8ffc5555cb ("arm64: dts: layerscape: remove big-endian for

mmc nodes")

after above small fix

Quoted 12 lines
---
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +0 -0
index 0baf256b4400..983b2f0e8797 100644
@@ -687,11 +687,12 @@ lpuart5: serial@29a0000 {
             };
 
Quoted 6 lines
Quoted 3 lines

arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi lpuart5: serial@29a0000 { · line 690

Quoted 3 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +1 -1
             wdog0: watchdog@2ad0000 {
-                    compatible = "fsl,imx21-wdt";
+                    compatible = "fsl,ls1046a-wdt", "fsl,imx21-wdt";

So ls1046a is really compatible with imx21?

Yes. I think LS1046/ls1043 use the same watchdog device as imx21

Thanks,
LImeng

Quoted 14 lines

Regards,
Peng

Quoted 11 lines
Quoted 11 lines
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +1 -1
                     reg = <0x0 0x2ad0000 0x0 0x10000>;
                     interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
                     clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
                                         QORIQ_CLK_PLL_DIV(2)>;
+                    big-endian;
             };
 
             edma0: dma-controller@2c00000 {
--

2.34.1