* [PATCH] dt-bindings: power: Convert TI SmartReflex to DT schema
@ 2026-07-30 9:24 Eduard Bostina
2026-08-03 22:18 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Eduard Bostina @ 2026-07-30 9:24 UTC (permalink / raw)
To: Conor Dooley, devicetree, Eduard Bostina, Krzysztof Kozlowski,
linux-kernel, Mark Brown, Rob Herring
Cc: daniel.baluta, simona.toaca, goledhruva, m-chawdhry
Convert the Texas Instruments SmartReflex bindings to DT schema.
Signed-off-by: Eduard Bostina <egbostina@gmail.com>
---
.../bindings/power/ti,smartreflex.yaml | 70 +++++++++++++++++++
.../bindings/power/ti-smartreflex.txt | 47 -------------
2 files changed, 70 insertions(+), 47 deletions(-)
create mode 100644 Documentation/devicetree/bindings/power/ti,smartreflex.yaml
delete mode 100644 Documentation/devicetree/bindings/power/ti-smartreflex.txt
diff --git a/Documentation/devicetree/bindings/power/ti,smartreflex.yaml b/Documentation/devicetree/bindings/power/ti,smartreflex.yaml
new file mode 100644
index 000000000..b2dc59b4d
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/ti,smartreflex.yaml
@@ -0,0 +1,70 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/ti,smartreflex.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments SmartReflex
+
+maintainers:
+ - Eduard Bostina <egbostina@gmail.com>
+
+description: |
+ SmartReflex is used to set and adjust the SoC operating points.
+
+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:
+ description: Shall contain the TI interconnect module name if needed by the SoC
+ $ref: /schemas/types.yaml#/definitions/string
+
+required:
+ - compatible
+ - reg
+ - interrupts
+
+additionalProperties: 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";
+ };
+
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ smartreflex@4a0dd000 {
+ compatible = "ti,omap4-smartreflex-core";
+ reg = <0x4a0dd000 0x80>;
+ interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
+ ti,hwmods = "smartreflex_core";
+ };
+
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ 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 21ef14d6a..000000000
--- 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";
- };
--
2.54.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: power: Convert TI SmartReflex to DT schema
2026-07-30 9:24 [PATCH] dt-bindings: power: Convert TI SmartReflex to DT schema Eduard Bostina
@ 2026-08-03 22:18 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2026-08-03 22:18 UTC (permalink / raw)
To: Eduard Bostina
Cc: Conor Dooley, devicetree, Krzysztof Kozlowski, linux-kernel,
Mark Brown, daniel.baluta, simona.toaca, goledhruva, m-chawdhry
On Thu, Jul 30, 2026 at 12:24:54PM +0300, Eduard Bostina wrote:
> Convert the Texas Instruments SmartReflex bindings to DT schema.
>
> Signed-off-by: Eduard Bostina <egbostina@gmail.com>
> ---
> .../bindings/power/ti,smartreflex.yaml | 70 +++++++++++++++++++
> .../bindings/power/ti-smartreflex.txt | 47 -------------
> 2 files changed, 70 insertions(+), 47 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/power/ti,smartreflex.yaml
> delete mode 100644 Documentation/devicetree/bindings/power/ti-smartreflex.txt
>
> diff --git a/Documentation/devicetree/bindings/power/ti,smartreflex.yaml b/Documentation/devicetree/bindings/power/ti,smartreflex.yaml
> new file mode 100644
> index 000000000..b2dc59b4d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/ti,smartreflex.yaml
> @@ -0,0 +1,70 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/power/ti,smartreflex.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments SmartReflex
> +
> +maintainers:
> + - Eduard Bostina <egbostina@gmail.com>
> +
> +description: |
Drop '|'
> + SmartReflex is used to set and adjust the SoC operating points.
> +
> +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:
> + description: Shall contain the TI interconnect module name if needed by the SoC
> + $ref: /schemas/types.yaml#/definitions/string
deprecated: true
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> +
> +additionalProperties: 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";
> + };
> +
> + - |
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> + smartreflex@4a0dd000 {
> + compatible = "ti,omap4-smartreflex-core";
> + reg = <0x4a0dd000 0x80>;
> + interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
> + ti,hwmods = "smartreflex_core";
> + };
> +
> + - |
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> + smartreflex@4a0d9000 {
> + compatible = "ti,omap4-smartreflex-mpu";
> + reg = <0x4a0d9000 0x80>;
> + interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
> + ti,hwmods = "smartreflex_mpu";
> + };
One example is enough.
Rob
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-03 22:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-30 9:24 [PATCH] dt-bindings: power: Convert TI SmartReflex to DT schema Eduard Bostina
2026-08-03 22:18 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox