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: