From patchwork Tue May 10 12:10:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunfeng Yun X-Patchwork-Id: 12845003 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 092E5C433FE for ; Tue, 10 May 2022 12:21:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0/Rhpkc4BS6pl5pGQv1hthrVfl7kuynTYpkiFNUcRX0=; b=jqXpk4dvT8bq3h nj7y0c91u9OM135R5KP2cII00K2B7MvEm3KP+RgUMXGWZPH9dr52Afz5qufxyAcjDus8vBzuJMGBI DK6frZRORXGUoZ8EotTUzcnZ/CL8QyZk6JuU2W98jdEoQIFqescfb7jr6TXwH3Blvi7engg3I59fR yCR5Hiv5/eHfMPF6qZ4kGLWPLGf0OQHLfjhQHn1rKvY0Els53UVgfLIYoFhxX3kraO/y3zzfnvrLL KhnAAdz7aB25edUW2LlDB5gH3lDl6qQvUz2BFud9u6t1BFh5bKumhN4p+F+aPt9XBOuMoD1gS5K58 7VrXWQ+h1RBiOohsSpmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1noOrA-001pFv-8Q; Tue, 10 May 2022 12:20:48 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1noOr6-001pEM-6d; Tue, 10 May 2022 12:20:46 +0000 X-UUID: 6f781df70ff441659e9ec3233d52bd78-20220510 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.4, REQID:9e942dda-72cb-40b0-a5eb-29783b60a61e, OB:-327 68,LOB:0,IP:0,URL:8,TC:0,Content:0,EDM:0,RT:-32768,SF:-32768,FILE:0,RULE:R elease_Ham,ACTION:release,TS:8 X-CID-META: VersionHash:faefae9, CLOUDID:cd27e916-2e53-443e-b81a-655c13977218, C OID:nil,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,File:nil,QS:0,BEC:nil X-UUID: 6f781df70ff441659e9ec3233d52bd78-20220510 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 980713818; Tue, 10 May 2022 05:20:32 -0700 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 10 May 2022 05:10:31 -0700 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Tue, 10 May 2022 20:10:30 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Tue, 10 May 2022 20:10:29 +0800 From: Chunfeng Yun To: Matthias Brugger CC: Rob Herring , Krzysztof Kozlowski , , , , , Greg Kroah-Hartman , Macpaul Lin , AngeloGioacchino Del Regno , Chunfeng Yun Subject: [PATCH next v3 2/2] arm64: dts: mediatek: mt8195: enable usb remote wakeup Date: Tue, 10 May 2022 20:10:27 +0800 Message-ID: <20220510121027.19041-2-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220510121027.19041-1-chunfeng.yun@mediatek.com> References: <20220510121027.19041-1-chunfeng.yun@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220510_052044_294664_D96AAC37 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable USB remote wakeup of all four xHCI controller Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Chunfeng Yun Tested-by: Macpaul Lin --- v3: add reviewed-by AngeloGioacchino; NOTE: based on v5.18-next/dts64 of matthias.bgg's branch v2: no changes, based on new version of mt8195.dtsi --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index d5bc4cf5f4ac..3ad14e0e0956 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; status = "disabled"; };