devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv1 0/2] generic-ohci: increase allowed clocks
@ 2023-03-31 16:31 Sebastian Reichel
  2023-03-31 16:31 ` [PATCHv1 1/2] dt-bindings: usb: " Sebastian Reichel
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Sebastian Reichel @ 2023-03-31 16:31 UTC (permalink / raw)
  To: Alan Stern, Greg Kroah-Hartman
  Cc: Rob Herring, Krzysztof Kozlowski, linux-usb, devicetree,
	linux-kernel, Sebastian Reichel, kernel

Hi,

This increases the max. allowed clocks for generic-ohci from 3 to 4.
On RK3588 a total of 4 clocks is required to access the OHCI registers.
Note, that EHCI already supports 4 clocks.

-- Sebastian

Sebastian Reichel (2):
  dt-bindings: usb: generic-ohci: increase allowed clocks
  usb: host: ohci-platform: increase max clock number to 4

 Documentation/devicetree/bindings/usb/generic-ohci.yaml | 2 +-
 drivers/usb/host/ohci-platform.c                        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.39.2


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

* [PATCHv1 1/2] dt-bindings: usb: generic-ohci: increase allowed clocks
  2023-03-31 16:31 [PATCHv1 0/2] generic-ohci: increase allowed clocks Sebastian Reichel
@ 2023-03-31 16:31 ` Sebastian Reichel
  2023-04-03 21:55   ` Rob Herring
  2023-03-31 16:31 ` [PATCHv1 2/2] usb: host: ohci-platform: increase max clock number to 4 Sebastian Reichel
  2023-03-31 16:41 ` [PATCHv1 0/2] generic-ohci: increase allowed clocks Alan Stern
  2 siblings, 1 reply; 5+ messages in thread
From: Sebastian Reichel @ 2023-03-31 16:31 UTC (permalink / raw)
  To: Alan Stern, Greg Kroah-Hartman
  Cc: Rob Herring, Krzysztof Kozlowski, linux-usb, devicetree,
	linux-kernel, Sebastian Reichel, kernel

Increase number of allowed clocks to 4, which is the number
required on Rockchip RK3588.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 Documentation/devicetree/bindings/usb/generic-ohci.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/usb/generic-ohci.yaml b/Documentation/devicetree/bindings/usb/generic-ohci.yaml
index a9ba7257b884..c0880d0664f1 100644
--- a/Documentation/devicetree/bindings/usb/generic-ohci.yaml
+++ b/Documentation/devicetree/bindings/usb/generic-ohci.yaml
@@ -69,7 +69,7 @@ properties:
 
   clocks:
     minItems: 1
-    maxItems: 3
+    maxItems: 4
     description: |
       In case the Renesas R-Car Gen3 SoCs:
         - if a host only channel: first clock should be host.
-- 
2.39.2


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

* [PATCHv1 2/2] usb: host: ohci-platform: increase max clock number to 4
  2023-03-31 16:31 [PATCHv1 0/2] generic-ohci: increase allowed clocks Sebastian Reichel
  2023-03-31 16:31 ` [PATCHv1 1/2] dt-bindings: usb: " Sebastian Reichel
@ 2023-03-31 16:31 ` Sebastian Reichel
  2023-03-31 16:41 ` [PATCHv1 0/2] generic-ohci: increase allowed clocks Alan Stern
  2 siblings, 0 replies; 5+ messages in thread
From: Sebastian Reichel @ 2023-03-31 16:31 UTC (permalink / raw)
  To: Alan Stern, Greg Kroah-Hartman
  Cc: Rob Herring, Krzysztof Kozlowski, linux-usb, devicetree,
	linux-kernel, Sebastian Reichel, kernel

Rockchip RK3588 OHCI requires 4 clocks to be enabled.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
 drivers/usb/host/ohci-platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c
index a84305091c43..dec38a845cff 100644
--- a/drivers/usb/host/ohci-platform.c
+++ b/drivers/usb/host/ohci-platform.c
@@ -33,7 +33,7 @@
 #include "ohci.h"
 
 #define DRIVER_DESC "OHCI generic platform driver"
