Skip to contentSkip to conversation

ARM: dts: imx7d-flex-concentrator: fix pcf2127 reset

PATCH Applied Bruno Thomsen 4 participants 4 messages Jan 11, 2021 – Jan 18, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: imx7d-flex-concentrator: fix pcf2127 reset

RTC pcf2127 device driver has changed default behaviour of the watchdog feature in v5.11-rc1. Now you need to explicitly enable it with a device tree property, "reset-source", when used in the board design.

Fixes 71ac13457d9d ("rtc: pcf2127: only use watchdog when explicitly available")
Cc Bruno Thomsen <[email protected]>
Cc Uwe Kleine-König <[email protected]>
Cc Rasmus Villemoes <[email protected]>
Cc Alexandre Belloni <[email protected]>
---
 arch/arm/boot/dts/imx7d-flex-concentrator.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/imx7d-flex-concentrator.dts +1 -0
index 84b095279e65..bd6b5285aa8d 100644
@@ -115,6 +115,7 @@ pcf2127: rtc@0 {
 		compatible = "nxp,pcf2127";
 		reg = <0>;
 		spi-max-frequency = <2000000>;
+		reset-source;
 	};
 };
 

base-commit: 7c53f6b671f4aba70ff15e1b05148b10d58c2837

Signature · 1 line
2.29.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Bruno Thomsen

RTC pcf2127 device driver has changed default behaviour of the watchdog feature in v5.11-rc1. Now you need to explicitly enable it with a device tree property, "reset-source", when used in the board design.

Fixes 71ac13457d9d ("rtc: pcf2127: only use watchdog when explicitly available")
Cc Bruno Thomsen <[email protected]>
Cc Uwe Kleine-König <[email protected]>
Cc Rasmus Villemoes <[email protected]>
Cc Alexandre Belloni <[email protected]>
Quoted 21 lines
---
 arch/arm/boot/dts/imx7d-flex-concentrator.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/imx7d-flex-concentrator.dts +1 -0
index 84b095279e65..bd6b5285aa8d 100644
@@ -115,6 +115,7 @@ pcf2127: rtc@0 {
 		compatible = "nxp,pcf2127";
 		reg = <0>;
 		spi-max-frequency = <2000000>;
+		reset-source;
 	};
 };
 

base-commit: 7c53f6b671f4aba70ff15e1b05148b10d58c2837

Signature · 1 line
2.29.2
Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Applied
#2 lore raw
In reply to Bruno Thomsen
Quoted 3 lines · Bruno Thomsen

RTC pcf2127 device driver has changed default behaviour of the watchdog feature in v5.11-rc1. Now you need to explicitly enable it with a device tree property, "reset-source", when used in the board design.

It sound that the existing DTBs are broken by this default behaviour change?

Quoted 8 lines
Fixes 71ac13457d9d ("rtc: pcf2127: only use watchdog when explicitly available")
Cc Bruno Thomsen <[email protected]>
Cc Uwe Kleine-König <[email protected]>
Cc Rasmus Villemoes <[email protected]>
Cc Alexandre Belloni <[email protected]>

Applied, thanks.

Shawn

Quoted 21 lines
---
 arch/arm/boot/dts/imx7d-flex-concentrator.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/imx7d-flex-concentrator.dts +1 -0
index 84b095279e65..bd6b5285aa8d 100644
@@ -115,6 +115,7 @@ pcf2127: rtc@0 {
 		compatible = "nxp,pcf2127";
 		reg = <0>;
 		spi-max-frequency = <2000000>;
+		reset-source;
 	};
 };
 

base-commit: 7c53f6b671f4aba70ff15e1b05148b10d58c2837

Signature · 1 line
2.29.2
#3 lore raw
Quoted 7 lines · Shawn Guo
Quoted 3 lines · Bruno Thomsen

RTC pcf2127 device driver has changed default behaviour of the watchdog feature in v5.11-rc1. Now you need to explicitly enable it with a device tree property, "reset-source", when used in the board design.

It sound that the existing DTBs are broken by this default behaviour change?

I didn't do a representative research, but I expect that there are only very few machines that have a working watchdog setup using the pcf2127. All other machines were surprised by commit

	0e735eaae165 ("rtc: pcf2127: add watchdog feature support")

because they suddenly had a non-functional watchdog device. The alternative would be to "fix" the device trees of all these machines to restore pre-v5.4-rc1 behaviour. This is IMHO worse.

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |