linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] dt-bindings: usb: mtk-xhci: add an optional frame count clock
@ 2023-04-07  6:24 Chunfeng Yun
  2023-04-07  6:24 ` [PATCH v2 2/2] usb: xhci-mtk: add " Chunfeng Yun
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Chunfeng Yun @ 2023-04-07  6:24 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rob Herring
  Cc: Chunfeng Yun, Krzysztof Kozlowski, Matthias Brugger,
	AngeloGioacchino Del Regno, Mathias Nyman, linux-usb,
	linux-arm-kernel, linux-mediatek, devicetree, linux-kernel,
	Tianping Fang

Add optional clock 'frmcnt_ck' used on 4nm or advanced process SoC

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
v2: based the patch:
    https://patchwork.kernel.org/project/linux-mediatek/patch/20230403191850.374839-1-krzysztof.kozlowski@linaro.org/
---
 Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
index 1b0dfaa6b3dd..f2f926cf4039 100644
--- a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
+++ b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
@@ -77,6 +77,7 @@ properties:
       - description: Mcu bus clock for register access
       - description: DMA bus clock for data transfer
       - description: controller clock
+      - description: frame count clock
 
   clock-names:
     minItems: 1
@@ -86,6 +87,7 @@ properties:
       - const: mcu_ck
       - const: dma_ck
       - const: xhci_ck
+      - const: frmcnt_ck
 
   phys:
     description:
-- 
2.18.0


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

* [PATCH v2 2/2] usb: xhci-mtk: add optional frame count clock
  2023-04-07  6:24 [PATCH v2 1/2] dt-bindings: usb: mtk-xhci: add an optional frame count clock Chunfeng Yun
@ 2023-04-07  6:24 ` Chunfeng Yun
  2023-04-07  9:05   ` AngeloGioacchino Del Regno
  2023-04-07  9:05 ` [PATCH v2 1/2] dt-bindings: usb: mtk-xhci: add an " AngeloGioacchino Del Regno
  2023-04-10 15:31 ` Krzysztof Kozlowski
  2 siblings, 1 reply; 5+ messages in thread
From: Chunfeng Yun @ 2023-04-07  6:24 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rob Herring
  Cc: Chunfeng Yun, Krzysztof Kozlowski, Matthias Brugger,
	AngeloGioacchino Del Regno, Mathias Nyman, linux-usb,
	linux-arm-kernel, linux-mediatek, devicetree, linux-kernel,
	Tianping Fang

Add optional clock frmcnt_ck used on 4nm or advanced process SoC

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
v2: no changes
---
 drivers/usb/host/xhci-mtk.c | 1 +
 drivers/usb/host/xhci-mtk.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c
index f7cbb08fc506..90cf40d6d0c3 100644
--- a/drivers/usb/host/xhci-mtk.c
+++ b/drivers/usb/host/xhci-mtk.c
@@ -398,6 +398,7 @@ static int xhci_mtk_clks_get(struct xhci_hcd_mtk *mtk)
 	clks[2].id = "ref_ck";
 	clks[3].id = "mcu_ck";
 	clks[4].id = "dma_ck";
+	clks[5].id = "frmcnt_ck";
 
 	return devm_clk_bulk_get_optional(mtk->dev, BULK_CLKS_NUM, clks);
 }
diff --git a/drivers/usb/host/xhci-mtk.h b/drivers/usb/host/xhci-mtk.h
index 1174a510dd38..faaaf05e36ce 100644
--- a/drivers/usb/host/xhci-mtk.h
+++ b/drivers/usb/host/xhci-mtk.h
@@ -15,7 +15,7 @@
 
 #include "xhci.h"
 
-#define BULK_CLKS_NUM	5
+#define BULK_CLKS_NUM	6
 #define BULK_VREGS_NUM	2
 
 /* support at most 64 ep, use 32 size hash table */
-- 
2.18.0


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

* Re: [PATCH v2 2/2] usb: xhci-mtk: add optional frame count clock
  2023-04-07  6:24 ` [PATCH v2 2/2] usb: xhci-mtk: add " Chunfeng Yun
@ 2023-04-07  9:05   ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-04-07  9:05 UTC (permalink / raw)
  To: Chunfeng Yun, Greg Kroah-Hartman, Rob Herring
  Cc: Krzysztof Kozlowski, Matthias Brugger, Mathias Nyman, linux-usb,
	linux-arm-kernel, linux-mediatek, devicetree, linux-kernel,
	Tianping Fang

Il 07/04/23 08:24, Chunfeng Yun ha scritto:
> Add optional clock frmcnt_ck used on 4nm or advanced process SoC
> 
> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



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

* Re: [PATCH v2 1/2] dt-bindings: usb: mtk-xhci: add an optional frame count clock
  2023-04-07  6:24 [PATCH v2 1/2] dt-bindings: usb: mtk-xhci: add an optional frame count clock Chunfeng Yun
  2023-04-07  6:24 ` [PATCH v2 2/2] usb: xhci-mtk: add " Chunfeng Yun
@ 2023-04-07  9:05 ` AngeloGioacchino Del Regno
  2023-04-10 15:31 ` Krzysztof Kozlowski
  2 siblings, 0 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-04-07  9:05 UTC (permalink / raw)
  To: Chunfeng Yun, Greg Kroah-Hartman, Rob Herring
  Cc: Krzysztof Kozlowski, Matthias Brugger, Mathias Nyman, linux-usb,
	linux-arm-kernel, linux-mediatek, devicetree, linux-kernel,
	Tianping Fang

Il 07/04/23 08:24, Chunfeng Yun ha scritto:
> Add optional clock 'frmcnt_ck' used on 4nm or advanced process SoC
> 
> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>


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

* Re: [PATCH v2 1/2] dt-bindings: usb: mtk-xhci: add an optional frame count clock
  2023-04-07  6:24 [PATCH v2 1/2] dt-bindings: usb: mtk-xhci: add an optional frame count clock Chunfeng Yun
  2023-04-07  6:24 ` [PATCH v2 2/2] usb: xhci-mtk: add " Chunfeng Yun
  2023-04-07  9:05 ` [PATCH v2 1/2] dt-bindings: usb: mtk-xhci: add an " AngeloGioacchino Del Regno
@ 2023-04-10 15:31 ` Krzysztof Kozlowski
  2 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2023-04-10 15:31 UTC (permalink / raw)
  To: Chunfeng Yun, Greg Kroah-Hartman, Rob Herring
  Cc: Krzysztof Kozlowski, Matthias Brugger, AngeloGioacchino Del Regno,
	Mathias Nyman, linux-usb, linux-arm-kernel, linux-mediatek,
	devicetree, linux-kernel, Tianping Fang

On 07/04/2023 08:24, Chunfeng Yun wrote:
> Add optional clock 'frmcnt_ck' used on 4nm or advanced process SoC
> 
> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
> ---
> v2: based the patch:
>     https://patchwork.kernel.org/project/linux-mediatek/patch/20230403191850.374839-1-krzysztof.kozlowski@linaro.org/
> ---


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

end of thread, other threads:[~2023-04-10 15:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-07  6:24 [PATCH v2 1/2] dt-bindings: usb: mtk-xhci: add an optional frame count clock Chunfeng Yun
2023-04-07  6:24 ` [PATCH v2 2/2] usb: xhci-mtk: add " Chunfeng Yun
2023-04-07  9:05   ` AngeloGioacchino Del Regno
2023-04-07  9:05 ` [PATCH v2 1/2] dt-bindings: usb: mtk-xhci: add an " AngeloGioacchino Del Regno
2023-04-10 15:31 ` Krzysztof Kozlowski

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