Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1263338rdb; Fri, 16 Feb 2024 09:58:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVGan5Dw420WvaBU37eZ40Z4HecUU3FGP6WaWZWuF/W4CsUVfNE0q9mXissjx6Xol/C4mD+C+EWvZTvvCteV7jOGRFraxZkuJLhYr0Tew== X-Google-Smtp-Source: AGHT+IGyHvnPmqi7KeyXROebxbbE3GyDTA98wD1NfiEjCFHMTlgRbbw/BepgHbB3PvUmA6wCZabq X-Received: by 2002:a05:6808:170b:b0:3c0:35ef:9155 with SMTP id bc11-20020a056808170b00b003c035ef9155mr6439568oib.33.1708106313977; Fri, 16 Feb 2024 09:58:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708106313; cv=pass; d=google.com; s=arc-20160816; b=RP/nqgjvZghzxYn1v8e6CvbQYLGlM2qYtTO3blT30Adlkz6pIJ5OT1C+/XxFoPWLYn Nj+aRBEqnIneCuxyjRFlTH5H3EJLWmR/LwOkjz3GPCxmWVRsID68nF7Xk9xiwsf0Gjnk rTKbDA2o7vueqAzuteOF/iZRNfVA+MGrYY4Ge6viivWiW8gXHqNJrttvr0ffr2kI0TMx DMgO7xboCVHeUocXqWmjjIgHrbIVYM1Wi0sSdI24ooWL4CDhQYwKwMoRDElyYcf45oo8 6/b5Z9u1iS3qcHRD7siA6uYsKoJF40JeiintzXVkEB1WJ6oh8sGgnisZUgluNApy2P12 jLyw== 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=idFAdIDw43S2uFv3oX6aDQZKfKi3Fmwe7YXT6famt4s=; fh=fYpDwuAWyZ/oX/O/WdA/+FiZ9ggQah5dUPT9pRuPSQs=; b=GUa+5my6t2fHheh69ynXP+Hwcj8LmzOwQDWK4Szruy1uVRIJrLdrykJe37Yz/4ApRN GHijvvdILJwnJjNYKldb8oKdGBoNMRVWqfpNDWt+1gSlIfsoW11niwC2OmBXmnJckEf4 A0vXsbNxCYB6qADcHaXJ6SNs+s8l5gSsIEME6HsadpP8p9xdi9Z+iQNuqbZKH320MPQH wvgaKpAom6nGWtS6o+fJqdUobq7JCJ+Zi1u0Twnz+pvpYbpinxrF3sr3yOZ8dg1iRDn9 AHa4J34S1LD7W9dFecsLK43nAcpndD45mMa+okMSMlAadbNLNq3sUTGfcdgsR/mzsP6v 2UfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DMSBG9Bk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69108-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69108-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s10-20020a0562140caa00b0068cbcbdd872si293662qvs.60.2024.02.16.09.58.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 09:58:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69108-linux.lists.archive=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=@kernel.org header.s=k20201202 header.b=DMSBG9Bk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69108-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69108-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B47D91C21F7E for ; Fri, 16 Feb 2024 17:58:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 384711332B6; Fri, 16 Feb 2024 17:58:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DMSBG9Bk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4E4701350C8; Fri, 16 Feb 2024 17:58:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708106287; cv=none; b=eymyXYp2sLjKaMQNOU5hf2GKAYn87mw+fFEFVsD4t+mcYWsGahgDbBgwmmTmBywetdtmJWLHxFKEoaPpPpcHp3DO+SzvyBPY1EBA+f7VUWyWMywvUoIwf/98hmf2ql9wy5v6oQyaat3bHpgAYD6AOKBRm95lV1ioUG1/c8/FfWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708106287; c=relaxed/simple; bh=TzxyUhzWqR9OGR0ur5lsWOcMoqjtLpMgsu+N/yqRV/w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a/QZj2x3ZvsKWF2jIe5qlwhPQs9OS4yiKb5iUOzQp+GxCvNQW+QZF9sEXUNdmWHBVZpMu9CiL0nXiKKMNgJ/hjcCa3YXi54xjk8ZC8GShdvk1GwuqBHSJaa8FFUki9e6MjE70PMeA5duRbZ7+xtHWwsXFvZ7Diy31IAH+bCRA2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DMSBG9Bk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5F1BC433C7; Fri, 16 Feb 2024 17:58:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708106286; bh=TzxyUhzWqR9OGR0ur5lsWOcMoqjtLpMgsu+N/yqRV/w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DMSBG9BkYIxFDjC5KmCPBFFdDDt88bpd723PEAupSkg0/l4CI/u1KJHRUAKZMHHVF 82/WHm5v6nZVd3K1e8jwXwDOTrlml7lkrzn9pTd2ldCnFa2DF6eiJuxf1h3huaMWV2 NiSulu/q0ZWuqy7qUpPCHt5SbrE27oyPe1e7z8t2F/s+zjnEnpAOpgzxYWG3hcAUyM Woq6/rNfkcJQz3NXOVy1mghaxKes9myS5GPleFUqJjvM2rL1NP6ffJvtOyLZ4SFaLu lrpcKGLF0FBZa57SjU6NnHQ7krfusuxiRQa7CJhWN6G0U07A7rtBD26/Taz6MFHzgz kz4kOk6JdhLaw== Date: Fri, 16 Feb 2024 11:58:03 -0600 From: Bjorn Andersson To: Dmitry Baryshkov Cc: quic_fenglinw@quicinc.com, kernel@quicinc.com, Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: qcom: ipq6018: add #power-domain-cells for gcc node Message-ID: References: <20240104-gcc-docs-update-v1-1-127e4816b798@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: On Thu, Jan 04, 2024 at 11:53:46AM +0200, 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,gcc.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-ipq6018.yaml# > > But ipq6018 doesn't implement GDSC support. So for the sake of fixing > the warning you are adding a bogus property. > The platform does indeed have two USB GDSCs, which you can see being referred to in gcc_ipq6018_probe(). But while this patch removes a warning, I think the proper solution would be to actually describe those GDSCs in the DeviceTree as well. Unfortunately this would imply the need to actually implement them in Linux as well. Alternatively, there exist a reason for not actually change the state of these GDSCs at runtime - i.e. the gcc driver is doing the right thing. But if so, this patch would be wrong... Regards, Bjorn > > > > Signed-off-by: Fenglin Wu > > --- > > arch/arm64/boot/dts/qcom/ipq6018.dtsi | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi > > index 39cd6b76b4c1..54914912d610 100644 > > --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi > > +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi > > @@ -386,6 +386,7 @@ gcc: gcc@1800000 { > > reg = <0x0 0x01800000 0x0 0x80000>; > > clocks = <&xo>, <&sleep_clk>; > > clock-names = "xo", "sleep_clk"; > > + #power-domain-cells = <1>; > > #clock-cells = <1>; > > #reset-cells = <1>; > > }; > > > > --- > > base-commit: 17cb8a20bde66a520a2ca7aad1063e1ce7382240 > > change-id: 20240103-gcc-docs-update-fa604579e468 > > > > Best regards, > > -- > > Fenglin Wu > > > > > > > -- > With best wishes > Dmitry