* [PATCH 0/3] dt-bindings: rtc: ti,omap-rtc: Convert to DT schema and cleanups
@ 2026-07-24 9:15 Bhargav Joshi
2026-07-24 9:15 ` [PATCH 1/3] ARM: dts: ti: am57xx-idk-common: Remove unused ext-clk-src property Bhargav Joshi
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bhargav Joshi @ 2026-07-24 9:15 UTC (permalink / raw)
To: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
Tony Lindgren, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Alexandre Belloni, Keerthy, Afzal Mohammed
Cc: linux-omap, devicetree, linux-kernel, linux-rtc, goledhruva,
m-chawdhry, daniel.baluta, simona.toaca, j.bhargav.u
This series converts the Texas Instruments OMAP Real Time Clock (RTC)
binding from the legacy format to dt-schema.
During the conversion process, two legacy, undocumented properties
were discovered in the upstream device trees:
- 'ext-clk-src' in am57xx-idk-common.dtsi
- 'ti,no-init' in am335x-shc.dts
Both properties are completely unhandled by the rtc-omap driver. Patches
1 and 2 remove them from the device trees. Patch 3 then introduces the
new YAML schema.
Signed-off-by: Bhargav Joshi <j.bhargav.u@gmail.com>
---
Bhargav Joshi (3):
ARM: dts: ti: am57xx-idk-common: Remove unused ext-clk-src property
ARM: dts: ti: am335x-shc: Remove unused ti,no-init property
dt-bindings: rtc: ti,omap-rtc: Convert to DT schema
.../devicetree/bindings/rtc/ti,omap-rtc.yaml | 129 +++++++++++++++++++++
arch/arm/boot/dts/ti/omap/am335x-shc.dts | 4 -
arch/arm/boot/dts/ti/omap/am57xx-idk-common.dtsi | 1 -
3 files changed, 129 insertions(+), 5 deletions(-)
---
base-commit: 48a5a7ab8d6ab7090564339e039c421f315de912
change-id: 20260724-ti-omap-rtc-6a5c5888e7e3
Best regards,
--
Bhargav
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] ARM: dts: ti: am57xx-idk-common: Remove unused ext-clk-src property
2026-07-24 9:15 [PATCH 0/3] dt-bindings: rtc: ti,omap-rtc: Convert to DT schema and cleanups Bhargav Joshi
@ 2026-07-24 9:15 ` Bhargav Joshi
2026-07-24 9:15 ` [PATCH 2/3] ARM: dts: ti: am335x-shc: Remove unused ti,no-init property Bhargav Joshi
2026-07-24 9:15 ` [PATCH 3/3] dt-bindings: rtc: ti,omap-rtc: Convert to DT schema Bhargav Joshi
2 siblings, 0 replies; 4+ messages in thread
From: Bhargav Joshi @ 2026-07-24 9:15 UTC (permalink / raw)
To: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
Tony Lindgren, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Alexandre Belloni, Keerthy, Afzal Mohammed
Cc: linux-omap, devicetree, linux-kernel, linux-rtc, goledhruva,
m-chawdhry, daniel.baluta, simona.toaca, j.bhargav.u
The 'ext-clk-src' property is a legacy, undocumented boolean property
that is entirely unhandled by the rtc-omap driver. The driver instead
determines the clock source natively by checking the presence of the
"ext-clk" clock via devm_clk_get().
Remove this unnecessary property.
Signed-off-by: Bhargav Joshi <j.bhargav.u@gmail.com>
---
arch/arm/boot/dts/ti/omap/am57xx-idk-common.dtsi | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/boot/dts/ti/omap/am57xx-idk-common.dtsi b/arch/arm/boot/dts/ti/omap/am57xx-idk-common.dtsi
index 43e3623f079c..ef4bd554e92b 100644
--- a/arch/arm/boot/dts/ti/omap/am57xx-idk-common.dtsi
+++ b/arch/arm/boot/dts/ti/omap/am57xx-idk-common.dtsi
@@ -445,7 +445,6 @@ &uart3 {
&rtc {
status = "okay";
- ext-clk-src;
};
&mac_sw {
--
2.55.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/3] ARM: dts: ti: am335x-shc: Remove unused ti,no-init property
2026-07-24 9:15 [PATCH 0/3] dt-bindings: rtc: ti,omap-rtc: Convert to DT schema and cleanups Bhargav Joshi
2026-07-24 9:15 ` [PATCH 1/3] ARM: dts: ti: am57xx-idk-common: Remove unused ext-clk-src property Bhargav Joshi
@ 2026-07-24 9:15 ` Bhargav Joshi
2026-07-24 9:15 ` [PATCH 3/3] dt-bindings: rtc: ti,omap-rtc: Convert to DT schema Bhargav Joshi
2 siblings, 0 replies; 4+ messages in thread
From: Bhargav Joshi @ 2026-07-24 9:15 UTC (permalink / raw)
To: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
Tony Lindgren, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Alexandre Belloni, Keerthy, Afzal Mohammed
Cc: linux-omap, devicetree, linux-kernel, linux-rtc, goledhruva,
m-chawdhry, daniel.baluta, simona.toaca, j.bhargav.u
The 'ti,no-init' property is a legacy, undocumented boolean property
that is entirely unhandled by the rtc-omap driver.
Remove this unnecessary property from dts.
Signed-off-by: Bhargav Joshi <j.bhargav.u@gmail.com>
---
arch/arm/boot/dts/ti/omap/am335x-shc.dts | 4 ----
1 file changed, 4 deletions(-)
diff --git a/arch/arm/boot/dts/ti/omap/am335x-shc.dts b/arch/arm/boot/dts/ti/omap/am335x-shc.dts
index 597482822608..2b946823928f 100644
--- a/arch/arm/boot/dts/ti/omap/am335x-shc.dts
+++ b/arch/arm/boot/dts/ti/omap/am335x-shc.dts
@@ -241,10 +241,6 @@ &mmc3 {
status = "okay";
};
-&rtc {
- ti,no-init;
-};
-
&sham {
status = "okay";
};
--
2.55.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 3/3] dt-bindings: rtc: ti,omap-rtc: Convert to DT schema
2026-07-24 9:15 [PATCH 0/3] dt-bindings: rtc: ti,omap-rtc: Convert to DT schema and cleanups Bhargav Joshi
2026-07-24 9:15 ` [PATCH 1/3] ARM: dts: ti: am57xx-idk-common: Remove unused ext-clk-src property Bhargav Joshi
2026-07-24 9:15 ` [PATCH 2/3] ARM: dts: ti: am335x-shc: Remove unused ti,no-init property Bhargav Joshi
@ 2026-07-24 9:15 ` Bhargav Joshi
2 siblings, 0 replies; 4+ messages in thread
From: Bhargav Joshi @ 2026-07-24 9:15 UTC (permalink / raw)
To: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
Tony Lindgren, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Alexandre Belloni, Keerthy, Afzal Mohammed
Cc: linux-omap, devicetree, linux-kernel, linux-rtc, goledhruva,
m-chawdhry, daniel.baluta, simona.toaca, j.bhargav.u
Convert the Texas Instruments OMAP Real Time Clock (RTC) binding from
the legacy text format to the DT schema. Mark 'ti,hwmods' as deprecated
as it is no longer used, it is kept to support legacy boards.
Signed-off-by: Bhargav Joshi <j.bhargav.u@gmail.com>
---
.../devicetree/bindings/rtc/ti,omap-rtc.yaml | 129 +++++++++++++++++++++
1 file changed, 129 insertions(+)
diff --git a/Documentation/devicetree/bindings/rtc/ti,omap-rtc.yaml b/Documentation/devicetree/bindings/rtc/ti,omap-rtc.yaml
new file mode 100644
index 000000000000..eeea1bab6530
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/ti,omap-rtc.yaml
@@ -0,0 +1,129 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/ti,omap-rtc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments OMAP Real Time Clock
+
+maintainers:
+ - Keerthy <j-keerthy@ti.com>
+ - Afzal Mohammed <afzal@ti.com>
+
+description:
+ The OMAP RTC is a year/month/day/hours/minutes/seconds BCD clock with
+ century-range alarm matching, driven by the 32kHz clock.
+
+allOf:
+ - $ref: rtc.yaml#
+
+properties:
+ compatible:
+ oneOf:
+ - const: ti,da830-rtc
+ - const: ti,am3352-rtc
+ - items:
+ - const: ti,am3352-rtc
+ - const: ti,da830-rtc
+ - items:
+ - const: ti,am4372-rtc
+ - const: ti,am3352-rtc
+ - const: ti,da830-rtc
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ minItems: 2
+ maxItems: 2
+
+ system-power-controller:
+ type: boolean
+ description:
+ Indicates that this RTC controls system power via the pmic_power_en pin.
+
+ clocks:
+ minItems: 1
+ maxItems: 2
+
+ clock-names:
+ oneOf:
+ - items:
+ - const: ext-clk
+ - const: int-clk
+ - items:
+ - const: ext-clk
+ - items:
+ - const: int-clk
+
+ pinctrl-0:
+ description:
+ Phandle to pin configuration for the external wakeup pins.
+
+ pinctrl-names:
+ minItems: 1
+
+ ti,hwmods:
+ $ref: /schemas/types.yaml#/definitions/string
+ description:
+ Name of the hwmod associated with the RTC.
+ const: rtc
+ deprecated: true
+
+patternProperties:
+ "^ext-wakeup(-[0-9]+)?$":
+ type: object
+
+ description:
+ Child node describing external wakeup pin configuration.
+
+ properties:
+ pins:
+ enum:
+ - ext_wakeup0
+ - ext_wakeup1
+ - ext_wakeup2
+ - ext_wakeup3
+
+ input-enable:
+ type: boolean
+ description:
+ Enables the external wakeup input on the selected pin.
+
+ ti,active-high:
+ type: boolean
+ description:
+ Sets the wakeup input polarity to active high. By default the
+ input is active low.
+
+ required:
+ - pins
+
+ additionalProperties: false
+
+required:
+ - compatible
+ - reg
+ - interrupts
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ rtc@23000 {
+ compatible = "ti,da830-rtc";
+ reg = <0x23000 0x1000>;
+ interrupts = <19>, <19>;
+ system-power-controller;
+ clocks = <&clk_32k_rtc>, <&clk_32768_ck>;
+ clock-names = "ext-clk", "int-clk";
+
+ pinctrl-0 = <&ext_wakeup>;
+ pinctrl-names = "default";
+
+ ext-wakeup {
+ pins = "ext_wakeup0";
+ input-enable;
+ ti,active-high;
+ };
+ };
--
2.55.0
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-24 9:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-24 9:15 [PATCH 0/3] dt-bindings: rtc: ti,omap-rtc: Convert to DT schema and cleanups Bhargav Joshi
2026-07-24 9:15 ` [PATCH 1/3] ARM: dts: ti: am57xx-idk-common: Remove unused ext-clk-src property Bhargav Joshi
2026-07-24 9:15 ` [PATCH 2/3] ARM: dts: ti: am335x-shc: Remove unused ti,no-init property Bhargav Joshi
2026-07-24 9:15 ` [PATCH 3/3] dt-bindings: rtc: ti,omap-rtc: Convert to DT schema Bhargav Joshi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®