Skip to contentSkip to conversation

dt-bindings: sti: updates for STi platform

PATCH In review Alain Volmat 3 participants 8 messages Feb 13, 2023 – Aug 16, 2023 Device tree bindings

lore
Share & tools
lore
#0 lore raw

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

Update the sti.yaml file with addition of board information and removal of no more supported STiH415/STiH416
Add the st,sti-syscon.yaml binding file for STi platform syscon

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

 .../devicetree/bindings/arm/sti.yaml          | 25 ++++++----
 .../bindings/soc/sti/st,sti-syscon.yaml       | 46 +++++++++++++++++++
 2 files changed, 62 insertions(+), 9 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/soc/sti/st,sti-syscon.yaml
Signature · 1 line
2.34.1
#1 lore raw

PATCH v3 1/2 dt-bindings: soc: sti: add STi platform syscon

Add DT schema of STi platform syscon

---
v3: correct subject line arm -> soc

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
#2 lore raw

Re: [PATCH v3 1/2] dt-bindings: soc: sti: add STi platform syscon

Quoted 56 lines · Alain Volmat

Add DT schema of STi platform syscon

---
v3: correct subject line arm -> soc

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 +36 -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
+

Documentation/devicetree/bindings/soc/sti/st,sti-syscon.yaml line 46

Quoted 10 lines
Documentation/devicetree/bindings/soc/sti/st,sti-syscon.yaml new file +10 -0
+additionalProperties: false
+
+examples:
+  - |
+    syscfg_sbc: syscon@9620000 {
+        compatible = "st,stih407-sbc-syscfg", "syscon";
+        reg = <0x9620000 0x1000>;
+    };
+
+...

Applied on sti-next

Thanks
Patrice

#3 lore raw

PATCH v3 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

---
v3: move back file into bindings/arm and update commit log accordingly
v2: update licensing
move file into soc/sti folder

 .../devicetree/bindings/arm/sti.yaml          | 23 ++++++++++++-------
 1 file changed, 15 insertions(+), 8 deletions(-)
Documentation/devicetree/bindings/arm/sti.yaml +15 -8
index 3ca054c64377..842def3e3f2b 100644
@@ -1,4 +1,4 @@
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
 %YAML 1.2
 ---
 $id: http://devicetree.org/schemas/arm/sti.yaml#
@@ -13,13 +13,20 @@ properties:
   $nodename:
     const: '/'
   compatible:
-    items:
-      - enum:
-          - st,stih415
-          - st,stih416
-          - st,stih407
-          - st,stih410
-          - st,stih418
+    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
Reviewed-by on v3 2/2
#4 lore raw

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

Quoted 8 lines · Alain Volmat

Add bindings for STi platform boards and remove stih415/stih416

---
v3: move back file into bindings/arm and update commit log accordingly
v2: update licensing
move file into soc/sti folder

 .../devicetree/bindings/arm/sti.yaml          | 23 ++++++++++

Best regards,
Krzysztof

#5 lore raw

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

In reply to Alain Volmat
Quoted 38 lines · Alain Volmat

Add bindings for STi platform boards and remove stih415/stih416

---
v3: move back file into bindings/arm and update commit log accordingly
v2: update licensing
move file into soc/sti folder

 .../devicetree/bindings/arm/sti.yaml          | 23 ++++++++++++-------
 1 file changed, 15 insertions(+), 8 deletions(-)
Documentation/devicetree/bindings/arm/sti.yaml +8 -8
index 3ca054c64377..842def3e3f2b 100644
@@ -1,4 +1,4 @@
-# SPDX-License-Identifier: GPL-2.0
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
 %YAML 1.2
 ---
 $id: http://devicetree.org/schemas/arm/sti.yaml#
@@ -13,13 +13,20 @@ properties:
   $nodename:
     const: '/'
   compatible:
-    items:
-      - enum:
-          - st,stih415
-          - st,stih416
-          - st,stih407
-          - st,stih410
-          - st,stih418
+    oneOf:
+      - items:
+          - const: st,stih407-b2120
+          - const: st,stih407
+      - items:
+          - enum:
+              - st,stih410-b2120

Documentation/devicetree/bindings/arm/sti.yaml properties: · line 32

Quoted 10 lines
Documentation/devicetree/bindings/arm/sti.yaml +7 -0
+              - st,stih410-b2260
+          - const: st,stih410
+      - items:
+          - enum:
+              - st,stih418-b2199
+              - st,stih418-b2264
+          - const: st,stih418
 
 additionalProperties: true
 

Applied on sti-next

Thanks
Patrice

#6 lore raw
In reply to Alain Volmat

Hi Rob,

gentle reminder, could you consider this serie of dt-bindings updates for the STi platform.

Alain

Quoted 16 lines · Alain Volmat

Update the sti.yaml file with addition of board information and removal of no more supported STiH415/STiH416
Add the st,sti-syscon.yaml binding file for STi platform syscon

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

 .../devicetree/bindings/arm/sti.yaml          | 25 ++++++----
 .../bindings/soc/sti/st,sti-syscon.yaml       | 46 +++++++++++++++++++
 2 files changed, 62 insertions(+), 9 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/soc/sti/st,sti-syscon.yaml
Signature · 1 line
2.34.1
#7 lore raw
Quoted 4 lines · Alain Volmat

Hi Rob,

gentle reminder, could you consider this serie of dt-bindings updates for the STi platform.

You got necessary reviews, no need to ping more. What do you expect more from DT? This is not a patch for DT to pick up.

Best regards,
Krzysztof