public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Kontron i.MX8MP OSM Devicetree Fixups
@ 2026-03-09  8:57 Frieder Schrempf
  2026-03-09  8:57 ` [PATCH v3 1/2] dt-bindings: rtc: microcrystal,rv3028: Allow to specify vdd-supply Frieder Schrempf
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Frieder Schrempf @ 2026-03-09  8:57 UTC (permalink / raw)
  To: Alexandre Belloni, Conor Dooley, devicetree, Frank Li,
	Frieder Schrempf, imx, Krzysztof Kozlowski, linux-arm-kernel,
	linux-kernel, linux-rtc, Rob Herring, Sascha Hauer, Shawn Guo
  Cc: Annette Kobou, Fabio Estevam, Pengutronix Kernel Team

From: Frieder Schrempf <frieder.schrempf@kontron.de>

This contains three fixes and one cosmetic change for
the Kontron i.MX8MP OSM devices.

Changes for v3:
* Drop applied patches
* Add missing bindings patch for RV3028 RTC

Changes for v2:
* Add Frank's R-b tags (thanks)
* Enhance commit message of patch 2

Annette Kobou (1):
  arm64: dts: imx8mp-kontron: Fix boot order for PMIC and RTC

Frieder Schrempf (1):
  dt-bindings: rtc: microcrystal,rv3028: Allow to specify vdd-supply

 .../devicetree/bindings/rtc/microcrystal,rv3028.yaml        | 2 ++
 arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi     | 6 ++++++
 2 files changed, 8 insertions(+)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v3 1/2] dt-bindings: rtc: microcrystal,rv3028: Allow to specify vdd-supply
  2026-03-09  8:57 [PATCH v3 0/2] Kontron i.MX8MP OSM Devicetree Fixups Frieder Schrempf
@ 2026-03-09  8:57 ` Frieder Schrempf
  2026-03-09 15:14   ` Krzysztof Kozlowski
  2026-03-09  8:57 ` [PATCH v3 2/2] arm64: dts: imx8mp-kontron: Fix boot order for PMIC and RTC Frieder Schrempf
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 7+ messages in thread
From: Frieder Schrempf @ 2026-03-09  8:57 UTC (permalink / raw)
  To: Alexandre Belloni, Conor Dooley, devicetree, Krzysztof Kozlowski,
	linux-kernel, linux-rtc, Rob Herring
  Cc: Frieder Schrempf

From: Frieder Schrempf <frieder.schrempf@kontron.de>

In case the VDD supply voltage regulator of the RTC needs to be
specified explicitly, allow to set vdd-supply.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
---
 Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml b/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml
index cda8ad7c12037..2ea3b40419530 100644
--- a/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml
+++ b/Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml
@@ -32,6 +32,8 @@ properties:
       - 9000
       - 15000
 
