Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7627575rdb; Thu, 4 Jan 2024 02:35:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFegH8jMByJwdggZ0PI24GBwrX5caU1fh8mRshbpb/Wct3EDgoAy6mGP8Jayb8ASBJIca4b X-Received: by 2002:a05:6214:624:b0:67a:b622:60b8 with SMTP id a4-20020a056214062400b0067ab62260b8mr417412qvx.61.1704364533457; Thu, 04 Jan 2024 02:35:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704364533; cv=none; d=google.com; s=arc-20160816; b=xp7HaVXBxJzbREXOe55WKzoArXTzSXspFqigT6odPBRywSFdv+QxF6vam4PZrJECQa yPf1g8A4MmAMbkG/NZbtLcCIU1AhEizuRZ8K4y/1316eguCDyAuSOGPW8Mw2AIRDTaVp i13QiL9ySxpmWkEgn4gsaZWovVvDte0Icms0dKfAscer1s7FbizwBjg9Dwhr1r0OVf3w XJVGLiFKXK98XJbKh96TUTJ4P1VBVhpmVtn0h8HGfZNCZkOkdvJYM56UIDtZKme792rL /75o4mO9S0Sw/opb0batO36p5/6M64bvigoxuNF22Ttv7I/DDzKDDIlPzCTXhyWyBa8r CzJw== 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=iGDdBT8N7Ke807mIT2INPgeaZYTNLnZUsmFbCBznysw=; fh=Ib8811x4+A7zrESnx3cj4mTfOvqN0Oq+z+IMLb3CXKA=; b=AUea+nabjJy7tETD7xwmhnEok9hG8HZKDU5A9Y1UWHweIiKjGkoGmju4BNDmz08KZa iTvFQj2GzMWwPZWER2qH8ytgxZQjYR4UDhhoAOi50putNWXYHMy0HJ1ZzB6L6AFbVsiU N+CXXKf1Kt/CodULsaeK7I7VU1OXQuAX4MYOHh9BWDzvTbPuQdUkN42h2i3niyOSgIOT jmZLWGsnUXOzMlZJSPiIgg4LZEmewBr/3+GrrxGLoal6INfMxw7o/tJ4el+HI0LkJuZm agcT/WXvDvpbse/e7ibqmlqvQT8WC7tBOOqLSRgASV5AfTJETdFQ/fKC9CMHlYVCxEaF SMLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kJEMdnwr; spf=pass (google.com: domain of linux-kernel+bounces-16511-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16511-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r9-20020a0c9e89000000b0067f86aa10fesi30301554qvd.146.2024.01.04.02.35.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 02:35:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16511-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=@linaro.org header.s=google header.b=kJEMdnwr; spf=pass (google.com: domain of linux-kernel+bounces-16511-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16511-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 38C3D1C23999 for ; Thu, 4 Jan 2024 10:35:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE35820DF6; Thu, 4 Jan 2024 10:35:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kJEMdnwr" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) (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 826C020DD0 for ; Thu, 4 Jan 2024 10:35: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-yb1-f169.google.com with SMTP id 3f1490d57ef6-dbd990ad852so323024276.1 for ; Thu, 04 Jan 2024 02:35:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704364508; x=1704969308; 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=iGDdBT8N7Ke807mIT2INPgeaZYTNLnZUsmFbCBznysw=; b=kJEMdnwrmCIEhf2MMccQchvV+ExuL6vLzxUNaGYu+wFnCTavWJUqX7Db04McsPshNx rXU2aDcFSAYtQ9SSXzc7jr0T9gC3Jcak1FTUhCl3TaWyYr4/+HxOc2aVNLCpRPIAdXjI BIHQyBw8ZJt+wzVxPRq0toW8G2G7ckSk2ui+El273DPy3Ah9akg3vc5P3xaJ729bePZf fEMEsY1K2I765OcE+e6VOyfIFHp1bkYVFL3Ojr04rzLgBBmQDEjPrgR7zYgWoVmuDXDe 5Tc1e6CR+obPdnYrK+iCX+wFt1ozAhni+a1YEuUAZ7NWi6lgQCzflxTdu8hpWTqsqvtS L1Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704364508; x=1704969308; 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=iGDdBT8N7Ke807mIT2INPgeaZYTNLnZUsmFbCBznysw=; b=X5WnvVcpTUnVNhJvszHsBrng5OHtuWF/GhRB5Zp5TO4D5utSBu63VPgbO4deJuje2n 8Il2TQVOivlQNESptibjmzZ5qZXGcn307lEKuU8a37YrtHQpXmPOojNZANaa6DTcp9Be dQwLq6kD6XBl5Bn25SpxD7tpiFV4nCoqgqq9eoHUxaGGUYaKJ48eilJ37FeiyBRSm4r8 LcmsCaVsmrprtpHZ3RJHvhR2EevSAUBlzAVEag2sxnpGYQV3q2EcQs6c3mLE1c6pyuuW QRPC2DHLozpzPNBR120w2E0CrLaG1sAC+qQACzf/KZ8hwGOLg1qlncmhICCaDg/plhFQ N0pw== X-Gm-Message-State: AOJu0Yw3isyBfgisx+7t6grDHdojH25qu2Z4iHf9mvEcNKRA5wKjn70G ctwYOumrBAaoHsMo0DXOnvUJBNWJVea6Gsg9+KhbBOhnvLxP6g== X-Received: by 2002:a25:e20c:0:b0:dbd:beef:a4d3 with SMTP id h12-20020a25e20c000000b00dbdbeefa4d3mr291291ybe.64.1704364508485; Thu, 04 Jan 2024 02:35:08 -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: <56ee556d-ec31-4553-bce3-0c1e12c111ed@linaro.org> From: Dmitry Baryshkov Date: Thu, 4 Jan 2024 12:34:57 +0200 Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: ipq6018: add #power-domain-cells for gcc node To: Konrad Dybcio Cc: Fenglin Wu , 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:16, 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,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. > >> > > I agree. However, there are also some gcc drivers not implementing GDSC= support but the bindings are adding '#power-domain-cells' in the DT exampl= e, 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 '#pow= er-domain-cells' out of the qcom,gcc.yaml binding and only adding it into i= ndividual qcom,gcc-xxx.yaml for the driver which has implemented GDSC suppo= rt. I checked this with Taniya offline, but she prefers only fixing it in i= pq6018.dtsi as it doesn't hurt anything by adding the property, and she exp= ects the GDSC support should be existing in most of qcom,gcc drivers especi= ally 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. APQ8064 / MSM8960 / MSM8x60 (and thus I assume IPQ8064) have an older power rail control mechanism called footswitch / GFS_CTL. We do not implement it (for now), but it might be worth implementing it as the question has been raised. --=20 With best wishes Dmitry