Skip to contentSkip to conversation

dt-bindings: usb: mtk-xhci: add an optional frame count clock

PATCH Superseded Chunfeng Yun 3 participants 5 messages Apr 7, 2023 – Apr 10, 2023

Subsystems (5)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Chunfeng Yun

author maintainer
#0 lore raw

PATCH v2 1/2 dt-bindings: usb: mtk-xhci: add an optional frame count clock

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

---
v2: based the patch:

    https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
---
 Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +2 -0
index 1b0dfaa6b3dd..f2f926cf4039 100644
@@ -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:
Signature · 1 line
2.18.0
author maintainer
#1 lore raw

PATCH v2 2/2 usb: xhci-mtk: add optional frame count clock

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

---
v2: no changes

---
 drivers/usb/host/xhci-mtk.c | 1 +
 drivers/usb/host/xhci-mtk.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/usb/host/xhci-mtk.c +1 -0
index f7cbb08fc506..90cf40d6d0c3 100644
@@ -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);
 }
drivers/usb/host/xhci-mtk.h +1 -1
index 1174a510dd38..faaaf05e36ce 100644
@@ -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 */
Signature · 1 line
2.18.0