2022-04-20 14:09:26

by Yassine Oudjana

[permalink] [raw]
Subject: [PATCH 0/3] dt-bindings: arm: mediatek: Convert some docs to DT schema

From: Yassine Oudjana <[email protected]>

This series includes DT schema conversions for topckgen, apmixedsys
and infracfg bindings.

Yassine Oudjana (3):
dt-bindings: arm: mediatek: topckgen: Convert to DT schema
dt-bindings: arm: mediatek: apmixedsys: Convert to DT schema
dt-bindings: arm: mediatek: infracfg: Convert to DT schema

.../arm/mediatek/mediatek,apmixedsys.txt | 35 --------
.../arm/mediatek/mediatek,apmixedsys.yaml | 60 ++++++++++++++
.../arm/mediatek/mediatek,infracfg.txt | 42 ----------
.../arm/mediatek/mediatek,infracfg.yaml | 79 +++++++++++++++++++
.../arm/mediatek/mediatek,topckgen.txt | 35 --------
.../arm/mediatek/mediatek,topckgen.yaml | 60 ++++++++++++++
6 files changed, 199 insertions(+), 112 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt
create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt
create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt
create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.yaml

--
2.35.3


2022-04-21 07:46:32

by Matthias Brugger

[permalink] [raw]
Subject: Re: [PATCH 0/3] dt-bindings: arm: mediatek: Convert some docs to DT schema



On 19/04/2022 20:09, Yassine Oudjana wrote:
> From: Yassine Oudjana <[email protected]>
>
> This series includes DT schema conversions for topckgen, apmixedsys
> and infracfg bindings.
>

Thanks for the effort. Regarding the bindings Krzysztof mentioned should go into
bindings/clock/ directory: please add the clock maintainers as maintainers of
the bindings.

Thanks!
Matthias

> Yassine Oudjana (3):
> dt-bindings: arm: mediatek: topckgen: Convert to DT schema
> dt-bindings: arm: mediatek: apmixedsys: Convert to DT schema
> dt-bindings: arm: mediatek: infracfg: Convert to DT schema
>
> .../arm/mediatek/mediatek,apmixedsys.txt | 35 --------
> .../arm/mediatek/mediatek,apmixedsys.yaml | 60 ++++++++++++++
> .../arm/mediatek/mediatek,infracfg.txt | 42 ----------
> .../arm/mediatek/mediatek,infracfg.yaml | 79 +++++++++++++++++++
> .../arm/mediatek/mediatek,topckgen.txt | 35 --------
> .../arm/mediatek/mediatek,topckgen.yaml | 60 ++++++++++++++
> 6 files changed, 199 insertions(+), 112 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt
> create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.yaml
> delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt
> create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.yaml
> delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt
> create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.yaml
>

2022-04-21 19:57:36

by Yassine Oudjana

[permalink] [raw]
Subject: [PATCH 2/3] dt-bindings: arm: mediatek: apmixedsys: Convert to DT schema

From: Yassine Oudjana <[email protected]>

Convert apmixedsys bindings to DT schema format. MT2701, MT7623 and
MT7629 device trees currently have the syscon compatible without
it being mentioned in the old DT bindings file which introduces
dtbs_check errors when converting to DT schema as-is, so
mediatek,mt2701-apmixedsys and mediatek,mt7629-apmixedsys are placed
in the last items list with the syscon compatible, and syscon is
added to the mediatek,mt7623-apmixedsys list.

Signed-off-by: Yassine Oudjana <[email protected]>
---
.../arm/mediatek/mediatek,apmixedsys.txt | 35 -----------
.../arm/mediatek/mediatek,apmixedsys.yaml | 60 +++++++++++++++++++
2 files changed, 60 insertions(+), 35 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt
create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.yaml

diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt
deleted file mode 100644
index 3fa755866528..000000000000
--- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Mediatek apmixedsys controller
-==============================
-
-The Mediatek apmixedsys controller provides the PLLs to the system.
-
-Required Properties:
-
-- compatible: Should be one of:
- - "mediatek,mt2701-apmixedsys"
- - "mediatek,mt2712-apmixedsys", "syscon"
- - "mediatek,mt6765-apmixedsys", "syscon"
- - "mediatek,mt6779-apmixedsys", "syscon"
- - "mediatek,mt6797-apmixedsys"
- - "mediatek,mt7622-apmixedsys"
- - "mediatek,mt7623-apmixedsys", "mediatek,mt2701-apmixedsys"
- - "mediatek,mt7629-apmixedsys"
- - "mediatek,mt7986-apmixedsys"
- - "mediatek,mt8135-apmixedsys"
- - "mediatek,mt8167-apmixedsys", "syscon"
- - "mediatek,mt8173-apmixedsys"
- - "mediatek,mt8183-apmixedsys", "syscon"
- - "mediatek,mt8516-apmixedsys"
-- #clock-cells: Must be 1
-
-The apmixedsys controller uses the common clk binding from
-Documentation/devicetree/bindings/clock/clock-bindings.txt
-The available clocks are defined in dt-bindings/clock/mt*-clk.h.
-
-Example:
-
-apmixedsys: clock-controller@10209000 {
- compatible = "mediatek,mt8173-apmixedsys";
- reg = <0 0x10209000 0 0x1000>;
- #clock-cells = <1>;
-};
diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.yaml
new file mode 100644
index 000000000000..fc967fdc8aec
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.yaml
@@ -0,0 +1,60 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/arm/mediatek/mediatek,apmixedsys.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: MediaTek AP Mixedsys Controller
+
+maintainers:
+ - Matthias Brugger <[email protected]>
+
+description:
+ The Mediatek apmixedsys controller provides PLLs to the system.
+
+properties:
+ compatible:
+ oneOf:
+ - items:
+ - enum:
+ - mediatek,mt6797-apmixedsys
+ - mediatek,mt7622-apmixedsys
+ - mediatek,mt7986-apmixedsys
+ - mediatek,mt8135-apmixedsys
+ - mediatek,mt8173-apmixedsys
+ - mediatek,mt8516-apmixedsys
+ - items:
+ - const: mediatek,mt7623-apmixedsys
+ - const: mediatek,mt2701-apmixedsys
+ - const: syscon
+ - items:
+ - enum:
+ - mediatek,mt2701-apmixedsys
+ - mediatek,mt2712-apmixedsys
+ - mediatek,mt6765-apmixedsys
+ - mediatek,mt6779-apmixedsys
+ - mediatek,mt7629-apmixedsys
+ - mediatek,mt8167-apmixedsys
+ - mediatek,mt8183-apmixedsys
+ - const: syscon
+
+ reg:
+ maxItems: 1
+
+ '#clock-cells':
+ const: 1
+
+required:
+ - compatible
+ - reg
+ - '#clock-cells'
+
+additionalProperties: false
+
+examples:
+ - |
+ apmixedsys: clock-controller@10209000 {
+ compatible = "mediatek,mt8173-apmixedsys";
+ reg = <0x10209000 0x1000>;
+ #clock-cells = <1>;
+ };
--
2.35.3