arm64: dts: imx8mm-beacon: Fix RTC capacitive load
Subsystems (2)
PATCH v2 1/10 arm64: dts: imx8mm-beacon: Fix RTC capacitive load
Although not noticeable when used every day, the RTC appears to drift when left to sit over time. This is due to the capacitive load not being properly set. Fix RTC drift by correcting the capacitive load setting from 7000 to 12500, which matches the actual hardware configuration.
---
V2: Change commit message, no active changes.
arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi +1 -0
@@ -233,6 +233,7 @@ eeprom@50 { rtc: rtc@51 { compatible = "nxp,pcf85263"; reg = <0x51>; + quartz-load-femtofarads = <12500>; }; };
Signature · 1 line
2.48.1
PATCH v2 2/10 arm64: dts: imx8mn-beacon: Fix RTC capacitive load
Although not noticeable when used every day, the RTC appears to drift when left to sit over time. This is due to the capacitive load not being properly set. Fix RTC drift by correcting the capacitive load setting from 7000 to 12500, which matches the actual hardware configuration.
---
V2: Change commit message, no active changes.
arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi +1 -0
@@ -242,6 +242,7 @@ eeprom@50 { rtc: rtc@51 { compatible = "nxp,pcf85263"; reg = <0x51>; + quartz-load-femtofarads = <12500>; }; };
Signature · 1 line
2.48.1
Re: [PATCH V2 02/10] arm64: dts: imx8mn-beacon: Fix RTC capacitive load
Quoted 8 lines · Adam Ford
Although not noticeable when used every day, the RTC appears to drift when left to sit over time. This is due to the capacitive load not being properly set. Fix RTC drift by correcting the capacitive load setting from 7000 to 12500, which matches the actual hardware configuration.
Fixes 36ca3c8ccb53 ("arm64: dts: imx: Add Beacon i.MX8M Nano development kit")Signed-off-by Adam Ford <[email protected]>---
Quoted 20 lines
V2: Change commit message, no active changes.
arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi +1
-1@@ -242,6 +242,7 @@ eeprom@50 { rtc: rtc@51 { compatible = "nxp,pcf85263"; reg = <0x51>; + quartz-load-femtofarads = <12500>; }; }; --2.48.1
PATCH v2 3/10 arm64: dts: imx8mp-beacon: Fix RTC capacitive load
In reply to Adam FordAlthough not noticeable when used every day, the RTC appears to drift when left to sit over time. This is due to the capacitive load not being properly set. Fix RTC drift by correcting the capacitive load setting from 7000 to 12500, which matches the actual hardware configuration.
---
V2: Change commit message, no active changes.
arch/arm64/boot/dts/freescale/imx8mp-beacon-som.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mp-beacon-som.dtsi +1 -0
@@ -257,6 +257,7 @@ eeprom@50 { rtc: rtc@51 { compatible = "nxp,pcf85263"; reg = <0x51>; + quartz-load-femtofarads = <12500>; }; };
Signature · 1 line
2.48.1
Re: [PATCH V2 03/10] arm64: dts: imx8mp-beacon: Fix RTC capacitive load
Quoted 8 lines · Adam Ford
Although not noticeable when used every day, the RTC appears to drift when left to sit over time. This is due to the capacitive load not being properly set. Fix RTC drift by correcting the capacitive load setting from 7000 to 12500, which matches the actual hardware configuration.
Fixes 25a5ccdce767 ("arm64: dts: freescale: Introduce imx8mp-beacon-kit")Signed-off-by Adam Ford <[email protected]>---
Quoted 20 lines
V2: Change commit message, no active changes.
arch/arm64/boot/dts/freescale/imx8mp-beacon-som.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm64/boot/dts/freescale/imx8mp-beacon-som.dtsi +1
-1@@ -257,6 +257,7 @@ eeprom@50 { rtc: rtc@51 { compatible = "nxp,pcf85263"; reg = <0x51>; + quartz-load-femtofarads = <12500>; }; }; --2.48.1
PATCH v2 4/10 arm64: dts: imx8mm-beacon: Set SAI5 MCLK direction to output for HDMI audio
In reply to Adam FordThe HDMI bridge chip fails to generate an audio source due to the SAI5 master clock (MCLK) direction not being set to output. This prevents proper clocking of the HDMI audio interface.
Add the fsl,sai-mclk-direction-output property to the SAI5 node to ensure the MCLK is driven by the SoC, resolving the HDMI sound issue.
---
V2: Change commit message, no active changes.
arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dts | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dts +1 -0
@@ -124,6 +124,7 @@ &sai5 { assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>; assigned-clock-rates = <24576000>; #sound-dai-cells = <0>; + fsl,sai-mclk-direction-output; status = "okay"; };
Signature · 1 line
2.48.1
Re: [PATCH V2 04/10] arm64: dts: imx8mm-beacon: Set SAI5 MCLK direction to output for HDMI audio
Quoted 10 lines · Adam Ford
The HDMI bridge chip fails to generate an audio source due to the SAI5 master clock (MCLK) direction not being set to output. This prevents proper clocking of the HDMI audio interface.
Add the
fsl,sai-mclk-direction-outputproperty to the SAI5 node to ensure the MCLK is driven by the SoC, resolving the HDMI sound issue.Fixes 8ad7d14d99f3 ("arm64: dts: imx8mm-beacon: Add HDMI video with sound")Signed-off-by Adam Ford <[email protected]>---
Quoted 20 lines
V2: Change commit message, no active changes.
arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dts | 1 + 1 file changed, 1 insertion(+)arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dts +1
-1@@ -124,6 +124,7 @@ &sai5 { assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>; assigned-clock-rates = <24576000>; #sound-dai-cells = <0>; + fsl,sai-mclk-direction-output; status = "okay"; }; --2.48.1
PATCH v2 5/10 arm64: dts: imx8mn-beacon: Set SAI5 MCLK direction to output for HDMI audio
In reply to Adam FordThe HDMI bridge chip fails to generate an audio source due to the SAI5 master clock (MCLK) direction not being set to output. This prevents proper clocking of the HDMI audio interface.
Add the fsl,sai-mclk-direction-output property to the SAI5 node to ensure the MCLK is driven by the SoC, resolving the HDMI sound issue.
---
V2: Change commit message, no active changes.
arch/arm64/boot/dts/freescale/imx8mn-beacon-kit.dts | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mn-beacon-kit.dts +1 -0
@@ -124,6 +124,7 @@ &sai5 { assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>; assigned-clock-rates = <24576000>; #sound-dai-cells = <0>; + fsl,sai-mclk-direction-output; status = "okay"; };
Signature · 1 line
2.48.1
Re: [PATCH V2 05/10] arm64: dts: imx8mn-beacon: Set SAI5 MCLK direction to output for HDMI audio
Quoted 11 lines · Adam Ford
The HDMI bridge chip fails to generate an audio source due to the SAI5 master clock (MCLK) direction not being set to output. This prevents proper clocking of the HDMI audio interface.
Add the
fsl,sai-mclk-direction-outputproperty to the SAI5 node to ensure the MCLK is driven by the SoC, resolving the HDMI sound issue.Fixes 1d6880ceef43 ("arm64: dts: imx8mn-beacon: Add HDMI video with sound")Signed-off-by Adam Ford <[email protected]>---
V2: Change commit message, no active changes.
Quoted 19 lines
arch/arm64/boot/dts/freescale/imx8mn-beacon-kit.dts | 1 + 1 file changed, 1 insertion(+)arch/arm64/boot/dts/freescale/imx8mn-beacon-kit.dts +1
-1@@ -124,6 +124,7 @@ &sai5 { assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>; assigned-clock-rates = <24576000>; #sound-dai-cells = <0>; + fsl,sai-mclk-direction-output; status = "okay"; }; --2.48.1
PATCH v2 6/10 arm64: dts: imx8mm-beacon: Configure Ethernet PHY reset and GPIO IRQ
In reply to Adam FordThe Ethernet PHY setup currently assumes that the bootloader will take the PHY out of reset, but this behavior is not guaranteed across all bootloaders. Add the reset GPIO to ensure the kernel can properly control the PHY reset line.
Also configure the PHY IRQ GPIO to enable interrupt-driven link status reporting, instead of relying on polling.
This ensures more reliable Ethernet initialization and improves PHY event handling.
---
V2: Update commit message. No active changes.
arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi +4 -0
@@ -78,6 +78,9 @@ mdio { ethphy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0>; + reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; + interrupt-parent = <&gpio1>; + interrupts = <10 IRQ_TYPE_LEVEL_LOW>; }; }; };
@@ -315,6 +318,7 @@ MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91 MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91 MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f + MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x146 MX8MM_IOMUXC_SAI2_RXC_GPIO4_IO22 0x19 >; };
Signature · 1 line
2.48.1
Re: [PATCH V2 06/10] arm64: dts: imx8mm-beacon: Configure Ethernet PHY reset and GPIO IRQ
Quoted 5 lines · Adam Ford
The Ethernet PHY setup currently assumes that the bootloader will take the PHY out of reset, but this behavior is not guaranteed across all bootloaders. Add the reset GPIO to ensure the kernel can properly control the PHY reset line.
Quoted 7 lines
Also configure the PHY IRQ GPIO to enable interrupt-driven link status reporting, instead of relying on polling.
This ensures more reliable Ethernet initialization and improves PHY event handling.
Signed-off-by Adam Ford <[email protected]>
Quoted 31 lines
---
V2: Update commit message. No active changes.arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi | 4 ++++ 1 file changed, 4 insertions(+)arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi +4
-1@@ -78,6 +78,9 @@ mdio { ethphy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0>; + reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; + interrupt-parent = <&gpio1>; + interrupts = <10 IRQ_TYPE_LEVEL_LOW>; }; }; };@@ -315,6 +318,7 @@ MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91 MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91 MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f + MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x146 MX8MM_IOMUXC_SAI2_RXC_GPIO4_IO22 0x19 >; }; --2.48.1
PATCH v2 7/10 arm64: dts: imx8mn-beacon: Configure Ethernet PHY reset and GPIO IRQ
In reply to Adam FordThe Ethernet PHY setup currently assumes that the bootloader will take the PHY out of reset, but this behavior is not guaranteed across all bootloaders. Add the reset GPIO to ensure the kernel can properly control the PHY reset line.
Also configure the PHY IRQ GPIO to enable interrupt-driven link status reporting, instead of relying on polling.
This ensures more reliable Ethernet initialization and improves PHY event handling.
---
V2: Update commit message. No active changes.
arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi +4 -0
@@ -88,6 +88,9 @@ mdio { ethphy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0>; + reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; + interrupt-parent = <&gpio1>; + interrupts = <10 IRQ_TYPE_LEVEL_LOW>; }; }; };
@@ -326,6 +329,7 @@ MX8MN_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f MX8MN_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91 MX8MN_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91 MX8MN_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f + MX8MN_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x146 MX8MN_IOMUXC_SAI2_RXC_GPIO4_IO22 0x19 >; };
Signature · 1 line
2.48.1
Re: [PATCH V2 07/10] arm64: dts: imx8mn-beacon: Configure Ethernet PHY reset and GPIO IRQ
Quoted 5 lines · Adam Ford
The Ethernet PHY setup currently assumes that the bootloader will take the PHY out of reset, but this behavior is not guaranteed across all bootloaders. Add the reset GPIO to ensure the kernel can properly control the PHY reset line.
Quoted 8 lines
Also configure the PHY IRQ GPIO to enable interrupt-driven link status reporting, instead of relying on polling.
This ensures more reliable Ethernet initialization and improves PHY event handling.
Signed-off-by Adam Ford <[email protected]>---
Quoted 30 lines
V2: Update commit message. No active changes.
arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi | 4 ++++ 1 file changed, 4 insertions(+)arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi +4
-1@@ -88,6 +88,9 @@ mdio { ethphy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0>; + reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; + interrupt-parent = <&gpio1>; + interrupts = <10 IRQ_TYPE_LEVEL_LOW>; }; }; };@@ -326,6 +329,7 @@ MX8MN_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f MX8MN_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91 MX8MN_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91 MX8MN_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f + MX8MN_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x146 MX8MN_IOMUXC_SAI2_RXC_GPIO4_IO22 0x19 >; }; --2.48.1
PATCH v2 8/10 arm64: dts: imx8mm-beacon: Enable RTC interrupt and wakeup-source
In reply to Adam FordEnable the interrupts and wakeup-source to allow the external RTC to be used as an alarm.
---
V2: Update commit message. Re-order node
arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi +11 -0
@@ -236,7 +236,12 @@ eeprom@50 { rtc: rtc@51 { compatible = "nxp,pcf85263"; reg = <0x51>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rtc>; + interrupt-parent = <&gpio1>; + interrupts = <13 IRQ_TYPE_LEVEL_LOW>; quartz-load-femtofarads = <12500>; + wakeup-source; }; };
@@ -354,6 +359,12 @@ MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x141 >; }; + pinctrl_rtc: rtcgrp { + fsl,pins = < + MX8MM_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x146 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
Signature · 1 line
2.48.1
Re: [PATCH V2 08/10] arm64: dts: imx8mm-beacon: Enable RTC interrupt and wakeup-source
Quoted 4 lines · Adam Ford
Enable the interrupts and wakeup-source to allow the external RTC to be used as an alarm.
Signed-off-by Adam Ford <[email protected]>
Quoted 39 lines
---
V2: Update commit message. Re-order nodearch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi +11
-1@@ -236,7 +236,12 @@ eeprom@50 { rtc: rtc@51 { compatible = "nxp,pcf85263"; reg = <0x51>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rtc>; + interrupt-parent = <&gpio1>; + interrupts = <13 IRQ_TYPE_LEVEL_LOW>; quartz-load-femtofarads = <12500>; + wakeup-source; }; };@@ -354,6 +359,12 @@ MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x141 >; }; + pinctrl_rtc: rtcgrp { + fsl,pins = < + MX8MM_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x146 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140 --2.48.1
PATCH v2 9/10 arm64: dts: imx8mn-beacon: Enable RTC interrupt and wakeup-source
In reply to Adam FordEnable the interrupts and wakeup-source to allow the external RTC to be used as an alarm.
---
V2: Update commit message. No active changes
arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi +11 -0
@@ -245,7 +245,12 @@ eeprom@50 { rtc: rtc@51 { compatible = "nxp,pcf85263"; reg = <0x51>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rtc>; + interrupt-parent = <&gpio1>; + interrupts = <13 IRQ_TYPE_LEVEL_LOW>; quartz-load-femtofarads = <12500>; + wakeup-source; }; };
@@ -365,6 +370,12 @@ MX8MN_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x141 >; }; + pinctrl_rtc: rtcgrp { + fsl,pins = < + MX8MN_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x146 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX8MN_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
Signature · 1 line
2.48.1
Re: [PATCH V2 09/10] arm64: dts: imx8mn-beacon: Enable RTC interrupt and wakeup-source
Quoted 5 lines · Adam Ford
Enable the interrupts and wakeup-source to allow the external RTC to be used as an alarm.
Signed-off-by Adam Ford <[email protected]>---
Quoted 38 lines
V2: Update commit message. No active changes
arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi +11
-1@@ -245,7 +245,12 @@ eeprom@50 { rtc: rtc@51 { compatible = "nxp,pcf85263"; reg = <0x51>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rtc>; + interrupt-parent = <&gpio1>; + interrupts = <13 IRQ_TYPE_LEVEL_LOW>; quartz-load-femtofarads = <12500>; + wakeup-source; }; };@@ -365,6 +370,12 @@ MX8MN_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x141 >; }; + pinctrl_rtc: rtcgrp { + fsl,pins = < + MX8MN_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x146 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX8MN_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140 --2.48.1
PATCH v2 10/10 arm64: dts: imx8mp-beacon: Enable RTC interrupt and wakeup-source
In reply to Adam FordEnable the interrupts and wakeup-source to allow the external RTC to be used as an alarm.
---
V2: New to series
arch/arm64/boot/dts/freescale/imx8mp-beacon-som.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp-beacon-som.dtsi +11 -0
@@ -257,7 +257,12 @@ eeprom@50 { rtc: rtc@51 { compatible = "nxp,pcf85263"; reg = <0x51>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rtc>; + interrupt-parent = <&gpio1>; + interrupts = <13 IRQ_TYPE_LEVEL_LOW>; quartz-load-femtofarads = <12500>; + wakeup-source; }; };
@@ -382,6 +387,12 @@ MX8MP_IOMUXC_SD1_DATA4__GPIO2_IO06 0x40 >; }; + pinctrl_rtc: rtcgrp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO13__GPIO1_IO13 0x1d0 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX8MP_IOMUXC_UART1_RXD__UART1_DCE_RX 0x140
Signature · 1 line
2.48.1
Shawn Guo
AppliedQuoted 7 lines · Adam Ford
Although not noticeable when used every day, the RTC appears to drift when left to sit over time. This is due to the capacitive load not being properly set. Fix RTC drift by correcting the capacitive load setting from 7000 to 12500, which matches the actual hardware configuration.
Fixes 593816fa2f35 ("arm64: dts: imx: Add Beacon i.MX8m-Mini development kit")Signed-off-by Adam Ford <[email protected]>
Applied all, thanks!