-#define OHCI_MAX_CLKS 3
+#define OHCI_MAX_CLKS 4
 #define hcd_to_ohci_priv(h) ((struct ohci_platform_priv *)hcd_to_ohci(h)->priv)
 
 struct ohci_platform_priv {
-- 
2.39.2


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

* Re: [PATCHv1 0/2] generic-ohci: increase allowed clocks
  2023-03-31 16:31 [PATCHv1 0/2] generic-ohci: increase allowed clocks Sebastian Reichel
  2023-03-31 16:31 ` [PATCHv1 1/2] dt-bindings: usb: " Sebastian Reichel
  2023-03-31 16:31 ` [PATCHv1 2/2] usb: host: ohci-platform: increase max clock number to 4 Sebastian Reichel
@ 2023-03-31 16:41 ` Alan Stern
  2 siblings, 0 replies; 5+ messages in thread
From: Alan Stern @ 2023-03-31 16:41 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski, linux-usb,
	devicetree, linux-kernel, kernel

On Fri, Mar 31, 2023 at 06:31:46PM +0200, Sebastian Reichel wrote:
> Hi,
> 
> This increases the max. allowed clocks for generic-ohci from 3 to 4.
> On RK3588 a total of 4 clocks is required to access the OHCI registers.
> Note, that EHCI already supports 4 clocks.
> 
> -- Sebastian
> 
> Sebastian Reichel (2):
>   dt-bindings: usb: generic-ohci: increase allowed clocks
>   usb: host: ohci-platform: increase max clock number to 4
> 
>  Documentation/devicetree/bindings/usb/generic-ohci.yaml | 2 +-
>  drivers/usb/host/ohci-platform.c                        | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Acked-by: Alan Stern <stern@rowland.harvard.edu>

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

* Re: [PATCHv1 1/2] dt-bindings: usb: generic-ohci: increase allowed clocks
  2023-03-31 16:31 ` [PATCHv1 1/2] dt-bindings: usb: " Sebastian Reichel
@ 2023-04-03 21:55   ` Rob Herring
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2023-04-03 21:55 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Alan Stern, Greg Kroah-Hartman, Krzysztof Kozlowski, linux-usb,
	devicetree, linux-kernel, kernel

On Fri, Mar 31, 2023 at 06:31:47PM +0200, Sebastian Reichel wrote:
> Increase number of allowed clocks to 4, which is the number
> required on Rockchip RK3588.

It was 3 because that's what crept in until we made a schema. Additions 
should really have a specific compatible and a conditional schema 
limiting that 4 clocks to that compatible.

> 
> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
> ---
>  Documentation/devicetree/bindings/usb/generic-ohci.yaml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/usb/generic-ohci.yaml b/Documentation/devicetree/bindings/usb/generic-ohci.yaml
> index a9ba7257b884..c0880d0664f1 100644
> --- a/Documentation/devicetree/bindings/usb/generic-ohci.yaml
> +++ b/Documentation/devicetree/bindings/usb/generic-ohci.yaml
> @@ -69,7 +69,7 @@ properties:
>  
>    clocks:
>      minItems: 1
> -    maxItems: 3
> +    maxItems: 4
>      description: |
>        In case the Renesas R-Car Gen3 SoCs:
>          - if a host only channel: first clock should be host.
> -- 
> 2.39.2
> 

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

end of thread, other threads:[~2023-04-03 21:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-31 16:31 [PATCHv1 0/2] generic-ohci: increase allowed clocks Sebastian Reichel
2023-03-31 16:31 ` [PATCHv1 1/2] dt-bindings: usb: " Sebastian Reichel
2023-04-03 21:55   ` Rob Herring
2023-03-31 16:31 ` [PATCHv1 2/2] usb: host: ohci-platform: increase max clock number to 4 Sebastian Reichel
2023-03-31 16:41 ` [PATCHv1 0/2] generic-ohci: increase allowed clocks Alan Stern

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).