public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: power: ti,omap3-smartreflex-core: convert to DT schema
@ 2026-01-28  8:11 Akhila YS
  2026-02-06 15:10 ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Akhila YS @ 2026-01-28  8:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Tony Lindgren
  Cc: devicetree, linux-kernel, Akhila YS

Convert Texas Instruments SmartReflex module binding to YAML format.

Signed-off-by: Akhila YS <akhilayalmati@gmail.com>
---
 .../bindings/power/ti,omap3-smartreflex-core.yaml  | 75 ++++++++++++++++++++++
 .../devicetree/bindings/power/ti-smartreflex.txt   | 47 --------------
 2 files changed, 75 insertions(+), 47 deletions(-)

diff --git a/Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml b/Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml
new file mode 100644
index 000000000000..ad4094f15a63
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml
@@ -0,0 +1,75 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/ti,omap3-smartreflex-core.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments SmartReflex module
+
+maintainers:
+  - Tony Lindgren <tony@atomide.com>
+
+description:
+  Texas Instruments SmartReflex is an on-chip adaptive power management
+  technology integrated into TI's OMAP and other SoCs. It dynamically
+  adjusts voltage and frequency for different chip domains in real time
+  to compensate for process, voltage, and temperature (PVT) variations.
+  Dedicated hardware sensors and control logic continuously monitor
+  conditions and apply the lowest safe voltage for the required performance
+  level.
+
+properties:
+  compatible:
+    enum:
+      - ti,omap3-smartreflex-core
+      - ti,omap3-smartreflex-mpu-iva
+      - ti,omap4-smartreflex-core
+      - ti,omap4-smartreflex-mpu
+      - ti,omap4-smartreflex-iva
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  ti,hwmods:
+    $ref: /schemas/types.yaml#/definitions/string
+    deprecated: true
+    description:
+      It was required by the OMAP interconnect/PRCM code to automatically
+      initialize hardware modules using TI's internal database.
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    smartreflex@4a0db000 {
+        compatible = "ti,omap4-smartreflex-iva";
+        reg = <0x4a0db000 0x80>;
+        interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
+        ti,hwmods = "smartreflex_iva";
+    };
+
+  - |
+    smartreflex@4a0dd000 {
+        compatible = "ti,omap4-smartreflex-core";
+        reg = <0x4a0dd000 0x80>;
+        interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
+        ti,hwmods = "smartreflex_core";
+    };
+
+  - |
+    smartreflex@4a0d9000 {
+        compatible = "ti,omap4-smartreflex-mpu";
+        reg = <0x4a0d9000 0x80>;
+        interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
+        ti,hwmods = "smartreflex_mpu";
+    };
+...
diff --git a/Documentation/devicetree/bindings/power/ti-smartreflex.txt b/Documentation/devicetree/bindings/power/ti-smartreflex.txt
deleted file mode 100644
index 21ef14d6af12..000000000000
--- a/Documentation/devicetree/bindings/power/ti-smartreflex.txt
+++ /dev/null
@@ -1,47 +0,0 @@
-Texas Instruments SmartReflex binding
-
-SmartReflex is used to set and adjust the SoC operating points.
-
-
-Required properties:
-
-compatible: Shall be one of the following:
-	    "ti,omap3-smartreflex-core"
-	    "ti,omap3-smartreflex-mpu-iva"
-	    "ti,omap4-smartreflex-core"
-	    "ti,omap4-smartreflex-mpu"
-	    "ti,omap4-smartreflex-iva"
-
-reg: Shall contain the device instance IO range
-
-interrupts: Shall contain the device instance interrupt
-
-
-Optional properties:
-
-ti,hwmods: Shall contain the TI interconnect module name if needed
-	   by the SoC
-
-
-Example:
-
-	smartreflex_iva: smartreflex@4a0db000 {
-		compatible = "ti,omap4-smartreflex-iva";
-		reg = <0x4a0db000 0x80>;
-		interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
-		ti,hwmods = "smartreflex_iva";
-	};
-
-	smartreflex_core: smartreflex@4a0dd000 {
-		compatible = "ti,omap4-smartreflex-core";
-		reg = <0x4a0dd000 0x80>;
-		interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
-		ti,hwmods = "smartreflex_core";
-	};
-
-	smartreflex_mpu: smartreflex@4a0d9000 {
-		compatible = "ti,omap4-smartreflex-mpu";
-		reg = <0x4a0d9000 0x80>;
-		interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
-		ti,hwmods = "smartreflex_mpu";
-	};

---
base-commit: cc3aa43b44bdb43dfbac0fcb51c56594a11338a8
change-id: 20260126-smartreflex-9dd5cedffc0d

Best regards,
-- 
Akhila YS <akhilayalmati@gmail.com>


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

end of thread, other threads:[~2026-02-06 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-28  8:11 [PATCH] dt-bindings: power: ti,omap3-smartreflex-core: convert to DT schema Akhila YS
2026-02-06 15:10 ` Rob Herring
2026-02-06 16:55   ` Akhila YS

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