Devicetree
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: clock: ti,keystone-gate: Convert to DT schema
@ 2026-07-25 20:04 Bhargav Joshi
  2026-08-03 21:52 ` Rob Herring (Arm)
  0 siblings, 1 reply; 2+ messages in thread
From: Bhargav Joshi @ 2026-07-25 20:04 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Brian Masney, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
	Mathieu Poirier, Santosh Shilimkar, Murali Karicheri
  Cc: linux-clk, devicetree, linux-kernel, linux-remoteproc, goledhruva,
	m-chawdhry, daniel.baluta, simona.toaca, j.bhargav.u

Convert Texas Instruments keystone PSC clock binding to DT schema.

The vendor-specific 'domain-id' property is intentionally kept without a
"ti," prefix to preserve existing ABI since driver and existing board
file use property without "ti," prefix.

Also update the reference to this binding in ti,keystone-rproc.txt to
point at the new filename.

Signed-off-by: Bhargav Joshi <j.bhargav.u@gmail.com>
---
 .../devicetree/bindings/clock/keystone-gate.txt    | 27 ----------
 .../bindings/clock/ti,keystone,psc-clock.yaml      | 60 ++++++++++++++++++++++
 .../bindings/remoteproc/ti,keystone-rproc.txt      |  2 +-
 3 files changed, 61 insertions(+), 28 deletions(-)

diff --git a/Documentation/devicetree/bindings/clock/keystone-gate.txt b/Documentation/devicetree/bindings/clock/keystone-gate.txt
deleted file mode 100644
index 43f6fb6c9392..000000000000
--- a/Documentation/devicetree/bindings/clock/keystone-gate.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Binding for Keystone gate control driver which uses PSC controller IP.
-
-This binding uses the common clock binding[1].
-
-[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
-
-Required properties:
-- compatible : shall be "ti,keystone,psc-clock".
-- #clock-cells : from common clock binding; shall be set to 0.
-- clocks : parent clock phandle
-- reg :	psc control and domain address address space
-- reg-names : psc control and domain registers
-- domain-id : psc domain id needed to check the transition state register
-
-Optional properties:
-- clock-output-names : From common clock binding to override the
-			default output clock name
-Example:
-	clkusb: clkusb {
-		#clock-cells = <0>;
-		compatible = "ti,keystone,psc-clock";
-		clocks = <&chipclk16>;
-		clock-output-names = "usb";
-		reg = <0x02350008 0xb00>, <0x02350000 0x400>;
-		reg-names = "control", "domain";
-		domain-id = <0>;
-	};
diff --git a/Documentation/devicetree/bindings/clock/ti,keystone,psc-clock.yaml b/Documentation/devicetree/bindings/clock/ti,keystone,psc-clock.yaml
new file mode 100644
index 000000000000..ed42adb27832
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/ti,keystone,psc-clock.yaml
@@ -0,0 +1,60 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/ti,keystone,psc-clock.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI Keystone PSC clock
+
+maintainers:
+  - Santosh Shilimkar <santosh.shilimkar@ti.com>
+  - Murali Karicheri <m-karicheri2@ti.com>
+
+properties:
+  compatible:
+    const: ti,keystone,psc-clock
+
+  reg:
+    items:
+      - description: PSC control
+      - description: Domain
+
+  reg-names:
+    items:
+      - const: control
+      - const: domain
+
+  domain-id:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: PSC domain id needed to check the transition state register
+
+  clocks:
+    maxItems: 1
+
+  clock-output-names:
+    maxItems: 1
+
+  "#clock-cells":
+    const: 0
+
+required:
+  - compatible
+  - reg
+  - reg-names
+  - domain-id
+  - clocks
+  - "#clock-cells"
+
+additionalProperties: false
+
+examples:
+  - |
+    clkusb@2350008 {
+        compatible = "ti,keystone,psc-clock";
+        reg = <0x02350008 0xb00>, <0x02350000 0x400>;
+        reg-names = "control", "domain";
+        domain-id = <0>;
+        clocks = <&chipclk16>;
+        clock-output-names = "usb";
+        #clock-cells = <0>;
+    };
diff --git a/Documentation/devicetree/bindings/remoteproc/ti,keystone-rproc.txt b/Documentation/devicetree/bindings/remoteproc/ti,keystone-rproc.txt
index 91f0a3b0c0b2..847552133633 100644
--- a/Documentation/devicetree/bindings/remoteproc/ti,keystone-rproc.txt
+++ b/Documentation/devicetree/bindings/remoteproc/ti,keystone-rproc.txt
@@ -75,7 +75,7 @@ SoCs only:
 
 - clocks: 		Should contain the device's input clock, and should be
 			defined as per the bindings in,
-			Documentation/devicetree/bindings/clock/keystone-gate.txt
+			Documentation/devicetree/bindings/clock/ti,keystone,psc-clock.yaml
 
 The following are mandatory properties for Keystone 2 66AK2G SoCs only:
 

---
base-commit: 0ce37745d4bfbc493f718169c3974898ffec8ee7
change-id: 20260726-ti-keystone-gate-clk-3f8e30966077

Best regards,
-- 
Bhargav


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dt-bindings: clock: ti,keystone-gate: Convert to DT schema
  2026-07-25 20:04 [PATCH] dt-bindings: clock: ti,keystone-gate: Convert to DT schema Bhargav Joshi
@ 2026-08-03 21:52 ` Rob Herring (Arm)
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring (Arm) @ 2026-08-03 21:52 UTC (permalink / raw)
  To: Bhargav Joshi
  Cc: simona.toaca, Conor Dooley, linux-clk, Stephen Boyd, linux-kernel,
	devicetree, Michael Turquette, linux-remoteproc, m-chawdhry,
	Brian Masney, goledhruva, Krzysztof Kozlowski, Murali Karicheri,
	daniel.baluta, Santosh Shilimkar, Mathieu Poirier,
	Bjorn Andersson


On Sun, 26 Jul 2026 01:34:08 +0530, Bhargav Joshi wrote:
> Convert Texas Instruments keystone PSC clock binding to DT schema.
> 
> The vendor-specific 'domain-id' property is intentionally kept without a
> "ti," prefix to preserve existing ABI since driver and existing board
> file use property without "ti," prefix.
> 
> Also update the reference to this binding in ti,keystone-rproc.txt to
> point at the new filename.
> 
> Signed-off-by: Bhargav Joshi <j.bhargav.u@gmail.com>
> ---
>  .../devicetree/bindings/clock/keystone-gate.txt    | 27 ----------
>  .../bindings/clock/ti,keystone,psc-clock.yaml      | 60 ++++++++++++++++++++++
>  .../bindings/remoteproc/ti,keystone-rproc.txt      |  2 +-
>  3 files changed, 61 insertions(+), 28 deletions(-)
> 

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-03 21:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-25 20:04 [PATCH] dt-bindings: clock: ti,keystone-gate: Convert to DT schema Bhargav Joshi
2026-08-03 21:52 ` Rob Herring (Arm)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox