[PATCH v5 1/6] dt-bindings: clock: meson: Add audio power domain for s4 soc
Krzysztof Kozlowski
krzk at kernel.org
Thu Jul 10 02:56:52 PDT 2025
On Thu, Jul 10, 2025 at 11:35:37AM +0800, jiebing chen wrote:
> The audio power domain has been detected on S4 device.
> It must be enabled prior to audio operations.
>
> Signed-off-by: jiebing chen <jiebing.chen at amlogic.com>
> ---
> .../bindings/clock/amlogic,axg-audio-clkc.yaml | 55 +++++++++++++++++++++-
> 1 file changed, 54 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml
> index fd7982dd4ceab82389167079c2258a9acff51a76..c3f0bb9b2ff050394828ba339a7be0c9c48e9a76 100644
> --- a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml
> +++ b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.yaml
> @@ -21,6 +21,8 @@ properties:
> - amlogic,axg-audio-clkc
> - amlogic,g12a-audio-clkc
> - amlogic,sm1-audio-clkc
> + - amlogic,s4-audio-clkc
> + - amlogic,clock-pads-clkc
Keep the list sorted.
>
> '#clock-cells':
> const: 1
> @@ -100,13 +102,15 @@ properties:
> resets:
> description: internal reset line
>
> + power-domains:
> + maxItems: 1
> +
> required:
> - compatible
> - '#clock-cells'
> - reg
> - clocks
> - clock-names
> - - resets
>
> allOf:
> - if:
> @@ -116,12 +120,37 @@ allOf:
> enum:
> - amlogic,g12a-audio-clkc
> - amlogic,sm1-audio-clkc
> + - amlogic,s4-audio-clkc
Keep it sorted.
> then:
> required:
> - '#reset-cells'
> else:
> properties:
> '#reset-cells': false
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - amlogic,s4-audio-clkc
> + then:
> + required:
> + - power-domains
> + else:
> + properties:
> + power-domains: false
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - amlogic,clock-pads-clkc
> + then:
> + properties:
> + resets: false
> + else:
> + required:
> + - resets
>
> additionalProperties: false
>
> @@ -129,6 +158,7 @@ examples:
> - |
> #include <dt-bindings/clock/axg-clkc.h>
> #include <dt-bindings/reset/amlogic,meson-axg-reset.h>
> + #include <dt-bindings/power/meson-s4-power.h>
> apb {
> #address-cells = <2>;
> #size-cells = <2>;
> @@ -198,4 +228,27 @@ examples:
> "slv_lrclk9";
> resets = <&reset RESET_AUDIO>;
> };
> + clk_pad: clock-controller at 330e80 {
Inconsistent indentation. Look at the rest here.
Best regards,
Krzysztof
More information about the linux-amlogic
mailing list