Skip to content

Commit 7fedcbe

Browse files
Annette Kobougregkh
authored andcommitted
arm64: dts: imx8mp-kontron: Fix boot order for PMIC and RTC
[ Upstream commit 130d901 ] 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, 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, simply express this in the DT to create the required dependency. Avoid sporadic boot hangs that occurred when the RTC was accessed before the level-shifter was enabled. Fixes: 946ab10 ("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> Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8516332 commit 7fedcbe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,12 @@
330330
pinctrl-names = "default";
331331
pinctrl-0 = <&pinctrl_rtc>;
332332
interrupts-extended = <&gpio3 24 IRQ_TYPE_LEVEL_LOW>;
333+
/*
334+
* While specifying the vdd-supply is normally not strictly necessary,
335+
* here it also makes sure that the PMIC driver enables the level-
336+
* shifter for the RTC before the RTC is probed.
337+
*/
338+
vdd-supply = <&reg_vdd_3v3>;
333339
};
334340
};
335341

0 commit comments

Comments
 (0)