* [PATCH 1/4] dt-bindings: clock: ti: Convert to yaml
2025-04-04 1:44 [PATCH 0/4] dt-bindings: clock: ti: convert to yaml Sukrut Bellary
@ 2025-04-04 1:44 ` Sukrut Bellary
2025-04-04 10:44 ` Krzysztof Kozlowski
2025-04-04 15:19 ` Rob Herring
2025-04-04 1:44 ` [PATCH 2/4] " Sukrut Bellary
` (2 subsequent siblings)
3 siblings, 2 replies; 24+ messages in thread
From: Sukrut Bellary @ 2025-04-04 1:44 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Sukrut Bellary, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
Covert TI autoidle clock txt binding to yaml.
AutoIdle clock is not an individual clock; it is always a
derivate of some basic clock like a gate, divider, or fixed-factor.
This binding will be referred in ti,divider-clock.yaml, and
ti,fixed-factor-clock.yaml.
As all clocks don't support the autoidle feature e.g.,
in DRA77xx/AM57xx[1], dpll_abe_x2* and dpll_per_x2 don't have
autoidle, remove required properties from the binding.
Clean up the example to meet the current standards.
Add the creator of the original binding as a maintainer.
[1] https://www.ti.com/lit/ug/spruhz6l/spruhz6l.pdf
Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
---
.../devicetree/bindings/clock/ti/autoidle.txt | 37 --------------
.../bindings/clock/ti/ti,autoidle.yaml | 49 +++++++++++++++++++
2 files changed, 49 insertions(+), 37 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/clock/ti/autoidle.txt
create mode 100644 Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml
diff --git a/Documentation/devicetree/bindings/clock/ti/autoidle.txt b/Documentation/devicetree/bindings/clock/ti/autoidle.txt
deleted file mode 100644
index 05645a10a9e3..000000000000
--- a/Documentation/devicetree/bindings/clock/ti/autoidle.txt
+++ /dev/null
@@ -1,37 +0,0 @@
-Binding for Texas Instruments autoidle clock.
-
-This binding uses the common clock binding[1]. It assumes a register mapped
-clock which can be put to idle automatically by hardware based on the usage
-and a configuration bit setting. Autoidle clock is never an individual
-clock, it is always a derivative of some basic clock like a gate, divider,
-or fixed-factor.
-
-[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
-
-Required properties:
-- reg : offset for the register controlling the autoidle
-- ti,autoidle-shift : bit shift of the autoidle enable bit
-- ti,invert-autoidle-bit : autoidle is enabled by setting the bit to 0
-
-Examples:
- dpll_core_m4_ck: dpll_core_m4_ck {
- #clock-cells = <0>;
- compatible = "ti,divider-clock";
- clocks = <&dpll_core_x2_ck>;
- ti,max-div = <31>;
- ti,autoidle-shift = <8>;
- reg = <0x2d38>;
- ti,index-starts-at-one;
- ti,invert-autoidle-bit;
- };
-
- dpll_usb_clkdcoldo_ck: dpll_usb_clkdcoldo_ck {
- #clock-cells = <0>;
- compatible = "ti,fixed-factor-clock";
- clocks = <&dpll_usb_ck>;
- ti,clock-div = <1>;
- ti,autoidle-shift = <8>;
- reg = <0x01b4>;
- ti,clock-mult = <1>;
- ti,invert-autoidle-bit;
- };
diff --git a/Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml b/Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml
new file mode 100644
index 000000000000..c995dae65cd6
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/ti/ti,autoidle.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI autoidle clock
+
+maintainers:
+ - Tero Kristo <kristo@kernel.org>
+ - Sukrut Bellary <sbellary@baylibre.com>
+
+description: |
+ In TI SoC, some of the clocks support autoidle feature.
+ It assumes a register mapped clock which can be put to idle automatically
+ by hardware based on the usage and a configuration bit setting.
+ Autoidle clock is never an individual clock, it is always a derivative
+ of some basic clock like a gate, divider or fixed-factor.
+
+properties:
+ reg:
+ maxItems: 1
+
+ ti,autoidle-shift:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ bit shift of the autoidle enable bit for the clock
+ maximum: 31
+ default: 0
+
+ ti,invert-autoidle-bit:
+ type: boolean
+ description:
+ autoidle is enabled by setting the bit to 0
+
+additionalProperties: true
+
+examples:
+ - |
+ bus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ clock@1b4 {
+ reg = <0x01b4>;
+ ti,autoidle-shift = <8>;
+ ti,invert-autoidle-bit;
+ };
+ };
--
2.34.1
^ permalink raw reply related [flat|nested] 24+ messages in thread* Re: [PATCH 1/4] dt-bindings: clock: ti: Convert to yaml
2025-04-04 1:44 ` [PATCH 1/4] dt-bindings: clock: ti: Convert " Sukrut Bellary
@ 2025-04-04 10:44 ` Krzysztof Kozlowski
2025-04-05 19:55 ` Andreas Kemnade
2025-04-09 7:46 ` Sukrut Bellary
2025-04-04 15:19 ` Rob Herring
1 sibling, 2 replies; 24+ messages in thread
From: Krzysztof Kozlowski @ 2025-04-04 10:44 UTC (permalink / raw)
To: Sukrut Bellary
Cc: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
On Thu, Apr 03, 2025 at 06:44:57PM GMT, Sukrut Bellary wrote:
> +properties:
> + reg:
> + maxItems: 1
How reg is part of this? Every clock has reg, doesn't it? Otherwise how
do you control it? Drop.
> +
> + ti,autoidle-shift:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + bit shift of the autoidle enable bit for the clock
> + maximum: 31
> + default: 0
> +
> + ti,invert-autoidle-bit:
> + type: boolean
> + description:
> + autoidle is enabled by setting the bit to 0
required:
- ti,autoidle-shift
- ti,invert-autoidle-bit - although this makes no sense, so probably
old binding was not correct here
> +
> +additionalProperties: true
> +
> +examples:
> + - |
> + bus {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + clock@1b4 {
> + reg = <0x01b4>;
> + ti,autoidle-shift = <8>;
> + ti,invert-autoidle-bit;
> + };
Drop example, pointless here - noop due to lack of compatible. Instead
provide complete examples in schemas referencing this.
> + };
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 24+ messages in thread* Re: [PATCH 1/4] dt-bindings: clock: ti: Convert to yaml
2025-04-04 10:44 ` Krzysztof Kozlowski
@ 2025-04-05 19:55 ` Andreas Kemnade
2025-04-09 8:11 ` Sukrut Bellary
2025-04-09 7:46 ` Sukrut Bellary
1 sibling, 1 reply; 24+ messages in thread
From: Andreas Kemnade @ 2025-04-05 19:55 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Sukrut Bellary, Michael Turquette, Stephen Boyd, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Tero Kristo, Kevin Hilman,
linux-clk, devicetree, linux-kernel
Am Fri, 4 Apr 2025 12:44:39 +0200
schrieb Krzysztof Kozlowski <krzk@kernel.org>:
> On Thu, Apr 03, 2025 at 06:44:57PM GMT, Sukrut Bellary wrote:
> > +properties:
> > + reg:
> > + maxItems: 1
>
> How reg is part of this? Every clock has reg, doesn't it? Otherwise how
> do you control it? Drop.
>
> > +
> > + ti,autoidle-shift:
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + description:
> > + bit shift of the autoidle enable bit for the clock
> > + maximum: 31
> > + default: 0
> > +
> > + ti,invert-autoidle-bit:
> > + type: boolean
> > + description:
> > + autoidle is enabled by setting the bit to 0
>
> required:
> - ti,autoidle-shift
> - ti,invert-autoidle-bit - although this makes no sense, so probably
> old binding was not correct here
>
well, the more informal definition in the txt file can be read as: if
the clock supports autoidle, then ti,autoidle-shift is required. But
that does not
translate to the formal definition in the yaml file.
So we have nothing required here.
I am a bit wondering whether we should just drop the autoidle.txt. The
only thing worth there is the description.
Regards,
Andreas
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 1/4] dt-bindings: clock: ti: Convert to yaml
2025-04-05 19:55 ` Andreas Kemnade
@ 2025-04-09 8:11 ` Sukrut Bellary
0 siblings, 0 replies; 24+ messages in thread
From: Sukrut Bellary @ 2025-04-09 8:11 UTC (permalink / raw)
To: Andreas Kemnade
Cc: Krzysztof Kozlowski, Michael Turquette, Stephen Boyd, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Tero Kristo, Kevin Hilman,
linux-clk, devicetree, linux-kernel
On Sat, Apr 05, 2025 at 09:55:29PM +0200, Andreas Kemnade wrote:
> Am Fri, 4 Apr 2025 12:44:39 +0200
> schrieb Krzysztof Kozlowski <krzk@kernel.org>:
>
> > On Thu, Apr 03, 2025 at 06:44:57PM GMT, Sukrut Bellary wrote:
> > > +properties:
> > > + reg:
> > > + maxItems: 1
> >
> > How reg is part of this? Every clock has reg, doesn't it? Otherwise how
> > do you control it? Drop.
> >
> > > +
> > > + ti,autoidle-shift:
> > > + $ref: /schemas/types.yaml#/definitions/uint32
> > > + description:
> > > + bit shift of the autoidle enable bit for the clock
> > > + maximum: 31
> > > + default: 0
> > > +
> > > + ti,invert-autoidle-bit:
> > > + type: boolean
> > > + description:
> > > + autoidle is enabled by setting the bit to 0
> >
> > required:
> > - ti,autoidle-shift
> > - ti,invert-autoidle-bit - although this makes no sense, so probably
> > old binding was not correct here
> >
>
> well, the more informal definition in the txt file can be read as: if
> the clock supports autoidle, then ti,autoidle-shift is required. But
> that does not
> translate to the formal definition in the yaml file.
> So we have nothing required here.
>
> I am a bit wondering whether we should just drop the autoidle.txt. The
> only thing worth there is the description.
Thanks for the review.
IMO, it would be good to keep this as other clocks refer to these
properties.
But yes, I will add details in the description about if the clock supports
autoidle, then these properties are applicable.
> Regards,
> Andreas
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 1/4] dt-bindings: clock: ti: Convert to yaml
2025-04-04 10:44 ` Krzysztof Kozlowski
2025-04-05 19:55 ` Andreas Kemnade
@ 2025-04-09 7:46 ` Sukrut Bellary
1 sibling, 0 replies; 24+ messages in thread
From: Sukrut Bellary @ 2025-04-09 7:46 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
On Fri, Apr 04, 2025 at 12:44:39PM +0200, Krzysztof Kozlowski wrote:
> On Thu, Apr 03, 2025 at 06:44:57PM GMT, Sukrut Bellary wrote:
> > +properties:
> > + reg:
> > + maxItems: 1
>
> How reg is part of this? Every clock has reg, doesn't it? Otherwise how
> do you control it? Drop.
Thanks for the review.
I will drop.
> > +
> > + ti,autoidle-shift:
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + description:
> > + bit shift of the autoidle enable bit for the clock
> > + maximum: 31
> > + default: 0
> > +
> > + ti,invert-autoidle-bit:
> > + type: boolean
> > + description:
> > + autoidle is enabled by setting the bit to 0
>
> required:
> - ti,autoidle-shift
> - ti,invert-autoidle-bit - although this makes no sense, so probably
> old binding was not correct here
Yes, all clocks don't support autoidle. So, required is not applicable
here.
> > +
> > +additionalProperties: true
> > +
> > +examples:
> > + - |
> > + bus {
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > +
> > + clock@1b4 {
> > + reg = <0x01b4>;
> > + ti,autoidle-shift = <8>;
> > + ti,invert-autoidle-bit;
> > + };
>
> Drop example, pointless here - noop due to lack of compatible. Instead
> provide complete examples in schemas referencing this.
Ok, will remove from here.
> > + };
> > --
> > 2.34.1
> >
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 1/4] dt-bindings: clock: ti: Convert to yaml
2025-04-04 1:44 ` [PATCH 1/4] dt-bindings: clock: ti: Convert " Sukrut Bellary
2025-04-04 10:44 ` Krzysztof Kozlowski
@ 2025-04-04 15:19 ` Rob Herring
2025-04-09 8:21 ` Sukrut Bellary
1 sibling, 1 reply; 24+ messages in thread
From: Rob Herring @ 2025-04-04 15:19 UTC (permalink / raw)
To: Sukrut Bellary
Cc: Michael Turquette, Stephen Boyd, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
On Thu, Apr 03, 2025 at 06:44:57PM -0700, Sukrut Bellary wrote:
> Covert TI autoidle clock txt binding to yaml.
Convert
2 patches in the series have the exact same subject. Really, nothing in
all of the git history should ever repeat a subject. After all, you
can't make the same change twice.
>
> AutoIdle clock is not an individual clock; it is always a
> derivate of some basic clock like a gate, divider, or fixed-factor.
> This binding will be referred in ti,divider-clock.yaml, and
> ti,fixed-factor-clock.yaml.
>
> As all clocks don't support the autoidle feature e.g.,
> in DRA77xx/AM57xx[1], dpll_abe_x2* and dpll_per_x2 don't have
> autoidle, remove required properties from the binding.
> Clean up the example to meet the current standards.
>
> Add the creator of the original binding as a maintainer.
>
> [1] https://www.ti.com/lit/ug/spruhz6l/spruhz6l.pdf
>
> Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
> ---
> .../devicetree/bindings/clock/ti/autoidle.txt | 37 --------------
> .../bindings/clock/ti/ti,autoidle.yaml | 49 +++++++++++++++++++
> 2 files changed, 49 insertions(+), 37 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/clock/ti/autoidle.txt
> create mode 100644 Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml
>
> diff --git a/Documentation/devicetree/bindings/clock/ti/autoidle.txt b/Documentation/devicetree/bindings/clock/ti/autoidle.txt
> deleted file mode 100644
> index 05645a10a9e3..000000000000
> --- a/Documentation/devicetree/bindings/clock/ti/autoidle.txt
> +++ /dev/null
> @@ -1,37 +0,0 @@
> -Binding for Texas Instruments autoidle clock.
> -
> -This binding uses the common clock binding[1]. It assumes a register mapped
> -clock which can be put to idle automatically by hardware based on the usage
> -and a configuration bit setting. Autoidle clock is never an individual
> -clock, it is always a derivative of some basic clock like a gate, divider,
> -or fixed-factor.
> -
> -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
> -
> -Required properties:
> -- reg : offset for the register controlling the autoidle
> -- ti,autoidle-shift : bit shift of the autoidle enable bit
> -- ti,invert-autoidle-bit : autoidle is enabled by setting the bit to 0
> -
> -Examples:
> - dpll_core_m4_ck: dpll_core_m4_ck {
> - #clock-cells = <0>;
> - compatible = "ti,divider-clock";
> - clocks = <&dpll_core_x2_ck>;
> - ti,max-div = <31>;
> - ti,autoidle-shift = <8>;
> - reg = <0x2d38>;
> - ti,index-starts-at-one;
> - ti,invert-autoidle-bit;
> - };
> -
> - dpll_usb_clkdcoldo_ck: dpll_usb_clkdcoldo_ck {
> - #clock-cells = <0>;
> - compatible = "ti,fixed-factor-clock";
> - clocks = <&dpll_usb_ck>;
> - ti,clock-div = <1>;
> - ti,autoidle-shift = <8>;
> - reg = <0x01b4>;
> - ti,clock-mult = <1>;
> - ti,invert-autoidle-bit;
> - };
> diff --git a/Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml b/Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml
> new file mode 100644
> index 000000000000..c995dae65cd6
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml
> @@ -0,0 +1,49 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/ti/ti,autoidle.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: TI autoidle clock
> +
> +maintainers:
> + - Tero Kristo <kristo@kernel.org>
> + - Sukrut Bellary <sbellary@baylibre.com>
> +
> +description: |
Don't need '|' if no formatting to preserve.
> + In TI SoC, some of the clocks support autoidle feature.
> + It assumes a register mapped clock which can be put to idle automatically
> + by hardware based on the usage and a configuration bit setting.
> + Autoidle clock is never an individual clock, it is always a derivative
> + of some basic clock like a gate, divider or fixed-factor.
Is this 3 1 sentence paragraphs or 1 paragraph with odd line wrapping?
Blank line between paragraphs or re-wrap at 80 char. I prefer the latter
as 1 sentence paragraphs doesn't make much sense.
> +
> +properties:
> + reg:
> + maxItems: 1
> +
> + ti,autoidle-shift:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + bit shift of the autoidle enable bit for the clock
> + maximum: 31
> + default: 0
> +
> + ti,invert-autoidle-bit:
> + type: boolean
> + description:
> + autoidle is enabled by setting the bit to 0
> +
> +additionalProperties: true
> +
> +examples:
> + - |
> + bus {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + clock@1b4 {
> + reg = <0x01b4>;
> + ti,autoidle-shift = <8>;
> + ti,invert-autoidle-bit;
> + };
> + };
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 24+ messages in thread* Re: [PATCH 1/4] dt-bindings: clock: ti: Convert to yaml
2025-04-04 15:19 ` Rob Herring
@ 2025-04-09 8:21 ` Sukrut Bellary
0 siblings, 0 replies; 24+ messages in thread
From: Sukrut Bellary @ 2025-04-09 8:21 UTC (permalink / raw)
To: Rob Herring
Cc: Michael Turquette, Stephen Boyd, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
On Fri, Apr 04, 2025 at 10:19:02AM -0500, Rob Herring wrote:
> On Thu, Apr 03, 2025 at 06:44:57PM -0700, Sukrut Bellary wrote:
> > Covert TI autoidle clock txt binding to yaml.
>
> Convert
>
> 2 patches in the series have the exact same subject. Really, nothing in
> all of the git history should ever repeat a subject. After all, you
> can't make the same change twice.
Thanks for the review.
I will fix this.
> >
> > AutoIdle clock is not an individual clock; it is always a
> > derivate of some basic clock like a gate, divider, or fixed-factor.
> > This binding will be referred in ti,divider-clock.yaml, and
> > ti,fixed-factor-clock.yaml.
> >
> > As all clocks don't support the autoidle feature e.g.,
> > in DRA77xx/AM57xx[1], dpll_abe_x2* and dpll_per_x2 don't have
> > autoidle, remove required properties from the binding.
> > Clean up the example to meet the current standards.
> >
> > Add the creator of the original binding as a maintainer.
> >
> > [1] https://www.ti.com/lit/ug/spruhz6l/spruhz6l.pdf
> >
> > Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
> > ---
> > .../devicetree/bindings/clock/ti/autoidle.txt | 37 --------------
> > .../bindings/clock/ti/ti,autoidle.yaml | 49 +++++++++++++++++++
> > 2 files changed, 49 insertions(+), 37 deletions(-)
> > delete mode 100644 Documentation/devicetree/bindings/clock/ti/autoidle.txt
> > create mode 100644 Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/clock/ti/autoidle.txt b/Documentation/devicetree/bindings/clock/ti/autoidle.txt
> > deleted file mode 100644
> > index 05645a10a9e3..000000000000
> > --- a/Documentation/devicetree/bindings/clock/ti/autoidle.txt
> > +++ /dev/null
> > @@ -1,37 +0,0 @@
> > -Binding for Texas Instruments autoidle clock.
> > -
> > -This binding uses the common clock binding[1]. It assumes a register mapped
> > -clock which can be put to idle automatically by hardware based on the usage
> > -and a configuration bit setting. Autoidle clock is never an individual
> > -clock, it is always a derivative of some basic clock like a gate, divider,
> > -or fixed-factor.
> > -
> > -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
> > -
> > -Required properties:
> > -- reg : offset for the register controlling the autoidle
> > -- ti,autoidle-shift : bit shift of the autoidle enable bit
> > -- ti,invert-autoidle-bit : autoidle is enabled by setting the bit to 0
> > -
> > -Examples:
> > - dpll_core_m4_ck: dpll_core_m4_ck {
> > - #clock-cells = <0>;
> > - compatible = "ti,divider-clock";
> > - clocks = <&dpll_core_x2_ck>;
> > - ti,max-div = <31>;
> > - ti,autoidle-shift = <8>;
> > - reg = <0x2d38>;
> > - ti,index-starts-at-one;
> > - ti,invert-autoidle-bit;
> > - };
> > -
> > - dpll_usb_clkdcoldo_ck: dpll_usb_clkdcoldo_ck {
> > - #clock-cells = <0>;
> > - compatible = "ti,fixed-factor-clock";
> > - clocks = <&dpll_usb_ck>;
> > - ti,clock-div = <1>;
> > - ti,autoidle-shift = <8>;
> > - reg = <0x01b4>;
> > - ti,clock-mult = <1>;
> > - ti,invert-autoidle-bit;
> > - };
> > diff --git a/Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml b/Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml
> > new file mode 100644
> > index 000000000000..c995dae65cd6
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml
> > @@ -0,0 +1,49 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/clock/ti/ti,autoidle.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: TI autoidle clock
> > +
> > +maintainers:
> > + - Tero Kristo <kristo@kernel.org>
> > + - Sukrut Bellary <sbellary@baylibre.com>
> > +
> > +description: |
>
> Don't need '|' if no formatting to preserve.
I will fix this.
> > + In TI SoC, some of the clocks support autoidle feature.
> > + It assumes a register mapped clock which can be put to idle automatically
> > + by hardware based on the usage and a configuration bit setting.
> > + Autoidle clock is never an individual clock, it is always a derivative
> > + of some basic clock like a gate, divider or fixed-factor.
>
> Is this 3 1 sentence paragraphs or 1 paragraph with odd line wrapping?
> Blank line between paragraphs or re-wrap at 80 char. I prefer the latter
> as 1 sentence paragraphs doesn't make much sense.
It's odd line wrapping.
I will fix this.
> > +
> > +properties:
> > + reg:
> > + maxItems: 1
> > +
> > + ti,autoidle-shift:
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + description:
> > + bit shift of the autoidle enable bit for the clock
> > + maximum: 31
> > + default: 0
> > +
> > + ti,invert-autoidle-bit:
> > + type: boolean
> > + description:
> > + autoidle is enabled by setting the bit to 0
> > +
> > +additionalProperties: true
> > +
> > +examples:
> > + - |
> > + bus {
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > +
> > + clock@1b4 {
> > + reg = <0x01b4>;
> > + ti,autoidle-shift = <8>;
> > + ti,invert-autoidle-bit;
> > + };
> > + };
> > --
> > 2.34.1
> >
^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH 2/4] dt-bindings: clock: ti: Convert to yaml
2025-04-04 1:44 [PATCH 0/4] dt-bindings: clock: ti: convert to yaml Sukrut Bellary
2025-04-04 1:44 ` [PATCH 1/4] dt-bindings: clock: ti: Convert " Sukrut Bellary
@ 2025-04-04 1:44 ` Sukrut Bellary
2025-04-04 5:51 ` kernel test robot
` (3 more replies)
2025-04-04 1:44 ` [PATCH 3/4] dt-bindings: clock: ti: Convert fixed-factor-clock " Sukrut Bellary
2025-04-04 1:45 ` [PATCH 4/4] dt-bindings: clock: ti: add ti,autoidle.yaml reference Sukrut Bellary
3 siblings, 4 replies; 24+ messages in thread
From: Sukrut Bellary @ 2025-04-04 1:44 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Sukrut Bellary, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
This binding doesn't define a new clock binding type,
it is used to group the existing clock nodes under the hardware hierarchy.
As this is not a provider clock, remove #clock-cells and
clock-output-names properties.
Though few clockdomain nodes in the dts use these properties,
we are not fixing dts here.
Clean up the example to meet the current standards.
Add the creator of the original binding as a maintainer.
Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
---
.../bindings/clock/ti/clockdomain.txt | 25 ------------
.../bindings/clock/ti/ti,clockdomain.yaml | 38 +++++++++++++++++++
2 files changed, 38 insertions(+), 25 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/clock/ti/clockdomain.txt
create mode 100644 Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml
diff --git a/Documentation/devicetree/bindings/clock/ti/clockdomain.txt b/Documentation/devicetree/bindings/clock/ti/clockdomain.txt
deleted file mode 100644
index edf0b5d42768..000000000000
--- a/Documentation/devicetree/bindings/clock/ti/clockdomain.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-Binding for Texas Instruments clockdomain.
-
-This binding uses the common clock binding[1] in consumer role.
-Every clock on TI SoC belongs to one clockdomain, but software
-only needs this information for specific clocks which require
-their parent clockdomain to be controlled when the clock is
-enabled/disabled. This binding doesn't define a new clock
-binding type, it is used to group existing clock nodes under
-hardware hierarchy.
-
-[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
-
-Required properties:
-- compatible : shall be "ti,clockdomain"
-- #clock-cells : from common clock binding; shall be set to 0.
-- clocks : link phandles of clocks within this domain
-
-Optional properties:
-- clock-output-names : from common clock binding.
-
-Examples:
- dss_clkdm: dss_clkdm {
- compatible = "ti,clockdomain";
- clocks = <&dss1_alwon_fck_3430es2>, <&dss_ick_3430es2>;
- };
diff --git a/Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml b/Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml
new file mode 100644
index 000000000000..2bae2a0f6318
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/ti/ti,clockdomain.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI clock domain
+
+maintainers:
+ - Tero Kristo <kristo@kernel.org>
+ - Sukrut Bellary <sbellary@baylibre.com>
+
+description: |
+ Every clock on TI SoC belongs to one clockdomain. For specific clocks, the
+ parent clockdomain has to be controlled when the clock is enabled/disabled.
+ This binding doesn't define a new clock binding type, it is used to group
+ the existing clock nodes under hardware hierarchy.
+
+properties:
+ compatible:
+ const: ti,clockdomain
+
+ clocks:
+ description:
+ Clocks within this domain
+
+required:
+ - compatible
+ - clocks
+
+additionalProperties: false
+
+examples:
+ - |
+ l3init_clkdm: l3init_clkdm {
+ compatible = "ti,clockdomain";
+ clocks = <&dpll_usb_ck>;
+ };
--
2.34.1
^ permalink raw reply related [flat|nested] 24+ messages in thread* Re: [PATCH 2/4] dt-bindings: clock: ti: Convert to yaml
2025-04-04 1:44 ` [PATCH 2/4] " Sukrut Bellary
@ 2025-04-04 5:51 ` kernel test robot
2025-04-04 10:46 ` Krzysztof Kozlowski
` (2 subsequent siblings)
3 siblings, 0 replies; 24+ messages in thread
From: kernel test robot @ 2025-04-04 5:51 UTC (permalink / raw)
To: Sukrut Bellary, Michael Turquette, Stephen Boyd, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: oe-kbuild-all, Sukrut Bellary, Tero Kristo, Kevin Hilman,
Andreas Kemnade, linux-clk, devicetree, linux-kernel
Hi Sukrut,
kernel test robot noticed the following build warnings:
[auto build test WARNING on clk/clk-next]
[also build test WARNING on robh/for-next linus/master v6.14 next-20250403]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Sukrut-Bellary/dt-bindings-clock-ti-Convert-to-yaml/20250404-094647
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
patch link: https://lore.kernel.org/r/20250404014500.2789830-3-sbellary%40baylibre.com
patch subject: [PATCH 2/4] dt-bindings: clock: ti: Convert to yaml
reproduce: (https://download.01.org/0day-ci/archive/20250404/202504041306.Dxlb0inM-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504041306.Dxlb0inM-lkp@intel.com/
All warnings (new ones prefixed by >>):
Warning: Documentation/arch/powerpc/cxl.rst references a file that doesn't exist: Documentation/ABI/testing/sysfs-class-cxl
Warning: Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt references a file that doesn't exist: Documentation/devicetree/bindings/clock/ti/autoidle.txt
Warning: Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml references a file that doesn't exist: Documentation/devicetree/bindings/clock/ti/autoidle.txt
>> Warning: Documentation/devicetree/bindings/clock/ti/ti,gate-clock.yaml references a file that doesn't exist: Documentation/devicetree/bindings/clock/ti/clockdomain.txt
Warning: Documentation/devicetree/bindings/regulator/siliconmitus,sm5703-regulator.yaml references a file that doesn't exist: Documentation/devicetree/bindings/mfd/siliconmitus,sm5703.yaml
Warning: Documentation/hwmon/g762.rst references a file that doesn't exist: Documentation/devicetree/bindings/hwmon/g762.txt
Warning: Documentation/translations/ja_JP/SubmittingPatches references a file that doesn't exist: linux-2.6.12-vanilla/Documentation/dontdiff
Warning: Documentation/translations/zh_CN/admin-guide/README.rst references a file that doesn't exist: Documentation/dev-tools/kgdb.rst
Warning: Documentation/translations/zh_CN/dev-tools/gdb-kernel-debugging.rst references a file that doesn't exist: Documentation/dev-tools/gdb-kernel-debugging.rst
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 24+ messages in thread* Re: [PATCH 2/4] dt-bindings: clock: ti: Convert to yaml
2025-04-04 1:44 ` [PATCH 2/4] " Sukrut Bellary
2025-04-04 5:51 ` kernel test robot
@ 2025-04-04 10:46 ` Krzysztof Kozlowski
2025-04-09 8:23 ` Sukrut Bellary
2025-04-04 14:56 ` Rob Herring (Arm)
2025-04-09 9:10 ` Andreas Kemnade
3 siblings, 1 reply; 24+ messages in thread
From: Krzysztof Kozlowski @ 2025-04-04 10:46 UTC (permalink / raw)
To: Sukrut Bellary
Cc: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
On Thu, Apr 03, 2025 at 06:44:58PM GMT, Sukrut Bellary wrote:
> +maintainers:
> + - Tero Kristo <kristo@kernel.org>
> + - Sukrut Bellary <sbellary@baylibre.com>
> +
> +description: |
Do not need '|' unless you need to preserve formatting.
> + Every clock on TI SoC belongs to one clockdomain. For specific clocks, the
> + parent clockdomain has to be controlled when the clock is enabled/disabled.
> + This binding doesn't define a new clock binding type, it is used to group
> + the existing clock nodes under hardware hierarchy.
> +
> +properties:
> + compatible:
> + const: ti,clockdomain
> +
> + clocks:
> + description:
> + Clocks within this domain
Missing constraints.
> +
> +required:
> + - compatible
> + - clocks
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + l3init_clkdm: l3init_clkdm {
Follow DTS coding style. Also drop unused label.
Node names should be generic. See also an explanation and list of
examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
> + compatible = "ti,clockdomain";
> + clocks = <&dpll_usb_ck>;
> + };
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 24+ messages in thread* Re: [PATCH 2/4] dt-bindings: clock: ti: Convert to yaml
2025-04-04 10:46 ` Krzysztof Kozlowski
@ 2025-04-09 8:23 ` Sukrut Bellary
0 siblings, 0 replies; 24+ messages in thread
From: Sukrut Bellary @ 2025-04-09 8:23 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
On Fri, Apr 04, 2025 at 12:46:28PM +0200, Krzysztof Kozlowski wrote:
> On Thu, Apr 03, 2025 at 06:44:58PM GMT, Sukrut Bellary wrote:
> > +maintainers:
> > + - Tero Kristo <kristo@kernel.org>
> > + - Sukrut Bellary <sbellary@baylibre.com>
> > +
> > +description: |
>
> Do not need '|' unless you need to preserve formatting.
Thanks for the review.
I will fix this.
> > + Every clock on TI SoC belongs to one clockdomain. For specific clocks, the
> > + parent clockdomain has to be controlled when the clock is enabled/disabled.
> > + This binding doesn't define a new clock binding type, it is used to group
> > + the existing clock nodes under hardware hierarchy.
> > +
> > +properties:
> > + compatible:
> > + const: ti,clockdomain
> > +
> > + clocks:
> > + description:
> > + Clocks within this domain
>
> Missing constraints.
I will add it.
> > +
> > +required:
> > + - compatible
> > + - clocks
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > + - |
> > + l3init_clkdm: l3init_clkdm {
>
> Follow DTS coding style. Also drop unused label.
>
> Node names should be generic. See also an explanation and list of
> examples (not exhaustive) in DT specification:
> https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
Sure, will fix this.
> > + compatible = "ti,clockdomain";
> > + clocks = <&dpll_usb_ck>;
> > + };
> > --
> > 2.34.1
> >
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 2/4] dt-bindings: clock: ti: Convert to yaml
2025-04-04 1:44 ` [PATCH 2/4] " Sukrut Bellary
2025-04-04 5:51 ` kernel test robot
2025-04-04 10:46 ` Krzysztof Kozlowski
@ 2025-04-04 14:56 ` Rob Herring (Arm)
2025-04-09 8:35 ` Sukrut Bellary
2025-04-09 9:10 ` Andreas Kemnade
3 siblings, 1 reply; 24+ messages in thread
From: Rob Herring (Arm) @ 2025-04-04 14:56 UTC (permalink / raw)
To: Sukrut Bellary
Cc: Andreas Kemnade, Michael Turquette, Conor Dooley, devicetree,
Stephen Boyd, Krzysztof Kozlowski, Kevin Hilman, linux-clk,
Tero Kristo, linux-kernel
On Thu, 03 Apr 2025 18:44:58 -0700, Sukrut Bellary wrote:
> This binding doesn't define a new clock binding type,
> it is used to group the existing clock nodes under the hardware hierarchy.
>
> As this is not a provider clock, remove #clock-cells and
> clock-output-names properties.
> Though few clockdomain nodes in the dts use these properties,
> we are not fixing dts here.
> Clean up the example to meet the current standards.
>
> Add the creator of the original binding as a maintainer.
>
> Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
> ---
> .../bindings/clock/ti/clockdomain.txt | 25 ------------
> .../bindings/clock/ti/ti,clockdomain.yaml | 38 +++++++++++++++++++
> 2 files changed, 38 insertions(+), 25 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/clock/ti/clockdomain.txt
> create mode 100644 Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml
>
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
doc reference errors (make refcheckdocs):
Warning: Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt references a file that doesn't exist: Documentation/devicetree/bindings/clock/ti/autoidle.txt
Warning: Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml references a file that doesn't exist: Documentation/devicetree/bindings/clock/ti/autoidle.txt
Warning: Documentation/devicetree/bindings/clock/ti/ti,gate-clock.yaml references a file that doesn't exist: Documentation/devicetree/bindings/clock/ti/clockdomain.txt
Warning: Documentation/translations/ja_JP/process/submit-checklist.rst references a file that doesn't exist: Documentation/translations/ja_JP/SubmitChecklist
Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt: Documentation/devicetree/bindings/clock/ti/autoidle.txt
Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml: Documentation/devicetree/bindings/clock/ti/autoidle.txt
Documentation/devicetree/bindings/clock/ti/ti,gate-clock.yaml: Documentation/devicetree/bindings/clock/ti/clockdomain.txt
Documentation/translations/ja_JP/process/submit-checklist.rst: Documentation/translations/ja_JP/SubmitChecklist
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250404014500.2789830-3-sbellary@baylibre.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 2/4] dt-bindings: clock: ti: Convert to yaml
2025-04-04 14:56 ` Rob Herring (Arm)
@ 2025-04-09 8:35 ` Sukrut Bellary
0 siblings, 0 replies; 24+ messages in thread
From: Sukrut Bellary @ 2025-04-09 8:35 UTC (permalink / raw)
To: Rob Herring (Arm)
Cc: Andreas Kemnade, Michael Turquette, Conor Dooley, devicetree,
Stephen Boyd, Krzysztof Kozlowski, Kevin Hilman, linux-clk,
Tero Kristo, linux-kernel
On Fri, Apr 04, 2025 at 09:56:01AM -0500, Rob Herring (Arm) wrote:
>
> On Thu, 03 Apr 2025 18:44:58 -0700, Sukrut Bellary wrote:
> > This binding doesn't define a new clock binding type,
> > it is used to group the existing clock nodes under the hardware hierarchy.
> >
> > As this is not a provider clock, remove #clock-cells and
> > clock-output-names properties.
> > Though few clockdomain nodes in the dts use these properties,
> > we are not fixing dts here.
> > Clean up the example to meet the current standards.
> >
> > Add the creator of the original binding as a maintainer.
> >
> > Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
> > ---
> > .../bindings/clock/ti/clockdomain.txt | 25 ------------
> > .../bindings/clock/ti/ti,clockdomain.yaml | 38 +++++++++++++++++++
> > 2 files changed, 38 insertions(+), 25 deletions(-)
> > delete mode 100644 Documentation/devicetree/bindings/clock/ti/clockdomain.txt
> > create mode 100644 Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml
> >
>
> My bot found errors running 'make dt_binding_check' on your patch:
>
> yamllint warnings/errors:
>
> dtschema/dtc warnings/errors:
>
>
> doc reference errors (make refcheckdocs):
> Warning: Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt references a file that doesn't exist: Documentation/devicetree/bindings/clock/ti/autoidle.txt
> Warning: Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml references a file that doesn't exist: Documentation/devicetree/bindings/clock/ti/autoidle.txt
> Warning: Documentation/devicetree/bindings/clock/ti/ti,gate-clock.yaml references a file that doesn't exist: Documentation/devicetree/bindings/clock/ti/clockdomain.txt
> Warning: Documentation/translations/ja_JP/process/submit-checklist.rst references a file that doesn't exist: Documentation/translations/ja_JP/SubmitChecklist
> Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt: Documentation/devicetree/bindings/clock/ti/autoidle.txt
> Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml: Documentation/devicetree/bindings/clock/ti/autoidle.txt
> Documentation/devicetree/bindings/clock/ti/ti,gate-clock.yaml: Documentation/devicetree/bindings/clock/ti/clockdomain.txt
> Documentation/translations/ja_JP/process/submit-checklist.rst: Documentation/translations/ja_JP/SubmitChecklist
>
> See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250404014500.2789830-3-sbellary@baylibre.com
>
> The base for the series is generally the latest rc1. A different dependency
> should be noted in *this* patch.
>
> If you already ran 'make dt_binding_check' and didn't see the above
> error(s), then make sure 'yamllint' is installed and dt-schema is up to
> date:
>
> pip3 install dtschema --upgrade
>
> Please check and re-submit after running the above command yourself. Note
> that DT_SCHEMA_FILES can be set to your schema file to speed up checking
> your schema. However, it must be unset to test all examples with your schema.
OK, thanks.
I will check and re-submit.
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 2/4] dt-bindings: clock: ti: Convert to yaml
2025-04-04 1:44 ` [PATCH 2/4] " Sukrut Bellary
` (2 preceding siblings ...)
2025-04-04 14:56 ` Rob Herring (Arm)
@ 2025-04-09 9:10 ` Andreas Kemnade
2025-04-10 17:49 ` Sukrut Bellary
3 siblings, 1 reply; 24+ messages in thread
From: Andreas Kemnade @ 2025-04-09 9:10 UTC (permalink / raw)
To: Sukrut Bellary
Cc: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, linux-clk, devicetree,
linux-kernel
Am Thu, 3 Apr 2025 18:44:58 -0700
schrieb Sukrut Bellary <sbellary@baylibre.com>:
> This binding doesn't define a new clock binding type,
> it is used to group the existing clock nodes under the hardware hierarchy.
>
> As this is not a provider clock, remove #clock-cells and
> clock-output-names properties.
> Though few clockdomain nodes in the dts use these properties,
> we are not fixing dts here.
> Clean up the example to meet the current standards.
>
> Add the creator of the original binding as a maintainer.
>
> Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
> ---
> .../bindings/clock/ti/clockdomain.txt | 25 ------------
> .../bindings/clock/ti/ti,clockdomain.yaml | 38 +++++++++++++++++++
I am wondering whether this should just be part of a converted version
of Documentation/devicetree/bindings/arm/omap/prcm.txt. I doubt there
is any other usage for this compatible.
Regards,
Andreas
^ permalink raw reply [flat|nested] 24+ messages in thread* Re: [PATCH 2/4] dt-bindings: clock: ti: Convert to yaml
2025-04-09 9:10 ` Andreas Kemnade
@ 2025-04-10 17:49 ` Sukrut Bellary
0 siblings, 0 replies; 24+ messages in thread
From: Sukrut Bellary @ 2025-04-10 17:49 UTC (permalink / raw)
To: Andreas Kemnade
Cc: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, linux-clk, devicetree,
linux-kernel
On Wed, Apr 09, 2025 at 11:10:02AM +0200, Andreas Kemnade wrote:
> Am Thu, 3 Apr 2025 18:44:58 -0700
> schrieb Sukrut Bellary <sbellary@baylibre.com>:
>
> > This binding doesn't define a new clock binding type,
> > it is used to group the existing clock nodes under the hardware hierarchy.
> >
> > As this is not a provider clock, remove #clock-cells and
> > clock-output-names properties.
> > Though few clockdomain nodes in the dts use these properties,
> > we are not fixing dts here.
> > Clean up the example to meet the current standards.
> >
> > Add the creator of the original binding as a maintainer.
> >
> > Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
> > ---
> > .../bindings/clock/ti/clockdomain.txt | 25 ------------
> > .../bindings/clock/ti/ti,clockdomain.yaml | 38 +++++++++++++++++++
>
> I am wondering whether this should just be part of a converted version
> of Documentation/devicetree/bindings/arm/omap/prcm.txt. I doubt there
> is any other usage for this compatible.
>
Yes, OK. So, do you want to take this with prcm conversion? If so, I will
drop this from v2
> Regards,
> Andreas
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH 3/4] dt-bindings: clock: ti: Convert fixed-factor-clock to yaml
2025-04-04 1:44 [PATCH 0/4] dt-bindings: clock: ti: convert to yaml Sukrut Bellary
2025-04-04 1:44 ` [PATCH 1/4] dt-bindings: clock: ti: Convert " Sukrut Bellary
2025-04-04 1:44 ` [PATCH 2/4] " Sukrut Bellary
@ 2025-04-04 1:44 ` Sukrut Bellary
2025-04-04 19:40 ` Rob Herring
2025-04-04 1:45 ` [PATCH 4/4] dt-bindings: clock: ti: add ti,autoidle.yaml reference Sukrut Bellary
3 siblings, 1 reply; 24+ messages in thread
From: Sukrut Bellary @ 2025-04-04 1:44 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Sukrut Bellary, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
Convert TI fixed-factor-clock binding to yaml.
This uses the ti,autoidle.yaml for clock autoidle support.
Clean up the example to meet the current standards.
Add the creator of the original binding as a maintainer.
Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
---
.../bindings/clock/ti/fixed-factor-clock.txt | 42 ----------
.../clock/ti/ti,fixed-factor-clock.yaml | 77 +++++++++++++++++++
2 files changed, 77 insertions(+), 42 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt
create mode 100644 Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.yaml
diff --git a/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt b/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt
deleted file mode 100644
index dc69477b6e98..000000000000
--- a/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt
+++ /dev/null
@@ -1,42 +0,0 @@
-Binding for TI fixed factor rate clock sources.
-
-This binding uses the common clock binding[1], and also uses the autoidle
-support from TI autoidle clock [2].
-
-[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
-[2] Documentation/devicetree/bindings/clock/ti/autoidle.txt
-
-Required properties:
-- compatible : shall be "ti,fixed-factor-clock".
-- #clock-cells : from common clock binding; shall be set to 0.
-- ti,clock-div: fixed divider.
-- ti,clock-mult: fixed multiplier.
-- clocks: parent clock.
-
-Optional properties:
-- clock-output-names : from common clock binding.
-- ti,autoidle-shift: bit shift of the autoidle enable bit for the clock,
- see [2]
-- reg: offset for the autoidle register of this clock, see [2]
-- ti,invert-autoidle-bit: autoidle is enabled by setting the bit to 0, see [2]
-- ti,set-rate-parent: clk_set_rate is propagated to parent
-
-Example:
- clock {
- compatible = "ti,fixed-factor-clock";
- clocks = <&parentclk>;
- #clock-cells = <0>;
- ti,clock-div = <2>;
- ti,clock-mult = <1>;
- };
-
- dpll_usb_clkdcoldo_ck: dpll_usb_clkdcoldo_ck {
- #clock-cells = <0>;
- compatible = "ti,fixed-factor-clock";
- clocks = <&dpll_usb_ck>;
- ti,clock-div = <1>;
- ti,autoidle-shift = <8>;
- reg = <0x01b4>;
- ti,clock-mult = <1>;
- ti,invert-autoidle-bit;
- };
diff --git a/Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.yaml b/Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.yaml
new file mode 100644
index 000000000000..f597aedbad05
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.yaml
@@ -0,0 +1,77 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/ti/ti,fixed-factor-clock.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI fixed factor rate clock sources
+
+maintainers:
+ - Tero Kristo <kristo@kernel.org>
+ - Sukrut Bellary <sbellary@baylibre.com>
+
+description: |
+ This consists of a divider and a multiplier used to generate
+ a fixed rate clock. This also uses the autoidle support from
+ TI autoidle clock.
+
+allOf:
+ - $ref: /schemas/clock/ti/ti,autoidle.yaml#
+
+properties:
+ compatible:
+ const: ti,fixed-factor-clock
+
+ "#clock-cells":
+ const: 0
+
+ reg:
+ maxItems: 1
+
+ ti,clock-div:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: Fixed divider
+
+ ti,clock-mult:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: Fixed multiplier
+
+ clocks:
+ description:
+ Link to phandle of parent clock.
+
+ clock-output-names:
+ description:
+ From common clock binding
+
+ ti,set-rate-parent:
+ description:
+ Propagate to parent clock
+ type: boolean
+
+required:
+ - compatible
+ - clocks
+ - "#clock-cells"
+ - ti,clock-mult
+ - ti,clock-div
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ bus{
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ clock@1b4 {
+ compatible = "ti,fixed-factor-clock";
+ reg = <0x1b4>;
+ clocks = <&dpll_usb_ck>;
+ #clock-cells = <0>;
+ ti,clock-mult = <1>;
+ ti,clock-div = <1>;
+ ti,autoidle-shift = <8>;
+ ti,invert-autoidle-bit;
+ };
+ };
--
2.34.1
^ permalink raw reply related [flat|nested] 24+ messages in thread* Re: [PATCH 3/4] dt-bindings: clock: ti: Convert fixed-factor-clock to yaml
2025-04-04 1:44 ` [PATCH 3/4] dt-bindings: clock: ti: Convert fixed-factor-clock " Sukrut Bellary
@ 2025-04-04 19:40 ` Rob Herring
2025-04-09 8:38 ` Sukrut Bellary
0 siblings, 1 reply; 24+ messages in thread
From: Rob Herring @ 2025-04-04 19:40 UTC (permalink / raw)
To: Sukrut Bellary
Cc: Michael Turquette, Stephen Boyd, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
On Thu, Apr 03, 2025 at 06:44:59PM -0700, Sukrut Bellary wrote:
> Convert TI fixed-factor-clock binding to yaml.
>
> This uses the ti,autoidle.yaml for clock autoidle support.
> Clean up the example to meet the current standards.
>
> Add the creator of the original binding as a maintainer.
>
> Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
> ---
> .../bindings/clock/ti/fixed-factor-clock.txt | 42 ----------
> .../clock/ti/ti,fixed-factor-clock.yaml | 77 +++++++++++++++++++
> 2 files changed, 77 insertions(+), 42 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt
> create mode 100644 Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.yaml
>
> diff --git a/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt b/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt
> deleted file mode 100644
> index dc69477b6e98..000000000000
> --- a/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt
> +++ /dev/null
> @@ -1,42 +0,0 @@
> -Binding for TI fixed factor rate clock sources.
> -
> -This binding uses the common clock binding[1], and also uses the autoidle
> -support from TI autoidle clock [2].
> -
> -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
> -[2] Documentation/devicetree/bindings/clock/ti/autoidle.txt
> -
> -Required properties:
> -- compatible : shall be "ti,fixed-factor-clock".
> -- #clock-cells : from common clock binding; shall be set to 0.
> -- ti,clock-div: fixed divider.
> -- ti,clock-mult: fixed multiplier.
> -- clocks: parent clock.
> -
> -Optional properties:
> -- clock-output-names : from common clock binding.
> -- ti,autoidle-shift: bit shift of the autoidle enable bit for the clock,
> - see [2]
> -- reg: offset for the autoidle register of this clock, see [2]
> -- ti,invert-autoidle-bit: autoidle is enabled by setting the bit to 0, see [2]
> -- ti,set-rate-parent: clk_set_rate is propagated to parent
> -
> -Example:
> - clock {
> - compatible = "ti,fixed-factor-clock";
> - clocks = <&parentclk>;
> - #clock-cells = <0>;
> - ti,clock-div = <2>;
> - ti,clock-mult = <1>;
> - };
> -
> - dpll_usb_clkdcoldo_ck: dpll_usb_clkdcoldo_ck {
> - #clock-cells = <0>;
> - compatible = "ti,fixed-factor-clock";
> - clocks = <&dpll_usb_ck>;
> - ti,clock-div = <1>;
> - ti,autoidle-shift = <8>;
> - reg = <0x01b4>;
> - ti,clock-mult = <1>;
> - ti,invert-autoidle-bit;
> - };
> diff --git a/Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.yaml b/Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.yaml
> new file mode 100644
> index 000000000000..f597aedbad05
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.yaml
> @@ -0,0 +1,77 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/clock/ti/ti,fixed-factor-clock.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: TI fixed factor rate clock sources
> +
> +maintainers:
> + - Tero Kristo <kristo@kernel.org>
> + - Sukrut Bellary <sbellary@baylibre.com>
> +
> +description: |
Don't need '|'.
> + This consists of a divider and a multiplier used to generate
> + a fixed rate clock. This also uses the autoidle support from
> + TI autoidle clock.
> +
> +allOf:
> + - $ref: /schemas/clock/ti/ti,autoidle.yaml#
You can drop '/schemas/clock/ti/'
> +
> +properties:
> + compatible:
> + const: ti,fixed-factor-clock
> +
> + "#clock-cells":
> + const: 0
> +
> + reg:
> + maxItems: 1
> +
> + ti,clock-div:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: Fixed divider
Constraints?
> +
> + ti,clock-mult:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: Fixed multiplier
Constraints?
> +
> + clocks:
maxItems: 1
> + description:
> + Link to phandle of parent clock.
Drop the description
> +
> + clock-output-names:
maxItems: 1
> + description:
> + From common clock binding
Drop
> +
> + ti,set-rate-parent:
> + description:
> + Propagate to parent clock
> + type: boolean
> +
> +required:
> + - compatible
> + - clocks
> + - "#clock-cells"
> + - ti,clock-mult
> + - ti,clock-div
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + bus{
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + clock@1b4 {
> + compatible = "ti,fixed-factor-clock";
> + reg = <0x1b4>;
> + clocks = <&dpll_usb_ck>;
> + #clock-cells = <0>;
> + ti,clock-mult = <1>;
> + ti,clock-div = <1>;
> + ti,autoidle-shift = <8>;
> + ti,invert-autoidle-bit;
> + };
> + };
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 24+ messages in thread* Re: [PATCH 3/4] dt-bindings: clock: ti: Convert fixed-factor-clock to yaml
2025-04-04 19:40 ` Rob Herring
@ 2025-04-09 8:38 ` Sukrut Bellary
0 siblings, 0 replies; 24+ messages in thread
From: Sukrut Bellary @ 2025-04-09 8:38 UTC (permalink / raw)
To: Rob Herring
Cc: Michael Turquette, Stephen Boyd, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
On Fri, Apr 04, 2025 at 02:40:46PM -0500, Rob Herring wrote:
> On Thu, Apr 03, 2025 at 06:44:59PM -0700, Sukrut Bellary wrote:
> > Convert TI fixed-factor-clock binding to yaml.
> >
> > This uses the ti,autoidle.yaml for clock autoidle support.
> > Clean up the example to meet the current standards.
> >
> > Add the creator of the original binding as a maintainer.
> >
> > Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
> > ---
> > .../bindings/clock/ti/fixed-factor-clock.txt | 42 ----------
> > .../clock/ti/ti,fixed-factor-clock.yaml | 77 +++++++++++++++++++
> > 2 files changed, 77 insertions(+), 42 deletions(-)
> > delete mode 100644 Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt
> > create mode 100644 Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt b/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt
> > deleted file mode 100644
> > index dc69477b6e98..000000000000
> > --- a/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt
> > +++ /dev/null
> > @@ -1,42 +0,0 @@
> > -Binding for TI fixed factor rate clock sources.
> > -
> > -This binding uses the common clock binding[1], and also uses the autoidle
> > -support from TI autoidle clock [2].
> > -
> > -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
> > -[2] Documentation/devicetree/bindings/clock/ti/autoidle.txt
> > -
> > -Required properties:
> > -- compatible : shall be "ti,fixed-factor-clock".
> > -- #clock-cells : from common clock binding; shall be set to 0.
> > -- ti,clock-div: fixed divider.
> > -- ti,clock-mult: fixed multiplier.
> > -- clocks: parent clock.
> > -
> > -Optional properties:
> > -- clock-output-names : from common clock binding.
> > -- ti,autoidle-shift: bit shift of the autoidle enable bit for the clock,
> > - see [2]
> > -- reg: offset for the autoidle register of this clock, see [2]
> > -- ti,invert-autoidle-bit: autoidle is enabled by setting the bit to 0, see [2]
> > -- ti,set-rate-parent: clk_set_rate is propagated to parent
> > -
> > -Example:
> > - clock {
> > - compatible = "ti,fixed-factor-clock";
> > - clocks = <&parentclk>;
> > - #clock-cells = <0>;
> > - ti,clock-div = <2>;
> > - ti,clock-mult = <1>;
> > - };
> > -
> > - dpll_usb_clkdcoldo_ck: dpll_usb_clkdcoldo_ck {
> > - #clock-cells = <0>;
> > - compatible = "ti,fixed-factor-clock";
> > - clocks = <&dpll_usb_ck>;
> > - ti,clock-div = <1>;
> > - ti,autoidle-shift = <8>;
> > - reg = <0x01b4>;
> > - ti,clock-mult = <1>;
> > - ti,invert-autoidle-bit;
> > - };
> > diff --git a/Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.yaml b/Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.yaml
> > new file mode 100644
> > index 000000000000..f597aedbad05
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.yaml
> > @@ -0,0 +1,77 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/clock/ti/ti,fixed-factor-clock.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: TI fixed factor rate clock sources
> > +
> > +maintainers:
> > + - Tero Kristo <kristo@kernel.org>
> > + - Sukrut Bellary <sbellary@baylibre.com>
> > +
> > +description: |
>
> Don't need '|'.
>
> > + This consists of a divider and a multiplier used to generate
> > + a fixed rate clock. This also uses the autoidle support from
> > + TI autoidle clock.
> > +
> > +allOf:
> > + - $ref: /schemas/clock/ti/ti,autoidle.yaml#
>
> You can drop '/schemas/clock/ti/'
>
> > +
> > +properties:
> > + compatible:
> > + const: ti,fixed-factor-clock
> > +
> > + "#clock-cells":
> > + const: 0
> > +
> > + reg:
> > + maxItems: 1
> > +
> > + ti,clock-div:
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + description: Fixed divider
>
> Constraints?
>
> > +
> > + ti,clock-mult:
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + description: Fixed multiplier
>
> Constraints?
>
> > +
> > + clocks:
>
> maxItems: 1
>
> > + description:
> > + Link to phandle of parent clock.
>
> Drop the description
>
> > +
> > + clock-output-names:
>
> maxItems: 1
>
> > + description:
> > + From common clock binding
>
> Drop
Thanks for the review.
I will fix all of the above issues.
> > +
> > + ti,set-rate-parent:
> > + description:
> > + Propagate to parent clock
> > + type: boolean
> > +
> > +required:
> > + - compatible
> > + - clocks
> > + - "#clock-cells"
> > + - ti,clock-mult
> > + - ti,clock-div
> > +
> > +unevaluatedProperties: false
> > +
> > +examples:
> > + - |
> > + bus{
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > +
> > + clock@1b4 {
> > + compatible = "ti,fixed-factor-clock";
> > + reg = <0x1b4>;
> > + clocks = <&dpll_usb_ck>;
> > + #clock-cells = <0>;
> > + ti,clock-mult = <1>;
> > + ti,clock-div = <1>;
> > + ti,autoidle-shift = <8>;
> > + ti,invert-autoidle-bit;
> > + };
> > + };
> > --
> > 2.34.1
> >
^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH 4/4] dt-bindings: clock: ti: add ti,autoidle.yaml reference
2025-04-04 1:44 [PATCH 0/4] dt-bindings: clock: ti: convert to yaml Sukrut Bellary
` (2 preceding siblings ...)
2025-04-04 1:44 ` [PATCH 3/4] dt-bindings: clock: ti: Convert fixed-factor-clock " Sukrut Bellary
@ 2025-04-04 1:45 ` Sukrut Bellary
2025-04-04 19:42 ` Rob Herring
2025-04-05 19:49 ` Andreas Kemnade
3 siblings, 2 replies; 24+ messages in thread
From: Sukrut Bellary @ 2025-04-04 1:45 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Sukrut Bellary, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
ti,divider-clock uses properties from ti,autoidle.
As we are converting autoidle binding to ti,autoidle.yaml,
fix the reference here.
Add dual license.
Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
---
.../bindings/clock/ti/ti,divider-clock.yaml | 24 ++++---------------
1 file changed, 5 insertions(+), 19 deletions(-)
diff --git a/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml b/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
index 3fbe236eb565..aba879ae302d 100644
--- a/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
+++ b/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
@@ -1,4 +1,4 @@
-# SPDX-License-Identifier: GPL-2.0-only
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/ti/ti,divider-clock.yaml#
@@ -55,9 +55,10 @@ description: |
is missing it is the same as supplying a zero shift.
This binding can also optionally provide support to the hardware autoidle
- feature, see [1].
+ feature.
- [1] Documentation/devicetree/bindings/clock/ti/autoidle.txt
+allOf:
+ - $ref: /schemas/clock/ti/ti,autoidle.yaml#
properties:
compatible:
@@ -97,7 +98,6 @@ properties:
minimum: 1
default: 1
-
ti,max-div:
$ref: /schemas/types.yaml#/definitions/uint32
description:
@@ -116,20 +116,6 @@ properties:
valid divisor programming must be a power of two,
only valid if ti,dividers is not defined.
- ti,autoidle-shift:
- $ref: /schemas/types.yaml#/definitions/uint32
- description:
- bit shift of the autoidle enable bit for the clock,
- see [1].
- maximum: 31
- default: 0
-
- ti,invert-autoidle-bit:
- type: boolean
- description:
- autoidle is enabled by setting the bit to 0,
- see [1]
-
ti,set-rate-parent:
type: boolean
description:
@@ -156,7 +142,7 @@ required:
- clocks
- reg
-additionalProperties: false
+unevaluatedProperties: false
examples:
- |
--
2.34.1
^ permalink raw reply related [flat|nested] 24+ messages in thread* Re: [PATCH 4/4] dt-bindings: clock: ti: add ti,autoidle.yaml reference
2025-04-04 1:45 ` [PATCH 4/4] dt-bindings: clock: ti: add ti,autoidle.yaml reference Sukrut Bellary
@ 2025-04-04 19:42 ` Rob Herring
2025-04-09 8:40 ` Sukrut Bellary
2025-04-05 19:49 ` Andreas Kemnade
1 sibling, 1 reply; 24+ messages in thread
From: Rob Herring @ 2025-04-04 19:42 UTC (permalink / raw)
To: Sukrut Bellary
Cc: Michael Turquette, Stephen Boyd, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
On Thu, Apr 03, 2025 at 06:45:00PM -0700, Sukrut Bellary wrote:
> ti,divider-clock uses properties from ti,autoidle.
>
> As we are converting autoidle binding to ti,autoidle.yaml,
> fix the reference here.
>
> Add dual license.
Do you have rights to do so?
>
> Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
> ---
> .../bindings/clock/ti/ti,divider-clock.yaml | 24 ++++---------------
> 1 file changed, 5 insertions(+), 19 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml b/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
> index 3fbe236eb565..aba879ae302d 100644
> --- a/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
> +++ b/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
> @@ -1,4 +1,4 @@
> -# SPDX-License-Identifier: GPL-2.0-only
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> %YAML 1.2
> ---
> $id: http://devicetree.org/schemas/clock/ti/ti,divider-clock.yaml#
> @@ -55,9 +55,10 @@ description: |
> is missing it is the same as supplying a zero shift.
>
> This binding can also optionally provide support to the hardware autoidle
> - feature, see [1].
> + feature.
>
> - [1] Documentation/devicetree/bindings/clock/ti/autoidle.txt
> +allOf:
> + - $ref: /schemas/clock/ti/ti,autoidle.yaml#
>
> properties:
> compatible:
> @@ -97,7 +98,6 @@ properties:
> minimum: 1
> default: 1
>
> -
> ti,max-div:
> $ref: /schemas/types.yaml#/definitions/uint32
> description:
> @@ -116,20 +116,6 @@ properties:
> valid divisor programming must be a power of two,
> only valid if ti,dividers is not defined.
>
> - ti,autoidle-shift:
> - $ref: /schemas/types.yaml#/definitions/uint32
> - description:
> - bit shift of the autoidle enable bit for the clock,
> - see [1].
> - maximum: 31
> - default: 0
> -
> - ti,invert-autoidle-bit:
> - type: boolean
> - description:
> - autoidle is enabled by setting the bit to 0,
> - see [1]
> -
> ti,set-rate-parent:
> type: boolean
> description:
> @@ -156,7 +142,7 @@ required:
> - clocks
> - reg
>
> -additionalProperties: false
> +unevaluatedProperties: false
>
> examples:
> - |
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 4/4] dt-bindings: clock: ti: add ti,autoidle.yaml reference
2025-04-04 19:42 ` Rob Herring
@ 2025-04-09 8:40 ` Sukrut Bellary
0 siblings, 0 replies; 24+ messages in thread
From: Sukrut Bellary @ 2025-04-09 8:40 UTC (permalink / raw)
To: Rob Herring
Cc: Michael Turquette, Stephen Boyd, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, Andreas Kemnade,
linux-clk, devicetree, linux-kernel
On Fri, Apr 04, 2025 at 02:42:06PM -0500, Rob Herring wrote:
> On Thu, Apr 03, 2025 at 06:45:00PM -0700, Sukrut Bellary wrote:
> > ti,divider-clock uses properties from ti,autoidle.
> >
> > As we are converting autoidle binding to ti,autoidle.yaml,
> > fix the reference here.
> >
> > Add dual license.
>
> Do you have rights to do so?
I will keep it as is.
May be Andreas can take care of this.
> >
> > Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
> > ---
> > .../bindings/clock/ti/ti,divider-clock.yaml | 24 ++++---------------
> > 1 file changed, 5 insertions(+), 19 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml b/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
> > index 3fbe236eb565..aba879ae302d 100644
> > --- a/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
> > +++ b/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
> > @@ -1,4 +1,4 @@
> > -# SPDX-License-Identifier: GPL-2.0-only
> > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> > %YAML 1.2
> > ---
> > $id: http://devicetree.org/schemas/clock/ti/ti,divider-clock.yaml#
> > @@ -55,9 +55,10 @@ description: |
> > is missing it is the same as supplying a zero shift.
> >
> > This binding can also optionally provide support to the hardware autoidle
> > - feature, see [1].
> > + feature.
> >
> > - [1] Documentation/devicetree/bindings/clock/ti/autoidle.txt
> > +allOf:
> > + - $ref: /schemas/clock/ti/ti,autoidle.yaml#
> >
> > properties:
> > compatible:
> > @@ -97,7 +98,6 @@ properties:
> > minimum: 1
> > default: 1
> >
> > -
> > ti,max-div:
> > $ref: /schemas/types.yaml#/definitions/uint32
> > description:
> > @@ -116,20 +116,6 @@ properties:
> > valid divisor programming must be a power of two,
> > only valid if ti,dividers is not defined.
> >
> > - ti,autoidle-shift:
> > - $ref: /schemas/types.yaml#/definitions/uint32
> > - description:
> > - bit shift of the autoidle enable bit for the clock,
> > - see [1].
> > - maximum: 31
> > - default: 0
> > -
> > - ti,invert-autoidle-bit:
> > - type: boolean
> > - description:
> > - autoidle is enabled by setting the bit to 0,
> > - see [1]
> > -
> > ti,set-rate-parent:
> > type: boolean
> > description:
> > @@ -156,7 +142,7 @@ required:
> > - clocks
> > - reg
> >
> > -additionalProperties: false
> > +unevaluatedProperties: false
> >
> > examples:
> > - |
> > --
> > 2.34.1
> >
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 4/4] dt-bindings: clock: ti: add ti,autoidle.yaml reference
2025-04-04 1:45 ` [PATCH 4/4] dt-bindings: clock: ti: add ti,autoidle.yaml reference Sukrut Bellary
2025-04-04 19:42 ` Rob Herring
@ 2025-04-05 19:49 ` Andreas Kemnade
2025-04-09 8:43 ` Sukrut Bellary
1 sibling, 1 reply; 24+ messages in thread
From: Andreas Kemnade @ 2025-04-05 19:49 UTC (permalink / raw)
To: Sukrut Bellary
Cc: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, linux-clk, devicetree,
linux-kernel
Am Thu, 3 Apr 2025 18:45:00 -0700
schrieb Sukrut Bellary <sbellary@baylibre.com>:
> ti,divider-clock uses properties from ti,autoidle.
>
> As we are converting autoidle binding to ti,autoidle.yaml,
> fix the reference here.
>
> Add dual license.
>
> Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
> ---
> .../bindings/clock/ti/ti,divider-clock.yaml | 24 ++++---------------
> 1 file changed, 5 insertions(+), 19 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml b/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
> index 3fbe236eb565..aba879ae302d 100644
> --- a/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
> +++ b/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
> @@ -1,4 +1,4 @@
> -# SPDX-License-Identifier: GPL-2.0-only
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> %YAML 1.2
> ---
> $id: http://devicetree.org/schemas/clock/ti/ti,divider-clock.yaml#
> @@ -55,9 +55,10 @@ description: |
> is missing it is the same as supplying a zero shift.
>
> This binding can also optionally provide support to the hardware autoidle
> - feature, see [1].
> + feature.
>
> - [1] Documentation/devicetree/bindings/clock/ti/autoidle.txt
> +allOf:
> + - $ref: /schemas/clock/ti/ti,autoidle.yaml#
>
> properties:
> compatible:
> @@ -97,7 +98,6 @@ properties:
> minimum: 1
> default: 1
>
> -
> ti,max-div:
> $ref: /schemas/types.yaml#/definitions/uint32
> description:
> @@ -116,20 +116,6 @@ properties:
> valid divisor programming must be a power of two,
> only valid if ti,dividers is not defined.
>
> - ti,autoidle-shift:
> - $ref: /schemas/types.yaml#/definitions/uint32
> - description:
> - bit shift of the autoidle enable bit for the clock,
> - see [1].
> - maximum: 31
> - default: 0
> -
now you make ti,autoidle-shift required. That makes so sense. A clock
does not necessarily support autoidle.
Regards,
Andreas
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH 4/4] dt-bindings: clock: ti: add ti,autoidle.yaml reference
2025-04-05 19:49 ` Andreas Kemnade
@ 2025-04-09 8:43 ` Sukrut Bellary
0 siblings, 0 replies; 24+ messages in thread
From: Sukrut Bellary @ 2025-04-09 8:43 UTC (permalink / raw)
To: Andreas Kemnade
Cc: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Tero Kristo, Kevin Hilman, linux-clk, devicetree,
linux-kernel
On Sat, Apr 05, 2025 at 09:49:04PM +0200, Andreas Kemnade wrote:
> Am Thu, 3 Apr 2025 18:45:00 -0700
> schrieb Sukrut Bellary <sbellary@baylibre.com>:
>
> > ti,divider-clock uses properties from ti,autoidle.
> >
> > As we are converting autoidle binding to ti,autoidle.yaml,
> > fix the reference here.
> >
> > Add dual license.
> >
> > Signed-off-by: Sukrut Bellary <sbellary@baylibre.com>
> > ---
> > .../bindings/clock/ti/ti,divider-clock.yaml | 24 ++++---------------
> > 1 file changed, 5 insertions(+), 19 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml b/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
> > index 3fbe236eb565..aba879ae302d 100644
> > --- a/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
> > +++ b/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml
> > @@ -1,4 +1,4 @@
> > -# SPDX-License-Identifier: GPL-2.0-only
> > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> > %YAML 1.2
> > ---
> > $id: http://devicetree.org/schemas/clock/ti/ti,divider-clock.yaml#
> > @@ -55,9 +55,10 @@ description: |
> > is missing it is the same as supplying a zero shift.
> >
> > This binding can also optionally provide support to the hardware autoidle
> > - feature, see [1].
> > + feature.
> >
> > - [1] Documentation/devicetree/bindings/clock/ti/autoidle.txt
> > +allOf:
> > + - $ref: /schemas/clock/ti/ti,autoidle.yaml#
> >
> > properties:
> > compatible:
> > @@ -97,7 +98,6 @@ properties:
> > minimum: 1
> > default: 1
> >
> > -
> > ti,max-div:
> > $ref: /schemas/types.yaml#/definitions/uint32
> > description:
> > @@ -116,20 +116,6 @@ properties:
> > valid divisor programming must be a power of two,
> > only valid if ti,dividers is not defined.
> >
> > - ti,autoidle-shift:
> > - $ref: /schemas/types.yaml#/definitions/uint32
> > - description:
> > - bit shift of the autoidle enable bit for the clock,
> > - see [1].
> > - maximum: 31
> > - default: 0
> > -
> now you make ti,autoidle-shift required. That makes so sense. A clock
> does not necessarily support autoidle.
Thanks for the review.
No, we are removing the required from yaml bindings and keeping it as
one of the properties. As all clock don't support autoidle, required is
not applicable here.
> Regards,
> Andreas
^ permalink raw reply [flat|nested] 24+ messages in thread