Skip to contentSkip to conversation

create patches for nxp-ls1046a platform watchdog feature

PATCH Superseded Meng Li 2 participants 6 messages May 31, 2025 – Jun 2, 2025

Subsystems (3)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Meng Li

author
#0 lore raw

v2 cover create patches for nxp-ls1046a platform watchdog feature

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

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

Meng Li (3):
arch: arm64: dts: add big-endian property back into watchdog node
arm64: dts: layerscape: add platform special compatible string for
watchdog
dt-bindings: watchdog: fsl-imx-wdt: enable 'big-endian' property for
NXP ls1046a platform

 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 v2 1/3 arch: arm64: dts: add big-endian property back into watchdog node

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.

Fixes 7c8ffc5555cb ("arm64: dts: layerscape: remove big-endian for mmc nodes")
---
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +1 -0
index 0baf256b4400..d1c64d97bccd 100644
@@ -692,6 +692,7 @@ wdog0: watchdog@2ad0000 {
 			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
author
#2 lore raw

PATCH v2 2/3 arm64: dts: layerscape: add platform special compatible string for watchdog

In reply to Meng Li

Add "fsl,ls1046a-wdt" compatible string for watchdog node, and it will be added into fsl-imx-wdt.yaml in next patch.

---
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +1 -1
index d1c64d97bccd..983b2f0e8797 100644
@@ -687,7 +687,7 @@ 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
Signature · 1 line
2.34.1
maintainer
#3 lore raw

Re: [v2 PATCH 2/3] arm64: dts: layerscape: add platform special compatible string for watchdog

Quoted 2 lines · Meng Li

Add "fsl,ls1046a-wdt" compatible string for watchdog node, and it will be added into fsl-imx-wdt.yaml in next patch.

This patch should merge to first one. And move binding doc patch to first one.

Frank

Quoted 23 lines
---
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +1 -2
index d1c64d97bccd..983b2f0e8797 100644
@@ -687,7 +687,7 @@ 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
--

2.34.1

author
#4 lore raw

PATCH v2 3/3 dt-bindings: watchdog: fsl-imx-wdt: enable 'big-endian' property for NXP ls1046a platform

In reply to Meng Li

The watchdog of ls1046a SoC is a big-endian device. So enable big-endian property for it, so that avoid below dtbs_check errors. arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dtb: watchdog@2ad0000 (fsl,imx21-wdt): big-endian: False schema does not allow True

---
 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 0da953cb7127..8006efb69ec7 100644
@@ -36,6 +36,7 @@ properties:
               - fsl,imx8mq-wdt
               - fsl,ls1012a-wdt
               - fsl,ls1043a-wdt
+              - fsl,ls1046a-wdt
               - fsl,vf610-wdt
           - const: fsl,imx21-wdt
 
@@ -103,6 +104,7 @@ allOf:
               enum:
                 - fsl,ls1012a-wdt
                 - fsl,ls1043a-wdt
+                - fsl,ls1046a-wdt
     then:
       properties:
         big-endian: false
Signature · 1 line
2.34.1
maintainer
#5 lore raw

Re: [v2 PATCH 3/3] dt-bindings: watchdog: fsl-imx-wdt: enable 'big-endian' property for NXP ls1046a platform

Quoted 2 lines · Meng Li

The watchdog of ls1046a SoC is a big-endian device. So enable big-endian property for it, so that avoid below dtbs_check errors.

Add compatible string fsl,ls1046a-wdt and allow big-endian for it.

Quoted 2 lines

arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dtb: watchdog@2ad0000 (fsl,imx21-wdt): big-endian: False schema does not allow True

If this patch is first one, should not such warning.

Quoted 4 lines

---

This patch should be fix one.

Frank

Quoted 26 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 0da953cb7127..8006efb69ec7 100644
@@ -36,6 +36,7 @@ properties:
               - fsl,imx8mq-wdt
               - fsl,ls1012a-wdt
               - fsl,ls1043a-wdt
+              - fsl,ls1046a-wdt
               - fsl,vf610-wdt
           - const: fsl,imx21-wdt
 
@@ -103,6 +104,7 @@ allOf:
               enum:
                 - fsl,ls1012a-wdt
                 - fsl,ls1043a-wdt
+                - fsl,ls1046a-wdt
     then:
       properties:
         big-endian: false
--

2.34.1