+  vdd-supply: true
+
 required:
   - compatible
   - reg
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v3 2/2] arm64: dts: imx8mp-kontron: Fix boot order for PMIC and RTC
  2026-03-09  8:57 [PATCH v3 0/2] Kontron i.MX8MP OSM Devicetree Fixups Frieder Schrempf
  2026-03-09  8:57 ` [PATCH v3 1/2] dt-bindings: rtc: microcrystal,rv3028: Allow to specify vdd-supply Frieder Schrempf
@ 2026-03-09  8:57 ` Frieder Schrempf
  2026-03-09 14:59 ` [PATCH v3 0/2] Kontron i.MX8MP OSM Devicetree Fixups Frank Li
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Frieder Schrempf @ 2026-03-09  8:57 UTC (permalink / raw)
  To: Conor Dooley, devicetree, Frank Li, Frieder Schrempf, imx,
	Krzysztof Kozlowski, linux-arm-kernel, linux-kernel, Rob Herring,
	Sascha Hauer, Shawn Guo
  Cc: Annette Kobou, Fabio Estevam, Pengutronix Kernel Team

From: Annette Kobou <annette.kobou@kontron.de>

The PMIC provides a level-shifter for the I2C lines to the RTC.
As the level shifter needs to be enabled before the RTC can be
accessed, we need to make sure that the PMIC driver is probed
first.

As the PMIC also provides the supply voltage for the RTC through
the 3.3V regulator, we can simply express this in the DT to
create the required dependency.

This fixes sporadic boot hangs that occurred when the RTC was
accessed before the level-shifter was enabled.

Fixes: 946ab10e3f40f ("arm64: dts: Add support for Kontron OSM-S i.MX8MP SoM and BL carrier board")
Signed-off-by: Annette Kobou <annette.kobou@kontron.de>
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
---
 arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi
index b97bfeb1c30f8..bc1a261bb000e 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi
@@ -330,6 +330,12 @@ rv3028: rtc@52 {
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_rtc>;
 		interrupts-extended = <&gpio3 24 IRQ_TYPE_LEVEL_LOW>;
+		/*
+		 * While specifying the vdd-supply is normally not strictly necessary,
+		 * here it also makes sure that the PMIC driver enables the level-
+		 * shifter for the RTC before the RTC is probed.
+		 */
+		vdd-supply = <&reg_vdd_3v3>;
 	};
 };
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v3 0/2] Kontron i.MX8MP OSM Devicetree Fixups
  2026-03-09  8:57 [PATCH v3 0/2] Kontron i.MX8MP OSM Devicetree Fixups Frieder Schrempf
  2026-03-09  8:57 ` [PATCH v3 1/2] dt-bindings: rtc: microcrystal,rv3028: Allow to specify vdd-supply Frieder Schrempf
  2026-03-09  8:57 ` [PATCH v3 2/2] arm64: dts: imx8mp-kontron: Fix boot order for PMIC and RTC Frieder Schrempf
@ 2026-03-09 14:59 ` Frank Li
  2026-03-13  9:28 ` (subset) " Alexandre Belloni
  2026-03-23 23:18 ` Frank Li
  4 siblings, 0 replies; 7+ messages in thread
From: Frank Li @ 2026-03-09 14:59 UTC (permalink / raw)
  To: Frieder Schrempf
  Cc: Alexandre Belloni, Conor Dooley, devicetree, Frieder Schrempf,
	imx, Krzysztof Kozlowski, linux-arm-kernel, linux-kernel,
	linux-rtc, Rob Herring, Sascha Hauer, Shawn Guo, Annette Kobou,
	Fabio Estevam, Pengutronix Kernel Team

On Mon, Mar 09, 2026 at 09:57:41AM +0100, Frieder Schrempf wrote:
> From: Frieder Schrempf <frieder.schrempf@kontron.de>
>
> This contains three fixes and one cosmetic change for
> the Kontron i.MX8MP OSM devices.
>
> Changes for v3:
> * Drop applied patches
> * Add missing bindings patch for RV3028 RTC
>
> Changes for v2:
> * Add Frank's R-b tags (thanks)
> * Enhance commit message of patch 2
>
> Annette Kobou (1):
>   arm64: dts: imx8mp-kontron: Fix boot order for PMIC and RTC
>
> Frieder Schrempf (1):
>   dt-bindings: rtc: microcrystal,rv3028: Allow to specify vdd-supply

Please include this patch in imx@lists.linux.dev next time. I will not
track this patches status. If it Acked or applied, let me know.

Frank

