Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7666797rdb; Thu, 4 Jan 2024 04:07:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZl4FE0JeC7vRoj7hO0kkOoDFzrD4qwNIgZWSRRGagCrfH+aOGsIeGO7ZdzapD0MWwOHrW X-Received: by 2002:a05:6359:679d:b0:173:a7a:a9f0 with SMTP id sq29-20020a056359679d00b001730a7aa9f0mr338953rwb.26.1704370074385; Thu, 04 Jan 2024 04:07:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704370074; cv=none; d=google.com; s=arc-20160816; b=hQFum7JTSEk9tC5XLhdWgMCJJpxK6+9pUSrpNTyEm/J5r1lWqSc4NzFw142XMVsMGr 04MkZ1C5T4hTuGE728SuGJEGWb70XcuGawUggpffsvO+X6obSMIFjBdR/RmizbkB8EDV DSFv69HiIzVn/doQtrs5Qojp3wVz3Lab44nGfbwLP48WQK4wTstNGJBvHC1UZqq2LoUh GZj64Nc5jY5CKczUK0DjTJeT3CMTEkS1aN3v3Y1cJqZZffXCp4xbno5v9CwptyYfZk/k Db5xCoA8zTOrGQ3OB1xprInDLAub4hOTrSsJwXPad5JFM0fBTFuLknp7Kgwjkqo+Gw3r tqRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=B8jCwMDgZSyl6nR1Fd9Z+yK1tqC9F+y4Fnvbfm9QdOo=; fh=uamk32dUqki8XeRXetzcrSKyt9vdQ8rt9usrMlqQnR0=; b=zbHF3csssU3Au8zKzyZXSzzb1upSjuEnhCCSMMjeyRyqe/ez42ZfuFH7EWi3TRXn1/ QC3ciF72xAahGo16AkLadymkn/Q401Ky42C7VEoQeLt+wbS1dJO8bE0KaEHIfyV8ckJC vXkjuok4kHjtCDvHidBCjZyGCZsdlDEqsnV/6bK02IEm/FINOVDZFxoO1mEeNK7Ze7Jo yuKQruztuHYND8vUT2XyVhm5Cg3DS66dNtYWrpdzkzkKSGq9nWJB0dutzPpyvLh4jgz1 tNXnAfkNkBxCjLTTPtG2nxLfOEb6dCwgguebY52fi0s22uafsOJ6rrcY5k1nszI684lP 78+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L2hAgAPR; spf=pass (google.com: domain of linux-kernel+bounces-16619-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16619-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. [147.75.199.223]) by mx.google.com with ESMTPS id o7-20020a05622a044700b004279142b1bbsi31877568qtx.465.2024.01.04.04.07.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 04:07:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16619-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=@linaro.org header.s=google header.b=L2hAgAPR; spf=pass (google.com: domain of linux-kernel+bounces-16619-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16619-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 180C41C215A9 for ; Thu, 4 Jan 2024 12:07:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 631352136C; Thu, 4 Jan 2024 12:07:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="L2hAgAPR" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 2EB0821369 for ; Thu, 4 Jan 2024 12:07:43 +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-ej1-f46.google.com with SMTP id a640c23a62f3a-a26f5e937b5so49812366b.0 for ; Thu, 04 Jan 2024 04:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704370061; x=1704974861; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=B8jCwMDgZSyl6nR1Fd9Z+yK1tqC9F+y4Fnvbfm9QdOo=; b=L2hAgAPRZESEczY18IocUr+4g9YeKy06kK8lAArXN4b8jaQ735ZRIhr9rAQjrdNrxY BZqvl/NUxYYNx+Z4Nxv5UuIZrRZ0fPTRqHtpGygrvKlffbM8HVCu/OgrdB0HFVhYOCtl RFgbOvUHCG9OzprmHtIS1bGivyAoi0y/oeNv8PEKgTISidUvy8CrziaVhFqh1wHJzi3I yfwkkMSU1h1Bk1++EIIil2H5gY9dqOngZlJKvnp5Fw1EJS5QMANgluc+0hoDLFlytILW C4gf9f2TGbEqah5nZPKoucXzqnjT/5/9ktPXTm3qpHcBID7hUFYRfPjgth4IIkmAhMXb KEpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704370061; x=1704974861; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=B8jCwMDgZSyl6nR1Fd9Z+yK1tqC9F+y4Fnvbfm9QdOo=; b=aAOuDQR/GCKgPJgWfchHh0U0YFGO8xemAy4SdvDaxMAum2aRU2T/xz+AIkI36mE8X5 5in7nM+rMscxgTxpYpMa51mvDMJ9faq1Mfy8GbQC5+St44kXZCSdwhDk9osxv7t6RTQP b7WPoKGWkPoWON9LtmyJ6aVpV7pBIHipdyBHUC5kCWP+QaTpw/Jo1s/ebGRswr6X4mGa 8QTXGyOk0GmYsLKo607jy3r3Zv55IoCw5XnEmSKxsog8MIp7XESWi6KKq49ubm/NDrEa vbxrA0IsWP6YiHqj+9smX4VXqvG3jYq4GrJyMC2Dorf2mvistVzlaQ45VMymp/c4Nmqg vn7Q== X-Gm-Message-State: AOJu0YwN2Optf8deYsdoigMhYpSeXbaL+F7yQiTwk2JOi6gEFL6MfMuB BOs+wX7yyBt4h0P9/UZ1QRFEN16fs//z8A== X-Received: by 2002:a17:906:4153:b0:a28:ab53:eda1 with SMTP id l19-20020a170906415300b00a28ab53eda1mr283695ejk.34.1704370061429; Thu, 04 Jan 2024 04:07:41 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id wh14-20020a170906fd0e00b00a234907311asm13622465ejb.55.2024.01.04.04.07.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Jan 2024 04:07:40 -0800 (PST) Message-ID: <166fb0ff-dfd7-408a-ade1-2aa5a51d96aa@linaro.org> Date: Thu, 4 Jan 2024 13:07:38 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: qcom: ipq6018: add #power-domain-cells for gcc node Content-Language: en-US To: Fenglin Wu , Dmitry Baryshkov Cc: Robert Marko , 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 References: <20240104-gcc-docs-update-v1-1-127e4816b798@quicinc.com> <724f608a-cbfe-48f6-a1f7-59b961a7d724@quicinc.com> <56ee556d-ec31-4553-bce3-0c1e12c111ed@linaro.org> <685f45d9-48e8-49c6-9de0-6771777ba62e@gmail.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH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9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 04/01/2024 11:55, Fenglin Wu wrote: > > > On 1/4/2024 6:49 PM, Dmitry Baryshkov wrote: >> On Thu, 4 Jan 2024 at 12:41, Fenglin Wu wrote: >>> >>> >>> >>> On 1/4/2024 6:32 PM, Robert Marko wrote: >>>> >>>> On 04. 01. 2024. 11: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 example, 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 >>>>>> '#power-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 support. 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 expects the GDSC support should be >>>>>> existing in most of qcom,gcc drivers especially 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. >>>> Hi, >>>> IPQ6018 has GDSC-s, at least for the USB-s. >>>> I tried configuring them a while ago, but the USB2.0 GDSC seems to >>>> either have a HW bug or >>>> it uses some special configuration as its status bits never show that >>>> its ON [1]. >>>> >>>> [1] >>>> https://patchwork.kernel.org/project/linux-arm-msm/patch/20231025104457.628109-2-robimarko@gmail.com/ >>>> >>> Thanks for the link! I checked the spec internal, and I did see GDSC >>> device for USB0/USB1 controller is present in GCC clock controller. >>> So considering there is a patch ongoing to add GDSC device for ipq6018 >>> gcc driver, can the DT commit which adds '#power-domain-cells' be accepted? >> >> What for? > Maria (quic_aiquny@quicinc.com, copied) is working on automation tool in > Qcom internally to check dt_binding and dtbs and she expects all the Check existing tree is trivial, I had something running months ago. Unless you meant checking patches before you send them? > warnings/errors reported on Qcom board files can be fixed. She can help > to comment further. Anyway, fixing something incorrectly just because your tool cannot handle existing issues, is not the reason. Best regards, Krzysztof