Skip to contentSkip to conversation

dt-bindings: arm: mediatek: convert audsys to yaml

PATCH Superseded Eugen Hristev 3 participants 4 messages Aug 10, 2023 – Aug 14, 2023

Subsystems (2)

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: arm: mediatek: convert audsys to yaml

Convert the mediatek,audsys binding to YAML.

---

Ref to /schemas/sound/mt2701-afe-pcm.yaml added as informative only because that schema has not been converted yet

 .../bindings/arm/mediatek/mediatek,audsys.txt | 39 -----------
 .../arm/mediatek/mediatek,audsys.yaml         | 66 +++++++++++++++++++
 2 files changed, 66 insertions(+), 39 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt
 create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml
Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt deleted +0 -39
deleted file mode 100644
index 699776be1dd3..000000000000
@@ -1,39 +0,0 @@
-MediaTek AUDSYS controller
-============================
-
-The MediaTek AUDSYS controller provides various clocks to the system.
-
-Required Properties:
-
-- compatible: Should be one of:
-	- "mediatek,mt2701-audsys", "syscon"
-	- "mediatek,mt6765-audsys", "syscon"
-	- "mediatek,mt6779-audio", "syscon"
-	- "mediatek,mt7622-audsys", "syscon"
-	- "mediatek,mt7623-audsys", "mediatek,mt2701-audsys", "syscon"
-	- "mediatek,mt8167-audiosys", "syscon"
-	- "mediatek,mt8183-audiosys", "syscon"
-	- "mediatek,mt8192-audsys", "syscon"
-	- "mediatek,mt8516-audsys", "syscon"
-- #clock-cells: Must be 1
-
-The AUDSYS 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.
-
-Required sub-nodes:
--------
-For common binding part and usage, refer to
-../sonud/mt2701-afe-pcm.txt.
-
-Example:
-
-	audsys: clock-controller@11220000 {
-		compatible = "mediatek,mt7622-audsys", "syscon";
-		reg = <0 0x11220000 0 0x2000>;
-		#clock-cells = <1>;
-
-		afe: audio-controller {
-			...
-		};
-	};
Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml new file +66 -0

66 lines not on this page · raw message

Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml line 45

Quoted 3 lines · Eugen Hristev
Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml new file +3 -0
+  audio-controller:
+    #  $ref: /schemas/sound/mt2701-afe-pcm.yaml#
+    type: object

Other than this "informative" reference, which really feels like it should be a second patch in a series with this one, this looks good to me. You can add a

when the reference is a real one.

#2 lore raw
Quoted 10 lines · Conor Dooley

Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml line 45

Quoted 3 lines · Eugen Hristev
Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml new file +3 -0
+  audio-controller:
+    #  $ref: /schemas/sound/mt2701-afe-pcm.yaml#
+    type: object

Other than this "informative" reference, which really feels like it should be a second patch in a series with this one, this looks good to me. You can add a

when the reference is a real one.

For the record - this wasn't tested, so even though patch was reviewed, should not be applied till it is tested.

Best regards,
Krzysztof

#3 lore raw
In reply to Eugen Hristev
Quoted 7 lines · Eugen Hristev

Convert the mediatek,audsys binding to YAML.

---

Ref to /schemas/sound/mt2701-afe-pcm.yaml added as informative only because that schema has not been converted yet

Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

You missed at least DT list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.

Please kindly resend and include all necessary To/Cc entries.

Best regards,
Krzysztof