From patchwork Wed Jan 24 04:25:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 191331 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp770269dyi; Tue, 23 Jan 2024 20:26:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFACiC1j1+2zxNLgNX19UaQYBLf3aF4pJH683ICDY7ffXAiqx70QDZPRCudFD408APrAP0j X-Received: by 2002:ad4:5d6a:0:b0:685:6715:9693 with SMTP id fn10-20020ad45d6a000000b0068567159693mr2325447qvb.8.1706070393528; Tue, 23 Jan 2024 20:26:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706070393; cv=pass; d=google.com; s=arc-20160816; b=gUHzkIwhNLZeSuH7VZ2flg0XNFf6MX13XCc1tDo2z7VdPjveBR9QBycXdkae010Em5 AgqirbwAqzNMX0P0eYXtbUXYIsN/0MLuQsKhlLMtUJa9CC0lzCAOL/ND4ofpOJ2Dj9q1 EwH1TuKD1hpKidiOJr5jlq4Ze49gzaeoN1rf2MXFlaWeDkDkSepaE4DQ5N1s3ulAJS/k cXoDwTlrZHW/vy2iPGKMnpxNTQpwV+zy9zD+JP5W+84f2wSRceYLvtysU62Kot9orgtr LzAACN7j5UJxH9Bbg+da4Opf3mziWkPYyQ2DB9gyZCpLq1X+UuhzwbLzmqB3aKb7/kpM 68tA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=j0WrjNuqJTFbXzVKqBCvNcYJMSiWYcyljt5OHBM4AJw=; fh=rlJ5pplLbWuDJy2OkSyjKcJh6lMTudr/nTxAFpexnCw=; b=ANSoqR2rwzCtXJIHRtrtcADMK1wVquEaDDsxEI1q28yS5qRnDYa1nFst8s9Ugl+h3n n5oyMQAnhX+MiHCyMJXXwa6Wkfvoqbbh/GJfEbEZZfvfny9pdDWvwgiMA8+UIH+zuoRF L5CgFpl8GO7I1V8lMlocq7wdBUP8MAx6SlNif9xFXmNcxoNaLUC3fM3k1u9MYzXrHA2+ R3RBp58TiVWiS15jtyA7Q8UhKqEVG6XZE/nHpS93HEO6QQXVyt2qPHgrwFNodJPGpUsc K1lRk4MNRy5tag31RGOh5KDe53LIK8inUDtCXR+XKXGCAIxyP995C0U2bUZn/Z2OsjGo Qm+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="CNuWt/Ts"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36416-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36416-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p7-20020a0ce187000000b006841e1bbc0esi9563339qvl.320.2024.01.23.20.26.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 20:26:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36416-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="CNuWt/Ts"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36416-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36416-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 81A5D1C21DBF for ; Wed, 24 Jan 2024 04:26:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB1441642B; Wed, 24 Jan 2024 04:25:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="CNuWt/Ts" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3997033E1; Wed, 24 Jan 2024 04:25:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070328; cv=none; b=O4+0SRhLLfN+ST6o/K2PftJXpAiZ/mqGmh57hKXc1gwaTPMa7FddwwyAHyAoiksmfI4M20KmxBwIDvo3yMf1Jotk+7850Oo7l1yu4QI8xuiWYHhmdFr9sTBR03l1fgh1jQsNvs4aX2DGDqcATpl/+bEFFGKajMDf/aICqz+DL6U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070328; c=relaxed/simple; bh=Z1s+V/qCRyJP3GIGhiOG/zuiYuQsCRDzolyhdYZlsJQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=A301NvTu3CTiESrs91lFn3fou33zVkOQKrQOEbcMr9yoaBm5ksDHwZ1iMSS3XwikFHL7NPmIjuHTFeD4yEOXLnKu7Q9u3xkG7itE2G6fHw964hrdLREmbDothE6UWSZuiQemDh9JO4iCtgyeG4YS87t9q+57Xq2Z7R+/NAuCcnM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=CNuWt/Ts; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40O42LOJ018132; Wed, 24 Jan 2024 04:25:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=j0WrjNuqJTFbXzVKqBCvNcYJMSiWYcyljt5OHBM4AJw =; b=CNuWt/TsgfsFY2Nd1dVOCS6+nF/GIz9lAmPRIsZWlp2JK5j9DjGg+7iQjQr qmWWEM6/YZxr6UJQXHsRfXEBKXNO+LD6prFPZ5w7x5jqzYxqltbHgMOMUnY/ckE3 AjD8m9QCMst5qjCRFKBUCIZFes2Z5d3pvPdKuAXfD8MKAmJnnGlUjEBnruQlZ9Nq wB/ag4Mle4NKZAH1SrAEC2rrH/3FO7KUs5zfNxE+MABm4tEE/WE2Opr6hxqaFLl6 aP8N8K5TsC+7+q6OSRQtkT0AaIsqD9Zy/Ce0VY3cCOBrXlFnunu1Ybn8Jq83H1s3 pPeElUttPZzbUfkhthiGJQFZw4A== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vtmh00qye-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:17 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40O4PGi9030380 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:16 GMT Received: from [169.254.0.1] (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 23 Jan 2024 20:25:16 -0800 From: Bjorn Andersson Date: Tue, 23 Jan 2024 20:25:15 -0800 Subject: [PATCH v3 1/8] dt-bindings: clock: qcom: Allow VDD_GFX supply to GX Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240123-sa8295p-gpu-v3-1-d5b4474c8f33@quicinc.com> References: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> In-Reply-To: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Taniya Das , Johan Hovold CC: , , , , , , "Bjorn Andersson" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706070315; l=1266; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=Z1s+V/qCRyJP3GIGhiOG/zuiYuQsCRDzolyhdYZlsJQ=; b=etyhi32oJ93vyKyw2B7Jv/s/vg/sbyY6qFg3Xre9d/zVeAzk+jycW66Z/X6dTFx1XpsSfJevm iqpZuJesK3BCl2LQzBEBnep69oM/4tSHE26i3Rwu7J29MAw0geOAVf+ X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: sQjLpxuj90hWc4MptYli9mdh7aeJlanj X-Proofpoint-ORIG-GUID: sQjLpxuj90hWc4MptYli9mdh7aeJlanj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-24_01,2024-01-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 priorityscore=1501 lowpriorityscore=0 bulkscore=0 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401240029 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788944468771167410 X-GMAIL-MSGID: 1788944468771167410 In some designs the SoC's VDD_GFX pads are supplied by an external regulator, rather than a power-domain. Allow this to be described in the GPU clock controller binding. Signed-off-by: Bjorn Andersson --- Documentation/devicetree/bindings/clock/qcom,gpucc.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml b/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml index f369fa34e00c..c0dd24c9dcb3 100644 --- a/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml @@ -53,6 +53,9 @@ properties: power-domains: maxItems: 1 + vdd-gfx-supply: + description: Regulator supply for the VDD_GFX pads + '#clock-cells': const: 1 @@ -74,6 +77,19 @@ required: - '#reset-cells' - '#power-domain-cells' +# Allow either power-domains or vdd-gfx-supply, not both +oneOf: + - required: + - power-domains + - required: + - vdd-gfx-supply + - not: + anyOf: + - required: + - power-domains + - required: + - vdd-gfx-supply + additionalProperties: false examples: From patchwork Wed Jan 24 04:25:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 191337 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp770775dyi; Tue, 23 Jan 2024 20:28:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNFd1DgevchZYXWMZ6YX227ASCz62FhVzfP1Eqy8g/SJrnFQP+N+Oeni0MgwaNNcaF7bOM X-Received: by 2002:aa7:d293:0:b0:55c:7bb6:f612 with SMTP id w19-20020aa7d293000000b0055c7bb6f612mr597905edq.16.1706070491623; Tue, 23 Jan 2024 20:28:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706070491; cv=pass; d=google.com; s=arc-20160816; b=WZGO84RgE7l9j8fKTY5Nvv0c1yv494vXxyCT2vrzr2gI/PTIlBWF2RjChqtuI0NMB5 /WR385XzJFtsaTjWnnBFLyV9rNh0c7zVE1qAUQjCL14yka5uDCkJ2cmO8/1rCpQpbY+V rkopybvuauczr4rbwnS1VWbJpspzNligRg+GS6qD0aI4y40D8xIC5xaIQ6eolLZu1OAw IY0cW2Bgzb0WPR2gFvTu5R2z3ax6czlotzOtLyRABwpeCOxF7gScO6EKT+25GCNPxq3/ ITPboH5B3X5hfdC3OYWDSauu26lhy0dICrctkNtV2WSmP8ChiCtDOcwhvT3yxSMaFMGb jQsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=vtJobCucxjhRKCLo3qeZp87nG4VsdWwAweQjG0KAvcE=; fh=rlJ5pplLbWuDJy2OkSyjKcJh6lMTudr/nTxAFpexnCw=; b=nk1IG1fwmBT1H64Q7n5/kCIh0v93oW6kVJemqsZGJw+jSy3BDXSBCBoH2CrkAPip82 YCEsc2t3eFPZcdVu5qzLgPzJj3TlAzD/VPaaaKohu5fwTvwOe8P4JMZETca7tP4BCM15 V4Cquen5qqN8+2IwJ2R71Z1+ns86FvTxYb71/49s3IcbBxR9JybDZjUxGWJFhtGwE964 QkjWA+y7JuTMV+s89glASsi6gt+UxHpibXEf2Bt9IWSmU3+H64+4CQL1D+wTNMaU2JCr a0A9wMNtaqhuq8NRHFQmSqj72LkWgPEEYJEmBBEOeotLYa50KPepCk8Ajx3pCzh84iP9 /XHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oT7qZipJ; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36425-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36425-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d30-20020a50cd5e000000b0055c7ad9f290si1643776edj.157.2024.01.23.20.28.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 20:28:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36425-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oT7qZipJ; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36425-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36425-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EF64D1F2D6B8 for ; Wed, 24 Jan 2024 04:28:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0414DE541; Wed, 24 Jan 2024 04:26:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="oT7qZipJ" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05C60BE74; Wed, 24 Jan 2024 04:25:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070358; cv=none; b=BbcRbNPmQajuBKznUxcCJvaZFzgPaKU4yD30JSWI64Da0u8ubGqUjEFjd/t5v6TjaKBUkJVzZQvxZJSDKlY5SWpYwX0BXattvqtxQUQz9oxzwZU4Th7FLaxFbkXOwScMfkS2jAAvTCL8wfHcUKI4AAxlddGulMuobI0/zoZ/B4k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070358; c=relaxed/simple; bh=7ZWW+8qHDNDoQXk/hD+0GuH82VHOG4uW2aOnjSqYjh0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=NkBvf5dMOwmF5Piq4wbax5lLh7TkXTjck5YS9/g5F0gpLtHhfAVwdwThxTKZOTlabHwAM4Q1SNnhdpHJb+qC+6LojMuw4zLglxgtCOcCklvSiPS7XBZ14N4Jr1oQSzHCknVKITPAqMsk14NDgNCh912HCk8kcAbl0/AnKa/Ger0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=oT7qZipJ; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40O41Y6p020644; Wed, 24 Jan 2024 04:25:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=vtJobCucxjhRKCLo3qeZp87nG4VsdWwAweQjG0KAvcE =; b=oT7qZipJnO6R855AUZhdV5jx1Ga9e19xKIwIwgswa554p7uXTZl7kzpHK+g SC2CVP+5Wag0AO9lOtNS+hHZHDMi+NWgGndvyt794oMhEDYmw3anRJGwuzDtGn6v luCP4wOcL0yI5uJ+/BTbBDrnr0qHK+Bp/ggciLc5usUGbN5Z2fBGwAzTq+OdKuCX vJ79ys46QiqlOLEyKt6fnWWcMrza/Lrv8OB/DekwZBjoxasUmWbFIgP0y0yGg3xV V4cHyK/5wm5YdPgOu2IX4HFGviczTKF3UkJAheGk0jO+u3gH8/NrD9ipkMCTryfy zAPjYAUyfiXb41e1ZeJOC4CktOA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vtmmegqr6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:17 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40O4PGQe030413 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:16 GMT Received: from [169.254.0.1] (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 23 Jan 2024 20:25:16 -0800 From: Bjorn Andersson Date: Tue, 23 Jan 2024 20:25:16 -0800 Subject: [PATCH v3 2/8] clk: qcom: gdsc: Enable supply reglator in GPU GX handler Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240123-sa8295p-gpu-v3-2-d5b4474c8f33@quicinc.com> References: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> In-Reply-To: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Taniya Das , Johan Hovold CC: , , , , , , "Bjorn Andersson" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706070315; l=1360; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=7ZWW+8qHDNDoQXk/hD+0GuH82VHOG4uW2aOnjSqYjh0=; b=Ytv5aKLPjCbdZqOMtasS50BWZ4k4OZvAlWurSVggSYMUGJkOBm9KJN7NJA5JKc8RFi9JUo6MZ XQZHm7rvW8cCuTijAmK/fj5R/wI0SqYNTqq/OLsqJqOiRAHy+NNa5qg X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: WfxGJpnezKWqMoEl91iD932uD15vmf-I X-Proofpoint-ORIG-GUID: WfxGJpnezKWqMoEl91iD932uD15vmf-I X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-24_01,2024-01-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 mlxscore=0 adultscore=0 clxscore=1015 priorityscore=1501 spamscore=0 mlxlogscore=937 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401240029 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788944571548786442 X-GMAIL-MSGID: 1788944571548786442 The GX GDSC is modelled to aid the GMU in powering down the GPU in the event that the GPU crashes, so that it can be restarted again. But in the event that the power-domain is supplied through a dedicated regulator (in contrast to being a subdomin of another power-domain), something needs to turn that regulator on, both to make sure things are powered and to match the operation in gdsc_disable(). Reviewed-by: Konrad Dybcio Signed-off-by: Bjorn Andersson --- drivers/clk/qcom/gdsc.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/gdsc.c b/drivers/clk/qcom/gdsc.c index 5358e28122ab..e7a4068b9f39 100644 --- a/drivers/clk/qcom/gdsc.c +++ b/drivers/clk/qcom/gdsc.c @@ -557,7 +557,15 @@ void gdsc_unregister(struct gdsc_desc *desc) */ int gdsc_gx_do_nothing_enable(struct generic_pm_domain *domain) { - /* Do nothing but give genpd the impression that we were successful */ - return 0; + struct gdsc *sc = domain_to_gdsc(domain); + int ret = 0; + + /* Enable the parent supply, when controlled through the regulator framework. */ + if (sc->rsupply) + ret = regulator_enable(sc->rsupply); + + /* Do nothing with the GDSC itself */ + + return ret; } EXPORT_SYMBOL_GPL(gdsc_gx_do_nothing_enable); From patchwork Wed Jan 24 04:25:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 191338 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp770928dyi; Tue, 23 Jan 2024 20:28:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvO/IPEWXPRtSlZ8q/H4anRImcq7zv3K3Dw1wmmo4BU2opx2ilkGajhIoMbDIudHhPGOkW X-Received: by 2002:a05:6808:e86:b0:3bd:c181:d86e with SMTP id k6-20020a0568080e8600b003bdc181d86emr1096178oil.104.1706070529113; Tue, 23 Jan 2024 20:28:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706070529; cv=pass; d=google.com; s=arc-20160816; b=hxCxRnM1mMhP6q5ZqSGCqdZKctO/I1nvwl3dwl1y13vsvJ3/Ua1xM3132/R49HodX3 DLoH4uWC42MB4H/XtsZ3VgjkrLQ/zOQjpyPX4TAQX+qfUW/4i8y/pBPgg09nw7ZU/r/o pLshqs7Y42bgQ5obu6aiKMTD0O68+Wjk2+su5lTQr3bsFBTgj/kpAbyX/nbpYlWu1bch arpzjdP5bW3E7wYq//oaLCMmXnAJSJAnJsgAfhGUod/RJ9nLb17kwfHpZMRY0cbeNwtq Q6mNwHJRAAt58CMxraRTIMqeCR5n0wfmJNzra0T43UKo3A5x2fhylElUaQN5nvpS9UJ3 0D5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=ZMlir0J/FxMSwVAPbsGBDxQdkacIBRKuJrcSmKp/nJU=; fh=eiRFmcZ78uFp6XgR0ZTNmbTuotKvWKGdIs+XR9FfNYQ=; b=WThuPSmz2xMZtqhyCJviCY2ZsgqsfUxSISaBhFv0AWZK+7FddSI1Fgik4KaGaQTJg2 W9OGPrZU8eQe6t7NqWNffFEz2KzsLKtgGWBCNiaoEPAKXDwNzlRQrJKVwhmGRhg7H6Op EhJCiIsagTarIpanEXjXCwLuXPnP19f6IAjSV6jaxQRZh/AbdoDi6VB8xNsZevFq0aEn sXTuO90Qk0UhO9fIl78pZaldrAsux92DEvfMPUodCogO45qe//bnRYWuUXbNxZfkwH7J 2yM3/E1Udka5PjKfSNOXM+xz1ECFTJP4NQ0veL6uujVxvT2upniRmP5m2xznOStgd5lm dWJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hcAtaGu7; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36422-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36422-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o2-20020a17090a168200b0028ce622923esi10886092pja.103.2024.01.23.20.28.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 20:28:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36422-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hcAtaGu7; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36422-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36422-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EAA3428F915 for ; Wed, 24 Jan 2024 04:27:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 367A1175B1; Wed, 24 Jan 2024 04:25:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="hcAtaGu7" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2CA8BE5C; Wed, 24 Jan 2024 04:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070331; cv=none; b=fVbsxE+BvrFmsOkF4qf0BIlxDqYHaSN6BWokuxpWQmOWfVo0AKzO/RRdOAUfrlmOPPTAF7yBkmqJGIoqOB4fncj4pEm5LEKYBLNhd1OryTjSA6uV5hLcdKrsFkVv+9h7+iYWMXIO8vAya3Xo8/vHIZIhuh7r8bOE3z+oFmEssds= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070331; c=relaxed/simple; bh=XqG6SvzlCntF+3+Nx+hVAQgPWgQW/RVb0t9LmLHIY+4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=N71KdW/6p/EP2s/e/CrJQJcZ6v/uUHN3Lysf9oEuspjQT/ZOFJ+fV7JW+brVRHBGwvD+iEfMPgCSoBpJjl5QTcDZ277FpcB9dJ5GqUSLdov+gQQvUEhKqvliDx5xKBGcTCDpvyFYNk2XnlvIVsAxKHk+/MR64l4Us7Er7Uvyev8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=hcAtaGu7; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40O42p5b021218; Wed, 24 Jan 2024 04:25:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=ZMlir0J/FxMSwVAPbsGBDxQdkacIBRKuJrcSmKp/nJU =; b=hcAtaGu7xPMOdNsugv4yr65TR1Rk69wCBf6xIXiDJQtxodA5wYvF2dzaHhG G2gkmKdlxcVEF7QsrfSCtClw752yFPMhwVfgAiA/vwziuBchqTUOAOyfKZJhSuWb NpSxqDAmgTJ8BAEYVNfmOux2Dica+SEAoSr+YFDe3SVAYPR8JTZBQdK657vU9xD7 uR4gEW9Aira8VJQ8R++kK0w2AGbHckZzgrBz4/ucV/0ISQRa66CdjsXC3UfXqv+X xvdLfhJRGdUmuqZHchxKFVI9nRFMhDjHkvszQn2cN+7HIS4ISkd0zW3ul+IFZlY5 gaUMDybmTdh6mg2T11kwzSCUK7A== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vtmgxgr0a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:17 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40O4PHLf030418 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:17 GMT Received: from [169.254.0.1] (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 23 Jan 2024 20:25:16 -0800 From: Bjorn Andersson Date: Tue, 23 Jan 2024 20:25:17 -0800 Subject: [PATCH v3 3/8] clk: qcom: gpucc-sc8280xp: Add external supply for GX gdsc Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240123-sa8295p-gpu-v3-3-d5b4474c8f33@quicinc.com> References: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> In-Reply-To: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Taniya Das , Johan Hovold CC: , , , , , , "Bjorn Andersson" , Dmitry Baryshkov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706070315; l=958; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=XqG6SvzlCntF+3+Nx+hVAQgPWgQW/RVb0t9LmLHIY+4=; b=u4/AFoCpUVtO52XXos7nssA9jQBvn0vVle4wsFjFGjHCC0NTzxl66RkzwrPkTon6cz3cOp0Y/ QZ/I0BI386GBBVjOsWJSl22so0HkfV6iA+i3CPF8KTdPmUNwLqbShqM X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: GZO3L0p5uXCgM4yiguc_zP8Xyzo5xffP X-Proofpoint-GUID: GZO3L0p5uXCgM4yiguc_zP8Xyzo5xffP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-24_01,2024-01-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 malwarescore=0 bulkscore=0 phishscore=0 mlxlogscore=998 suspectscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401240029 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788944611068606199 X-GMAIL-MSGID: 1788944611068606199 On SA8295P and SA8540P the GFX rail is powered by a dedicated external regulator, instead of the rpmh-controlled "gfx.lvl". Define the "vdd-gfx" as the supply regulator for the GDSC, to cause the gdsc logic to look for, and control, this external power supply. Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Bjorn Andersson --- drivers/clk/qcom/gpucc-sc8280xp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/gpucc-sc8280xp.c b/drivers/clk/qcom/gpucc-sc8280xp.c index 8e147ee294ee..e2b3bc000c71 100644 --- a/drivers/clk/qcom/gpucc-sc8280xp.c +++ b/drivers/clk/qcom/gpucc-sc8280xp.c @@ -399,6 +399,7 @@ static struct gdsc gx_gdsc = { }, .pwrsts = PWRSTS_OFF_ON, .flags = CLAMP_IO | RETAIN_FF_ENABLE, + .supply = "vdd-gfx", }; static struct gdsc *gpu_cc_sc8280xp_gdscs[] = { From patchwork Wed Jan 24 04:25:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 191334 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp770454dyi; Tue, 23 Jan 2024 20:27:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMojoDpXSLnIjCfSf/KOZ/svxPFDxbfvccQmWW+F8nAAiKNATrthur9KLoP2ZSsr/p8yaL X-Received: by 2002:a05:651c:2117:b0:2cd:f914:bba7 with SMTP id a23-20020a05651c211700b002cdf914bba7mr594116ljq.34.1706070428050; Tue, 23 Jan 2024 20:27:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706070428; cv=pass; d=google.com; s=arc-20160816; b=e4W7tx7t8jpRyax/+itTVTw5B5H8k46bA6Gwr+Fw4rY2I+RSYZAY2ZQ4/csnVM8pSp VX7LFB7aXVHmdbBXNIfdFZ5umDQ2Win49lciLrqLDKiJVUB/6skmZE0zzJt7QCIYa94G /zFH+TnZv74EyNK0J8z7ePJl08bmhHDM6WilFhe4KjVYCUzHb8ZrvG3x4p0c+sVSyy/C 25GExM9zKmk7Jab0EL1S0QEn6EUK4TshDzAgBWjG9ckOkVB2Vdd5zWI/BLFSIq3M4xzq MwFUx6/aJ/Ani9nsXG0JwmQibAxI8v8ep9nBsJKJ3zN2wD6q0Qf0Rpbb6S0n7jsn2kud 5Y5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=jdTPCIWbZU1YuhLSVBXhk8j7wmEbnSsTEzOslXqBqWM=; fh=SIoHoSlZ2vdBGsqSZidrTdMh1VkA2zGu4CyO3VmffEo=; b=vi9kS2qSCLp3s8AKYSr+E9/ACNOrJfvcgOnEJuZKhAEVeRytT2/kI2bRWejPJEV3bx UTRpW4/3LfzpJqbJvGE7VjP+taLh0CJv03+6tsuQdsvdd5fPpoKQop+2B7I1y4kKFLHx lgkF545C+PjRG0VHl5GnmPjAKhO6f8jamJArg/31pyHWWaEkK5Y0EwCCBdPONZWm2WO1 nXTxWjIeYx7s8wFhDdey0UfsFES3dSqw5KDzvZj9zH6hJVBbeYLnMATWcIOyR+cn9X7/ fGXR/QgC7HKKECCmxJ4tVHkFjiA0nDXv2ptnE5LO5bcfZ6rlb4v1cNAPd86/OsIrynG+ p6rQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=klP51qzy; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36418-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36418-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d30-20020a50cd5e000000b0055c7ad9f290si1643776edj.157.2024.01.23.20.27.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 20:27:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36418-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=klP51qzy; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36418-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36418-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A62B41F2D69D for ; Wed, 24 Jan 2024 04:27:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51E2F1755A; Wed, 24 Jan 2024 04:25:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="klP51qzy" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6B64BE45; Wed, 24 Jan 2024 04:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070330; cv=none; b=NzRSmEv0KwOhUlRsxMxBb4xP33KGIh73pB2/LJ1ikIfTT+TAdZIGzEMWBWDNf6KbfPAMqStIFElKqd3SX+Y1sXaKtJqRPvRP7nU9zrgI4922Q8kujDB7IyD60e2Ui1tflGbYArq0A98COSMfnaSAoHTThZXBrvqSflXYcAviK+o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070330; c=relaxed/simple; bh=wB7NJGtRNbfW5rgrFcxjSLvoTR2wr8u6sCO82j3nEyw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=Cdt66CqtERD3IZjWf/5mjSwZXe8boZ2Nl/ElHNAy4fdVl6zZwZ++fNvsYG+v3syWyk1v/UnVB0dEmdE1nJH75D5e/+JNhlWU9z6z3Kxz9bbvnaot/BSx4zeDtHs5I1QHvqfY0J4SWHzewkyjqEuPnEmO/c4rpegJaRcp7uFwptk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=klP51qzy; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40O42qx4018961; Wed, 24 Jan 2024 04:25:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=jdTPCIWbZU1YuhLSVBXhk8j7wmEbnSsTEzOslXqBqWM =; b=klP51qzyHbdw9sE9X4nej4TtMYjmODpiz6l+pffim0dLYPOO3AzF408ON3x ZtyDhABEgNBX1KjlPBrJAFX0xdBgRb11ATEIXZYsjFS1wMY+m/Q/uMkDSMnnGxI3 r46a4cIeKDodx/FhrTljVCjPVw81WTMri1Wvs+brHE5ixMxkUtF0yIAOcw4yU0ED FzrmdtwhTzWdKHUqKFxcbPiVJyO/DJsl9AJE/UBRHZ9Cw6CfDURUo2Om4GC3Vp48 VwaLdpEz1dPuMrAw3OmlbuVL13OwfO96CTFyJgnJZX2jgAgmsUpkvWsuc/e5JAoA RkPLpIubaSNnelcl6m6yL2wdr2Q== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vtmh00qyf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:18 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40O4PHcU019380 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:17 GMT Received: from [169.254.0.1] (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 23 Jan 2024 20:25:17 -0800 From: Bjorn Andersson Date: Tue, 23 Jan 2024 20:25:18 -0800 Subject: [PATCH v3 4/8] soc: qcom: rpmhpd: Drop SA8540P gfx.lvl Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240123-sa8295p-gpu-v3-4-d5b4474c8f33@quicinc.com> References: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> In-Reply-To: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Taniya Das , Johan Hovold CC: , , , , , , "Bjorn Andersson" , Dmitry Baryshkov , Ulf Hansson X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706070315; l=1039; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=wB7NJGtRNbfW5rgrFcxjSLvoTR2wr8u6sCO82j3nEyw=; b=pbspEtXfMx6Glo0UBSVW81jxBaPcipmRrcSR3hzXBknV2GK4jWSoPqOZHqm4qeiG6jFV97as2 emEsZfM3o9gAmkVr2FS8gm8OFpT9Qom6pOIO5cVYB7vbG8Yq3Kry9CH X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 7KLjP4FwntSqCHYzmHvA00SI36G_GEdJ X-Proofpoint-ORIG-GUID: 7KLjP4FwntSqCHYzmHvA00SI36G_GEdJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-24_01,2024-01-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 mlxlogscore=975 priorityscore=1501 lowpriorityscore=0 bulkscore=0 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401240029 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788944504790875828 X-GMAIL-MSGID: 1788944504790875828 On SA8295P and SA8540P gfx.lvl is not provdied by rpmh, but rather is handled by an external regulator (max20411). Drop gfx.lvl from the list of power-domains exposed on this platform. Fixes: f68f1cb3437d ("soc: qcom: rpmhpd: add sc8280xp & sa8540p rpmh power-domains") Reviewed-by: Dmitry Baryshkov Acked-by: Ulf Hansson Reviewed-by: Konrad Dybcio Signed-off-by: Bjorn Andersson --- drivers/pmdomain/qcom/rpmhpd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pmdomain/qcom/rpmhpd.c b/drivers/pmdomain/qcom/rpmhpd.c index 3078896b1300..27a73ff72614 100644 --- a/drivers/pmdomain/qcom/rpmhpd.c +++ b/drivers/pmdomain/qcom/rpmhpd.c @@ -217,7 +217,6 @@ static struct rpmhpd *sa8540p_rpmhpds[] = { [SC8280XP_CX] = &cx, [SC8280XP_CX_AO] = &cx_ao, [SC8280XP_EBI] = &ebi, - [SC8280XP_GFX] = &gfx, [SC8280XP_LCX] = &lcx, [SC8280XP_LMX] = &lmx, [SC8280XP_MMCX] = &mmcx, From patchwork Wed Jan 24 04:25:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 191335 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp770589dyi; Tue, 23 Jan 2024 20:27:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvei9SK0h5PC9U+jiJS9zXJHW5N7GX92ehw9FtK2ZVaJuCVsak1+aGr2uYKGghtOY8xaZg X-Received: by 2002:ac8:7f8a:0:b0:42a:2b1f:bb2b with SMTP id z10-20020ac87f8a000000b0042a2b1fbb2bmr2089176qtj.116.1706070452807; Tue, 23 Jan 2024 20:27:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706070452; cv=pass; d=google.com; s=arc-20160816; b=T+zGVLCkbOc8LiG8y/1AgCuG9Dr/tUyLeY1zqZDfsPaTgsJcLILrrioANU/C8lZGn5 y1DyuoHQOpZpOM1SOM6/wbEnnE9xBK52rJJQfjaNbs4rHYrYsU17Ty1sU0ZSQ5gKP1Wt ganuogN+L31mmwlLJBUacLHEIlut1dk5eADhk2ReAGWkG8RaaidFiB9vWsUhqItY3DzV pFZLJ6FAcxsDuFzH6eg0PaH4dcuyHl8JYi7zPPwkRfL80MPbakJ/yfGWeFzWZm1UK492 AQAR24PEjtTyvJIpe2EgWH+5Qd5haQW85hg2MuGk8VyCYZDgztTh/MPtB25BMH6QMh98 Wmhg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Guz8yeo3QmRlknBvsUNYp41mzoUQ4HdU0LuZ2ETVe5U=; fh=eiRFmcZ78uFp6XgR0ZTNmbTuotKvWKGdIs+XR9FfNYQ=; b=PDQwDYsTsorJZtv7Lz1n/uXfCvmfVqhPHlPIg0H7CW9DBERhm+GJMP7o05s+1OzxIQ BqvNamTTincMcmURzO1fheKNBOFAcrB/ONUSJd9yXNeBI30wNT5kzPClVMattWcLZ4/9 Lpng/LZOkuQEFdeN483W+1DfyzLcnSo53sCObiMdRhC5yiNbUrWIFl1JdEmWOX2SVLLz Eg3zuZaiF0VSRhGzOflVsyXbaBF0d73VwAawP6nWR6ptOlrM/8TOKgwNSooWXvepP3uy KKqlcM5UKcEG/+Upb1HbNKvoXzbFdwiYoGE/8E8yb5YPilOcICcsxHY/C2iT07g2re+f /fGg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=gPEG00N7; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36421-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36421-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p14-20020a05622a13ce00b0042a3d046c39si6424614qtk.61.2024.01.23.20.27.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 20:27:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36421-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=gPEG00N7; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36421-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36421-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 97CD01C21795 for ; Wed, 24 Jan 2024 04:27:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2FF6F175AE; Wed, 24 Jan 2024 04:25:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="gPEG00N7" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A819FBE59; Wed, 24 Jan 2024 04:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070331; cv=none; b=Yhr7THziOhgnXSzgxBZN61k1txEGlNcgvzA01xZc4BvJ7XGjINbOC7ijtbP8V47RJD0PDXZLs6d3ErX5c4HS70ys3eGokmrwZGBUTwfvQ3LLLjcF9X07Nn0oOUD/lS5M2koB2T9X8QUM493EIwTABIM38o6IpXfupvbvF3a+gpM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070331; c=relaxed/simple; bh=LmGmDzI8fc2erGli/opzJCTKeAu3YbTeUxNqQMXGvfo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=cWQWF8sC7ifTyu+fo0ePZEZHMOCBkjuOIt4/rezLKDJMNpIwTE9xHnU41/1s7GNvOeBrY+uJxj06I5KZ2FMaiez6y86CZ/DxK8plpONC4TEHoT/IYUyHKgGZ3aAFrBykjb3NRzh7OHpcqylA8S37y6Xt69yfv6pw7InhogwT8Gs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=gPEG00N7; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40O42Nfa021124; Wed, 24 Jan 2024 04:25:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=Guz8yeo3QmRlknBvsUNYp41mzoUQ4HdU0LuZ2ETVe5U =; b=gPEG00N7wIWKW6Sfl+D9n3uMbZgs5Y12IddcDWSY4ytfo//z+oVS2tra19S bnQzKph+3s8bCaVT2wq1HDcAr8urOrK6gmM9NLf5pJOPkXaGDgWdwEJQmHX7H2XE M0f/rQ6Q6CAawGrlv0vuH39RWP8a+fnpTZPRl9+ZtfcDYpTxhVkqk+ZAR3O7EJ+5 TSaUXme3izCMI6opdWYikoZTEqP6Jb3Asiy/XEjwQh/nEkUcb8MpY4Gl2JcDg/D+ cKmuJs0FXtUfJgyEuQ6EuUcGYoFqbcnJjAMf1eyp3xrO9/SYTvj6oYj6IOsJmXWb Iqk83U3zot5E5u7gLs7dX7ijNKQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vtmmegqr7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:18 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40O4PHAG025228 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:17 GMT Received: from [169.254.0.1] (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 23 Jan 2024 20:25:17 -0800 From: Bjorn Andersson Date: Tue, 23 Jan 2024 20:25:19 -0800 Subject: [PATCH v3 5/8] arm64: dts: qcom: sa8540p: Drop gfx.lvl as power-domain for gpucc Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240123-sa8295p-gpu-v3-5-d5b4474c8f33@quicinc.com> References: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> In-Reply-To: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Taniya Das , Johan Hovold CC: , , , , , , "Bjorn Andersson" , Dmitry Baryshkov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706070315; l=931; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=LmGmDzI8fc2erGli/opzJCTKeAu3YbTeUxNqQMXGvfo=; b=BfvoJNL6cvWVyuJCudEeuBdMi2geWqR7iald+UkHhPHWqdwwWfDNGNxGngb1oiXrxH6ExzpUj HdKiVXuLBMsCbIFbEtgXBAmrgq5a2gRsJjfK7cxyQG09zksi4Zyzabz X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: HOkLoKnk-6HXQYIq6bvx1YEY5F_tmoo8 X-Proofpoint-ORIG-GUID: HOkLoKnk-6HXQYIq6bvx1YEY5F_tmoo8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-24_01,2024-01-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 mlxscore=0 adultscore=0 clxscore=1015 priorityscore=1501 spamscore=0 mlxlogscore=832 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401240029 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788944531082548017 X-GMAIL-MSGID: 1788944531082548017 The SA8295P and SA8540P uses an external regulator (max20411), and gfx.lvl is not provided by rpmh. Drop the power-domains property of the gpucc node to reflect this. Fixes: eec51ab2fd6f ("arm64: dts: qcom: sc8280xp: Add GPU related nodes") Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sa8540p.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8540p.dtsi b/arch/arm64/boot/dts/qcom/sa8540p.dtsi index 96b2c59ad02b..23888029cc11 100644 --- a/arch/arm64/boot/dts/qcom/sa8540p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8540p.dtsi @@ -168,6 +168,9 @@ opp-2592000000 { }; &gpucc { + /* SA8295P and SA8540P doesn't provide gfx.lvl */ + /delete-property/ power-domains; + status = "disabled"; }; From patchwork Wed Jan 24 04:25:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 191336 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp770613dyi; Tue, 23 Jan 2024 20:27:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvZ71ZAM6ml0Ocd2PWFfYxqGQGFWOb/A6XIKdmTv8bsn6PVxEA5sAEHM2PRCjDTezfjmvJ X-Received: by 2002:a05:6808:ece:b0:3bd:a476:31e2 with SMTP id q14-20020a0568080ece00b003bda47631e2mr1136171oiv.46.1706070457740; Tue, 23 Jan 2024 20:27:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706070457; cv=pass; d=google.com; s=arc-20160816; b=VN/82CobKH5TR5NCHvnFoauyUxsq6R1GGFvXoaYYzXtbyy+HbqQzVv8ZG/3stt+GsW 15pH59DPz4RHGjJcTsbDCeX0fAWZUeBuYTa/tIdmljwVUZwcvQ6JEkuDrgSXuRFiXAof Sf8qJ5L+EEmrIcW6WcRKt1r90dOtm0iZcGxzlkLDqCwbSgeijXJe+24shsMLDG0BEDR9 yZCTHy0zh5VYiXoTeBvC7n+hvoR+mvKefQMHph/Oz3nUeTgIEiuZGv4mnO6A4QA4xkrS jlCXkaDZSKZRUIQ4Lm7/+Stb0sqtKZiQqiaZnQOcQifR31IGgcFFHcLpcBfDk7lA5QZY NNFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=0j5pGIwLhtD91lN2lXVh5PkLfTuL6A7rRDx5ANvPmoo=; fh=YhIjU9mCg6jinHK4PDsp3Qp4nAzYvAEeqnxyEcazc4M=; b=PsYcDopJg7/0jubLCYoN8Ub8XwlxL6G2T7tTexj4sO2uB/yZPfWF2wz3gGqg+IyRxe hZQoMCVgvrTKCwzVkxcxltYjSCcKM3YeOIQzvhxiQ19ETOL1azXSCgrqn7oiwXqaQ/um u8eL+idfN4zA8JYvrtcxnHs6o5GrAgJx967KhVNzzKi8hENWqEVidSapn5527CdTqebp 4b6k6e/ce6lTaFirJN5Fnz2AdAevUtTWMIDIPRvvKyBuGb8rw2yfBwCw/40nJXMQ3hed wlBOLrv5RPqOnlbEYGEuwqrUcr10KNQomS6w1gUdlbvS4PO2CIgY6D3I6WSQREijG+gZ Q85A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PXkI2oux; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36423-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36423-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c8-20020a05622a024800b0042a4a2df8d2si3914265qtx.204.2024.01.23.20.27.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 20:27:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36423-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PXkI2oux; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36423-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36423-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 851B11C20DD4 for ; Wed, 24 Jan 2024 04:27:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2EA4175BF; Wed, 24 Jan 2024 04:25:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="PXkI2oux" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C94CD514; Wed, 24 Jan 2024 04:25:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070331; cv=none; b=sCqAkWIcvldIkB6XY0pVfw4V184E3/ay3thGEFGREPEPwRYNP2+ICYHxir6k3oqEzLa0+lPh1txhck3bnlLWvI4YqFKEOfw9p5WYX+OeboZ6fQftNa+Dq/VgLU9nhpwRNW1jI/ITWmb3ctjUaXV/zZocrbjy4dWtcmEx3c8x32s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070331; c=relaxed/simple; bh=cpwN3XiXaCX41NCkEGpr7RaCSMM8HTlY6C38ej5UOJA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=GELRHEJQ4x7tGzneH1j7I1PRR05p2CEO4cuDF9EkDitkb1bcVHwZiYGkfxXJ0rVSEuuCnFAji3kJR167hsh2gku4EyMlg6auZQcUwsLABgFPgVOSiZU1+QcZeyCFOchc7Oz8aB5+/qQIRf8dKl+M48Wdg0KCNOqJUfYWLUZXxHI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=PXkI2oux; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40O43bJQ005410; Wed, 24 Jan 2024 04:25:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=0j5pGIwLhtD91lN2lXVh5PkLfTuL6A7rRDx5ANvPmoo =; b=PXkI2ouxom7XSSUtUd6SwTyTIz5dtUjYfO87WmW+kmaUlcFGS15o4j5qALU 1G46CR0MmJ/p3sZsEAgIbyFrCYpySJfez5v/4w6NO1vtBwm25zB7LMsxRtST5hau Dsvglx49YFebkCFerKMpXqthLkD82QtLuY1b6lrjSPnVOQlqyIKw3qvlAlEYVhJY 2g6Kxme/pxrs1zVgIJ5hH4CQ9OUSpJekW9jnUkJd+EB029uSI8cQ/TdVJfrbobpr JzxtobD0X2pAYrJV0tq8Pz6rqA+eOa07LywM6mpqDF5xqSvHkeCeCdFI9UsWR10O BgZeh56hwtLg6FJCRepphYFufpg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vtmgwgr8a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:18 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40O4PIKg025235 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:18 GMT Received: from [169.254.0.1] (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 23 Jan 2024 20:25:17 -0800 From: Bjorn Andersson Date: Tue, 23 Jan 2024 20:25:20 -0800 Subject: [PATCH v3 6/8] arm64: dts: qcom: sa8295p-adp: add max20411 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240123-sa8295p-gpu-v3-6-d5b4474c8f33@quicinc.com> References: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> In-Reply-To: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Taniya Das , Johan Hovold CC: , , , , , , "Bjorn Andersson" , Bjorn Andersson X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706070315; l=1705; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=9G8OC71Bo5Qk4jp3jd+PoCQTayjd12YeJaxENqcceCg=; b=GJInQD+avu/NXm0xU5XUi6bCSoTs0yX4ds4Wa8gOz9sRj/RTk9vsQ9Z65jimgaL8nUkN0CZLJ Qg9XaItoBvwBG2VY+hlhnZSPZsp7neD97ufUe9JskKfZ5ZX7xGW5FwM X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: tey7XA4f3ynTOIDyTt0qY68rfWfWK0_h X-Proofpoint-ORIG-GUID: tey7XA4f3ynTOIDyTt0qY68rfWfWK0_h X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-24_01,2024-01-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 impostorscore=0 spamscore=0 mlxscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1015 mlxlogscore=963 phishscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401240029 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788944536181630170 X-GMAIL-MSGID: 1788944536181630170 From: Bjorn Andersson The SA8295P ADP has a MAX20411 LDO regulator on I2C 12, supplying the VDD_GFX pads. Enable the bus and add the maxim,max20411 device on the bus. Signed-off-by: Bjorn Andersson Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts index fd253942e5e5..bd0962f39fc5 100644 --- a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts +++ b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts @@ -266,6 +266,26 @@ &dispcc1 { status = "okay"; }; +&i2c12 { + pinctrl-0 = <&qup1_i2c4_state>; + pinctrl-names = "default"; + + status = "okay"; + + vdd_gfx: regulator@39 { + compatible = "maxim,max20411"; + reg = <0x39>; + + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + + enable-gpios = <&pmm8540a_gpios 2 GPIO_ACTIVE_HIGH>; + + pinctrl-0 = <&max20411_en>; + pinctrl-names = "default"; + }; +}; + &mdss0 { status = "okay"; }; @@ -476,6 +496,10 @@ &pcie4_phy { status = "okay"; }; +&qup1 { + status = "okay"; +}; + &qup2 { status = "okay"; }; @@ -636,6 +660,14 @@ &xo_board_clk { /* PINCTRL */ +&pmm8540a_gpios { + max20411_en: max20411-en-state { + pins = "gpio2"; + function = "normal"; + output-enable; + }; +}; + &tlmm { pcie2a_default: pcie2a-default-state { clkreq-n-pins { @@ -728,4 +760,11 @@ wake-n-pins { bias-pull-up; }; }; + + qup1_i2c4_state: qup1-i2c4-state { + pins = "gpio0", "gpio1"; + function = "qup12"; + drive-strength = <2>; + bias-pull-up; + }; }; From patchwork Wed Jan 24 04:25:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 191333 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp770449dyi; Tue, 23 Jan 2024 20:27:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6Ta1F7t9iPIm03PrFhP57auP6ikqvMZvO0vQsIoiLTditi4IyXjd9+gu6GK9MAHGaqjm9 X-Received: by 2002:aca:f11:0:b0:3bd:74ee:db14 with SMTP id 17-20020aca0f11000000b003bd74eedb14mr834878oip.86.1706070427439; Tue, 23 Jan 2024 20:27:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706070427; cv=pass; d=google.com; s=arc-20160816; b=SpgqVHX6K9XEEfgdCHyycYcILn3QrGXkNwHWbBGzZ9wgzp/mzdjeW+Z3whpqmVQ9+m 9tSxtt4CUWRg4vtdxqaQwgMpYkddmiMDXF34wm5iQdXSpiM3fdjO1RTGVfVn3P/rdz5Z DCHS4cVHSCAI8uvYKRlGjKW/XMMKbceWQ9cwiUTZXf7FAsWLyivv5VJhXVCInwUGOTHq WAtb6RhVqL+bw+Vz7aitbJOdWvaWJAUCjIRUT78hu/Ti5HF/3YDTaR9x4PRs0jrXYpjN /c1A84EL2EB37ydUSv2fbBo9Ht0HhbBlSScY4EI6WYfOdMLZ8MZGOjzIEl7yX8x2MspD 7cDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=TOnkT3GPqAZyv4K107NWfhQ6gHvUulqo+58RTD/8Iho=; fh=eiRFmcZ78uFp6XgR0ZTNmbTuotKvWKGdIs+XR9FfNYQ=; b=lmumeYSvSdKG4lJ7/jeyzjXQtOrT2KNBIZWDY/e1D7nh0kTGgIfweTD2q18ya9/1Xa KMcf+nhleMieYTIwxSjLLl9VSn248c/XMAYw+Fb0RDaCNH9D9TkIVvOooSLs6JmX9mJx YLuo229NqsnPeqNqiMXWotTO3QmITTsBNbW3oT7OecTPD/8Rtsfv6i3802Uaa+m7M8rc fNGqeJtnPPW+K84Tc2ab5hj3eYJeYVL97PRlmYUH6PyAQW2u8ZlzIjYHOJBL0z6OXeum x5egdVtPpYV9KCxtXqkaY7QRm9sToIkKaaEGmrhg6gsljyaD2ZW+hFpq89qiXPWgyLeT Qbrw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JRIc9g+J; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36419-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36419-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x26-20020a0cb21a000000b0067a90d3023esi9974626qvd.279.2024.01.23.20.27.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 20:27:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36419-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JRIc9g+J; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36419-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36419-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3B8381C216EC for ; Wed, 24 Jan 2024 04:27:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51FB91755B; Wed, 24 Jan 2024 04:25:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="JRIc9g+J" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B430BBE61; Wed, 24 Jan 2024 04:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070330; cv=none; b=byG8xyvPB6UtX5oafPBYhwcZzIWy6yXtfnJ5xfvB1Wo4DIMhKOCTzQTVyeultLt8DUAX8yubRDH+mdcXu0DPwhZ56RJLNjc55kVPUxsFoQPFh4q40b385IptMH4yQxpoiOEcENUtRJaqpSHpJGSLEoL533gr3qDBgwAHd6tpR08= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070330; c=relaxed/simple; bh=Nl9b9TRKAUzcyVeNR/dhN73aiBlrX2553FEf70SUp2E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=XOYNCYk4NXpUKHOjr82ZBFn3owrKXVN76TbHwkm/ZfeewN94QZDjHPT9cmg8058ylPP44dczm3NqE9FIUqBSlP3ZLmHKWOO8KPzcML593VDA00aA42I5PcbNOJVrNDswnIds+J60HcIUSi4dA1mNBn50LbBcXEQxGxSJAybPNTQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=JRIc9g+J; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40O42CNT010773; Wed, 24 Jan 2024 04:25:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=TOnkT3GPqAZyv4K107NWfhQ6gHvUulqo+58RTD/8Iho =; b=JRIc9g+Jdyye9twU0oP3djCRzqcoeXeRV2CBxOVlm3sLIHYmPD+c2TpMIdN pDB0Iki3I0flJGuvdiepmW4wpLLAE6g+XtjQko1W+XCFEEYQOd9gvJaKV6b7VGtz PIMvRBlXBBVDl0Z37jZdSvif0pRnCds9GHMz750ayqb8cg2Ce/dAcg/gQHnZ1z0o JXmE2PpY6JRzXWMysKH5g2D/1TXrQJPEa+OECuuDs4u4wiHMDOZS2w7RFVC5GMi9 Y/yNFwuaanIS9bLAkwSQ4cOGLOcUYkoQm90wZthPYNdFQxaA9OYtLeGUm+0CsDyz nVyLthBKM+0RElRH8O/W1NAl8Mw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vtmh0rqqm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:19 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40O4PI4F025240 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:18 GMT Received: from [169.254.0.1] (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 23 Jan 2024 20:25:18 -0800 From: Bjorn Andersson Date: Tue, 23 Jan 2024 20:25:21 -0800 Subject: [PATCH v3 7/8] arm64: dts: qcom: sa8295p-adp: Enable GPU Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240123-sa8295p-gpu-v3-7-d5b4474c8f33@quicinc.com> References: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> In-Reply-To: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Taniya Das , Johan Hovold CC: , , , , , , "Bjorn Andersson" , Dmitry Baryshkov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706070316; l=1267; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=Nl9b9TRKAUzcyVeNR/dhN73aiBlrX2553FEf70SUp2E=; b=8L8LGvvXrTZprWKujHEYg6mHQuHThh2WooIrUUQOkTF7759b/0mQ0BGq6BmzIBNkG71z1DgHy XE5HLHTPVlUCEhjIHV1syG3LqQ/VOa59rI8aGTt5A7+lMa0V2aTaEYe X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: jUfiQa7axnCpgRJllbjeiDVc7fGpbxmo X-Proofpoint-ORIG-GUID: jUfiQa7axnCpgRJllbjeiDVc7fGpbxmo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-24_01,2024-01-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=870 adultscore=0 mlxscore=0 clxscore=1015 bulkscore=0 malwarescore=0 impostorscore=0 suspectscore=0 phishscore=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401240029 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788944504208860813 X-GMAIL-MSGID: 1788944504208860813 With the necessary support in place for supplying VDD_GFX from the MAX20411 regulator, enable the GPU clock controller, GMU, Adreno SMMU and the GPU on the SA8295P ADP. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts index bd0962f39fc5..78e933c42c31 100644 --- a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts +++ b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts @@ -108,6 +108,13 @@ edp3_connector_in: endpoint { }; }; }; + + reserved-memory { + gpu_mem: gpu-mem@8bf00000 { + reg = <0 0x8bf00000 0 0x2000>; + no-map; + }; + }; }; &apps_rsc { @@ -286,6 +293,28 @@ vdd_gfx: regulator@39 { }; }; +&gpucc { + vdd-gfx-supply = <&vdd_gfx>; + status = "okay"; +}; + +&gmu { + status = "okay"; +}; + +&gpu { + status = "okay"; + + zap-shader { + memory-region = <&gpu_mem>; + firmware-name = "qcom/sa8295p/a690_zap.mbn"; + }; +}; + +&gpu_smmu { + status = "okay"; +}; + &mdss0 { status = "okay"; }; From patchwork Wed Jan 24 04:25:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 191339 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp771166dyi; Tue, 23 Jan 2024 20:29:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3+nS7L3YTnx+pb9Cdp6vZjrItcjDEuv8zsIzT6oJDMJcoqansIEUO64OgN9ANn7Ey1L7L X-Received: by 2002:a05:6a21:32a4:b0:19a:788a:1c6a with SMTP id yt36-20020a056a2132a400b0019a788a1c6amr422658pzb.79.1706070578792; Tue, 23 Jan 2024 20:29:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706070578; cv=pass; d=google.com; s=arc-20160816; b=irJFiBGlv280JK/1D8048jrgkXbLSaNMBluSU3yrIBj5YEQA+6ZLLpHo8HPeg30gxB 2Q5afNE5q/qf0ouw4GpEjO6TyUU3CuC2qU9+5bTl6x1O4E9QgTUTphvwXPlpWRU06DJZ y7YIs1bVVpW9fl067Cnt9bqW5bcroHl9PX+Hm9s4+xauYijGShoVqwDiaDVl0fzzf4X/ OIjSIqYAVxWr0eQLRWAgSUbbgwhyEhdlNZzrBdI023JjeyBW6exF+ZzxGFUbDWHU5Y6/ PXbQ11VW0EXuj3/9ioQZei7qyRH1o7TgeAtWPFma284XCY/vvt+t0MxeSG2I/BBEmfN3 xUqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=E7qU4RTgqiuopiFft0zFpy55mYuIKEDnGZ5FSl72Fcc=; fh=rlJ5pplLbWuDJy2OkSyjKcJh6lMTudr/nTxAFpexnCw=; b=gVQmmoEi5bgDlU/BubsK4fCSNs+palJrlZLJ9LTMwjU1n8N8hnTsuOoUGHMj60A/KS EMk9YBnK8zYlCMPpsooiNXYT86EBkbmGfw5u3GZ/fIMJcqn+1gDU3oNtp93s4Xlny8Iz lAx1glk/18AtzNuyDecRvBjVPxoXmpAVKAoHs0+xTHPZyjnsCKTpXkpnJ5u5tOnnaJ4k Zwk7r/OiAQnvDl5o4Rz2+0MrVjV9Fzfu6yaZRgpiJRlW2EQ3yuMGCDrg2m2LKX86Bz+o se3tT0ZPSsnTP5rUnDkthU3LGrQELOu0OFtO1XjG8g+ENGJf03trKXO6zjOQKoHUtVOC wZyA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Z9XxlLLR; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36420-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36420-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id cz21-20020aa79315000000b006d9b870b845si13407615pfb.341.2024.01.23.20.29.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 20:29:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36420-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Z9XxlLLR; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-36420-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36420-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4EF71B29F5C for ; Wed, 24 Jan 2024 04:27:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51D6717559; Wed, 24 Jan 2024 04:25:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Z9XxlLLR" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0E27BE6C; Wed, 24 Jan 2024 04:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070330; cv=none; b=Mwt/8Rg5GbcGr2RA/wnmpvSVTWdirdv5Pu/PLv2GqtuoMarR0MqVI4SbLH03gldJz3GTrz+MlLwvnPhl3ec1tfbRuo4Y/hVtxb+5Yy/6W2773xWt4jXFwlxLEz+jR9nCCbe+j5ccvQSjcSA6JcJK0lbhBswZZyJILh8xZ2o/RGE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706070330; c=relaxed/simple; bh=+O+HtBL22at3YsSblQW0xAc9Tt+RUy/3+XcfmdYZC1M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=CY9IcVGu6MCk2IUTV2OsDmx8fcKewYIKel+g7HSzcYePEFM9LM1Eg4a5ISGeikdXGcIDDxHIofCT73QI7nbEmuij/406dqEJe0krm7muUwff6vjr6OlRG7jnuGObrOe5sQZRgoTBaCzj0hlAWpJcnKLv2LwEyrHfGbM8vXF1a8g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Z9XxlLLR; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40O42NMu018151; Wed, 24 Jan 2024 04:25:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=E7qU4RTgqiuopiFft0zFpy55mYuIKEDnGZ5FSl72Fcc =; b=Z9XxlLLR+FeKEYlNj6YQLjvTr/h2Wn8PZpi4NvC9LhXn45fhX7nyt2iQXXY 7PTo36z6zk1BBx4p4Xblo0jbN5+qfem4TerjZVyHtZhvs3NPzX73RUXwoepoZ960 nQwyMY311i4ma2KLL75kdzpy7oPO03hWmuIjxquRDArW5VYKwfqX2eaYYddfHWB9 LUq6PjCJYWxv1cSDYkIw1Z+Q28v0Tp74TtkcS/CkWlW91jhD7m6eMwnsr5lpZhvq Qwd+C/B7SFbISTCx4DI59YjTyS+4G23/+9a7wT6KYI6KSuAHQYt14ScKv/vJs7BX snffJ2zeKiTEbQ0jqxL0udPZUJQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vtmh00qyg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:19 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40O4PIw3018041 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 04:25:18 GMT Received: from [169.254.0.1] (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 23 Jan 2024 20:25:18 -0800 From: Bjorn Andersson Date: Tue, 23 Jan 2024 20:25:22 -0800 Subject: [PATCH v3 8/8] arm64: defconfig: Enable MAX20411 regulator driver Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240123-sa8295p-gpu-v3-8-d5b4474c8f33@quicinc.com> References: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> In-Reply-To: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Taniya Das , Johan Hovold CC: , , , , , , "Bjorn Andersson" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706070316; l=670; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=+O+HtBL22at3YsSblQW0xAc9Tt+RUy/3+XcfmdYZC1M=; b=TKGOOgDhPgvUuFrx5x5odiWvUYTr2MKyAKagY8QHXgcY7PvszFwCefiScCrgDyBinZBIGl0/R fYF6x0cwPzHACERIbVE+YqJQvQz484ax++Hvd2z404m/amCs3FO5FFb X-Developer-Key: i=quic_bjorande@quicinc.com; a=ed25519; pk=VkhObtljigy9k0ZUIE1Mvr0Y+E1dgBEH9WoLQnUtbIM= X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: J9zqTQ2g_oxE1_kJ3Hk_AtmFvss83mgQ X-Proofpoint-ORIG-GUID: J9zqTQ2g_oxE1_kJ3Hk_AtmFvss83mgQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-24_01,2024-01-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 mlxlogscore=769 priorityscore=1501 lowpriorityscore=0 bulkscore=0 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401240029 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788944663301110096 X-GMAIL-MSGID: 1788944663301110096 The Qualcomm SA8295P ADP board uses a max20411 to power the GPU subsystem. Signed-off-by: Bjorn Andersson Reviewed-by: Konrad Dybcio --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index e6cf3e5d63c3..43cd31f30fd2 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -752,6 +752,7 @@ CONFIG_REGULATOR_HI6421V530=y CONFIG_REGULATOR_HI655X=y CONFIG_REGULATOR_MAX77620=y CONFIG_REGULATOR_MAX8973=y +CONFIG_REGULATOR_MAX20411=m CONFIG_REGULATOR_MP8859=y CONFIG_REGULATOR_MT6315=m CONFIG_REGULATOR_MT6357=y