Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7625998rdb; Thu, 4 Jan 2024 02:31:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IETmd27DO4uYZrxFyH/uJOCG8Dn3LN6R8xN4ZgNKY7e5RECnWNotIgp+Cm2ZVqToRMolkod X-Received: by 2002:ac2:5973:0:b0:50e:3907:46b7 with SMTP id h19-20020ac25973000000b0050e390746b7mr190472lfp.107.1704364282562; Thu, 04 Jan 2024 02:31:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704364282; cv=none; d=google.com; s=arc-20160816; b=mfYdxqef9G1s4GrEkumfsMcFV5rg5y/8MLawSgTjY3RtiHVd5pJQ1WEkYBpMukB4Q0 WJ9x3kAEfXBuWx2DfjNOWPOO/8j/H00frx3nALQAhFcawAj1cU208lTEGti/6L9pBUQv qhtWnJGokfqAHiwSCwTssFZPSCUMZNCWbKONj1V0+2/tNSQGIJ8PdOHsMTHjNCEc2Qv7 uPlUfyS5yr9mDtzz8C2KI87OxEGC6siq1QadDxVATWkum+j9lOD0Yu15x+49DnGMnzJJ ZvHhZ4FUeXU+UJ1lscxYISekeEhH1n/zsDcz5q5kIHe/vQgdNQ3UXFqvEMb1RfUnDgd+ xYqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=dCNFeNKXOeCzIlUtEMdOZEsjRxjcm1Bo281rfBm6FiA=; fh=HydByzYcAyG4wDE8VKEQ27nP7ykPJjcqTkFnZpvsjes=; b=MY2pB177xpl2LwecTLOPoo70HbuC3vDhqE5+cPEqwiAMLoXgjjUJC/oIO28q5FtRrk LMEGY0uwx7b6rgcx1j21KlKnOBL1l4zg4DHqw3xsT0y/KNkZAyrzweP5M/kA8B7Ba+If xJ/dlnB2fBHjuqCMam6tvJDFNcqt44OcNPZsI3YniT1dFHkWXM761JO2sMOO/Z/zzOMv 3HALwYWYNono77c25pMkoYH3m2BtJjAn+Gs8VAwdSwKhH+4ANUNsBtum2h+aLaVj7Gg9 HqC2F+FsvvOiVUmmNwVcJLfj09Qq7D6TWlgoBP8ngDvkvmE/yJ9I+cU7dfwhtAMjfvZG ZNDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=diyYpS6f; spf=pass (google.com: domain of linux-kernel+bounces-16504-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16504-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y8-20020a056402358800b0055490e36565si10723624edc.55.2024.01.04.02.31.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 02:31:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16504-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=diyYpS6f; spf=pass (google.com: domain of linux-kernel+bounces-16504-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16504-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4480F1F2500D for ; Thu, 4 Jan 2024 10:31:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7865720DD8; Thu, 4 Jan 2024 10:31:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="diyYpS6f" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 24E7E1D52C for ; Thu, 4 Jan 2024 10:31:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-5e7c1012a42so3486577b3.3 for ; Thu, 04 Jan 2024 02:31:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704364269; x=1704969069; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dCNFeNKXOeCzIlUtEMdOZEsjRxjcm1Bo281rfBm6FiA=; b=diyYpS6fqZS18QiYj9nlfzGyT8Z1oUF7L94pj+VaWabXE0Iac0N2z37LpTWMx+BjY1 HdcYhJBjDgYWuj6zoxTubEmBWDlgfetIGvnNM4oxqB/sqdHEUwpE2jNhETkgpfB6DIE+ D8zFDYpnZMSk7MyKEHn/Xeh2l2RwBDLm7aXg8VDhEES56Wp4mBpYQ0TSzZNJ7FQiz7CZ +KdkoW5Ip0rkDNq3ThMTKr2zuEWCDCAIBn9mH6ZQ3EjWR2UmgVTkZd0jpoin/O8MXe8V B8lu5N85lXafhA+vNRaZOAVXC0VMLNWBBFoVYUn4y0YEDEM1Vqy1qzeL5rE6DDFW1K4d GOGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704364269; x=1704969069; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dCNFeNKXOeCzIlUtEMdOZEsjRxjcm1Bo281rfBm6FiA=; b=xEw19s+2314yAHhGKo4lhR/6RX5SPOWKIEUBntHsBUUpXZ9+3/OHR2mDhKq74I4or0 zm63xGe7++XBBH1t/ybUA+QFQyfAZssFUwwLkhf/TgGSAayYk1sTGBpEGg/xc86h6Pzo wQoOTDJLFe6Ap4X4G5wA92I9oRH1JJu39nAl8+TBoj86tuIObfkMkvaJPKnkPeqR7WX4 YLvHXNTc9mJvvwjp7R/oMSFhazA730K2dDkRldzbxImmWgruOOwP5qxrJ4rQR3xxy8jN lmr1e0gh6sxfiuQOALKkLoFIvkBc/NYuRwvnLNfgOY5QZQt3dK966I+NXocbYDho4W/s +wCg== X-Gm-Message-State: AOJu0Yz0HPe8BEjKpRM9VrqiB86Tp0g4yASKn1tSmOnUaoVYIZluwDRx c7lzGn5O+sfLDb9oeCNdQbB0YgVnuSZyqEgVpK5ZNIxqsq3xrg== X-Received: by 2002:a0d:e9c2:0:b0:5e4:acfc:4d0e with SMTP id s185-20020a0de9c2000000b005e4acfc4d0emr417065ywe.2.1704364269013; Thu, 04 Jan 2024 02:31:09 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240104-gcc-docs-update-v1-1-127e4816b798@quicinc.com> <724f608a-cbfe-48f6-a1f7-59b961a7d724@quicinc.com> <56ee556d-ec31-4553-bce3-0c1e12c111ed@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Thu, 4 Jan 2024 12:30:57 +0200 Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: ipq6018: add #power-domain-cells for gcc node To: Fenglin Wu Cc: Konrad Dybcio , quic_tdas@quicinc.com, quic_aiquny@quicinc.com, kernel@quicinc.com, Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 4 Jan 2024 at 12:27, Fenglin Wu wrote: > > > > On 1/4/2024 6:16 PM, Konrad Dybcio wrote: > > On 4.01.2024 11:13, Fenglin Wu wrote: > >> > >> > >> On 1/4/2024 5:53 PM, Dmitry Baryshkov wrote: > >>> On Thu, 4 Jan 2024 at 10:06, Fenglin Wu via B4 Relay > >>> wrote: > >>>> > >>>> From: Fenglin Wu > >>>> > >>>> Property '#power-domain-cells' is required as per defined in qcom,gc= c.yaml > >>>> so add it for ipq6018 gcc device node to eliminate following warning= in > >>>> dtbs_check: > >>>> > >>>> arch/arm64/boot/dts/qcom/ipq6018-cp01-c1.dtb: gcc@1800000: > >>>> '#power-domain-cells' is a required property > >>>> from schema $id: http://devicetree.org/schemas/clock/qcom,gcc-ipq601= 8.yaml# > >>> > >>> But ipq6018 doesn't implement GDSC support. So for the sake of fixing > >>> the warning you are adding a bogus property. > >>> > >> I agree. However, there are also some gcc drivers not implementing GDS= C support but the bindings are adding '#power-domain-cells' in the DT examp= le, such as: qcom,gcc-apq8064.yaml, qcom,gcc-ipq4019.yaml, qcom,gcc-ipq6018= .yaml, qcom,gcc-ipq8064.yaml, qcom,gcc-msm8660.yaml. > >> > >> Actually I thought that maybe we should do a clean up by removing '#po= wer-domain-cells' out of the qcom,gcc.yaml binding and only adding it into = individual qcom,gcc-xxx.yaml for the driver which has implemented GDSC supp= ort. I checked this with Taniya offline, but she prefers only fixing it in = ipq6018.dtsi as it doesn't hurt anything by adding the property, and she ex= pects the GDSC support should be existing in most of qcom,gcc drivers espec= ially the newer Qcom chipsets. > > > > Before we start changing anything, we should assess whether these > > platforms actually have GDSCs within this clock controller block, > > even if they are (currently) not described in the clk driver. > > > I would assume '#power-domain-cells' is only required for drivers which > register GDSC as power-domain device, for drivers that only configure > GDSC during probe or for platforms have GDSC but not register them as > power-domain device, making '#power-domain-cells' as a required property > doesn't help anything but just generating more dtbs check warnings. If there is a hardware GDSC, it should be registered in software unless there is a good reason to do otherwise. --=20 With best wishes Dmitry