2024-05-10 09:10:17

by Dmitry Rokosov

[permalink] [raw]
Subject: [PATCH v2 4/7] dt-bindings: clock: meson: a1: peripherals: support sys_pll_div16 input

The 'sys_pll_div16' input clock is used as one of the sources for the
GEN clock.

Signed-off-by: Dmitry Rokosov <[email protected]>
---
.../bindings/clock/amlogic,a1-peripherals-clkc.yaml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml
index 6d84cee1bd75..11862746ba44 100644
--- a/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml
+++ b/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml
@@ -30,6 +30,7 @@ properties:
- description: input fixed pll div7
- description: input hifi pll
- description: input oscillator (usually at 24MHz)
+ - description: input sys pll div16

clock-names:
items:
@@ -39,6 +40,7 @@ properties:
- const: fclk_div7
- const: hifi_pll
- const: xtal
+ - const: sys_pll_div16

required:
- compatible
@@ -65,9 +67,10 @@ examples:
<&clkc_pll CLKID_FCLK_DIV5>,
<&clkc_pll CLKID_FCLK_DIV7>,
<&clkc_pll CLKID_HIFI_PLL>,
- <&xtal>;
+ <&xtal>,
+ <&clkc_pll CLKID_SYS_PLL_DIV16>;
clock-names = "fclk_div2", "fclk_div3",
"fclk_div5", "fclk_div7",
- "hifi_pll", "xtal";
+ "hifi_pll", "xtal", "sys_pll_div16";
};
};
--
2.43.0



2024-05-11 13:03:32

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH v2 4/7] dt-bindings: clock: meson: a1: peripherals: support sys_pll_div16 input

On Fri, May 10, 2024 at 12:08:56PM +0300, Dmitry Rokosov wrote:
> The 'sys_pll_div16' input clock is used as one of the sources for the
> GEN clock.
>
> Signed-off-by: Dmitry Rokosov <[email protected]>

Provided that this new clock is optional in the driver,
Acked-by: Conor Dooley <[email protected]>

Cheers,
Conor.

> ---
> .../bindings/clock/amlogic,a1-peripherals-clkc.yaml | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml
> index 6d84cee1bd75..11862746ba44 100644
> --- a/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml
> +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml
> @@ -30,6 +30,7 @@ properties:
> - description: input fixed pll div7
> - description: input hifi pll
> - description: input oscillator (usually at 24MHz)
> + - description: input sys pll div16
>
> clock-names:
> items:
> @@ -39,6 +40,7 @@ properties:
> - const: fclk_div7
> - const: hifi_pll
> - const: xtal
> + - const: sys_pll_div16
>
> required:
> - compatible
> @@ -65,9 +67,10 @@ examples:
> <&clkc_pll CLKID_FCLK_DIV5>,
> <&clkc_pll CLKID_FCLK_DIV7>,
> <&clkc_pll CLKID_HIFI_PLL>,
> - <&xtal>;
> + <&xtal>,
> + <&clkc_pll CLKID_SYS_PLL_DIV16>;
> clock-names = "fclk_div2", "fclk_div3",
> "fclk_div5", "fclk_div7",
> - "hifi_pll", "xtal";
> + "hifi_pll", "xtal", "sys_pll_div16";
> };
> };
> --
> 2.43.0
>
>


Attachments:
(No filename) (1.86 kB)
signature.asc (235.00 B)
Download all attachments

2024-05-13 12:04:44

by Jerome Brunet

[permalink] [raw]
Subject: Re: [PATCH v2 4/7] dt-bindings: clock: meson: a1: peripherals: support sys_pll_div16 input


On Sat 11 May 2024 at 14:03, Conor Dooley <[email protected]> wrote:

> [[PGP Signed Part:Undecided]]
> On Fri, May 10, 2024 at 12:08:56PM +0300, Dmitry Rokosov wrote:
>> The 'sys_pll_div16' input clock is used as one of the sources for the
>> GEN clock.
>>
>> Signed-off-by: Dmitry Rokosov <[email protected]>
>
> Provided that this new clock is optional in the driver,
> Acked-by: Conor Dooley <[email protected]>

The way CCF works, it is not going to crash if DT does not have this.
It will be viewed as non-connected input, in a way

>
> Cheers,
> Conor.
>
>> ---
>> .../bindings/clock/amlogic,a1-peripherals-clkc.yaml | 7 +++++--
>> 1 file changed, 5 insertions(+), 2 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml
>> index 6d84cee1bd75..11862746ba44 100644
>> --- a/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml
>> +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-peripherals-clkc.yaml
>> @@ -30,6 +30,7 @@ properties:
>> - description: input fixed pll div7
>> - description: input hifi pll
>> - description: input oscillator (usually at 24MHz)
>> + - description: input sys pll div16
>>
>> clock-names:
>> items:
>> @@ -39,6 +40,7 @@ properties:
>> - const: fclk_div7
>> - const: hifi_pll
>> - const: xtal
>> + - const: sys_pll_div16
>>
>> required:
>> - compatible
>> @@ -65,9 +67,10 @@ examples:
>> <&clkc_pll CLKID_FCLK_DIV5>,
>> <&clkc_pll CLKID_FCLK_DIV7>,
>> <&clkc_pll CLKID_HIFI_PLL>,
>> - <&xtal>;
>> + <&xtal>,
>> + <&clkc_pll CLKID_SYS_PLL_DIV16>;
>> clock-names = "fclk_div2", "fclk_div3",
>> "fclk_div5", "fclk_div7",
>> - "hifi_pll", "xtal";
>> + "hifi_pll", "xtal", "sys_pll_div16";
>> };
>> };
>> --
>> 2.43.0
>>
>>
>
> [[End of PGP Signed Part]]


--
Jerome