Skip to contentSkip to conversation

dt-bindings: power: ti,omap3-smartreflex-core: convert to DT schema

PATCH Superseded Akhila YS 2 participants 3 messages Jan 28 – Feb 6 Device tree bindings

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Akhila YS

author
#0 lore raw

PATCH 1/1 dt-bindings: power: ti,omap3-smartreflex-core: convert to DT schema

Convert Texas Instruments SmartReflex module binding to YAML format.

---
 .../bindings/power/ti,omap3-smartreflex-core.yaml  | 75 ++++++++++++++++++++++
 .../devicetree/bindings/power/ti-smartreflex.txt   | 47 --------------
 2 files changed, 75 insertions(+), 47 deletions(-)
Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml new file +75 -0
new file mode 100644
index 000000000000..ad4094f15a63
@@ -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 <[email protected]>
+
+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";
+    };
+...
Documentation/devicetree/bindings/power/ti-smartreflex.txt deleted +0 -47

47 lines not on this page · raw message

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

Best regards,

Signature · 1 line
Akhila YS <[email protected]>
maintainer
#1 lore raw
Quoted 61 lines · Akhila YS

Convert Texas Instruments SmartReflex module binding to YAML format.

---
 .../bindings/power/ti,omap3-smartreflex-core.yaml  | 75 ++++++++++++++++++++++
 .../devicetree/bindings/power/ti-smartreflex.txt   | 47 --------------
 2 files changed, 75 insertions(+), 47 deletions(-)
Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml new file +47 -0
new file mode 100644
index 000000000000..ad4094f15a63
@@ -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 <[email protected]>
+
+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
+

Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml line 57

Quoted 10 lines
Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml new file +10 -0
+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";

IIRC, ti,hwmods has been removed on omap4.

Quoted 7 lines
Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml new file +7 -0
+    };
+
+  - |
+    smartreflex@4a0dd000 {
+        compatible = "ti,omap4-smartreflex-core";
+        reg = <0x4a0dd000 0x80>;
+        interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;

Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml line 74

Quoted 10 lines
Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml new file +10 -0
+        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";
+    };

Just one example is enough.

Rob

author
#2 lore raw
Quoted 65 lines · Rob Herring
Quoted 64 lines · Akhila YS

Convert Texas Instruments SmartReflex module binding to YAML format.

---
 .../bindings/power/ti,omap3-smartreflex-core.yaml  | 75 ++++++++++++++++++++++
 .../devicetree/bindings/power/ti-smartreflex.txt   | 47 --------------
 2 files changed, 75 insertions(+), 47 deletions(-)
Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml new file +50 -0
new file mode 100644
index 000000000000..ad4094f15a63
@@ -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 <[email protected]>
+
+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:
Quoted 8 lines

Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml line 57

Quoted 7 lines
Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml new file +7 -0
+  - |
+    #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";

IIRC, ti,hwmods has been removed on omap4.

Sure, I will remove it from the example.

Quoted 11 lines
Quoted 11 lines
Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml new file +10 -0
+    };
+
+  - |
+    smartreflex@4a0dd000 {
+        compatible = "ti,omap4-smartreflex-core";
+        reg = <0x4a0dd000 0x80>;
+        interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
+        ti,hwmods = "smartreflex_core";
+    };
+
Quoted 8 lines

Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml line 74

Quoted 7 lines
Documentation/devicetree/bindings/power/ti,omap3-smartreflex-core.yaml new file +7 -0
+  - |
+    smartreflex@4a0d9000 {
+        compatible = "ti,omap4-smartreflex-mpu";
+        reg = <0x4a0d9000 0x80>;
+        interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
+        ti,hwmods = "smartreflex_mpu";
+    };

Just one example is enough.

Okay.

Quoted 2 lines

Rob

Signature · 2 lines
Best Regards,
Akhila.