Skip to contentSkip to conversation

create patches for nxp-ls1046a platform watchdog feature

PATCH Applied Meng Li 4 participants 9 messages Jun 8, 2025 – Jul 3, 2025

Subsystems (3)
lore
Share & tools
lore

Meng Li

author
#0 lore raw

v4 cover create patches for nxp-ls1046a platform watchdog feature

v4:
- Improve commit log of patch0002

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 v4 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
Reviewed-by on v4 1/2
#2 lore raw

Re: [v4 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 24 lines
---
 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 · 4 lines
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |
maintainer Reviewed-by on v4 1/2
#3 lore raw

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

In reply to Meng Li
Quoted 8 lines · Meng Li

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(+)
maintainer
#4 lore raw

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

In reply to Meng Li
Quoted 7 lines · Meng Li

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(+)

Applied since this hasn't been picked up by the wdog maintainers.

author
#5 lore raw

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

In reply to Meng Li

Watchdog doesn't work on NXP ls1046ardb board because in commit 7c8ffc5555cb("arm64: dts: layerscape: remove big-endian for mmc nodes"), it intended 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, add compatible string fsl,ls1046a-wdt, which allow big-endian 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
Reviewed-by on v4 2/2
#6 lore raw

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

Quoted 6 lines · Meng Li

Watchdog doesn't work on NXP ls1046ardb board because in commit 7c8ffc5555cb("arm64: dts: layerscape: remove big-endian for mmc nodes"), it intended 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.

Quoted 6 lines

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

Fixes 7c8ffc5555cb ("arm64: dts: layerscape: remove big-endian for mmc nodes")
Quoted 22 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 -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 · 4 lines
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |
Applied
#7 lore raw

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

In reply to Meng Li
Quoted 6 lines · Meng Li

Watchdog doesn't work on NXP ls1046ardb board because in commit 7c8ffc5555cb("arm64: dts: layerscape: remove big-endian for mmc nodes"), it intended 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.

Quoted 6 lines

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

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

Applied this one, thanks!

author
#8 lore raw
In reply to Meng Li

I had resent the whole patch and include all the maintainers
More than ten days have passed, but there is no any progress and reply in upstream. Is there any comment on these patches, do I need to improve these patches?

Thanks,
LImeng

Quoted 41 lines

-----Original Message-----
From: Li, Meng <[email protected]>
Sent: Sunday, June 8, 2025 11:06 AM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; linux- [email protected]; Li, Meng <[email protected]>
Subject: [v4 PATCH 0/2] create patches for nxp-ls1046a platform watchdog feature

v4:
- Improve commit log of patch0002

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(-)

--
2.34.1