]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: s32g3: Fix SWT8 watchdog address
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Thu, 28 May 2026 12:03:24 +0000 (14:03 +0200)
committerFrank Li <Frank.Li@nxp.com>
Fri, 5 Jun 2026 17:20:35 +0000 (13:20 -0400)
Add missing hex annotation to fix the SWT8 watchdog address in 'reg'
property, as reported by dtc W=1:

  s32g3.dtsi:863.27-869.5: Warning (simple_bus_reg): /soc@0/watchdog@40500000: simple-bus unit address format error, expected "269fb20"

Lack of hex '0x' meant address would be interpreted as decimal thus
completely different value used as this device MMIO.  If device was
enabled this could lead to corruption of other device address space and
broken boot.

Cc: stable@vger.kernel.org
Fixes: 6db84f042745 ("arm64: dts: s32g3: Add the Software Timer Watchdog (SWT) nodes")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
arch/arm64/boot/dts/freescale/s32g3.dtsi

index 42646b2d16b082bfef13f7d13a8149201cfe7761..6a1e0665d73e05ceab91984654d92afe3bcf027d 100644 (file)
 
                swt8: watchdog@40500000 {
                        compatible = "nxp,s32g3-swt", "nxp,s32g2-swt";
-                       reg = <40500000 0x1000>;
+                       reg = <0x40500000 0x1000>;
                        clocks = <&clks 0x3a>, <&clks 0x3b>, <&clks 0x3b>;
                        clock-names = "counter", "module", "register";
                        status = "disabled";