>
>  .../devicetree/bindings/rtc/microcrystal,rv3028.yaml        | 2 ++
>  arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi     | 6 ++++++
>  2 files changed, 8 insertions(+)
>
> --
> 2.53.0
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3 1/2] dt-bindings: rtc: microcrystal,rv3028: Allow to specify vdd-supply
  2026-03-09  8:57 ` [PATCH v3 1/2] dt-bindings: rtc: microcrystal,rv3028: Allow to specify vdd-supply Frieder Schrempf
@ 2026-03-09 15:14   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2026-03-09 15:14 UTC (permalink / raw)
  To: Frieder Schrempf, Alexandre Belloni, Conor Dooley, devicetree,
	Krzysztof Kozlowski, linux-kernel, linux-rtc, Rob Herring
  Cc: Frieder Schrempf

On 09/03/2026 09:57, Frieder Schrempf wrote:
> From: Frieder Schrempf <frieder.schrempf@kontron.de>
> 
> In case the VDD supply voltage regulator of the RTC needs to be
> specified explicitly, allow to set vdd-supply.
> 
> Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
> ---

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: (subset) [PATCH v3 0/2] Kontron i.MX8MP OSM Devicetree Fixups
  2026-03-09  8:57 [PATCH v3 0/2] Kontron i.MX8MP OSM Devicetree Fixups Frieder Schrempf
                   ` (2 preceding siblings ...)
  2026-03-09 14:59 ` [PATCH v3 0/2] Kontron i.MX8MP OSM Devicetree Fixups Frank Li
@ 2026-03-13  9:28 ` Alexandre Belloni
  2026-03-23 23:18 ` Frank Li
  4 siblings, 0 replies; 7+ messages in thread
From: Alexandre Belloni @ 2026-03-13  9:28 UTC (permalink / raw)
  To: Conor Dooley, devicetree, Frank Li, Frieder Schrempf, imx,
	Krzysztof Kozlowski, linux-arm-kernel, linux-kernel, linux-rtc,
	Rob Herring, Sascha Hauer, Shawn Guo, Frieder Schrempf
  Cc: Annette Kobou, Fabio Estevam, Pengutronix Kernel Team

On Mon, 09 Mar 2026 09:57:41 +0100, Frieder Schrempf wrote:
> Kontron i.MX8MP OSM Devicetree Fixups
> 
> From: Frieder Schrempf <frieder.schrempf@kontron.de>
> 
> This contains three fixes and one cosmetic change for
> the Kontron i.MX8MP OSM devices.
> 
> [...]

Applied, thanks!

[1/2] dt-bindings: rtc: microcrystal,rv3028: Allow to specify vdd-supply
      https://git.kernel.org/abelloni/c/10663044bee5

Best regards,


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: (subset) [PATCH v3 0/2] Kontron i.MX8MP OSM Devicetree Fixups
  2026-03-09  8:57 [PATCH v3 0/2] Kontron i.MX8MP OSM Devicetree Fixups Frieder Schrempf
                   ` (3 preceding siblings ...)
  2026-03-13  9:28 ` (subset) " Alexandre Belloni
@ 2026-03-23 23:18 ` Frank Li
  4 siblings, 0 replies; 7+ messages in thread
From: Frank Li @ 2026-03-23 23:18 UTC (permalink / raw)
  To: Alexandre Belloni, Conor Dooley, devicetree, Frieder Schrempf,
	imx, Krzysztof Kozlowski, linux-arm-kernel, linux-kernel,
	linux-rtc, Rob Herring, Sascha Hauer, Shawn Guo, Frieder Schrempf
  Cc: Frank Li, Annette Kobou, Fabio Estevam, Pengutronix Kernel Team


On Mon, 09 Mar 2026 09:57:41 +0100, Frieder Schrempf wrote:
> From: Frieder Schrempf <frieder.schrempf@kontron.de>
>
> This contains three fixes and one cosmetic change for
> the Kontron i.MX8MP OSM devices.
>
> Changes for v3:
> * Drop applied patches
> * Add missing bindings patch for RV3028 RTC
>
> [...]

Applied, thanks!

[2/2] arm64: dts: imx8mp-kontron: Fix boot order for PMIC and RTC
      commit: 0f02852af55591d6a8609347890cc348f86fdac9

Update commit messsage, adjust wrap at 75 char. Change "this fixes" to
avoid.  Remove "We can ..."

Best regards,
--
Frank Li <Frank.Li@nxp.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-03-23 23:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09  8:57 [PATCH v3 0/2] Kontron i.MX8MP OSM Devicetree Fixups Frieder Schrempf
2026-03-09  8:57 ` [PATCH v3 1/2] dt-bindings: rtc: microcrystal,rv3028: Allow to specify vdd-supply Frieder Schrempf
2026-03-09 15:14   ` Krzysztof Kozlowski
2026-03-09  8:57 ` [PATCH v3 2/2] arm64: dts: imx8mp-kontron: Fix boot order for PMIC and RTC Frieder Schrempf
2026-03-09 14:59 ` [PATCH v3 0/2] Kontron i.MX8MP OSM Devicetree Fixups Frank Li
2026-03-13  9:28 ` (subset) " Alexandre Belloni
2026-03-23 23:18 ` Frank Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox