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

Message ID 20230212205107.8073-3-avolmat@me.com
State New
Headers
Series dt-bindings: sti: updates for STi platform |

Commit Message

Alain Volmat Feb. 12, 2023, 8:51 p.m. UTC
  Add bindings for STi platform boards and remove stih415/stih416 items.
This commit also moves the sti.yaml binding file into soc/sti folder

Signed-off-by: Alain Volmat <avolmat@me.com>
---
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
  

Comments

Krzysztof Kozlowski Feb. 13, 2023, 10:47 a.m. UTC | #1
On 12/02/2023 21:51, Alain Volmat wrote:
> Add bindings for STi platform boards and remove stih415/stih416 items.
> This commit also moves the sti.yaml binding file into soc/sti folder
> 
> Signed-off-by: Alain Volmat <avolmat@me.com>
> ---
> 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.

>  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
  

Patch

diff --git a/Documentation/devicetree/bindings/arm/sti.yaml b/Documentation/devicetree/bindings/arm/sti.yaml
deleted file mode 100644
index 3ca054c64377..000000000000
--- a/Documentation/devicetree/bindings/arm/sti.yaml
+++ /dev/null
@@ -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 <patrice.chotard@foss.st.com>
-
-properties:
-  $nodename:
-    const: '/'
-  compatible:
-    items:
-      - enum:
-          - st,stih415
-          - st,stih416
-          - st,stih407
-          - st,stih410
-          - st,stih418
-
-additionalProperties: true
-
-...
diff --git a/Documentation/devicetree/bindings/soc/sti/sti.yaml b/Documentation/devicetree/bindings/soc/sti/sti.yaml
new file mode 100644
index 000000000000..f32770867142
--- /dev/null
+++ b/Documentation/devicetree/bindings/soc/sti/sti.yaml
@@ -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 <patrice.chotard@foss.st.com>
+
+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
+
+...