Skip to contentSkip to conversation

dt-bindings: sti: updates for STi platform

PATCH Superseded Alain Volmat 2 participants 5 messages Feb 12, 2023 – Feb 13, 2023 Device tree bindings

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover dt-bindings: sti: updates for STi platform

Update the sti.yaml file with addition of board information and move it into soc/sti folder.
Add the st,sti-syscon.yaml binding file for STi platform syscon

Alain Volmat (2):
dt-bindings: arm: sti: add STi platform syscon
dt-bindings: arm: sti: add sti boards and remove stih415/stih416

 .../devicetree/bindings/arm/sti.yaml          | 26 -----------
 .../bindings/soc/sti/st,sti-syscon.yaml       | 46 +++++++++++++++++++
 .../devicetree/bindings/soc/sti/sti.yaml      | 33 +++++++++++++
 3 files changed, 79 insertions(+), 26 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/sti.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/sti/st,sti-syscon.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/sti/sti.yaml
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/2 dt-bindings: arm: sti: add STi platform syscon

Add DT schema of STi platform syscon

---
v2: update wording of commit log
reorder compatible enum
update example within the binding file

 .../bindings/soc/sti/st,sti-syscon.yaml       | 46 +++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/soc/sti/st,sti-syscon.yaml
Documentation/devicetree/bindings/soc/sti/st,sti-syscon.yaml new file +46 -0
new file mode 100644
index 000000000000..5f97d9ff17fb
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/soc/sti/st,sti-syscon.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: STMicroelectronics STi platform sysconfig
+
+maintainers:
+  - Patrice Chotard <[email protected]>
+
+description: |
+  Binding for the various sysconfig nodes used within the STi
+  platform device-tree to point to some common configuration
+  registers used by other nodes.
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - st,stih407-core-syscfg
+          - st,stih407-flash-syscfg
+          - st,stih407-front-syscfg
+          - st,stih407-lpm-syscfg
+          - st,stih407-rear-syscfg
+          - st,stih407-sbc-reg-syscfg
+          - st,stih407-sbc-syscfg
+      - const: syscon
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    syscfg_sbc: syscon@9620000 {
+        compatible = "st,stih407-sbc-syscfg", "syscon";
+        reg = <0x9620000 0x1000>;
+    };
+
+...
Signature · 1 line
2.34.1
#3 lore raw

PATCH v2 2/2 dt-bindings: arm: sti: add sti boards and remove stih415/stih416

In reply to Alain Volmat

Add bindings for STi platform boards and remove stih415/stih416 items. This commit also moves the sti.yaml binding file into soc/sti folder

---
v2: update licensing
move file into soc/sti folder

 .../devicetree/bindings/arm/sti.yaml          | 26 ---------------
 .../devicetree/bindings/soc/sti/sti.yaml      | 33 +++++++++++++++++++
 2 files changed, 33 insertions(+), 26 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/sti.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/sti/sti.yaml
Documentation/devicetree/bindings/arm/sti.yaml deleted +0 -26
deleted file mode 100644
index 3ca054c64377..000000000000
@@ -1,26 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-%YAML 1.2
----
-$id: http://devicetree.org/schemas/arm/sti.yaml#
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: ST STi Platforms
-
-maintainers:
-  - Patrice Chotard <[email protected]>
-
-properties:
-  $nodename:
-    const: '/'
-  compatible:
-    items:
-      - enum:
-          - st,stih415
-          - st,stih416
-          - st,stih407
-          - st,stih410
-          - st,stih418
-
-additionalProperties: true
-
-...
Documentation/devicetree/bindings/soc/sti/sti.yaml new file +33 -0
new file mode 100644
index 000000000000..f32770867142
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/soc/sti/sti.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ST STi Platforms
+
+maintainers:
+  - Patrice Chotard <[email protected]>
+
+properties:
+  $nodename:
+    const: '/'
+  compatible:
+    oneOf:
+      - items:
+          - const: st,stih407-b2120
+          - const: st,stih407
+      - items:
+          - enum:
+              - st,stih410-b2120
+              - st,stih410-b2260
+          - const: st,stih410
+      - items:
+          - enum:
+              - st,stih418-b2199
+              - st,stih418-b2264
+          - const: st,stih418
+
+additionalProperties: true
+
+...
Signature · 1 line
2.34.1
#4 lore raw

Re: [PATCH v2 2/2] dt-bindings: arm: sti: add sti boards and remove stih415/stih416

Quoted 10 lines · Alain Volmat

Add bindings for STi platform boards and remove stih415/stih416 items. This commit also moves the sti.yaml binding file into soc/sti folder

---
v2: update licensing
move file into soc/sti folder

 .../devicetree/bindings/arm/sti.yaml          | 26 ---------------
 .../devicetree/bindings/soc/sti/sti.yaml      | 33 +++++++++++++++++++

Wait, I did not ask to move this. This is a top-level binding, so it's place is in arm.

Quoted 4 lines
 2 files changed, 33 insertions(+), 26 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/sti.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/sti/sti.yaml

Best regards,
Krzysztof