rtc: Enhance RTC driver with BBPU bit definitions and shutdown handling
Subsystems (5)
v2 cover rtc: Enhance RTC driver with BBPU bit definitions and shutdown handling
From: Shunxi Zhang <[email protected]>
(1) Add new bits definitions for RTC_BBPU register.
(2) Add new functions to reset the BBPU alarm status in mt6397 RTC driver
(3) Add mtk_rtc_shutdown function to handle RTC shutdown events.
(4) For the V1 version comments, the following modifications are made:
(4.1)the formatting changes are separated into a distinct patch. (4.2)Since the rtc-mt6397.c file is a fusion of multiple RTC drivers for the mt6358, mt6359, and mt6357 RTCs, the definitions of certain bits in the RTC_BBPU register differ among these RTCs. The mt6359 supports the alarm status bit, while both mt6358 and mt6357 do not. Therefore, the alarm-sta-supported property is added in the mt6359.dtsi file to differentiate between the different RTCs.
(4.3)Additionally, the operation to disable IRQ in the shutdown function is removed.
Shunxi Zhang (5):
mfd: mt6397: Fix formatting of RTC_BBPU_KEY definition
mfd: mt6397: Add bit definitions and struct members to support alarm
status
rtc: mt6397: Fix formatting of platform driver structure
rtc: mt6397: Add BBPU alarm status reset and shutdown handling
arm64: dts: mediatek: mt6359: Add alarm-sta-supported property to RTC
node
arch/arm64/boot/dts/mediatek/mt6359.dtsi | 1 + drivers/rtc/rtc-mt6397.c | 32 +++++++++++++++++++++++- include/linux/mfd/mt6397/rtc.h | 5 +++- 3 files changed, 36 insertions(+), 2 deletions(-)
Signature · 1 line
2.45.2
PATCH v2 1/5 mfd: mt6397: Fix formatting of RTC_BBPU_KEY definition
From: Shunxi Zhang <[email protected]>
Adjust the whitespace alignment for the RTC_BBPU_KEY macro definition in the mt6397 RTC header file. This is a cosmetic change to improve code consistency.
--- include/linux/mfd/mt6397/rtc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mfd/mt6397/rtc.h +1 -1
@@ -16,7 +16,7 @@#define RTC_BBPU 0x0000#define RTC_BBPU_CBUSY BIT(6) -#define RTC_BBPU_KEY (0x43 << 8) +#define RTC_BBPU_KEY (0x43 << 8)#define RTC_WRTGR_MT6358 0x003a#define RTC_WRTGR_MT6397 0x003c
Signature · 1 line
2.45.2
Re: [PATCH v2 1/5] mfd: mt6397: Fix formatting of RTC_BBPU_KEY definition
Quoted 5 lines · On 20/11/2025 13:17, [email protected] wrote:
From: Shunxi Zhang <[email protected]>
Adjust the whitespace alignment for the
RTC_BBPU_KEYmacro definition in the mt6397 RTC header file. This is a cosmetic change to improve code consistency.
Please don't send such changes line by line.. You have other patches here doing the same. Organize all such trivial stuff, including for other drivers not only this one (!!), in one patch. This is just churn.
Best regards,
Krzysztof
Re: [PATCH v2 1/5] mfd: mt6397: Fix formatting of RTC_BBPU_KEY definition
Quoted 19 lines · Krzysztof Kozlowski
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 6 lines · On 20/11/2025 13:17, [email protected] wrote:
From: Shunxi Zhang <[email protected]>
Adjust the whitespace alignment for the
RTC_BBPU_KEYmacro definition
in the mt6397 RTC header file. This is a cosmetic change to improve code consistency.Please don't send such changes line by line.. You have other patches here doing the same. Organize all such trivial stuff, including for other drivers not only this one (!!), in one patch. This is just churn.
Quoted 2 lines
Best regards,
Krzysztof
Dear sir,
Execuse me,
do you mean we shouldn't make the "formatting changes" a separate
patch? This was based on a previous comment:
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/#26517538. If it doesn't need to be a separate patch, I will make it into a patch with other changes in the next version.
Best Regards
Shunxi Zhang
Re: [PATCH v2 1/5] mfd: mt6397: Fix formatting of RTC_BBPU_KEY definition
Quoted 20 lines · Shunxi Zhang (章顺喜)
Quoted 19 lines · Krzysztof Kozlowski
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 6 lines · On 20/11/2025 13:17, [email protected] wrote:
From: Shunxi Zhang <[email protected]>
Adjust the whitespace alignment for the
RTC_BBPU_KEYmacro definition
in the mt6397 RTC header file. This is a cosmetic change to improve code consistency.Please don't send such changes line by line.. You have other patches here doing the same. Organize all such trivial stuff, including for other drivers not only this one (!!), in one patch. This is just churn.
Quoted 7 lines
Quoted 2 lines
Best regards,
KrzysztofDear sir,
Execuse me,
do you mean we shouldn't make the "formatting changes" a separate patch? This was based on a previous comment:
Fix entire subsystem or multiple drivers not only one line.
Best regards,
Krzysztof
PATCH v2 2/5 mfd: mt6397: Add bit definitions and struct members to support alarm status
In reply to [email protected]From: Shunxi Zhang <[email protected]>
This patch adds new bit definitions for the RTC_BBPU register and one members in the mt6397_rtc_data structure in the mt6397 RTC header file to support alarm status functionality in the MT6397 RTC driver.
--- include/linux/mfd/mt6397/rtc.h | 3 +++ 1 file changed, 3 insertions(+)
include/linux/mfd/mt6397/rtc.h +3 -0
@@ -15,6 +15,8 @@#include <linux/rtc.h> #define RTC_BBPU 0x0000 +#define RTC_BBPU_PWREN BIT(0) +#define RTC_BBPU_RESET_AL BIT(3)#define RTC_BBPU_CBUSY BIT(6)#define RTC_BBPU_KEY (0x43 << 8)
@@ -76,6 +78,7 @@ struct mt6397_rtc {int irq;u32 addr_base;const struct mtk_rtc_data *data; + bool alarm_sta_supported; };#endif /* _LINUX_MFD_MT6397_RTC_H_ */
Signature · 1 line
2.45.2
PATCH v2 3/5 rtc: mt6397: Fix formatting of platform driver structure
In reply to [email protected]From: Shunxi Zhang <[email protected]>
This is a cosmetic change to improve code consistency.
--- drivers/rtc/rtc-mt6397.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-mt6397.c +1 -1
@@ -345,7 +345,7 @@ static struct platform_driver mtk_rtc_driver = { .of_match_table = mt6397_rtc_of_match, .pm = &mt6397_pm_ops, }, - .probe = mtk_rtc_probe, + .probe = mtk_rtc_probe, };module_platform_driver (mtk_rtc_driver);
Signature · 1 line
2.45.2
Re: [PATCH v2 3/5] rtc: mt6397: Fix formatting of platform driver structure
Quoted 4 lines · On 20/11/2025 13:17, [email protected] wrote:
From: Shunxi Zhang <[email protected]>
This is a cosmetic change to improve code consistency.
Churn. Don't send individual patches like this. Fix entire subsystem please.
Best regards,
Krzysztof
Re: [PATCH v2 3/5] rtc: mt6397: Fix formatting of platform driver structure
Quoted 7 lines · Krzysztof Kozlowski
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 2 lines · On 20/11/2025 13:17, [email protected] wrote:
From: Shunxi Zhang <[email protected]>
Quoted 8 lines
Quoted 2 lines
This is a cosmetic change to improve code consistency.
Churn. Don't send individual patches like this. Fix entire subsystem please.
Best regards,
Krzysztof
Dear sir,
Excuse me, do you mean we shouldn't make the "formatting changes" a separate patch?
If it doesn't need to modify, I will remove the "fomatting changes"patch in the next version.
Best Regards
Shunxi Zhang
Alexandre Belloni
maintainerRe: [PATCH v2 3/5] rtc: mt6397: Fix formatting of platform driver structure
In reply to [email protected]Quoted 4 lines · On 20/11/2025 20:17:59+0800, [email protected] wrote:
From: Shunxi Zhang <[email protected]>
This is a cosmetic change to improve code consistency.
But, is it?
Quoted 10 lines
Signed-off-by Shunxi Zhang <[email protected]>--- drivers/rtc/rtc-mt6397.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/rtc/rtc-mt6397.c +0
-0
drivers/rtc/rtc-mt6397.c static struct platform_driver mtk_rtc_driver = { · line 348
Quoted 4 lines
drivers/rtc/rtc-mt6397.c +0
-1@@ -345,7 +345,7 @@ static struct platform_driver mtk_rtc_driver = { .of_match_table = mt6397_rtc_of_match, .pm = &mt6397_pm_ops, }, - .probe = mtk_rtc_probe,
I guess the original author wanted to align with the members of the .drivers struct above. I won't take a patch to change just that as the next guys wanting to improve his KPIs will do the exact opposite.
Quoted 7 lines
drivers/rtc/rtc-mt6397.c +1
-0+ .probe = mtk_rtc_probe, };module_platform_driver (mtk_rtc_driver);Signature · 1 line
2.45.2
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 4/5 rtc: mt6397: Add BBPU alarm status reset and shutdown handling
In reply to [email protected]From: Shunxi Zhang <[email protected]>
Function "mtk_rtc_reset_bbpu_alarm_status" is added to address the issue that the RTC BBPU alarm state remains after the RTC alarm has occurred.
Additionally, function "mtk_rtc_shutdown" is added to address the issue of the platform being powered on again after shutdown because the RTC_BBPU alarm state was not cleared.
--- drivers/rtc/rtc-mt6397.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)
drivers/rtc/rtc-mt6397.c +30 -0
@@ -37,6 +37,21 @@ static int mtk_rtc_write_trigger(struct mt6397_rtc *rtc)return ret; } +static void mtk_rtc_reset_bbpu_alarm_status (struct mt6397_rtc *rtc) +{ +u32 bbpu =RTC_BBPU_KEY |RTC_BBPU_PWREN |RTC_BBPU_RESET_AL ; +int ret; + + ret =regmap_write (rtc->regmap, rtc->addr_base +RTC_BBPU , bbpu); +if (ret <0 ) { +dev_err (rtc->rtc_dev->dev.parent,"%s: write rtc bbpu error\n" , + __func__); +return ; + } + +mtk_rtc_write_trigger (rtc); +} +static irqreturn_t mtk_rtc_irq_handler_thread (int irq,void *data) {struct mt6397_rtc *rtc = data;
@@ -51,6 +66,9 @@ static irqreturn_t mtk_rtc_irq_handler_thread(int irq, void *data)if (regmap_write (rtc->regmap, rtc->addr_base +RTC_IRQ_EN , irqen) ==0 )mtk_rtc_write_trigger (rtc); + +if (rtc->alarm_sta_supported) +mtk_rtc_reset_bbpu_alarm_status (rtc);mutex_unlock (&rtc->lock);return IRQ_HANDLED ;
@@ -249,6 +267,7 @@ static int mtk_rtc_probe(struct platform_device *pdev)struct resource *res;struct mt6397_chip *mt6397_chip =dev_get_drvdata (pdev->dev.parent);struct mt6397_rtc *rtc; +struct device_node *np = pdev->dev.of_node;int ret; rtc =devm_kzalloc (&pdev->dev,sizeof (struct mt6397_rtc ),GFP_KERNEL );
@@ -275,6 +294,8 @@ static int mtk_rtc_probe(struct platform_device *pdev)if (IS_ERR (rtc->rtc_dev))return PTR_ERR (rtc->rtc_dev); + rtc->alarm_sta_supported =of_property_read_bool (np,"mediatek,alarm-sta-supported" ); + ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL, mtk_rtc_irq_handler_thread, IRQF_ONESHOT | IRQF_TRIGGER_HIGH,
@@ -297,6 +318,14 @@ static int mtk_rtc_probe(struct platform_device *pdev)return devm_rtc_register_device (rtc->rtc_dev); } +static void mtk_rtc_shutdown (struct platform_device *pdev) +{ +struct mt6397_rtc *rtc =platform_get_drvdata (pdev); + +if (rtc->alarm_sta_supported) +mtk_rtc_reset_bbpu_alarm_status (rtc); +} +#ifdef CONFIG_PM_SLEEP static int mt6397_rtc_suspend (struct device *dev) {
@@ -346,6 +375,7 @@ static struct platform_driver mtk_rtc_driver = { .pm = &mt6397_pm_ops, }, .probe = mtk_rtc_probe, + .shutdown = mtk_rtc_shutdown, };module_platform_driver (mtk_rtc_driver);
Signature · 1 line
2.45.2
Re: [PATCH v2 4/5] rtc: mt6397: Add BBPU alarm status reset and shutdown handling
drivers/rtc/rtc-mt6397.c static int mtk_rtc_probe(struct platform_device *pdev) · line 297
Quoted 7 lines · On 20/11/2025 13:18, [email protected] wrote:
drivers/rtc/rtc-mt6397.c +1
-0rtc =devm_kzalloc (&pdev->dev,sizeof (struct mt6397_rtc ),GFP_KERNEL );@@ -275,6 +294,8 @@ static int mtk_rtc_probe(struct platform_device *pdev)if (IS_ERR (rtc->rtc_dev))return PTR_ERR (rtc->rtc_dev); + rtc->alarm_sta_supported =of_property_read_bool (np,"mediatek,alarm-sta-supported" );
You cannot add undocumented ABI. Read carefully Linux documentation.
Best regards,
Krzysztof
Re: [PATCH v2 4/5] rtc: mt6397: Add BBPU alarm status reset and shutdown handling
Quoted 13 lines · Krzysztof Kozlowski
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 8 lines · On 20/11/2025 13:18, [email protected] wrote:
rtc = devm_kzalloc(&pdev->dev, sizeof(struct mt6397_rtc),
GFP_KERNEL);drivers/rtc/rtc-mt6397.c +0
-0@@ -275,6 +294,8 @@ static int mtk_rtc_probe(struct platform_device *pdev)if (IS_ERR (rtc->rtc_dev))return PTR_ERR (rtc->rtc_dev);
Quoted 7 lines
Review static int mtk_rtc_probe(struct platform_device · line 299
Quoted 2 lines
(quoted diff) +1
-0+ rtc->alarm_sta_supported = of_property_read_bool(np, "mediatek,alarm-sta-supported");You cannot add undocumented ABI. Read carefully Linux documentation.
Best regards,
Krzysztof
Dear sir,
Thanks for your comment, I will read & check linux documentation.
It will be revised in the next version.
Best Regards
Shunxi Zhang
AngeloGioacchino Del Regno
maintainerRe: [PATCH v2 4/5] rtc: mt6397: Add BBPU alarm status reset and shutdown handling
In reply to [email protected]Il 20/11/25 13:18, [email protected] ha scritto:
Quoted 60 lines
From: Shunxi Zhang <[email protected]>
Function "
mtk_rtc_reset_bbpu_alarm_status" is added to address the issue that the RTC BBPU alarm state remains after the RTC alarm has occurred.Additionally, function "
mtk_rtc_shutdown" is added to address the issue of the platform being powered on again after shutdown because theRTC_BBPUalarm state was not cleared.Signed-off-by Shunxi Zhang <[email protected]>--- drivers/rtc/rtc-mt6397.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)drivers/rtc/rtc-mt6397.c +19
-0@@ -37,6 +37,21 @@ static int mtk_rtc_write_trigger(struct mt6397_rtc *rtc)return ret; } +static void mtk_rtc_reset_bbpu_alarm_status (struct mt6397_rtc *rtc) +{ +u32 bbpu =RTC_BBPU_KEY |RTC_BBPU_PWREN |RTC_BBPU_RESET_AL ; +int ret; + + ret =regmap_write (rtc->regmap, rtc->addr_base +RTC_BBPU , bbpu); +if (ret <0 ) { +dev_err (rtc->rtc_dev->dev.parent,"%s: write rtc bbpu error\n" , + __func__); +return ; + } + +mtk_rtc_write_trigger (rtc); +} +static irqreturn_t mtk_rtc_irq_handler_thread (int irq,void *data) {struct mt6397_rtc *rtc = data;@@ -51,6 +66,9 @@ static irqreturn_t mtk_rtc_irq_handler_thread(int irq, void *data)if (regmap_write (rtc->regmap, rtc->addr_base +RTC_IRQ_EN , irqen) ==0 )mtk_rtc_write_trigger (rtc); + +if (rtc->alarm_sta_supported) +mtk_rtc_reset_bbpu_alarm_status (rtc);mutex_unlock (&rtc->lock);return IRQ_HANDLED ;@@ -249,6 +267,7 @@ static int mtk_rtc_probe(struct platform_device *pdev)struct resource *res;struct mt6397_chip *mt6397_chip =dev_get_drvdata (pdev->dev.parent);struct mt6397_rtc *rtc; +struct device_node *np = pdev->dev.of_node;int ret; rtc =devm_kzalloc (&pdev->dev,sizeof (struct mt6397_rtc ),GFP_KERNEL );
drivers/rtc/rtc-mt6397.c static int mtk_rtc_probe(struct platform_device *pdev) · line 297
Quoted 4 lines
drivers/rtc/rtc-mt6397.c +1
-0@@ -275,6 +294,8 @@ static int mtk_rtc_probe(struct platform_device *pdev)if (IS_ERR (rtc->rtc_dev))return PTR_ERR (rtc->rtc_dev); + rtc->alarm_sta_supported =of_property_read_bool (np,"mediatek,alarm-sta-supported" );
You don't need a DT property - the PMIC dictates support for that, not the board.
This means that you also don't need the alarm_sta_supported variable, and you don't need to check for it.
Just execute the mtk_rtc_reset_bbpu_alarm_status() function when you have to, without any check.
Cheers,
Angelo
Quoted 27 lines
drivers/rtc/rtc-mt6397.c +10
-0+ ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL, mtk_rtc_irq_handler_thread, IRQF_ONESHOT | IRQF_TRIGGER_HIGH,@@ -297,6 +318,14 @@ static int mtk_rtc_probe(struct platform_device *pdev)return devm_rtc_register_device (rtc->rtc_dev); } +static void mtk_rtc_shutdown (struct platform_device *pdev) +{ +struct mt6397_rtc *rtc =platform_get_drvdata (pdev); + +if (rtc->alarm_sta_supported) +mtk_rtc_reset_bbpu_alarm_status (rtc); +} +#ifdef CONFIG_PM_SLEEP static int mt6397_rtc_suspend (struct device *dev) {@@ -346,6 +375,7 @@ static struct platform_driver mtk_rtc_driver = { .pm = &mt6397_pm_ops, }, .probe = mtk_rtc_probe, + .shutdown = mtk_rtc_shutdown, };module_platform_driver (mtk_rtc_driver);
Re: [PATCH v2 4/5] rtc: mt6397: Add BBPU alarm status reset and shutdown handling
Quoted 89 lines · AngeloGioacchino Del Regno
External email : Please do not click links or open attachments until you have verified the sender or the content.
Il 20/11/25 13:18, [email protected] ha scritto:
Quoted 70 lines
From: Shunxi Zhang <[email protected]>
Function "
mtk_rtc_reset_bbpu_alarm_status" is added to address the issue that the RTC BBPU alarm state remains after the RTC alarm has occurred.Additionally, function "
mtk_rtc_shutdown" is added to address the issue of the platform being powered on again after shutdown because theRTC_BBPUalarm state was not cleared.Signed-off-by Shunxi Zhang <[email protected]>--- drivers/rtc/rtc-mt6397.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)drivers/rtc/rtc-mt6397.c +8
-0@@ -37,6 +37,21 @@ static int mtk_rtc_write_trigger(struct mt6397_rtc *rtc)return ret; } +static void mtk_rtc_reset_bbpu_alarm_status (struct mt6397_rtc *rtc) +{ +u32 bbpu =RTC_BBPU_KEY |RTC_BBPU_PWREN |RTC_BBPU_RESET_AL ; +int ret; + + ret =regmap_write (rtc->regmap, rtc->addr_base +RTC_BBPU , bbpu); +if (ret <0 ) { + dev_err(rtc->rtc_dev->dev.parent, "%s: write rtc bbpuerror\n",
drivers/rtc/rtc-mt6397.c +7
-0+ __func__); +return ; + } + +mtk_rtc_write_trigger (rtc); +} + static irqreturn_t mtk_rtc_irq_handler_thread(int irq, void*data)
{ struct mt6397_rtc *rtc = data;drivers/rtc/rtc-mt6397.c +3
-0@@ -51,6 +66,9 @@ static irqreturn_t mtk_rtc_irq_handler_thread(int irq, void *data)if (regmap_write (rtc->regmap, rtc->addr_base +RTC_IRQ_EN , irqen) ==0 )mtk_rtc_write_trigger (rtc); + +if (rtc->alarm_sta_supported) +mtk_rtc_reset_bbpu_alarm_status (rtc);mutex_unlock (&rtc->lock);return IRQ_HANDLED;drivers/rtc/rtc-mt6397.c +1
-0@@ -249,6 +267,7 @@ static int mtk_rtc_probe(struct platform_device *pdev)struct resource *res;struct mt6397_chip *mt6397_chip =dev_get_drvdata (pdev- >dev.parent);struct mt6397_rtc *rtc; +struct device_node *np = pdev->dev.of_node;int ret;rtc = devm_kzalloc(&pdev->dev, sizeof(struct mt6397_rtc),
GFP_KERNEL);drivers/rtc/rtc-mt6397.c static int mtk_rtc_probe(struct platform_device · line 299
Quoted 6 lines
drivers/rtc/rtc-mt6397.c +1
-0@@ -275,6 +294,8 @@ static int mtk_rtc_probe(struct platform_device *pdev)if (IS_ERR (rtc->rtc_dev))return PTR_ERR (rtc->rtc_dev); + rtc->alarm_sta_supported =of_property_read_bool (np,"mediatek,alarm-sta-supported" );You don't need a DT property - the PMIC dictates support for that, not the board.
This means that you also don't need the
alarm_sta_supportedvariable, and you
don't need to check for it.
Quoted 6 lines
Just execute the
mtk_rtc_reset_bbpu_alarm_status()function when you have to,
without any check.Cheers,
Angelo
Dear sir,
Thanks for your comment. This check is base on the last comment(
https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/#26517538
) reply:
"The MT6397 is an integration of several ICs and does not have a separate IC specification. I will check the relevant IC datasheets again. I will remove the useless define in next version".
Only the MT6359 has the "BBPU alarm status" function, so this attribute needs to be added to the RTC function in MT6359.dtsi for judgment. This ensures compatibility with other PMICs (MT6358, etc.) in rtc-mt6397.c.
Excuse me, do you have any further suggestions on better compatibility? I will improve and modify it in the next version.
Best Regards
Shunxi Zhang
Quoted 33 lines
Quoted 31 lines
drivers/rtc/rtc-mt6397.c +1
-0+ ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL,
mtk_rtc_irq_handler_thread,IRQF_ONESHOT|IRQF_TRIGGER_HIGH,drivers/rtc/rtc-mt6397.c +8
-0@@ -297,6 +318,14 @@ static int mtk_rtc_probe(struct platform_device *pdev)return devm_rtc_register_device (rtc->rtc_dev); } +static void mtk_rtc_shutdown (struct platform_device *pdev) +{ +struct mt6397_rtc *rtc =platform_get_drvdata (pdev); + +if (rtc->alarm_sta_supported) +mtk_rtc_reset_bbpu_alarm_status (rtc); +} +#ifdef CONFIG_PM_SLEEP static int mt6397_rtc_suspend (struct device *dev){drivers/rtc/rtc-mt6397.c +1
-0@@ -346,6 +375,7 @@ static struct platform_driver mtk_rtc_driver = { .pm = &mt6397_pm_ops, }, .probe = mtk_rtc_probe, + .shutdown = mtk_rtc_shutdown, };module_platform_driver(mtk_rtc_driver);
PATCH v2 5/5 arm64: dts: mediatek: mt6359: Add alarm-sta-supported property to RTC node
In reply to [email protected]From: Shunxi Zhang <[email protected]>
This patch adds the 'mediatek,alarm-sta-supported' property to the RTC node in the MediaTek MT6359 device tree source file. This property indicates that the RTC supports alarm status functionality, which is essential for proper power management and wake-up events.
--- arch/arm64/boot/dts/mediatek/mt6359.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/mediatek/mt6359.dtsi +1 -0
@@ -302,6 +302,7 @@ mt6359_vsram_others_sshub_ldo: ldo_vsram_others_sshub { mt6359rtc: rtc { compatible = "mediatek,mt6358-rtc"; + mediatek,alarm-sta-supported; }; }; };
Signature · 1 line
2.45.2
Re: [PATCH v2 5/5] arm64: dts: mediatek: mt6359: Add alarm-sta-supported property to RTC node
Quoted 3 lines · On 20/11/2025 13:18, [email protected] wrote:
From: Shunxi Zhang <[email protected]>
This patch adds the 'mediatek,alarm-sta-supported' property to the RTC
Please do not use "This commit/patch/change", but imperative mood. See longer explanation here:
https://elixir.bootlin.com/linux/v6.16/source/Documentation/process/submitting-patches.rst#L94
Quoted 14 lines
node in the MediaTek MT6359 device tree source file. This property indicates that the RTC supports alarm status functionality, which is essential for proper power management and wake-up events.
Signed-off-by Shunxi Zhang <[email protected]>--- arch/arm64/boot/dts/mediatek/mt6359.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm64/boot/dts/mediatek/mt6359.dtsi +0
-0
arch/arm64/boot/dts/mediatek/mt6359.dtsi mt6359_vsram_others_sshub_ldo: ldo_vsram_others_sshub { · line 305
Quoted 4 lines
arch/arm64/boot/dts/mediatek/mt6359.dtsi +1
-0@@ -302,6 +302,7 @@ mt6359_vsram_others_sshub_ldo: ldo_vsram_others_sshub { mt6359rtc: rtc { compatible = "mediatek,mt6358-rtc"; + mediatek,alarm-sta-supported;
NAK, there is no such ABI.
Test your code BEFORE you send it.
It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
Maybe you need to update your dtschema and yamllint. Don't rely on distro packages for dtschema and be sure you are using the latest released dtschema.
Best regards,
Krzysztof
Re: [PATCH v2 5/5] arm64: dts: mediatek: mt6359: Add alarm-sta-supported property to RTC node
Quoted 7 lines · Krzysztof Kozlowski
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 2 lines · On 20/11/2025 13:18, [email protected] wrote:
From: Shunxi Zhang <[email protected]>
Quoted 8 lines
Quoted 2 lines
This patch adds the 'mediatek,alarm-sta-supported' property to the RTC
Please do not use "This commit/patch/change", but imperative mood. See
longer explanation here:
Quoted 25 lines
Quoted 17 lines
node in the MediaTek MT6359 device tree source file. This property indicates that the RTC supports alarm status functionality, which is
essential for proper power management and wake-up events.Signed-off-by Shunxi Zhang <[email protected]>--- arch/arm64/boot/dts/mediatek/mt6359.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm64/boot/dts/mediatek/mt6359.dtsi +0
-0arch/arm64/boot/dts/mediatek/mt6359.dtsi mt6359_vsram_others_sshub_ldo: · line 306
Quoted 5 lines
arch/arm64/boot/dts/mediatek/mt6359.dtsi +1
-0@@ -302,6 +302,7 @@ mt6359_vsram_others_sshub_ldo: ldo_vsram_others_sshub { mt6359rtc: rtc { compatible = "mediatek,mt6358-rtc"; + mediatek,alarm-sta-supported;NAK, there is no such ABI.
Quoted 6 lines
Test your code BEFORE you send it.
It does not look like you tested the DTS against bindings. Please run
make dtbs_check W=1(seeDocumentation/devicetree/bindings/writing-schema.rstor
Quoted 8 lines
for instructions).
Maybe you need to update your dtschema and yamllint. Don't rely on distro packages for dtschema and be sure you are using the latest released dtschema.Best regards,
Krzysztof
Dir sir,
Thanks for comments; I will check the DTS file again according to the
method you posted. It will be revised in the next version.
Best Regards
Shunxi Zhang
Rob Herring
maintainerQuoted 25 lines · On Thu, 20 Nov 2025 20:17:56 +0800, [email protected] wrote:
From: Shunxi Zhang <[email protected]>
(1) Add new bits definitions for
RTC_BBPUregister.
(2) Add new functions to reset the BBPU alarm status in mt6397 RTC driver
(3) Addmtk_rtc_shutdownfunction to handle RTC shutdown events.
(4) For the V1 version comments, the following modifications are made:
(4.1)the formatting changes are separated into a distinct patch. (4.2)Since thertc-mt6397.cfile is a fusion of multiple RTC drivers for the mt6358, mt6359, and mt6357 RTCs, the definitions of certain bits in theRTC_BBPUregister differ among these RTCs. The mt6359 supports the alarm status bit, while both mt6358 and mt6357 do not. Therefore, the alarm-sta-supported property is added in themt6359.dtsifile to differentiate between the different RTCs.
(4.3)Additionally, the operation to disable IRQ in the shutdown function is removed.Shunxi Zhang (5):
mfd: mt6397: Fix formatting ofRTC_BBPU_KEYdefinition
mfd: mt6397: Add bit definitions and struct members to support alarm
status
rtc: mt6397: Fix formatting of platform driver structure
rtc: mt6397: Add BBPU alarm status reset and shutdown handling
arm64: dts: mediatek: mt6359: Add alarm-sta-supported property to RTC
node
Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt6359.dtsi | 1 + drivers/rtc/rtc-mt6397.c | 32 +++++++++++++++++++++++- include/linux/mfd/mt6397/rtc.h | 5 +++- 3 files changed, 36 insertions(+), 2 deletions(-)--
2.45.2
My bot found new DTB warnings on the .dts files added or changed in this series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
pip3 install dtschema --upgrade
This patch series was applied (using b4) to base:
Base: attempting to guess base-commit...
Base: tags/next-20251119 (exact match)
Base: tags/next-20251119 (use --merge-base to override)
If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically)
New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/mediatek/' for [email protected]:
arch/arm64/boot/dts/mediatek/mt8195-cherry-tomato-r2.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8395-kontron-3-5-sbc-i1200.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk-ufs.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku4.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8370-genio-510-evk.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku1.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8195-demo.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r1.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8188-evb.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8370-grinn-genio-510-sbc.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku7.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku6.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku3.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku0.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8390-grinn-genio-700-sbc.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8195-cherry-dojo-r1.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8192-evb.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku2.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8195-cherry-tomato-r3.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8195-cherry-tomato-r1.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yamlarch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku5.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml
Quoted 65 lines · Rob Herring
External email : Please do not click links or open attachments until you have verified the sender or the content.
Quoted 35 lines · On Thu, 20 Nov 2025 20:17:56 +0800, [email protected] wrote:
From: Shunxi Zhang <[email protected]>
(1) Add new bits definitions for
RTC_BBPUregister.
(2) Add new functions to reset the BBPU alarm status in mt6397 RTC driver
(3) Addmtk_rtc_shutdownfunction to handle RTC shutdown events.
(4) For the V1 version comments, the following modifications are made:
(4.1)the formatting changes are separated into a distinct patch. (4.2)Since thertc-mt6397.cfile is a fusion of multiple RTC drivers
for the mt6358, mt6359, and mt6357 RTCs, the definitions of certain bits
in theRTC_BBPUregister differ among these RTCs. The mt6359 supports
the alarm status bit, while both mt6358 and mt6357 do not. Therefore,
the alarm-sta-supported property is added in themt6359.dtsifile to
differentiate between the different RTCs. (4.3)Additionally, the operation to disable IRQ in the shutdown function
is removed.Shunxi Zhang (5):
mfd: mt6397: Fix formatting ofRTC_BBPU_KEYdefinition
mfd: mt6397: Add bit definitions and struct members to support
alarm
status
rtc: mt6397: Fix formatting of platform driver structure
rtc: mt6397: Add BBPU alarm status reset and shutdown handling
arm64: dts: mediatek: mt6359: Add alarm-sta-supported property to
RTC
nodeQuoted 11 lines
arch/arm64/boot/dts/mediatek/mt6359.dtsi | 1 + drivers/rtc/rtc-mt6397.c | 32 +++++++++++++++++++++++- include/linux/mfd/mt6397/rtc.h | 5 +++- 3 files changed, 36 insertions(+), 2 deletions(-)--
2.45.2My bot found new DTB warnings on the .dts files added or changed in this
series.Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
Quoted 5 lines
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
pip3 install dtschema --upgrade
Dir sir,
Thank you for your comment; I will check the DTS file again according to the method you posted.
Best Regards
Shunxi Zhang
Quoted 143 lines
This patch series was applied (using b4) to base:
Base: attempting to guess base-commit...
Base: tags/next-20251119 (exact match)
Base: tags/next-20251119 (use --merge-base to override)If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically)
New warnings running 'make CHECK_DTBS=y for
arch/arm64/boot/dts/mediatek/' for [email protected]:
arch/arm64/boot/dts/mediatek/mt8195-cherry-tomato-r2.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8395-kontron-3-5-sbc-i1200.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk-ufs.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku4.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8370-genio-510-evk.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku1.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8195-demo.dtb: pmic (mediatek,mt6359):
rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta- supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r1.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8188-evb.dtb: pmic (mediatek,mt6359):
rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta- supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8370-grinn-genio-510-sbc.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku7.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku6.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku3.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku0.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8390-grinn-genio-700-sbc.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8195-cherry-dojo-r1.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8192-evb.dtb: pmic (mediatek,mt6359):
rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta- supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku2.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8195-cherry-tomato-r3.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8195-cherry-tomato-r1.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku5.dtb: pmic (mediatek,mt6359): rtc: Unevaluated properties are not allowed ('mediatek,alarm-sta-supported' was unexpected)
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/mfd/mediatek,mt6397.yaml__;!!CTRNKA9wMg0ARbw!nQw6Qn5fbdrGrDMcdCNFw42XaQlpDm620noZTXdteN4gm8gBgWrGRQgqriHI20DZb-6rPCLoZoG4nzBhZFlr$