Skip to contentSkip to conversation

dt-bindings: power: Convert TI SmartReflex to DT schema

PATCH Superseded Eduard Bostina 2 participants 2 messages Jul 30 – Aug 3 Device tree bindings

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: power: Convert TI SmartReflex to DT schema

Convert the Texas Instruments SmartReflex bindings to DT schema.

---
 .../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
Documentation/devicetree/bindings/power/ti,smartreflex.yaml new file +70 -0
new file mode 100644
index 000000000..b2dc59b4d
@@ -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 <[email protected]>
+
+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";
+    };
Documentation/devicetree/bindings/power/ti-smartreflex.txt deleted +0 -47

47 lines not on this page · raw message

Signature · 1 line
2.54.0
maintainer
#1 lore raw
Quoted 18 lines · Eduard Bostina

Convert the Texas Instruments SmartReflex bindings to DT schema.

---
 .../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
Documentation/devicetree/bindings/power/ti,smartreflex.yaml new file +2 -0
new file mode 100644
index 000000000..b2dc59b4d
@@ -0,0 +1,70 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2

Documentation/devicetree/bindings/power/ti,smartreflex.yaml line 12

Quoted 10 lines
Documentation/devicetree/bindings/power/ti,smartreflex.yaml new file +10 -0
+---
+$id: http://devicetree.org/schemas/power/ti,smartreflex.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments SmartReflex
+
+maintainers:
+  - Eduard Bostina <[email protected]>
+
+description: |

Drop '|'

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

Documentation/devicetree/bindings/power/ti,smartreflex.yaml line 32

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

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

Documentation/devicetree/bindings/power/ti,smartreflex.yaml line 70

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