diff mbox series

[v2,4/4] arm64: dts: mediatek: mt8195: enable usb remote wakeup

Message ID 20220128062902.26273-4-chunfeng.yun@mediatek.com (mailing list archive)
State New, archived
Headers show
Series [v2,1/4] dt-bindings: usb: mtk-xhci: add support ip-sleep for mt8195 | expand

Commit Message

Chunfeng Yun Jan. 28, 2022, 6:29 a.m. UTC
Enable USB remote wakeup of all four xHCI controllers

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
v2: based on new mt8195 base dts, no need add usb nodes

Note:

 depend on the reviewing patch:

[v9,3/3] arm64: dts: Add mediatek SoC mt8195 and evaluation board
https://patchwork.kernel.org/patch/12711296

---
 arch/arm64/boot/dts/mediatek/mt8195.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

AngeloGioacchino Del Regno Jan. 31, 2022, 9:59 a.m. UTC | #1
Il 28/01/22 07:29, Chunfeng Yun ha scritto:
> Enable USB remote wakeup of all four xHCI controllers
> 
> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Macpaul Lin May 10, 2022, 3:47 a.m. UTC | #2
On Mon, 2022-01-31 at 10:59 +0100, AngeloGioacchino Del Regno wrote:
> Il 28/01/22 07:29, Chunfeng Yun ha scritto:
> > Enable USB remote wakeup of all four xHCI controllers
> > 
> > Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
> 
> Reviewed-by: AngeloGioacchino Del Regno <
> angelogioacchino.delregno@collabora.com>
> 

This patch doesn't apply to 'for-next' branch to MediaTek's repo.

https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git

Dear Chunfeng, could
 you please update a new version?

Thanks
Macpaul Lin
Chunfeng Yun May 10, 2022, 11:03 a.m. UTC | #3
On Tue, 2022-05-10 at 11:47 +0800, Macpaul Lin wrote:
> On Mon, 2022-01-31 at 10:59 +0100, AngeloGioacchino Del Regno wrote:
> > Il 28/01/22 07:29, Chunfeng Yun ha scritto:
> > > Enable USB remote wakeup of all four xHCI controllers
> > > 
> > > Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
> > 
> > Reviewed-by: AngeloGioacchino Del Regno <
> > angelogioacchino.delregno@collabora.com>
> > 
> 
> This patch doesn't apply to 'for-next' branch to MediaTek's repo.
> 
> 
https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git
> 
> Dear Chunfeng, could
>  you please update a new version?
Ok, I'll send it out this week.

> 
> Thanks
> Macpaul Lin
>
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
index 240a21708806..444e5448c9b1 100644
--- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
@@ -573,6 +573,8 @@ 
 				 <&apmixedsys CLK_APMIXED_USB1PLL>,
 				 <&infracfg_ao CLK_INFRA_AO_SSUSB_XHCI>;
 			clock-names = "sys_ck", "ref_ck", "mcu_ck", "xhci_ck";
+			mediatek,syscon-wakeup = <&pericfg 0x400 103>;
+			wakeup-source;
 			status = "disabled";
 		};
 
@@ -636,6 +638,8 @@ 
 				 <&apmixedsys CLK_APMIXED_USB1PLL>,
 				 <&pericfg_ao CLK_PERI_AO_SSUSB_1P_XHCI>;
 			clock-names = "sys_ck", "ref_ck", "mcu_ck","xhci_ck";
+			mediatek,syscon-wakeup = <&pericfg 0x400 104>;
+			wakeup-source;
 			status = "disabled";
 		};
 
@@ -655,6 +659,8 @@ 
 				 <&topckgen CLK_TOP_SSUSB_P2_REF>,
 				 <&pericfg_ao CLK_PERI_AO_SSUSB_2P_XHCI>;
 			clock-names = "sys_ck", "ref_ck", "xhci_ck";
+			mediatek,syscon-wakeup = <&pericfg 0x400 105>;
+			wakeup-source;
 			status = "disabled";
 		};
 
@@ -674,6 +680,8 @@ 
 				 <&topckgen CLK_TOP_SSUSB_P3_REF>,
 				 <&pericfg_ao CLK_PERI_AO_SSUSB_3P_XHCI>;
 			clock-names = "sys_ck", "ref_ck", "xhci_ck";
+			mediatek,syscon-wakeup = <&pericfg 0x400 106>;
+			wakeup-source;
 			/* This controller is connected with a BT device.
 			 * Disable usb2 lpm to prevent konwn issues.
 			 */