* [PATCH] dt-bindings: arm: mediatek: convert audsys to yaml
@ 2023-08-10 13:36 Eugen Hristev
2023-08-10 19:24 ` Conor Dooley
2023-08-14 7:32 ` Krzysztof Kozlowski
0 siblings, 2 replies; 4+ messages in thread
From: Eugen Hristev @ 2023-08-10 13:36 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: matthias.bgg, angelogioacchino.delregno, linux-kernel,
linux-arm-kernel, linux-mediatek, kernel, Eugen Hristev
Convert the mediatek,audsys binding to YAML.
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
---
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
diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt
deleted file mode 100644
index 699776be1dd3..000000000000
--- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt
+++ /dev/null
@@ -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 {
- ...
- };
- };
diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml
new file mode 100644
index 000000000000..b879a3a060da
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,audsys.yaml
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/mediatek/mediatek,audsys.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MediaTek AUDSYS controller
+
+maintainers:
+ - Eugen Hristev <eugen.hristev@collabora.com>
+
+description:
+ The MediaTek AUDSYS controller provides various clocks to the system.
+
+properties:
+ compatible:
+ oneOf:
+ - items:
+ - enum:
+ - mediatek,mt2701-audsys
+ - mediatek,mt6765-audsys
+ - mediatek,mt6779-audsys
+ - mediatek,mt7622-audsys
+ - mediatek,mt8167-audsys
+ - mediatek,mt8173-audsys
+ - mediatek,mt8183-audsys
+ - mediatek,mt8186-audsys
+ - mediatek,mt8192-audsys
+ - mediatek,mt8516-audsys
+ - const: syscon
+ - items:
+ # Special case for mt7623 for backward compatibility
+ - const: mediatek,mt7623-audsys
+ - const: mediatek,mt2701-audsys
+ - const: syscon
+
+ reg:
+ maxItems: 1
+
+ '#clock-cells':
+ const: 1
+
+ audio-controller:
+ # $ref: /schemas/sound/mt2701-afe-pcm.yaml#
+ type: object
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ soc {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ audsys: clock-controller@11220000 {
+ compatible = "mediatek,mt7622-audsys", "syscon";
+ reg = <0 0x11220000 0 0x2000>;
+ #clock-cells = <1>;
+
+ audio-controller {
+ };
+ };
+ };
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: arm: mediatek: convert audsys to yaml
2023-08-10 13:36 [PATCH] dt-bindings: arm: mediatek: convert audsys to yaml Eugen Hristev
@ 2023-08-10 19:24 ` Conor Dooley
2023-08-14 7:33 ` Krzysztof Kozlowski
2023-08-14 7:32 ` Krzysztof Kozlowski
1 sibling, 1 reply; 4+ messages in thread
From: Conor Dooley @ 2023-08-10 19:24 UTC (permalink / raw)
To: Eugen Hristev
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, matthias.bgg,
angelogioacchino.delregno, linux-kernel, linux-arm-kernel,
linux-mediatek, kernel
[-- Attachment #1: Type: text/plain, Size: 405 bytes --]
On Thu, Aug 10, 2023 at 04:36:02PM +0300, Eugen Hristev wrote:
> + 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
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
when the reference is a real one.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: arm: mediatek: convert audsys to yaml
2023-08-10 13:36 [PATCH] dt-bindings: arm: mediatek: convert audsys to yaml Eugen Hristev
2023-08-10 19:24 ` Conor Dooley
@ 2023-08-14 7:32 ` Krzysztof Kozlowski
1 sibling, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2023-08-14 7:32 UTC (permalink / raw)
To: Eugen Hristev, robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: matthias.bgg, angelogioacchino.delregno, linux-kernel,
linux-arm-kernel, linux-mediatek, kernel
On 10/08/2023 15:36, Eugen Hristev wrote:
> Convert the mediatek,audsys binding to YAML.
>
> Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
> ---
>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: arm: mediatek: convert audsys to yaml
2023-08-10 19:24 ` Conor Dooley
@ 2023-08-14 7:33 ` Krzysztof Kozlowski
0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2023-08-14 7:33 UTC (permalink / raw)
To: Conor Dooley, Eugen Hristev
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, matthias.bgg,
angelogioacchino.delregno, linux-kernel, linux-arm-kernel,
linux-mediatek, kernel
On 10/08/2023 21:24, Conor Dooley wrote:
> On Thu, Aug 10, 2023 at 04:36:02PM +0300, Eugen Hristev wrote:
>> + 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
> Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-08-14 7:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-10 13:36 [PATCH] dt-bindings: arm: mediatek: convert audsys to yaml Eugen Hristev
2023-08-10 19:24 ` Conor Dooley
2023-08-14 7:33 ` Krzysztof Kozlowski
2023-08-14 7:32 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®