linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] dt-bindings: omap: Add clock-output-names and #clock-cells
@ 2022-02-03 11:23 Tony Lindgren
  2022-02-03 11:23 ` [PATCH 2/3] dt-bindings: clock: ti: Add clock-output-names for clockctrl Tony Lindgren
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tony Lindgren @ 2022-02-03 11:23 UTC (permalink / raw)
  To: linux-kernel
  Cc: Rob Herring, linux-arm-kernel, devicetree, linux-omap,
	Stephen Boyd, Tero Kristo

This allows us to use clock-output-names for the clock manager instance
name instead of relying on non-standard node names.

Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Tero Kristo <kristo@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 Documentation/devicetree/bindings/arm/omap/prcm.txt | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/arm/omap/prcm.txt b/Documentation/devicetree/bindings/arm/omap/prcm.txt
--- a/Documentation/devicetree/bindings/arm/omap/prcm.txt
+++ b/Documentation/devicetree/bindings/arm/omap/prcm.txt
@@ -31,12 +31,17 @@ Required properties:
 		(base address and length)
 - clocks:	clocks for this module
 - clockdomains:	clockdomains for this module
+- #clock-cells: From common clock binding
+- clock-output-names: From common clock binding
+
 
 Example:
 
-cm: cm@48004000 {
+cm: clock@48004000 {
 	compatible = "ti,omap3-cm";
 	reg = <0x48004000 0x4000>;
+	#clock-cells = <0>;
+	clock-output-names = "cm";
 
 	cm_clocks: clocks {
 		#address-cells = <1>;
-- 
2.35.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 2/3] dt-bindings: clock: ti: Add clock-output-names for clockctrl
  2022-02-03 11:23 [PATCH 1/3] dt-bindings: omap: Add clock-output-names and #clock-cells Tony Lindgren
@ 2022-02-03 11:23 ` Tony Lindgren
  2022-02-11 14:11   ` Rob Herring
  2022-02-03 11:23 ` [PATCH 3/3] dt-bindings: clock: ti: Add clock-output-names for TI composite clocks Tony Lindgren
  2022-02-11 14:10 ` [PATCH 1/3] dt-bindings: omap: Add clock-output-names and #clock-cells Rob Herring
  2 siblings, 1 reply; 6+ messages in thread
From: Tony Lindgren @ 2022-02-03 11:23 UTC (permalink / raw)
  To: linux-kernel
  Cc: Rob Herring, linux-arm-kernel, devicetree, linux-omap,
	Stephen Boyd, Tero Kristo

This allows us to use clock-output-names for the clockctrl instance
name instead of relying on a custom compatible or non-standard node
names.

Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Tero Kristo <kristo@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 Documentation/devicetree/bindings/clock/ti-clkctrl.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/clock/ti-clkctrl.txt b/Documentation/devicetree/bindings/clock/ti-clkctrl.txt
--- a/Documentation/devicetree/bindings/clock/ti-clkctrl.txt
+++ b/Documentation/devicetree/bindings/clock/ti-clkctrl.txt
@@ -21,6 +21,7 @@ Required properties :
 	       "ti,clkctrl-l4-per"
 	       "ti,clkctrl-l4-secure"
 	       "ti,clkctrl-l4-wkup"
+- clock-output-names : from common clock binding
 - #clock-cells : shall contain 2 with the first entry being the instance
 		 offset from the clock domain base and the second being the
 		 clock index
@@ -32,7 +33,8 @@ Example: Clock controller node on omap 4430:
 	l4per: cm@1400 {
 		cm_l4per@0 {
 			cm_l4per_clkctrl: clock@20 {
-				compatible = "ti,clkctrl-l4-per", "ti,clkctrl";
+				compatible = "ti,clkctrl";
+				clock-output-names = "l4_per";
 				reg = <0x20 0x1b0>;
 				#clock-cells = <2>;
 			};
-- 
2.35.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 3/3] dt-bindings: clock: ti: Add clock-output-names for TI composite clocks
  2022-02-03 11:23 [PATCH 1/3] dt-bindings: omap: Add clock-output-names and #clock-cells Tony Lindgren
  2022-02-03 11:23 ` [PATCH 2/3] dt-bindings: clock: ti: Add clock-output-names for clockctrl Tony Lindgren
