Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp719573rwb; Tue, 27 Sep 2022 03:52:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7h3RGWOQVTC0WvUhoNcHIFBLMY7KuI+dX8IPdIL8yBylGV0bbOLwSqtDlxjSLVVTgI2Epy X-Received: by 2002:a17:907:1b1e:b0:783:8e33:2d1c with SMTP id mp30-20020a1709071b1e00b007838e332d1cmr7838400ejc.304.1664275944814; Tue, 27 Sep 2022 03:52:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664275944; cv=none; d=google.com; s=arc-20160816; b=u2ffXe9ymrjvKNxiz+tDoIuCkkfQofjDNrygQ+emByMPiXcSE70rgW2F/YgXzLxqbf IhG/NU3GyMRtDwdBjio/Whj27G14KkToyuDXraDF4fAN2urwpERaw5/iIBjlT4G7yw1X 4mA286lMP6hd43xvs9h4KsY/eA7djmhv3nge5D108tFUg10eAYGavOSG35pppZxX3zgk ad5rCvUCQ3epkEJRrFm0Ega8eI30wW+v94gYgt7X5SmkyyC++PYldEvONw8LtGljCEZy 2Nt8eEP672apVlWay55AAFHbMb2+H0jEu2e4jkd7YCdBUHrFfipISs11OB/iWxCmmKwj Xuag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=5LLrBsHbIrg4HP9shja11XjCheuLW7nPZK6y4XHFcMw=; b=Hs+Q0ABhnYcXrP6MpvRJjV/j7GgcSiDNk/DKLJtxIMqJwNw0s6RFMh1RQ/VSxbM0e4 cwBeqHxXDAj0MODK2Au7kszHoH7sV+pKu6X8a6RFQIY18o4z3uXRjSrma1PgAkBKAWJM 6cLPzbOWIO1J5zHQ2QH9RzySxqqBgb3Vk33CwcX6htUwoa7Bc2ceKQuGoF4gOTxFkdRG v8v5NOsolsER7pMQngDul2E8DZ37HlZ18z1IbSfnKUvGfavjhJOEizVE0ytfin0B8gd4 WxyhEZfOgKURKS0NG1/qVSGkBZA9EgdjN6vMwENwUgWhh5hx0XtGY0vzLNFhz+8x/9Q3 hlsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mX5X1V4N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e8-20020a056402190800b00450f9a404aasi1302019edz.31.2022.09.27.03.51.59; Tue, 27 Sep 2022 03:52:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mX5X1V4N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbiI0KoD (ORCPT + 99 others); Tue, 27 Sep 2022 06:44:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230344AbiI0KoA (ORCPT ); Tue, 27 Sep 2022 06:44:00 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BA0AF392B; Tue, 27 Sep 2022 03:43:58 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28RAPxIT027708; Tue, 27 Sep 2022 10:43:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=5LLrBsHbIrg4HP9shja11XjCheuLW7nPZK6y4XHFcMw=; b=mX5X1V4NI1rdv5WzxJP1uLzh1VVbqGPsCQDnxYlXFLKPTYkL7sfxqHjQE1pIfR/jR+Qe Alan4L9zA/voOtbe/CH9k2bfsY2e37pdStqSsaMvKIEY30TviRdUogMcohJO2QPHRFJ1 JqpPODpwqr5kEKuqO8YRi/OlXIsrOrY7JXERhTyXpldgPnoe0dtdiE3DDrO64ZBIzCRV JM4VTsh3CDmBzaoi26XqqXuXALFO/shOM2bJg7oZmgclH23HqW1DdefMFNBM/3bYu4vK FKZnDrs3wBMaoXiyqaRsAkYtpPMMBz271n6UnEN8/h55sCfWPxtd+xdDjzOjdyD7GNr6 gQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jurq7912q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Sep 2022 10:43:53 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 28RARSfF020593 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Sep 2022 10:27:28 GMT Received: from blr-ubuntu-173.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Tue, 27 Sep 2022 03:27:24 -0700 From: Rajendra Nayak To: , , , , CC: , , , , , , , Rajendra Nayak Subject: [PATCH] arm64: dts: qcom: sc7180: Add required-opps for USB Date: Tue, 27 Sep 2022 15:56:46 +0530 Message-ID: <20220927102646.14785-1-quic_rjendra@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: QO3Q3p8E3gUcqGxqgNYLJa1fSxOyY1nV X-Proofpoint-GUID: QO3Q3p8E3gUcqGxqgNYLJa1fSxOyY1nV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-27_03,2022-09-22_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 suspectscore=0 bulkscore=0 phishscore=0 adultscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 clxscore=1015 spamscore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209270063 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org USB has a requirement to put a performance state vote on 'cx' while active. Use 'required-opps' to pass this information from device tree, and since all the GDSCs in GCC (including USB) are sub-domains of cx, we also add cx as a power-domain for GCC. Now when any of the consumers of the GDSCs (in this case USB) votes on a perforamance state, genpd framework can identify that the GDSC itself does not support a performance state and it then propogates the vote to the parent, which in this case is cx. This change would also mean that any GDSC in GCC thats left enabled during low power state (perhaps because its marked with a ALWAYS_ON flag) can prevent the system from entering low power since that would prevent cx from transitioning to low power. Ideally any consumers that would need to have their devices (partially) powered to support wakeups should look at making the resp. GDSCs transtion to a Retention (PWRSTS_RET) state instead of leaving them ALWAYS_ON. Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index 58976a1ba06b..f59692213745 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -662,6 +662,7 @@ #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>; + power-domains = <&rpmhpd SC7180_CX>; }; qfprom: efuse@784000 { @@ -2775,6 +2776,7 @@ "dm_hs_phy_irq", "dp_hs_phy_irq"; power-domains = <&gcc USB30_PRIM_GDSC>; + required-opps = <&rpmhpd_opp_nom>; resets = <&gcc GCC_USB30_PRIM_BCR>; -- 2.17.1