* [PATCH] schemas: clock: Add assigned-clocks description
@ 2022-04-28 15:26 ` Rob Herring
0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2022-04-28 15:26 UTC (permalink / raw)
To: devicetree, devicetree-spec
Cc: Stephen Boyd, Sylwester Nawrocki, Stephen Boyd
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: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Rob Herring <robh@kernel.org>
---
Please ack for the license change.
dtschema/schemas/clock/clock.yaml | 38 +++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/dtschema/schemas/clock/clock.yaml b/dtschema/schemas/clock/clock.yaml
index 2416d046087c..5299653b80b6 100644
--- a/dtschema/schemas/clock/clock.yaml
+++ b/dtschema/schemas/clock/clock.yaml
@@ -19,6 +19,44 @@ description: |
output on a device. The length of a clock specifier is defined by the
value of a #clock-cells property in the clock provider node.
+ Assigned clock parents and rates
+ --------------------------------
+
+ Some platforms may require initial configuration of default parent clocks
+ and clock frequencies. Such a configuration can be specified in a device tree
+ node through assigned-clocks, assigned-clock-parents and assigned-clock-rates
+ properties. The assigned-clock-parents property should contain a list of parent
+ clocks in the form of a phandle and clock specifier pair and the
+ assigned-clock-rates property should contain a list of frequencies in Hz. Both
+ these properties should correspond to the clocks listed in the assigned-clocks
+ property.
+
+ To skip setting parent or rate of a clock its corresponding entry should be
+ set to 0, or can be omitted if it is not followed by any non-zero entry.
+
+ serial@a000 {
+ compatible = "fsl,imx-uart";
+ reg = <0xa000 0x1000>;
+ ...
+ clocks = <&osc 0>, <&pll 1>;
+ clock-names = "baud", "register";
+
+ assigned-clocks = <&clkcon 0>, <&pll 2>;
+ assigned-clock-parents = <&pll 2>;
+ assigned-clock-rates = <0>, <460800>;
+ };
+
+ In this example the <&pll 2> clock is set as parent of clock <&clkcon 0> and
+ the <&pll 2> clock is assigned a frequency value of 460800 Hz.
+
+ Configuring a clock's parent and rate through the device node that consumes
+ the clock can be done only for clocks that have a single user. Specifying
+ conflicting parent or rate configuration in multiple consumer nodes for
+ a shared clock is forbidden.
+
+ Configuration of common clocks, which affect multiple consumer devices can
+ be similarly specified in the clock provider node.
+
# always select the core schema
select: true
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] schemas: clock: Add assigned-clocks description
@ 2022-04-28 15:26 ` Rob Herring
0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2022-04-28 15:26 UTC (permalink / raw)
To: devicetree-u79uwXL29TY76Z2rM5mHXA,
devicetree-spec-u79uwXL29TY76Z2rM5mHXA
Cc: Stephen Boyd, Sylwester Nawrocki, Stephen Boyd
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: Sylwester Nawrocki <s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
Cc: Stephen Boyd <swboyd-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---
Please ack for the license change.
dtschema/schemas/clock/clock.yaml | 38 +++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/dtschema/schemas/clock/clock.yaml b/dtschema/schemas/clock/clock.yaml
index 2416d046087c..5299653b80b6 100644
--- a/dtschema/schemas/clock/clock.yaml
+++ b/dtschema/schemas/clock/clock.yaml
@@ -19,6 +19,44 @@ description: |
output on a device. The length of a clock specifier is defined by the
value of a #clock-cells property in the clock provider node.
+ Assigned clock parents and rates
+ --------------------------------
+
+ Some platforms may require initial configuration of default parent clocks
+ and clock frequencies. Such a configuration can be specified in a device tree
+ node through assigned-clocks, assigned-clock-parents and assigned-clock-rates
+ properties. The assigned-clock-parents property should contain a list of parent
+ clocks in the form of a phandle and clock specifier pair and the
+ assigned-clock-rates property should contain a list of frequencies in Hz. Both
+ these properties should correspond to the clocks listed in the assigned-clocks
+ property.
+
+ To skip setting parent or rate of a clock its corresponding entry should be
+ set to 0, or can be omitted if it is not followed by any non-zero entry.
+
+ serial@a000 {
+ compatible = "fsl,imx-uart";
+ reg = <0xa000 0x1000>;
+ ...
+ clocks = <&osc 0>, <&pll 1>;
+ clock-names = "baud", "register";
+
+ assigned-clocks = <&clkcon 0>, <&pll 2>;
+ assigned-clock-parents = <&pll 2>;
+ assigned-clock-rates = <0>, <460800>;
+ };
+
+ In this example the <&pll 2> clock is set as parent of clock <&clkcon 0> and
+ the <&pll 2> clock is assigned a frequency value of 460800 Hz.
+
+ Configuring a clock's parent and rate through the device node that consumes
+ the clock can be done only for clocks that have a single user. Specifying
+ conflicting parent or rate configuration in multiple consumer nodes for
+ a shared clock is forbidden.
+
+ Configuration of common clocks, which affect multiple consumer devices can
+ be similarly specified in the clock provider node.
+
# always select the core schema
select: true
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] schemas: clock: Add assigned-clocks description
@ 2022-04-29 15:24 ` Sylwester Nawrocki
0 siblings, 0 replies; 6+ messages in thread
From: Sylwester Nawrocki @ 2022-04-29 15:24 UTC (permalink / raw)
To: Rob Herring, devicetree, devicetree-spec; +Cc: Stephen Boyd, Stephen Boyd
On 28.04.2022 17:26, Rob Herring 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: Sylwester Nawrocki <s.nawrocki@samsung.com>
> Cc: Stephen Boyd <swboyd@chromium.org>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
> Please ack for the license change.
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] schemas: clock: Add assigned-clocks description
@ 2022-04-29 15:24 ` Sylwester Nawrocki
0 siblings, 0 replies; 6+ messages in thread
From: Sylwester Nawrocki @ 2022-04-29 15:24 UTC (permalink / raw)
To: Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA,
devicetree-spec-u79uwXL29TY76Z2rM5mHXA
Cc: Stephen Boyd, Stephen Boyd
On 28.04.2022 17:26, Rob Herring 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: Sylwester Nawrocki <s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
> Cc: Stephen Boyd <swboyd-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
> Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> ---
> Please ack for the license change.
Acked-by: Sylwester Nawrocki <s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] schemas: clock: Add assigned-clocks description
@ 2022-04-29 20:22 ` Stephen Boyd
0 siblings, 0 replies; 6+ messages in thread
From: Stephen Boyd @ 2022-04-29 20:22 UTC (permalink / raw)
To: Rob Herring, devicetree-spec, devicetree; +Cc: Sylwester Nawrocki
Quoting Rob Herring (2022-04-28 08:26:33)
> 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: Sylwester Nawrocki <s.nawrocki@samsung.com>
> Cc: Stephen Boyd <swboyd@chromium.org>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] schemas: clock: Add assigned-clocks description
@ 2022-04-29 20:22 ` Stephen Boyd
0 siblings, 0 replies; 6+ messages in thread
From: Stephen Boyd @ 2022-04-29 20:22 UTC (permalink / raw)
To: Rob Herring, devicetree-spec-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA
Cc: Sylwester Nawrocki
Quoting Rob Herring (2022-04-28 08:26:33)
> 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: Sylwester Nawrocki <s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
> Cc: Stephen Boyd <swboyd-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
> Signed-off-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> ---
Reviewed-by: Stephen Boyd <sboyd-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-04-29 20:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20220428152638eucas1p11b7bbe5bcb8d36641b8328057a248789@eucas1p1.samsung.com>
2022-04-28 15:26 ` [PATCH] schemas: clock: Add assigned-clocks description Rob Herring
2022-04-28 15:26 ` Rob Herring
2022-04-29 15:24 ` Sylwester Nawrocki
2022-04-29 15:24 ` Sylwester Nawrocki
2022-04-29 20:22 ` Stephen Boyd
2022-04-29 20:22 ` Stephen Boyd
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.