Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1137588pxb; Fri, 6 Nov 2020 01:50:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxx8w8pHYJKMQyiv0kqhkqvDoBrXGqaHahkEumraChzXY7AnV2gfVoDOlXUtrQKOB+nNy7V X-Received: by 2002:a17:906:4bc9:: with SMTP id x9mr1160158ejv.37.1604656212167; Fri, 06 Nov 2020 01:50:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604656212; cv=none; d=google.com; s=arc-20160816; b=YMvR1W3MX3/nTbc07XAedSuTa01p/EQspa6COjIgD2LzWl4Yj6rLKXm+6DtHm8PSVs BFu/I1cAtN2TedzLxG7Bq3NQrk99JLy+0X15gVle+9dGH1ShRct60thloHzgpgFL/aYc Qzg7t43adb9LqE/IAEAYJU/ErSqjADd4QOr0zK0Nc0Fi8BiGRj2ddYC46+kz0k22ruID S4vSpSOEiA93B7JXnw9L2F3av6GQDhheXFh007SrR09C8qLS6va9wEF6rSTTeYbC3Pvf /wL8oN5pZ4zj7N+E1nmnM+KB8jdTMKGPpRIgr0HCeSGXKDXDRLVdcd+QF0+BngpO2vTT lrnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=ya8z0ma+WuSTwgMPTKOV0vgOgsHBMjsZ6epokliZaNo=; b=YHTY2Db94yj+HQ2Le0XBDKtVfa2DdOTo9gF2Oc8HyhDiRLi0RolNbESwFcxc3UsnAr LoJdxmMgYfnGLl3zd3OGcY4hpv+Lvq85JNa+WX4ey3XKfznBV1ywQilPrK35+8nRGxkw 9KOf9K6OlIcygvHkaKIZGHtWuRJlPghWCcYuGy3mCqXDpf3wh/K1t1rEwRft7Vz+5PEl XZ/brR38plukXRR1W15qhkzRermcJzPyuo0cXhrAnjSw1yXqWAm03Ej/7sWjFXDYNkzo pJQQ28cHRD7EVbbxDn0cXvKcRnBhJO8UUJOZucqa8mC4TCAHnPaXMUr1sM157HAShV+M ccTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zc3si468345ejb.158.2020.11.06.01.49.49; Fri, 06 Nov 2020 01:50:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726600AbgKFJqY (ORCPT + 99 others); Fri, 6 Nov 2020 04:46:24 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:37671 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725868AbgKFJqY (ORCPT ); Fri, 6 Nov 2020 04:46:24 -0500 X-UUID: 66107521c869482c9656fccadfaeac7f-20201106 X-UUID: 66107521c869482c9656fccadfaeac7f-20201106 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1245991233; Fri, 06 Nov 2020 17:46:21 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 6 Nov 2020 17:46:18 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 6 Nov 2020 17:46:18 +0800 From: Macpaul Lin To: Rob Herring , Greg Kroah-Hartman , Matthias Brugger , Mathias Nyman , Chunfeng Yun CC: Ainge Hsu , Eddie Hung , Mediatek WSD Upstream , Macpaul Lin , Macpaul Lin , , , , Subject: [PATCH v2 1/2] dt-bindings: usb: mediatek,mtk-xhci: add str-clock-on Date: Fri, 6 Nov 2020 17:46:04 +0800 Message-ID: <1604655965-22418-1-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1604301530-31546-1-git-send-email-macpaul.lin@mediatek.com> References: <1604301530-31546-1-git-send-email-macpaul.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Option "mediatek,str-clock-on" means to keep clock on during system suspend and resume. Some platform will flush register settings if clock has been disabled when system is suspended. Set this option to avoid clock off. Change-Id: Id841f58e9d7fb3656511072b3eb14d0d355e2dd5 Signed-off-by: Macpaul Lin --- Changes for v2: - Rename "mediatek,keep-clock-on" to "mediatek,str-clock-on" which implies this option related to STR functions. - After discussion with Chunfeng, resend dt-bindings descritption based on mediatek,mtk-xhci.txt instead of yaml format. .../devicetree/bindings/usb/mediatek,mtk-xhci.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt index 42d8814..fc93bcf 100644 --- a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt +++ b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt @@ -37,6 +37,9 @@ Required properties: Optional properties: - wakeup-source : enable USB remote wakeup; + - mediatek,str-clock-on: Keep clock on during system suspend and resume. + Some platform will flush register settings if clock has been disabled + when system is suspended. - mediatek,syscon-wakeup : phandle to syscon used to access the register of the USB wakeup glue layer between xHCI and SPM; it depends on "wakeup-source", and has two arguments: -- 1.7.9.5