support rtc PCF2131 for imx93. Signed-off-by: Joy Zou <joy....@nxp.com> --- Changes in v4: 1. remove arch/arm/dts/imx93_11x11_evk.dts change because it can sync from kernel dts. 2. add the RTC support to the -u-boot.dtsi. 3. assign the rtc0 to rtc@53 in order to avoid date reset fail.
Changes in v3: 1. remove arch/arm/dts/imx93.dtsi modification because this change have existed. Changes in v2: 1. use the flag bootph-pre-ram instead of uboot,dm-spl. --- arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/dts/imx93-11x11-evk-u-boot.dtsi b/arch/arm/dts/imx93-11x11-evk-u-boot.dtsi index a99ba99bfb..85aaf0844f 100644 --- a/arch/arm/dts/imx93-11x11-evk-u-boot.dtsi +++ b/arch/arm/dts/imx93-11x11-evk-u-boot.dtsi @@ -19,6 +19,11 @@ method = "smc"; }; }; + + aliases { + rtc0 = &pcf2131; + }; + }; &{/soc@0} { @@ -112,6 +117,25 @@ bootph-some-ram; }; +&lpi2c3 { + bootph-pre-ram; + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_lpi2c3>; + pinctrl-1 = <&pinctrl_lpi2c3>; + status = "okay"; + + pcf2131: rtc@53 { + compatible = "nxp,pcf2131"; + reg = <0x53>; + interrupt-parent = <&pcal6524>; + interrupts = <1 IRQ_TYPE_LEVEL_LOW>; + status = "okay"; + }; +}; + &{/soc@0/bus@44000000/i2c@44350000/pmic@25} { bootph-pre-ram; bootph-some-ram; @@ -127,6 +151,16 @@ bootph-some-ram; }; +&iomuxc { + pinctrl_lpi2c3: lpi2c3grp { + bootph-pre-ram; + fsl,pins = < + MX93_PAD_GPIO_IO28__LPI2C3_SDA 0x40000b9e + MX93_PAD_GPIO_IO29__LPI2C3_SCL 0x40000b9e + >; + }; +}; + &fec { phy-reset-gpios = <&pcal6524 16 GPIO_ACTIVE_LOW>; phy-reset-duration = <15>; -- 2.37.1