* [dtschema PATCH] schemas: clock: Add example for 'clock-indices' @ 2022-04-28 15:27 Rob Herring [not found] ` <20220428152719.2263164-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Rob Herring @ 2022-04-28 15:27 UTC (permalink / raw) To: devicetree-u79uwXL29TY76Z2rM5mHXA, devicetree-spec-u79uwXL29TY76Z2rM5mHXA Cc: Stephen Boyd, Ben Dooks Add description for assigned-clocks properties from clock-binding.txt in the Linux kernel. This is relicensed from GPL-2.0 (the default) to BSD-2-Clause. The Cc list are the original authors. Cc: Ben Dooks <ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> --- Please ack the license change. dtschema/schemas/clock/clock.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/dtschema/schemas/clock/clock.yaml b/dtschema/schemas/clock/clock.yaml index 5299653b80b6..433a858ef31e 100644 --- a/dtschema/schemas/clock/clock.yaml +++ b/dtschema/schemas/clock/clock.yaml @@ -94,9 +94,21 @@ properties: clock-indices: $ref: "/schemas/types.yaml#/definitions/uint32-array" - description: If the identifying number for the clocks in the node - is not linear from zero, then this allows the mapping of identifiers - into the clock-output-names array. + description: | + If the identifying number for the clocks in the node is not linear from + zero, then this allows the mapping of identifiers into the + clock-output-names array. + + For example, if we have two clocks <&oscillator 1> and <&oscillator 3>: + + oscillator { + compatible = "myclocktype"; + #clock-cells = <1>; + clock-indices = <1>, <3>; + clock-output-names = "clka", "clkb"; + } + + This ensures we do not have any empty strings in clock-output-names # Consumer properties clocks: -- 2.34.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <20220428152719.2263164-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>]
* Re: [dtschema PATCH] schemas: clock: Add example for 'clock-indices' [not found] ` <20220428152719.2263164-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> @ 2022-05-19 23:17 ` Stephen Boyd 2022-06-06 20:04 ` Rob Herring 1 sibling, 0 replies; 3+ messages in thread From: Stephen Boyd @ 2022-05-19 23:17 UTC (permalink / raw) To: Rob Herring, devicetree-spec-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: Stephen Boyd, Ben Dooks Quoting Rob Herring (2022-04-28 08:27:19) > Add description for assigned-clocks properties from clock-binding.txt in > the Linux kernel. > > This is relicensed from GPL-2.0 (the default) to BSD-2-Clause. The Cc list > are the original authors. > > Cc: Ben Dooks <ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> > Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > --- Acked-by: Stephen Boyd <sboyd-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dtschema PATCH] schemas: clock: Add example for 'clock-indices' [not found] ` <20220428152719.2263164-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> 2022-05-19 23:17 ` Stephen Boyd @ 2022-06-06 20:04 ` Rob Herring 1 sibling, 0 replies; 3+ messages in thread From: Rob Herring @ 2022-06-06 20:04 UTC (permalink / raw) To: Ben Dooks; +Cc: Mailing List, devicetree-u79uwXL29TY76Z2rM5mHXA, Stephen Boyd On Thu, Apr 28, 2022 at 10:27 AM Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote: > > Add description for assigned-clocks properties from clock-binding.txt in > the Linux kernel. > > This is relicensed from GPL-2.0 (the default) to BSD-2-Clause. The Cc list > are the original authors. > > Cc: Ben Dooks <ben.dooks-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org> > Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > --- > Please ack the license change. Ben, need your ack on this please. > > dtschema/schemas/clock/clock.yaml | 18 +++++++++++++++--- > 1 file changed, 15 insertions(+), 3 deletions(-) > > diff --git a/dtschema/schemas/clock/clock.yaml b/dtschema/schemas/clock/clock.yaml > index 5299653b80b6..433a858ef31e 100644 > --- a/dtschema/schemas/clock/clock.yaml > +++ b/dtschema/schemas/clock/clock.yaml > @@ -94,9 +94,21 @@ properties: > > clock-indices: > $ref: "/schemas/types.yaml#/definitions/uint32-array" > - description: If the identifying number for the clocks in the node > - is not linear from zero, then this allows the mapping of identifiers > - into the clock-output-names array. > + description: | > + If the identifying number for the clocks in the node is not linear from > + zero, then this allows the mapping of identifiers into the > + clock-output-names array. > + > + For example, if we have two clocks <&oscillator 1> and <&oscillator 3>: > + > + oscillator { > + compatible = "myclocktype"; > + #clock-cells = <1>; > + clock-indices = <1>, <3>; > + clock-output-names = "clka", "clkb"; > + } > + > + This ensures we do not have any empty strings in clock-output-names > > # Consumer properties > clocks: > -- > 2.34.1 > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-06 20:04 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-04-28 15:27 [dtschema PATCH] schemas: clock: Add example for 'clock-indices' Rob Herring [not found] ` <20220428152719.2263164-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> 2022-05-19 23:17 ` Stephen Boyd 2022-06-06 20:04 ` Rob Herring
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).