From patchwork Thu Jan 25 21:05:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 192304 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp255442dyb; Thu, 25 Jan 2024 13:08:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IExVrTzqct6XnNJNl+9m4Dnpd/imBT3XamP8FSR42L6bmeTZvLzjllEZmmWV0BKzaikyXdC X-Received: by 2002:ad4:5bcf:0:b0:686:acff:896a with SMTP id t15-20020ad45bcf000000b00686acff896amr282237qvt.15.1706216892681; Thu, 25 Jan 2024 13:08:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706216892; cv=pass; d=google.com; s=arc-20160816; b=nZedVD75+hYDXVe/yGHwAQCf2V6oHczptp7RcB5B7YBDDTYAXbF3yEfdGT9yvnD1C6 OGSzEOyM4iVSQF3TtvJDmQn1fpvx0BBU/zqEVUNsUS+i9jF1ew1JkLgicXes9+8Kn8YU gaoMSKdsfuLoIX0V43bzY4q8J5l8vsQq8gkH0ll1j2CS9s/Waix5K3aOpxdasfAoAi1t R1DNedTgPO9qCKSh8+dacnDtAoABpn+ML9R2QPW2uuKOt79e5KqQtyRMbiTMWq773FU/ mdXk9akloO5yYf9alsuVySzWKWrJ0d9VP0UQDL6Qc0J/X1MXEZMLc4vMblDbyYzYMdC4 IgLg== 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=5R+nRAa0STmKw167yqehBeM3EkmBG/KPqSZqvIFA3mk=; fh=rlJ5pplLbWuDJy2OkSyjKcJh6lMTudr/nTxAFpexnCw=; b=m+VV3WbunVaO+G8sV+KOluGpBKZY5EBIMq3QBxqao8OsRvmOOH1oQOf6Nrdei1T09x dBeJv1i3qlXLObiPKb6DOUAAWz8x5MrVXwUqaViBLekyzuFqnIQjMrYqvjncfvLMI3E+ 9LjAUjTk8ksFAQz54cOHTN1puaLRSGMzFDA7DjHjwB+V4uPeXPoikuPyz8gbs4rXtkbf qADB6GRWXOR6BhwOEQGLrnCFXh7dwHlDhcIHS+igfPa7wYrZDINHlvSU1SOQa3W5F8nv dfvv4jKFAUhmFM2wr3ixPkLqbp8wru+ZNOt6xGLHqd/lAPFVWZuUQnQRP6V7H97isE9I UcKw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=L884OJCD; 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-39284-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39284-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a26-20020a0cb35a000000b00680b1758fdbsi13667740qvf.383.2024.01.25.13.08.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 13:08:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39284-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=L884OJCD; 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-39284-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39284-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 7A32C1C22A3E for ; Thu, 25 Jan 2024 21:08:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5139F13E217; Thu, 25 Jan 2024 21:05:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="L884OJCD" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 EA51813BE80; Thu, 25 Jan 2024 21:05:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706216725; cv=none; b=ISZJmUNOYZLPOIYgthpq4Qxv0AK8rNKaste+1MIiKXbA/6226Bqp0CQ0frUxFem6LVI+pOuJd8fOvj9IzGbsn16jWEsaCSs07U2TpHcz529rsmbVlnkJol7UexNPjR6YN6oj/S27zvq+1QpMOeo3G/2GDJ9CJDDSN3Ebvti1XLg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706216725; c=relaxed/simple; bh=ZTKXdewTHXfouTjQ0Arv96vvn/OKx+KOghE2Ix6ESHM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=duTwIRvyyNh/twngeEmqEL3Uq8B0RJa315d/wQujZOqTyvMIU05ag7W5rBY85uszgGYEckeoeYqUpVe3N8YKj/BRV5DXaQ3fnHaeSnB4q5zCLsj+OqpRum4YCXMg2HI76rFykwguYA+68g3TVPhceOIz2aK32BG7qJrLHkYjvEw= 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=L884OJCD; arc=none smtp.client-ip=205.220.180.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 (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40PKXElb019065; Thu, 25 Jan 2024 21:05:14 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=5R+nRAa0STmKw167yqehBeM3EkmBG/KPqSZqvIFA3mk =; b=L884OJCDQtZY6U27xbVzTsHK0iBPP+qawEJjnFX6+mydBRuIUAwC778deHq DVtX/FOuNNu52z16NmzLXW/wyJFUSr71F+YV2gIvGd8+k4aFNA+VTMpmlgww2198 EKxyiYoJA1ESwCUNSW+cBWPkUNXuWpCI64F4vDKTUrWujf82Sbu/8nUpE5BIN1l7 qKWJPk0vny5sQuOfu4fPNhtMzNas8b+9LvEVWQ9EKrT5lc7myeWlM7CFPkzuZWv1 dP+oHWDzmF2zCAeajcOMBH8e7RXqEFe8FyDeMVincFR49nA3T1Tvqfxx8daM+lpC ygFCzLClHn1uStGhL30K7RYRpug== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vumf79wj3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:13 +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 40PL5C9x031694 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:12 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; Thu, 25 Jan 2024 13:05:11 -0800 From: Bjorn Andersson Date: Thu, 25 Jan 2024 13:05:07 -0800 Subject: [PATCH v4 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: <20240125-sa8295p-gpu-v4-1-7011c2a63037@quicinc.com> References: <20240125-sa8295p-gpu-v4-0-7011c2a63037@quicinc.com> In-Reply-To: <20240125-sa8295p-gpu-v4-0-7011c2a63037@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=1706216711; l=1114; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=ZTKXdewTHXfouTjQ0Arv96vvn/OKx+KOghE2Ix6ESHM=; b=w2m3qdB32VTfY8yOMvxfwcMu3RZRVmTJPgegE0ri0xKZ+LdbCG956BmUbTkZJaiCqiZI9ZtkC xB3AXLQ4pbZBUNJkPAlTy4kB4q6NxejjRCNvLMJOa2KOcXSDRgMUNnS 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: zOVmWQc9VVwFA_SORDPsSaQ5YgzHhJES X-Proofpoint-ORIG-GUID: zOVmWQc9VVwFA_SORDPsSaQ5YgzHhJES 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-25_13,2024-01-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxscore=0 adultscore=0 mlxlogscore=999 clxscore=1015 spamscore=0 priorityscore=1501 suspectscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401250152 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789098084540576034 X-GMAIL-MSGID: 1789098084540576034 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 Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/clock/qcom,gpucc.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml b/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml index f369fa34e00c..f57aceddac6b 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,12 @@ required: - '#reset-cells' - '#power-domain-cells' +# Require that power-domains and vdd-gfx-supply are not both present +not: + required: + - power-domains + - vdd-gfx-supply + additionalProperties: false examples: From patchwork Thu Jan 25 21:05:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 192307 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp260093dyb; Thu, 25 Jan 2024 13:17:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0CnJ+O1zRa+bLWKrin/fyhsPeaNxoYHm9fL60KJkcFA/z/nktoyHXcqmKbNTLfzOuc3aD X-Received: by 2002:a05:6a20:748e:b0:19c:649f:e5be with SMTP id p14-20020a056a20748e00b0019c649fe5bemr318136pzd.124.1706217453594; Thu, 25 Jan 2024 13:17:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706217453; cv=pass; d=google.com; s=arc-20160816; b=l6GUnBNDBTBJTKgVz5pI0NSk6DphAVJdcA+dUluNjaANUNPyv+/Zph2sEII6gvzFnf q6aR0CAbFqqWa2eqdVkE8/IujMC77+oFpDiQng9sT27qWC0RQRlJ7zchewMiDljATz1U kTo1zN9KzCe4bx3mkK55QlZMZ3O21LH62voG7K4KGcJJUFdyZUDHi19yZvFUa+yyI6Ov da6M/4aoAbJWDQBZB+LESYgGzWuubswhuZ1EY0c5+lJ6lTtWQdUTTYv6Q1UKrl9DPOK7 AjfQL0cOs8tX3znRkeGqU3PEXP6L3w2DAYnVZJIY9KQUMf2JjDxpLSDw3VWVzyuL2ihD 4ylw== 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=RLD0YBfMrhiTMqopO0rqb0K1iIiAt/GpAirMUvVwgC2yR+yNKAQoKTHCo6FSDA26/2 PRtVajGpJmmdZv/E3nQwFnruFCA1LymgeCo6ntkvg9TT5oQKSMDLTklPYivhOdleSgVg YzlHsOAt0k25L5A84oqVMq5y3mwxWgEZ2UT0Jt+HeZj4D+rqIlKFl7s0VbU3+oMPZzLq P2AMfqcnCFSiCbdqRdhw4LX6J5SA/7I/dNo7qKo7n32/gVfj0dE/qTbfxcJlRjvVrzw2 HVSmK08sX8HSpT96IvddOCr7HHYRNYOEtLkYEFRcvHRbb9NW20P0PD8cd0HMqUjUO9TO xsbA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EnAJ9wxJ; 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-39283-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39283-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. [139.178.88.99]) by mx.google.com with ESMTPS id ms11-20020a17090b234b00b0029045eb77a0si1911469pjb.150.2024.01.25.13.17.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 13:17:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39283-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EnAJ9wxJ; 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-39283-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39283-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 4ED4429B3A5 for ; Thu, 25 Jan 2024 21:08:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C70113E213; Thu, 25 Jan 2024 21:05:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="EnAJ9wxJ" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 9764413B795; Thu, 25 Jan 2024 21:05:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706216725; cv=none; b=oAo2nTVy4R7Oq8bUuy1sAV9Vwwq8FGgqySVodtVWdjk+ShVCcQQrh2cDj8nwRMr+utMvENvCT2AuGT68qDQ1KK3a1o9B7Ln5Z2wD7P2Xn61VNrQNp9zSd5uXm+UALt6w526RKnchye2oDY+fQAdskAQaDadgbwW2EeNowrnHO4U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706216725; 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=I0vYkwlZ1Q03c36htubqVvCigxEzVnFbgJB9NTizqDSllih5621pV0zh3yfCWnYG1LCwI65TStP0Jk5RrbTPEXCiXtMxtMGHvFD6dppou1omYDYn+B0ENYROSeYx268hxcZKs9Oa9/x625s0Yl0SmrkQDJgEJ6Mnp6ujpnzB5NM= 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=EnAJ9wxJ; arc=none smtp.client-ip=205.220.180.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 (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40PInLki024137; Thu, 25 Jan 2024 21:05:13 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=EnAJ9wxJiQyZ8ti7Hu9E/X3kIRngBOBy69krynt2yAJzDKtPIEIXkArQS65 TltYQcrtRbdHqnSezsp1gA1/qPMje+vHYtzoFS8fLKnAMWlnOXKE/ej07ntv2Sbr Edny5Vd4FXYQBFEZeP82YpDm3P6cHx3nUOi19HTqrcqYyCQBIJHsdeCt3qlvz809 sSwBwtVFwMRv9JTkejlHBAeTLoGgFyw6Ms/M1T+4anAGlV/TDEPeGungKHw9oi09 Ol4MmJh+6cjqVd1cnkOVpgoAVqyx1SLgbcKtEi/18m9+hhBpPJiNuFIrKZQ8EtGQ jq5uLWvOYHLn5xsy6tai7VIfdtQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vup5cspv3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:13 +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 40PL5CA0031694 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:12 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; Thu, 25 Jan 2024 13:05:12 -0800 From: Bjorn Andersson Date: Thu, 25 Jan 2024 13:05:08 -0800 Subject: [PATCH v4 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: <20240125-sa8295p-gpu-v4-2-7011c2a63037@quicinc.com> References: <20240125-sa8295p-gpu-v4-0-7011c2a63037@quicinc.com> In-Reply-To: <20240125-sa8295p-gpu-v4-0-7011c2a63037@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=1706216711; l=1360; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=7ZWW+8qHDNDoQXk/hD+0GuH82VHOG4uW2aOnjSqYjh0=; b=1NeGLEQVxHiYJnR/45jQ91/akTnQICpIXQEZIkJgnDvaHfFFITEH9yODLmFrDdhJTKA7ZDVSI sGt5hqD0qTFBkXcNrLl44zNYLkzjef/Il5yIzE8JQ9X3hjwM+KJdO6r 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: zmNifAXCMG9Gg86X56VwY1X2x5Vmlkth X-Proofpoint-ORIG-GUID: zmNifAXCMG9Gg86X56VwY1X2x5Vmlkth 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-25_13,2024-01-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 phishscore=0 malwarescore=0 mlxlogscore=937 clxscore=1015 bulkscore=0 lowpriorityscore=0 impostorscore=0 spamscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401250152 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789098672841699041 X-GMAIL-MSGID: 1789098672841699041 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 Thu Jan 25 21:05:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 192300 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp254607dyb; Thu, 25 Jan 2024 13:06:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfPL+DGSUhG2SbpUveuz9bbcxjbif7O+1tWX1xp+xpyNUj90JJ00QlaZh90GMLqsXjGNpb X-Received: by 2002:ac8:7f14:0:b0:42a:41fc:39a3 with SMTP id f20-20020ac87f14000000b0042a41fc39a3mr273102qtk.24.1706216796906; Thu, 25 Jan 2024 13:06:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706216796; cv=pass; d=google.com; s=arc-20160816; b=Bhe5PkJMEHAVHLCmEGSjlOsn2Zl3P6RMhZMzeLihtaeaoKb/Zwfv7F4dNSah827EkW yVE5xA62/Z7RhYic+uSI2r3JgyqC0C3lhM8MBasYhvTBRTFCss5Ep92DVzrQSPv4AeZT kzWipLUOo3QVp1l4g2Pt9/xEI14eHlQgp45KFcccrHut67rifLwwiQgLmvLdj98Gr9IW 4Bou6znzjgFoF2wWR9K3C47XkHSTo4dbhQW4tA0fNgVn1DBH6k/BmoEn0Bn6gQXrDMj1 hqRL/4lG8r+QnLfH8QP7+AL18OdWjpFJP1JSjg73Fm78TnZrbS5d0WPgj3PjABuIhOgQ Q0PQ== 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=IqRxL3n9fxQb9Ijtvl7PEjP3A3S2E6JgLrgv6z/3hSX+t09FIp2iVqri18Z7jUe1al vAC8JuenRGpU0ZMSfNgg0LvMQORsWOgUGvpr6jDTo6obm9nOd1+l7mRHvSQSOOJu3g73 QGbLt5nNqeXtlotDcMWo/fNnwG1nO8UqjfIo4kV9cXmfS4UpQ8tKz5h/QDd01xnQOBT7 TEBxtiPYcwsRDTjh5jpcA+xGUtSy5KXPnKD6MBH3lH0Q9jtZImBR8zQ5lPvazBhhCcdJ d87aUeAjk+gE2kAy8GB5xiEZyyPZF0KMSagfHT6ZikyIpVx+dOhpvVC5N8uZqPrYHyUP 2VoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=f+S5jMSh; 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-39276-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39276-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i6-20020ac85e46000000b00429d4137889si13480284qtx.167.2024.01.25.13.06.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 13:06:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39276-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=f+S5jMSh; 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-39276-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39276-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 AEF001C2247C for ; Thu, 25 Jan 2024 21:06:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 331BC13BE95; Thu, 25 Jan 2024 21:05:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="f+S5jMSh" 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 B8384137C31; Thu, 25 Jan 2024 21:05:19 +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=1706216721; cv=none; b=f0YGeJuqgnORzlf0bNtXFniMLbzpTezTqc6oSvTwiftYYRE57YkImDJ8oHy9uhzHSb/j9feSLUfrrfSNFUKFh/1KqoSG08RcyV1VrBU6UXrbTok6i3MmtAkuGsTIIAb8y0DkEmIk+oSMII0+sbCwGioiT04diNbEXRDbj1M+2cw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706216721; 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=ZCDqT+SPgsNdGtB8LDQydWPOQgaQhOFP/wayn6pzt30sW5hOqrjhtemxB1fXAorNDpYdOY+vHaHOqrMHfm7UPNI8ZRTa8aRzB/SyzIgjTVECXqtNFz5NMFVRbXu3IV1YY1vc6bGRGq1KUC8/EfaJMIQZHR9WY2sHqrnbscuu24s= 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=f+S5jMSh; 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 40PJQY5n005990; Thu, 25 Jan 2024 21:05:14 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=f+S5jMShOzYJowhiJ70WBhjqvEjAYy5PhF4nw3jNUEUi0BAUCuIE0g6qowh +D1AuQIa8GkiDjP2ROOQo4gSd8aLhJhxtRSIkArKwkOw4SCRv5gowejTEebDMtW7 8bwRRrodXycC7lGVmHmUpSLNOIj06sp4E6y55e8a6L4KZ/KpNjyCGvcfJ/vvqmVf 2Z9Gs8VZz2OtKbD3oMY6BLWd9NLaB81cFJEoadbzgUj4G0ZuxZh4J4bKahJuOjNp hgkUNx/TtLr7mHI3n3dCwpYZm6Hmr6qPDW16YGM7h3HulF80U7KOxj0YzO0deUta 56qDyDg+YnLBbUvE1AqSf8OCqYw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vuqra17yg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:13 +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 40PL5CeC031043 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:12 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; Thu, 25 Jan 2024 13:05:12 -0800 From: Bjorn Andersson Date: Thu, 25 Jan 2024 13:05:09 -0800 Subject: [PATCH v4 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: <20240125-sa8295p-gpu-v4-3-7011c2a63037@quicinc.com> References: <20240125-sa8295p-gpu-v4-0-7011c2a63037@quicinc.com> In-Reply-To: <20240125-sa8295p-gpu-v4-0-7011c2a63037@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=1706216711; l=958; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=XqG6SvzlCntF+3+Nx+hVAQgPWgQW/RVb0t9LmLHIY+4=; b=XDttVYXJbGouKJcX2dpHEn0pi5SpkZUCZhx6tSuTP8t7IgMoPrYxHXMJvHuwPlds9MH6O93nJ RE5v2dzM60JD6zpgVVcftpl7cFTib5f1ReWyXbcyMqBlOP/ScloV1FT 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: VjGFL2goocQ-CdcYKUpNbqfftx482lN7 X-Proofpoint-ORIG-GUID: VjGFL2goocQ-CdcYKUpNbqfftx482lN7 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-25_13,2024-01-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 mlxlogscore=998 phishscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 malwarescore=0 mlxscore=0 impostorscore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401250152 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789097984158111685 X-GMAIL-MSGID: 1789097984158111685 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 Thu Jan 25 21:05:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 192305 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp256080dyb; Thu, 25 Jan 2024 13:09:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7328RlepmS/x+0mNt8q6ydimbDZ85wQngWFZQdd3c0mtEMh8WLAkD3Ku6ERQoENV0V4Ib X-Received: by 2002:a05:6830:7181:b0:6e0:faab:cff4 with SMTP id el1-20020a056830718100b006e0faabcff4mr694945otb.13.1706216964687; Thu, 25 Jan 2024 13:09:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706216964; cv=pass; d=google.com; s=arc-20160816; b=hYkcbGtVEqmzAbw3PwsNb3V/aealfCmzLKgp/zPVcEH/0QWRtpl5qBX72wXRfaA9rx swxTGvL1yOg/YtMpRqrkOQ5GX0I4+IrwXy5rrLpJAoaStNtMkmXAlHr+wxp4cbPr6Tw9 gGis4boj7TkbSLQHT9mOMUOusSzoHnNtl6mGjcC6mMmFtCnHb2GatDAWCZNGX8ylR7hm L/3v1JdXqW0/6O9qm1DBQeOp+4zzuyaKgNGT+nzGl0pGmFW3BwBEL0JtGqq1cTy2aB/8 BXNregQvDGYPh8mMc86UXpsaxzbfHLgWSVb1nOfbDS2w6ir4QKmBZJDDiG7YcGINceRx Cr9w== 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=z3hQ9R+ZwV9HXtDrDB31gJ7FcYIeuYytOhlUbOVQWV8TUWylxzKAXrohY1BsYvFOSF 17RO6uxNftusYsWE7bslYquwYbx0CVEmQjx2ivs6jPVANS3HPuYZINrO3avy8Gc1z5Q3 FHSkDlW30D8/r3CPX7kFujCtuIpaHhS+7Uc4AAnMVxjqKyiXRsT73drByN7roBh+QyHy 8ZoARqSJu+Q1IhHMWClDW7jQbGihdE5+7ddz5KB5prAkaKsan4/tp4YK2y9yJha+dwsP 3RsDM9kM3f1TTyq/q5TBm1wiT68iGVxfqSEH7htqx0/6Ix6/Jk84vC+DFI+1zi2c+H6+ loEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=I48H5bJh; 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-39279-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39279-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. [139.178.88.99]) by mx.google.com with ESMTPS id p16-20020a056a000b5000b006dbe7362a02si6807509pfo.236.2024.01.25.13.09.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 13:09:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39279-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=I48H5bJh; 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-39279-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39279-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 8B0AF28C179 for ; Thu, 25 Jan 2024 21:07:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C822613D51B; Thu, 25 Jan 2024 21:05:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="I48H5bJh" 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 5CDA413A242; Thu, 25 Jan 2024 21:05:21 +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=1706216722; cv=none; b=ctrYmsuWkjcuNdTAuaF4vpwHJ0VA8dPxxw971QknWDN8WYcPOzrvvZ0FLj6pzKDr9LzGBsZg3IFrKdMx8Wv/KMvQewH3+1Tnw+H6GGqDWnCXvC+o23/jsU3KW7EgBFvVa7jTYuyuIviQ8M/Cx1whgottAc4Jh0M5Wh4PX/278tw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706216722; c=relaxed/simple; bh=wB7NJGtRNbfW5rgrFcxjSLvoTR2wr8u6sCO82j3nEyw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=arqYn/4t8bgFN/At2hp2o6P6b1MrCEQ/tB5TjNyH3Shvv+XTFW5MF5MNpY1uEcKtkmySMt0oxQiXDqYYUVMOcitrmOI9jjJoLHpzDDhYArmFPhl4ZCvAlErq1P0uPNrEFPCKtr+orKyKTpJfS+g/IrLreeArZOtM6Lh5eOqw8Io= 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=I48H5bJh; 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 40PIeCl9002956; Thu, 25 Jan 2024 21:05:14 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=I48H5bJhzv2vx5vZsUj48rRwqXUOjB2Hqng/07SyHkiuXCPwEmKdTLCYl69 jets7WAWyRDwwGDVbchDAPp5AjYZFRskm663t2MrdF5n2xDQWVqhaICGK0pXxIlZ 2hVH5sHBDZ2Z0sB1Io7TW+zEQVnM2MIwALXYoZTz1YGpPTQHDUP2czYK2Mow4Z2c q6VUv5pkOcrvvrX6pxCBPh2+tevR+JPjPWZyKx6Y7VW9cXrfqMZyXzl8JGJrRQyM eraw5JkVkt8S0SoAuBiZ4bMARG5AXbUaxfZJ51rezoF/3ne91nvGErQWVM8CRLbM 2nL4r1I5UYf6Rd+WqVUdDCNppoA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vumcwsub2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:13 +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 40PL5CeD031043 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:13 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; Thu, 25 Jan 2024 13:05:12 -0800 From: Bjorn Andersson Date: Thu, 25 Jan 2024 13:05:10 -0800 Subject: [PATCH v4 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: <20240125-sa8295p-gpu-v4-4-7011c2a63037@quicinc.com> References: <20240125-sa8295p-gpu-v4-0-7011c2a63037@quicinc.com> In-Reply-To: <20240125-sa8295p-gpu-v4-0-7011c2a63037@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=1706216711; l=1039; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=wB7NJGtRNbfW5rgrFcxjSLvoTR2wr8u6sCO82j3nEyw=; b=pNJ4BH7uAdplqbpAnDnpNcEagsDpKnEMKgrGtdzcMwPC6nJrrVfuSTXFLLfOVjzNqEgoMkv2i W2FQG48+ECmCwSZsTGZPCNHGEE5Xgj9TxAgVs05g5MXImph4696rUda 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: RNy_nk4avt6AXHwO2Q9UC-nns6-JwE1x X-Proofpoint-GUID: RNy_nk4avt6AXHwO2Q9UC-nns6-JwE1x 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-25_13,2024-01-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 malwarescore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 adultscore=0 phishscore=0 mlxlogscore=975 impostorscore=0 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401250152 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789098160157980521 X-GMAIL-MSGID: 1789098160157980521 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 Thu Jan 25 21:05:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 192302 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp255255dyb; Thu, 25 Jan 2024 13:07:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+RSRS+Gt6HXT3ynZepHDtuldGB7rDE4EHnb45xxbtX1WnmwwYhQNTSWzo8BUbHXd4cosh X-Received: by 2002:a05:6214:2421:b0:680:fb20:202f with SMTP id gy1-20020a056214242100b00680fb20202fmr300181qvb.127.1706216868240; Thu, 25 Jan 2024 13:07:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706216868; cv=pass; d=google.com; s=arc-20160816; b=W1fESSIcq5R72h8QET8+yq0rNNx/RhnghTbkckbsaLGvKUshuUQ8juvXs/KzOxKEX0 oHhlwGhUbZHG1MBoq1EdgVQ/q3kij7MTx+zzVyoTJCfDaLDjt6pHhWm6sxSx5NoO/PmW gU2C5egiONBgtFrQGnDEiUK1oqUnv397ByGT50tQE2pZPx756JCHkoJQNXu98X2nxegA py8NKiqwKKqScaruZTg3pO2CB4qNdcC/YPqvmdh4Lnpebl5/1mfTA2JoWjxxKSAUa8jM 4t+JRMvaLilXT00pPxFOKMhBPzPHU6J87xAK+kg1oKqcXecrboPbj3NZrZ0xE+MzGxcA bcnQ== 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=mgnzgXqwcJylbGu+OvyQimruuwv6pJWRzbR89ocNjVJp+qAaWUJ0palqduTiH/KwPk PYqryyp8a7wek90Nen5Bw/3m/2QqjffXwlbYmT+wS/HRaiYt54Lk4NZn5wWayeqQcP3d X3xkz7qRecJBVf0ohEXmtNBjIBK5mR0xUBmN/xi2UuqzpIw3UgBHZX+ZvE8SnOeM2mPw q4kDVLrXx/Eq2Bs5KkvnpmMOFf/SR+bVaLDcW1BBEVlV7QufTjS3VMi/MSAA3GUk3WXS SycjXYLClc8hDxspHSOzWp0V94IEilgd6+JqjZEHW/X9l2Baw+Rr+O2NwiITjSwJLWwH PTug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Gc+eEYjJ; 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-39281-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39281-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f12-20020a0cf3cc000000b006827ae81717si13475560qvm.192.2024.01.25.13.07.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 13:07:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39281-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Gc+eEYjJ; 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-39281-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39281-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 06B7C1C23099 for ; Thu, 25 Jan 2024 21:07:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9A1B13DBAB; Thu, 25 Jan 2024 21:05:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Gc+eEYjJ" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 1EB8013A270; Thu, 25 Jan 2024 21:05:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706216723; cv=none; b=oyeodUHP+mGg+cCk9r9F67KFfcKaaWjhHDMID4ylpKRAni7fVxUVCVHLz0de0Hgad6hEKrd/98hpJlA7HCLq+awvWCpwaX7dXY2lMUYGoIPtbmBelUdrYnBb6oZFdDAXQzAFEXUamwRAgI6i8Z3gegJzgcRGDRuRqkeUhCAnVGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706216723; c=relaxed/simple; bh=LmGmDzI8fc2erGli/opzJCTKeAu3YbTeUxNqQMXGvfo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=N5s3dDoLebE8m5oPghQhFOiNgEfGsdI15IDUi173DK/Im9uEaXxjhQC7p+QWybJguMKWxMraAgda52YcAT2wMf8HrAgDWFguAh7mBez8/vLuJ72UvLJxxx84Jaw2soXZ/c+mYElnlieEKhfEGm+TzT/B5QhngtSUpd07GpXnn2c= 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=Gc+eEYjJ; arc=none smtp.client-ip=205.220.180.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 (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40PKspPU025870; Thu, 25 Jan 2024 21:05:14 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=Gc+eEYjJ/zgOCjJBIyzVzdWrHhF+Srh0dyp5rFq6G3KIuy5Mf9ApjqyA9AH 17svFBNknDjwXXBAQyRLvz12qa+QrAfZ1HCeW8Fi/1pSFqFixUpY4Wtrgur+GRAp pH+iox6HPb4F2nEMufTQWVMcRdqvcciQ663gf5yrm/rCpgC8OKyTjbgq7BK+4P7m WR1FFoVGVJAjdg4i3763q/n2Tta9XYMRk/XBbZfwc0ZpbD84t7jhSZXJ4UJ0ApPq rjRVQxUsMeRuOapZMnxOtrPfKmziOTQ5bmA+h7wwmeypRAI5tmclA4ZuZxCvTBdM HPjkJhbRQqIUNPU9PNqj5Nk1BtQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vun5yhttt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:14 +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 40PL5Dof031709 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:13 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; Thu, 25 Jan 2024 13:05:12 -0800 From: Bjorn Andersson Date: Thu, 25 Jan 2024 13:05:11 -0800 Subject: [PATCH v4 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: <20240125-sa8295p-gpu-v4-5-7011c2a63037@quicinc.com> References: <20240125-sa8295p-gpu-v4-0-7011c2a63037@quicinc.com> In-Reply-To: <20240125-sa8295p-gpu-v4-0-7011c2a63037@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=1706216711; l=931; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=LmGmDzI8fc2erGli/opzJCTKeAu3YbTeUxNqQMXGvfo=; b=u9FlUDXd2mted5WERgripiyIdu+uZIZ3WCUu15t7ciCTpRhYBZUwbpujSMEt4io2RcPeN/uIT B4aiGhYCbStBQRCDdoUDeAMDg8b8uZ5q8pcKl2Jfbjpv35ORPuHIIZj 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: 1viBghwdJNG506hMMaP6-NWIFc1uuk7n X-Proofpoint-ORIG-GUID: 1viBghwdJNG506hMMaP6-NWIFc1uuk7n 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-25_13,2024-01-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 phishscore=0 suspectscore=0 mlxscore=0 mlxlogscore=832 adultscore=0 malwarescore=0 priorityscore=1501 clxscore=1015 impostorscore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401250152 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789098058664546554 X-GMAIL-MSGID: 1789098058664546554 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 Thu Jan 25 21:05:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 192301 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp255191dyb; Thu, 25 Jan 2024 13:07:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkNhwr95RVnqtC2frJ4M+BcQj9QYmtznbPfCmMtJbaXCC2BZyeNfop47Q+h8HORk4psq7P X-Received: by 2002:a05:6214:20aa:b0:685:4c05:d747 with SMTP id 10-20020a05621420aa00b006854c05d747mr296575qvd.19.1706216860246; Thu, 25 Jan 2024 13:07:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706216860; cv=pass; d=google.com; s=arc-20160816; b=woSdL9SC/7JDxxRm5T0nJ0OvC44Im/RJuQiwyo8CGQpM5tOh6htWx1XCM9puAuUY+0 NfM12j0lBmo/R6gZ6Ep0YMjXMH3++1IgieLIP3ieylH56vZiLLqxm1sffEQ93Z3OT9GY 4tspoaZl/IXCFG9JOyIlM5pV3MdgwS0MATRLrLXd39ucbTqXjZRTw6OhQlreCiObBd7p 6iBDMUJA4SrQu8MBquE/ueruay/zZrQt4X80+iARZ0+ZzW21ADmLYytTiHuJh7EPN4va GxxTWxjUp+HprgCMj6IuX4UwltCQ4dWYpA/g2EEcsfO6E8YndwT1dwfRlYZfamiSoTQQ vJQA== 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=IBn/sf0XYvG3CymJ0yxawTaxz8ojSLyGS/kZQnnkLYmVh7UmgPbFzchiUFcxF+fGbR mYtPypSQW1VjdkhKi4ElSMGh8zuhAGxKv7FeSnxrqq3c0NV/E6geysL4NNWPUux9dg1Y QxYwG5+UCTHEpnYXfJKp20OtIHghmDfXvPuKJgiiYKVTbCtr2AHZ9eqXDVtCQYMe8uVK 1wkFFKtJchu5D8h9eLbENh7kUY/ERMX4kIjEPsPiA9qcumQ7hUCRqO2YZsn6iti1Fz2z 85viQAXH9aYV0Kzqqi/WX8NF0G0XH83ViLGyIXYZu1sg60feA+ZPN3t9mBmBpu/o+Bj3 sJ+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="n/1wJo5K"; 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-39280-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39280-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f12-20020a0cf3cc000000b006827ae81717si13475560qvm.192.2024.01.25.13.07.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 13:07:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39280-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="n/1wJo5K"; 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-39280-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39280-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 0D1A51C20DDE for ; Thu, 25 Jan 2024 21:07:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EBEE13DB9C; Thu, 25 Jan 2024 21:05:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="n/1wJo5K" 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 A294F13A25F; Thu, 25 Jan 2024 21:05:21 +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=1706216723; cv=none; b=N2eGGrMP1HYLvjvlkZJPh3gt2PrVELooYyJiV+33qfwySeclwFyM4awSmGcptRQwvW5GN7eIhKAPvqFH9SfwUDGV5TH+oITvlf1uMMr5tAsMt0DVxzMey9ugcJxLazEUwEfUn0KgNo+po7z48yUZOlREBYqCAU9ksv+njdDDqbg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706216723; c=relaxed/simple; bh=cpwN3XiXaCX41NCkEGpr7RaCSMM8HTlY6C38ej5UOJA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=T1Qi/qr/qjHRgxJz59iKDfp0VoUijD24SQfo6oFBzI2te8W4/jPgHSNjOHN8PYAGHVCq7ATOMiSOu6F1odsx05uDaASME1gKFRXN6Z3BhZYKzdRctJt6NlcqJwBMhdFf5YJgbV2tLdu/VFsOz/h625L7y9APawowWS6Kpi8jFKo= 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=n/1wJo5K; 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 40PKNFXP026820; Thu, 25 Jan 2024 21:05:14 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=n/1wJo5KN2lhSMd7Sa5PfDaK2h7JR9EIpijJA7wqwXL27BHtFiZ0EW/KZ8/ w8q4UEeFpdw2KdgZA0ETwNdsBL93T9DkkF+DyOVPgPkvYWMH8ihg/uTJef+K4Xnq 4SAwc72qyOgd6wXkyeCLwB4z26HFdLES/eLIsT4uc/TVDLg9e2LiPIDBXTe4cIx3 D8fNN3+tCLO3zoZOeif/itFIqiX1klfDq+yIU0i7fEuj+FldxtXBJCKNJxo6jPMb 11I5bsXjQCg4AIJ2FzokRdn6zu0SVGe6u85SB3wX6D6MpT949jomT0YLHBeji9MR 7H1aBZCZ7xt0SajEgLIhGlBw9Ew== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vufwxag4p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:14 +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 40PL5D6D031719 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:13 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; Thu, 25 Jan 2024 13:05:13 -0800 From: Bjorn Andersson Date: Thu, 25 Jan 2024 13:05:12 -0800 Subject: [PATCH v4 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: <20240125-sa8295p-gpu-v4-6-7011c2a63037@quicinc.com> References: <20240125-sa8295p-gpu-v4-0-7011c2a63037@quicinc.com> In-Reply-To: <20240125-sa8295p-gpu-v4-0-7011c2a63037@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=1706216711; l=1705; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=9G8OC71Bo5Qk4jp3jd+PoCQTayjd12YeJaxENqcceCg=; b=aVyBszSnzdnKMLTHUTvTQeyLl5ubMqWhGYxhqO8v3osfhn5hW46km3jDN/NUoO/FOmGXiMXlp fKHQTLFLqptAVJbfYKzs6IQypzx9XjIFHOO8Gl3AzBNbR0pW+T3rXyC 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: 6EKjI-qxYskyzFuNApGyF-nIBXaD1zEd X-Proofpoint-ORIG-GUID: 6EKjI-qxYskyzFuNApGyF-nIBXaD1zEd 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-25_13,2024-01-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 suspectscore=0 adultscore=0 spamscore=0 clxscore=1015 mlxlogscore=963 impostorscore=0 lowpriorityscore=0 mlxscore=0 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401250152 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789098050421132755 X-GMAIL-MSGID: 1789098050421132755 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 --- 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 Thu Jan 25 21:05:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 192306 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp257711dyb; Thu, 25 Jan 2024 13:12:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZYk3zFhmI/6bnfitIPa7aGIYcSL+bU/23fJSp+3aUipKDtDmYUO5NB2V87kyWfMk54LxX X-Received: by 2002:a17:903:2283:b0:1d7:8cd2:1105 with SMTP id b3-20020a170903228300b001d78cd21105mr543868plh.3.1706217157853; Thu, 25 Jan 2024 13:12:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706217157; cv=pass; d=google.com; s=arc-20160816; b=mev0GCsKjBd9M9jsJ9SB5ufSjBEGZYZ6lfApicTk9C7RQjSXCUjJBPwyxOz94ltZfm Xw72MU0miZHOi3CBdVwhijADUmpsrSqROFuX86kJ2n9Ezc8I4abIE3BK3hcxk7ZlL4YE jW7jlnTwTsOvPRIk7fc/vtJn9FrS8UofCHV7RI7lWtYFZQQf2JRYN3sqVcbLUOuWOHmP pJb5xC3OlsTg7wHkny0MGzuJNFZoap//SbU6DZJdXJIwLo3D7ysr9D/De9FuDDOuVx8h QBiuj4QuOpewj5EawLksGtECrNxxwlGMfqUxEt7fnl5O7RFldzu2XIxUNoYeRWRDmm3B CmVA== 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=ekl+gNsNqlxXvJ9yJhuRn8FPhNvgniRAPMgvTfZr0nrZcwdy6SkqDqLN2rWrMoRiid OhOEultlVwyd7BfEcknvtgHc+vqBy7V1xzJA7uPCkZabwy2Gu88o3NkwTlNLrV4ixXm5 W1jCPkBzZiIRgQN35Fw1bVJv8bJOmEfdB0XZBjWMjsu93dat6R+YR0942yr0L6iybucY h0bq74guPsN/FbEipzkfiPTQYZwgcJcV//nePwY8O5U1xNK669gSwzEI6/ZPkLq9N40I 6L8SVeq9sDkRJ/AKmtDN6ncBjrVsQQ7Yvwa7DIe0BZvRdWlYLquidgSSZqqMBPthom7Y K0FQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ud0xfDpj; 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-39278-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39278-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 10-20020a17090a034a00b00293d52bbdfdsi20780pjf.184.2024.01.25.13.12.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 13:12:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39278-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ud0xfDpj; 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-39278-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39278-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 6FA98B267DA for ; Thu, 25 Jan 2024 21:07:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B695313D517; Thu, 25 Jan 2024 21:05:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Ud0xfDpj" 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 2F5521386C9; Thu, 25 Jan 2024 21:05:20 +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=1706216722; cv=none; b=nxLvft5CZAmTC2X8M84HKaG9o6qzSagzBYQgVfai54wo0FaviOwttAnNXMfbIun296D4Wl5CIUzYa8i/tE723vO+yKKhJeqScZtfRtMs708hYdaXX4p5XfrPRDv9+9gbVjkg/gzBMTv5ohR9wOE+yDSE1NEc3cXoBzRyys6YPzw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706216722; c=relaxed/simple; bh=Nl9b9TRKAUzcyVeNR/dhN73aiBlrX2553FEf70SUp2E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=jECwaeteoaEIntQJYTdK5Bm5nGAIIZHKE1tb0oPNHNox5zWuDLMuSuvM8ky3BBw5ovOhglGx78W4cp2R6up7aZaSfMolLvB8KlgTHBOMifUcVKhgW1F6FIxEklqjOmajhzBuTHoTrgjTnEjZ80orqysnYD8WwxxK0Uam17tON7k= 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=Ud0xfDpj; 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 40PJUF8G031292; Thu, 25 Jan 2024 21:05:14 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=Ud0xfDpjdoAucY8Q+mZrEbNUml0G0i5y2i+dB+fzvrElT0v3e2y6f8hieFk cbll0dpQw4MzBipLQBQhQ3lQMgJgz69KlHVwocP7MWpNR5069DVPzS9oqZRlriv3 oSXyBViCnqveXcbtPtgX9iXQC76F7KAMc/0zBCtDyra5CDmuwj80LPC+bADFkVkK 9gAwypNdcchdnXMppxGdWPoyAReXvjS8L6Gl5tuThFLpQHh9ykeaDxJs9DabLB8x PB73JUk/+3xHijcLBP0PAZtR6EgvPg6uW6lIYOnMHzxdDCwI+0PsH15U9YFzeg93 EykT39RaEFsLGnk6rpZ4f5bcliQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vup2thnfe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:14 +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 40PL5DN4027232 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:13 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; Thu, 25 Jan 2024 13:05:13 -0800 From: Bjorn Andersson Date: Thu, 25 Jan 2024 13:05:13 -0800 Subject: [PATCH v4 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: <20240125-sa8295p-gpu-v4-7-7011c2a63037@quicinc.com> References: <20240125-sa8295p-gpu-v4-0-7011c2a63037@quicinc.com> In-Reply-To: <20240125-sa8295p-gpu-v4-0-7011c2a63037@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=1706216711; l=1267; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=Nl9b9TRKAUzcyVeNR/dhN73aiBlrX2553FEf70SUp2E=; b=BSGLgx/0vlC09nLOEhrMfV9nSIdfOGLsMiMkEaeZZTAZ07Lm1GCmhe52fCD4kjYnV8A0/fFY7 Nnjbk5wXFFaAJG9DTCDYTm04StrI2rvpQBJhqC7/V94/yYh3UEXGqm2 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: b9sfyQeWepVhTjjxlRRN102tlQ6-nqDS X-Proofpoint-ORIG-GUID: b9sfyQeWepVhTjjxlRRN102tlQ6-nqDS 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-25_13,2024-01-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 spamscore=0 mlxlogscore=871 phishscore=0 mlxscore=0 priorityscore=1501 adultscore=0 malwarescore=0 clxscore=1015 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401250151 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789098362807850899 X-GMAIL-MSGID: 1789098362807850899 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 Thu Jan 25 21:05:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 192303 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp255397dyb; Thu, 25 Jan 2024 13:08:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgXT/mFQ3Q7cUXaqOHFfpkIdkYoinsXN6MzVnvFJdW0nszo66YxKHQpM3XJIdfmqHGtfQs X-Received: by 2002:ac8:7dc8:0:b0:42a:6f0b:2ed5 with SMTP id c8-20020ac87dc8000000b0042a6f0b2ed5mr407308qte.117.1706216885593; Thu, 25 Jan 2024 13:08:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706216885; cv=pass; d=google.com; s=arc-20160816; b=PPieNFGnRH8RGPF9IIbHPcdCitYvY3WVfUnRARCeSZjuiTmuS6Z+rjYKH/CWAKCdVE ebRpwxD0AV1yoK+N24KV12K5YqgG2yA9+sPhNBuIhgjFUhRFsRQ6wh/wLrnm0lyDoIHV e2pJTVF2Rieq8d55gWhObweQ7BLI786P4CO5fKJVB1LDz+grIubzd5eAyQ9gkBvj003i KdbC604mvs8eG3NWfbzziX0l0vSEqcFO7Q4KmevGZOaPFdPKwjFHF0dqRAE/8sDcdyjt hx1hFLRR7+7/DwiMcY9enlygv0XDZKiEttTRixxY+E+Nu1Ynema/cJhG7oCTsnCRUgq+ iaGQ== 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=MGXAMBLwZnS90aXPLU88nZDTs4nE3Hl9ULooxZc6WXw8vYfpV4fEQmcc1jfxKFtCjZ t3fkxMvxK/aCQ0OiEhahJQRsZzsDwTESMdOVxAQ1TqLt5CkSf4F6AX3o7CTudySJ63Iw 7crEcxJeXC3HutMME0hbp0muiq4OtbsYjfwJ2XX+UOhNzgWlol4Ve90tEK1+DFK8fyXQ BWYjETX//ENmePUNP7lJJP4rrvLzoOQZl/ijXhkrTtIgZ/EZ0+NRHOQAhpHAvbpD4ps5 BnzUQH7nXEjB0tUQvgAefnz/R0jNlUwfXGFMcU+LZbcVMs+O2K5ZL9T9kXw53zbDxmY6 qOuQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=b5FX5eLU; 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-39282-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39282-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p15-20020a05622a00cf00b0042a1fe830e9si1647594qtw.695.2024.01.25.13.08.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 13:08:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39282-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=b5FX5eLU; 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-39282-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39282-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 60A771C22A3E for ; Thu, 25 Jan 2024 21:08:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4E2113E20A; Thu, 25 Jan 2024 21:05:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="b5FX5eLU" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 1EB3513A26F; Thu, 25 Jan 2024 21:05:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706216723; cv=none; b=CeNUzRNN9P/6vBxu5/b/Ty91sBF1lbciZSIsRyQAlVsKGN4j1WdkWgIToWoIdWBkwC2VbsDrTWwMBg9SIbGYhLPyo/N5v/udV42EmAY7PBpu2T/K60LHld83YnSVcWYDd7pdm1sW8eWIhyvGnae6G6Q2cMwO/ZPJuR+2A6Bljas= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706216723; 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=pczdOnpa5MBy7+W/bApuCQtgE1OVnLgYP87lmsFdK3TDLojPn4Cn4oQK+5ERqiBlsx64AkNwBaHbXym+qrCwrKjAX4vHPw3mbN2qpN8yzlZ6WA8taNP/AbvVWvkjxDtSHungSXky+fvcpfBBx//bqShnxjCjs2YT8RpN6qRfbsw= 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=b5FX5eLU; arc=none smtp.client-ip=205.220.180.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 (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40PJXRHM012751; Thu, 25 Jan 2024 21:05:15 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=b5FX5eLU0qz0i6Y/vY1uTs2RHbLdA6oeT2A3c/rsHM+NDRRCcx2dkDEJN+d pwIz+4G57uOBXa1pLB9TTQhqN99nN1zI72ymlkyITmO90lKTVL6e5wT2NyCoGqZC GkJ6TtR+MBaq1tihIAecRCKBejsl1b4yd1vYfEGQP3PvKP/QiUpUS+WErDtdqkJD VWlVZJ5nEMgp50aa7S1BjbEIYbELR3ikVjSpjAn9YD094yLS4UzR7EqGbJuuBply e/0cxSaprzIRYntww5bz4XiIqROWaS9q/RI/h2zzH6ioAyw83qyZ0w/9bhKiO3yM INHp7HJqhavbz2PlMnf30NwEb7w== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vup5cspv4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:15 +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 40PL5Ek2031728 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 21:05:14 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; Thu, 25 Jan 2024 13:05:13 -0800 From: Bjorn Andersson Date: Thu, 25 Jan 2024 13:05:14 -0800 Subject: [PATCH v4 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: <20240125-sa8295p-gpu-v4-8-7011c2a63037@quicinc.com> References: <20240125-sa8295p-gpu-v4-0-7011c2a63037@quicinc.com> In-Reply-To: <20240125-sa8295p-gpu-v4-0-7011c2a63037@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=1706216711; l=670; i=quic_bjorande@quicinc.com; s=20230915; h=from:subject:message-id; bh=+O+HtBL22at3YsSblQW0xAc9Tt+RUy/3+XcfmdYZC1M=; b=Zt7vqOuJqlj226Il+Xa9PhqxNwKHXn+5ORn3UmyETeZquS6H/63Ml1k17+svdSBnayTmhf9CM iojHAF3qeaXBAP7GpPM8zMdOCSa/EptGjZFiGNfzoh7TaeaejokK7ef 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: hGzViXEhRVBy25z8Kehu0on8MwpNvbyu X-Proofpoint-ORIG-GUID: hGzViXEhRVBy25z8Kehu0on8MwpNvbyu 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-25_13,2024-01-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 phishscore=0 malwarescore=0 mlxlogscore=769 clxscore=1015 bulkscore=0 lowpriorityscore=0 impostorscore=0 spamscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401250152 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789098077059503998 X-GMAIL-MSGID: 1789098077059503998 The Qualcomm SA8295P ADP board uses a max20411 to power the GPU subsystem. Signed-off-by: Bjorn Andersson --- 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