Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1378541rdb; Wed, 24 Jan 2024 13:21:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmujkAwLx4YfeDrAIQ8/bmQs5fIw1uqan6kRNLMU49nki1OLhZD6Ek5tDiw5Z2CCfN7APR X-Received: by 2002:a05:622a:1ce:b0:42a:62eb:6c99 with SMTP id t14-20020a05622a01ce00b0042a62eb6c99mr1107526qtw.51.1706131299534; Wed, 24 Jan 2024 13:21:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706131299; cv=pass; d=google.com; s=arc-20160816; b=QXrfhdAqfKQKr/Woo1Vswsp8Pld7NBqj+fobWQbfgQKALEh2m2Xo5JYDUBYe/SVPbu YoXc12Q1qTjklWGYvFhSlh/z5CGYnigbBR6zV99Bi/6iltlKm5YpcuFww6WayKz+Kriy xIm+BIfCAjmHwVYZ9Ogm09Ao+lfKm1bwXD3FbdjR9ed1I3XMMHCg0ZMPTcPc3d53CeQB g22jHQOLvbkRByVqe1+TisbJuyE3CyppkK/MjBQTmPJnh6+6wJw2RwU7r/RwhG7lS1cx 6uxW2KNB9YstxkphRI1fG5Z2aCh+TIxliJ5GwMIASN+Cg/zCDfi4rQnfupd6i1q4eUs5 gjHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NrQMdqBAv+lIUzaRxo00i82mdCZlOLZNAfk2vB4ojS4=; fh=+ZwjMXXFSBHzPRWJg3w4I89D7ToKasoHVQqqWy6mSiE=; b=T3cEsJZRSJrT8iKCeuQFyHEQU3YUPJFdPECKkybqAvXhrFqqpkfXPzu1rujZuHo6gN M8t7uoctXvLHuECklDfW2S30RPNZvcFnlVuA0yhGylhWVjwGb5sNIV8nS/hSzs3fQtqi rSz0Ygl/llWgjibwxk0AK6SlWPzzZpAv3DsALSNTxMwoXKGlQ+s1cGQwzLhd5iW/x1Hj OtM+FRsY2Bset8NmZSGWjMwhWkl1UNNv0XpjosrXoNzdfM/ctVWArGc9+ewxyFPv2+vP jqZObJe+Uro48ADevnXjbVWhYv4itcTgbtB7SyPgrkpnZGVEiyGlZz6l0ta48tJAD+Hm Ct8g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Mme52Erm; 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-37684-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37684-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r6-20020ac85c86000000b00429a5ba9953si11279633qta.663.2024.01.24.13.21.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 13:21:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37684-linux.lists.archive=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=Mme52Erm; 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-37684-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37684-linux.lists.archive=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 4AD171C22687 for ; Wed, 24 Jan 2024 21:21:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B4601353E9; Wed, 24 Jan 2024 21:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Mme52Erm" 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 D27907E760; Wed, 24 Jan 2024 21:21:26 +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=1706131288; cv=none; b=iF8hmDiMo0Ji+eM9Nsjv3R0pTJDOU2eLQJZJLZ0hsLnaGjpoA6SMNZLim+ElFgwm9wxrDdBjqFyAHxa8CJQ3wNf5n6O5s/5bsyyqshKCDAbupvRVlw2tlnXweWyf2UXhRaawNuX66XOnwCI+f+9CgTHaOTDZ7SBRuv5iO9jGsdc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706131288; c=relaxed/simple; bh=FzOKL9KxZDnA9cvK6swo/MuG4jFcfk0VvlqEQegPZuM=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NwzDoNxCrr864qeHlF53AOVBuvpdSgzOqba+aqBBsLiAH9HHjZOojj+gJ1b2EfNj0Q//YLNbRLPauxjR/k63u8WyprUL4ChJvrdC5TKAcyvIIi0VDeUpFpxnUx2gb3yPBDhCGXTj0tRU3rdE/sb18GyEf2EnwuE5dB+YA+3E6iA= 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=Mme52Erm; 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 (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40OKkjkD001981; Wed, 24 Jan 2024 21:21:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=qcppdkim1; bh=NrQMdqBAv+lIUzaRxo00i 82mdCZlOLZNAfk2vB4ojS4=; b=Mme52Erm7bRgY2cHMG7zrbWV9VeZlueP72/SI JzCtHwuU1jvIbLmKRsg0RAMQ7t4nsxFzJRFy+ZLB8y5n2MyYgVEiSiHgU4myr+Gu 4iCH8fGWtSycVUDtW5gJklU+HyTQ/dZBKVA+eu0Shf9Gv3hg0UOQinH08UMr0iNH dZwPVprAOXP+2tPbYVscUV8RUMgLYWX9TWF1rqXzplwJTYt0lpOA6NGBe3ZXDWUi /3jgraC2txKrPuuessJ9P3r88C+0YHbpF3laifc/xTF5BAvd+HBix5ejLYyfmq6Y prHgL1hxangmbrrqWceKYs6qV3LejrDEEQXHvjxV74F/WPq+Q== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vu81g8b4k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 21:21:18 +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 40OLLHoS012562 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 21:21:17 GMT Received: from hu-bjorande-lv.qualcomm.com (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; Wed, 24 Jan 2024 13:21:17 -0800 Date: Wed, 24 Jan 2024 13:21:16 -0800 From: Bjorn Andersson To: Krzysztof Kozlowski CC: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Taniya Das , Johan Hovold , , , , , , Subject: Re: [PATCH v3 1/8] dt-bindings: clock: qcom: Allow VDD_GFX supply to GX Message-ID: <20240124212116.GH2936378@hu-bjorande-lv.qualcomm.com> References: <20240123-sa8295p-gpu-v3-0-d5b4474c8f33@quicinc.com> <20240123-sa8295p-gpu-v3-1-d5b4474c8f33@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) 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: PnLJdRJX2jEfCfQfJoYniqoyj87W6M1A X-Proofpoint-ORIG-GUID: PnLJdRJX2jEfCfQfJoYniqoyj87W6M1A 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_10,2024-01-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 suspectscore=0 phishscore=0 adultscore=0 spamscore=0 malwarescore=0 impostorscore=0 mlxscore=0 mlxlogscore=771 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401240154 On Wed, Jan 24, 2024 at 07:31:34AM +0100, Krzysztof Kozlowski wrote: > On 24/01/2024 05:25, Bjorn Andersson wrote: > > +# 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 > > I don't fully understand what you want to achieve here. If only "allow > either", so not a "require either", then simpler: > > https://lore.kernel.org/all/20230118163208.GA117919-robh@kernel.org/ > As discussed in v2, power-domains is currently an optional property in this binding and I'm adding vdd-gfx-supply as an alternative to that. As it's optional, barely any of our platforms define the property, so requiring this would not be compatible with existing DT source. It's clear that this does not accurately represent the power situation for the block, so we should fix this. But I'd prefer to see that as a separate task. Implementation-wise, we need to figure how to consume multiple power-domains in the GPUCC drivers in Linux, because the correct definition seems to be to add both CX and GX/GFX domains here - and if we just add them to the DT node Linux will break. Regards, Bjorn