@ 2022-02-03 11:23 ` Tony Lindgren
  2022-02-11 14:11   ` Rob Herring
  2022-02-11 14:10 ` [PATCH 1/3] dt-bindings: omap: Add clock-output-names and #clock-cells Rob Herring
  2 siblings, 1 reply; 6+ messages in thread
From: Tony Lindgren @ 2022-02-03 11:23 UTC (permalink / raw)
  To: linux-kernel
  Cc: Rob Herring, linux-arm-kernel, devicetree, linux-omap,
	Stephen Boyd, Tero Kristo

For the TI composite clocks, we currently have only the divider clock
list clock-output-names as an optional devicetree property. Let's add
clock-output-names for all the TI composite clock bindings.

This allows us to use clock-output-names for the clockctrl instance name
instead of relying on a custom compatible or non-standard node names.

Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Tero Kristo <kristo@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 Documentation/devicetree/bindings/clock/ti/clockdomain.txt     | 3 +++
 Documentation/devicetree/bindings/clock/ti/composite.txt       | 3 +++
 .../devicetree/bindings/clock/ti/fixed-factor-clock.txt        | 1 +
 Documentation/devicetree/bindings/clock/ti/gate.txt            | 1 +
 Documentation/devicetree/bindings/clock/ti/interface.txt       | 1 +
 Documentation/devicetree/bindings/clock/ti/mux.txt             | 1 +
 6 files changed, 10 insertions(+)

diff --git a/Documentation/devicetree/bindings/clock/ti/clockdomain.txt b/Documentation/devicetree/bindings/clock/ti/clockdomain.txt
--- a/Documentation/devicetree/bindings/clock/ti/clockdomain.txt
+++ b/Documentation/devicetree/bindings/clock/ti/clockdomain.txt
@@ -17,6 +17,9 @@ Required properties:
 - #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";
diff --git a/Documentation/devicetree/bindings/clock/ti/composite.txt b/Documentation/devicetree/bindings/clock/ti/composite.txt
--- a/Documentation/devicetree/bindings/clock/ti/composite.txt
+++ b/Documentation/devicetree/bindings/clock/ti/composite.txt
@@ -27,6 +27,9 @@ Required properties:
 - clocks : link phandles of component clocks
 - #clock-cells : from common clock binding; shall be set to 0.
 
+Optional properties:
+- clock-output-names : from common clock binding.
+
 Examples:
 
 usb_l4_gate_ick: usb_l4_gate_ick {
diff --git a/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt b/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt
--- a/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt
+++ b/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt
@@ -16,6 +16,7 @@ Required properties:
 - 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]
diff --git a/Documentation/devicetree/bindings/clock/ti/gate.txt b/Documentation/devicetree/bindings/clock/ti/gate.txt
--- a/Documentation/devicetree/bindings/clock/ti/gate.txt
+++ b/Documentation/devicetree/bindings/clock/ti/gate.txt
@@ -36,6 +36,7 @@ Required properties:
 	ti,clkdm-gate-clock type
 
 Optional properties:
+- clock-output-names : from common clock binding.
 - ti,bit-shift : bit shift for programming the clock gate, invalid for
 		 ti,clkdm-gate-clock type
 - ti,set-bit-to-disable : inverts default gate programming. Setting the bit
diff --git a/Documentation/devicetree/bindings/clock/ti/interface.txt b/Documentation/devicetree/bindings/clock/ti/interface.txt
--- a/Documentation/devicetree/bindings/clock/ti/interface.txt
+++ b/Documentation/devicetree/bindings/clock/ti/interface.txt
@@ -28,6 +28,7 @@ Required properties:
 - reg : base address for the control register
 
 Optional properties:
+- clock-output-names : from common clock binding.
 - ti,bit-shift : bit shift for the bit enabling/disabling the clock (default 0)
 
 Examples:
diff --git a/Documentation/devicetree/bindings/clock/ti/mux.txt b/Documentation/devicetree/bindings/clock/ti/mux.txt
--- a/Documentation/devicetree/bindings/clock/ti/mux.txt
+++ b/Documentation/devicetree/bindings/clock/ti/mux.txt
@@ -42,6 +42,7 @@ Required properties:
 - reg : register offset for register controlling adjustable mux
 
 Optional properties:
+- clock-output-names : from common clock binding.
 - ti,bit-shift : number of bits to shift the bit-mask, defaults to
   0 if not present
 - ti,index-starts-at-one : valid input select programming starts at 1, not
-- 
2.35.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/3] dt-bindings: omap: Add clock-output-names and #clock-cells
  2022-02-03 11:23 [PATCH 1/3] dt-bindings: omap: Add clock-output-names and #clock-cells Tony Lindgren
  2022-02-03 11:23 ` [PATCH 2/3] dt-bindings: clock: ti: Add clock-output-names for clockctrl Tony Lindgren
  2022-02-03 11:23 ` [PATCH 3/3] dt-bindings: clock: ti: Add clock-output-names for TI composite clocks Tony Lindgren
@ 2022-02-11 14:10 ` Rob Herring
  2 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2022-02-11 14:10 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Tero Kristo, linux-kernel, linux-omap, Stephen Boyd, Rob Herring,
	linux-arm-kernel, devicetree

On Thu, 03 Feb 2022 13:23:35 +0200, Tony Lindgren wrote:
> This allows us to use clock-output-names for the clock manager instance
> name instead of relying on non-standard node names.
> 
> Cc: Stephen Boyd <sboyd@kernel.org>
> Cc: Tero Kristo <kristo@kernel.org>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
> ---
>  Documentation/devicetree/bindings/arm/omap/prcm.txt | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/3] dt-bindings: clock: ti: Add clock-output-names for clockctrl
  2022-02-03 11:23 ` [PATCH 2/3] dt-bindings: clock: ti: Add clock-output-names for clockctrl Tony Lindgren
@ 2022-02-11 14:11   ` Rob Herring
  0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2022-02-11 14:11 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-arm-kernel, linux-kernel, linux-omap, Tero Kristo,
	devicetree, Stephen Boyd, Rob Herring

On Thu, 03 Feb 2022 13:23:36 +0200, Tony Lindgren wrote:
> This allows us to use clock-output-names for the clockctrl instance
> name instead of relying on a custom compatible or non-standard node
> names.
> 
> Cc: Stephen Boyd <sboyd@kernel.org>
> Cc: Tero Kristo <kristo@kernel.org>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
> ---
>  Documentation/devicetree/bindings/clock/ti-clkctrl.txt | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 3/3] dt-bindings: clock: ti: Add clock-output-names for TI composite clocks
  2022-02-03 11:23 ` [PATCH 3/3] dt-bindings: clock: ti: Add clock-output-names for TI composite clocks Tony Lindgren
@ 2022-02-11 14:11   ` Rob Herring
  0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2022-02-11 14:11 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-omap, Rob Herring, Stephen Boyd, Tero Kristo, devicetree,
	linux-kernel, linux-arm-kernel

On Thu, 03 Feb 2022 13:23:37 +0200, Tony Lindgren wrote:
> For the TI composite clocks, we currently have only the divider clock
> list clock-output-names as an optional devicetree property. Let's add
> clock-output-names for all the TI composite clock bindings.
> 
> This allows us to use clock-output-names for the clockctrl instance name
> instead of relying on a custom compatible or non-standard node names.
> 
> Cc: Stephen Boyd <sboyd@kernel.org>
> Cc: Tero Kristo <kristo@kernel.org>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
> ---
>  Documentation/devicetree/bindings/clock/ti/clockdomain.txt     | 3 +++
>  Documentation/devicetree/bindings/clock/ti/composite.txt       | 3 +++
>  .../devicetree/bindings/clock/ti/fixed-factor-clock.txt        | 1 +
>  Documentation/devicetree/bindings/clock/ti/gate.txt            | 1 +
>  Documentation/devicetree/bindings/clock/ti/interface.txt       | 1 +
>  Documentation/devicetree/bindings/clock/ti/mux.txt             | 1 +
>  6 files changed, 10 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-11 14:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-03 11:23 [PATCH 1/3] dt-bindings: omap: Add clock-output-names and #clock-cells Tony Lindgren
2022-02-03 11:23 ` [PATCH 2/3] dt-bindings: clock: ti: Add clock-output-names for clockctrl Tony Lindgren
2022-02-11 14:11   ` Rob Herring
2022-02-03 11:23 ` [PATCH 3/3] dt-bindings: clock: ti: Add clock-output-names for TI composite clocks Tony Lindgren
2022-02-11 14:11   ` Rob Herring
2022-02-11 14:10 ` [PATCH 1/3] dt-bindings: omap: Add clock-output-names and #clock-cells 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).