Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7632642rdb; Thu, 4 Jan 2024 02:50:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9to0UqRkYR2CoqGIHcpUfLMYEot6wJtLS9pUYqMp72VOJCMvO+ZYulo7Ih2zOTJekY6rT X-Received: by 2002:a05:6808:2886:b0:3bc:804:580e with SMTP id eu6-20020a056808288600b003bc0804580emr353959oib.99.1704365425920; Thu, 04 Jan 2024 02:50:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704365425; cv=none; d=google.com; s=arc-20160816; b=mkubu3DIHjljnYDyN3ai4lDSBkYviNf98O+k7YBR9QQDZwY8HLMQxmtuqjI3GazpMc HleGIj4n5O2g10ZqocZvDlCwEHAg4RuiDkPet22iteIBPUa2wol5eYxf8U5SWeft9mhv 78xZfrj96aT75RGzA6ieOK2f4OcRBYdnRBmanfTokyGXV3HqjvwMSXtS02Sxx8t9Gcol QCv8idswezCUH+jr5l+DMoB57hwLQnPr+J01r/ZwiGmF3OyXb9RYAh5oou74WNP5iTy7 moVVPwt/rajqJwk7ULUwnejbZ43E59s5vJ3sprwUlPTYKjvU5I/V8OF9bDk9STB2HRRd 6luA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=3ZroRwris0DtDaQFjQ/kdJIj4CeYX8OZcE1rnvSqF2A=; fh=FXMS0rx1zkOM+o0KhJtXqNn06WWPNaeBAnOwhKmFT+g=; b=zPqQFXrS8l+Wqb1wPPmg8OSIgvYbxemBpTXh94HZ6Hvjy0jbaw4IrDezQXtT5X9RGy CJ69VOPiEl2CAKrlIhk3zlBY+ydVw5LYphrVQvnQ7n1cYH00XXckorUeEEF0xd6ZrDkc eDd3V2MmOlibatOY8qg/GU0YKI87RWmQ52Q2u3UjfFRUAGz0JuHYJEzEcWhbmOMXZzjH hU+L9ZKSIvCwp/AoV879Pg9hW37e1gfMKN9TO0DJ3oSXCIRLV+QyFP+GwyxIhLJ9QMS7 WMXEuUz9EELrnQx1zq2kqxbQWsT1xYqeNzab+JtHoZv/qgvnF2gX1pjUmrKDk0bSPNyp PWow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qFmprMCX; spf=pass (google.com: domain of linux-kernel+bounces-16538-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16538-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c16-20020a630d10000000b005c6eb3502bfsi23755531pgl.309.2024.01.04.02.50.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 02:50:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16538-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qFmprMCX; spf=pass (google.com: domain of linux-kernel+bounces-16538-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16538-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 07EFBB229F3 for ; Thu, 4 Jan 2024 10:50:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF65921102; Thu, 4 Jan 2024 10:49:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qFmprMCX" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (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 C648E20DDD for ; Thu, 4 Jan 2024 10:49:56 +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-f172.google.com with SMTP id 00721157ae682-5f0629e67f4so3822787b3.3 for ; Thu, 04 Jan 2024 02:49:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704365396; x=1704970196; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3ZroRwris0DtDaQFjQ/kdJIj4CeYX8OZcE1rnvSqF2A=; b=qFmprMCXdNYa1fKbHMLW0Zq+zjeJScBjC54viefwD1FtW4HpaJ73M5Di24y3AcOJYA zINRck9cj/sEZMWv7ge+oPgHc46oHdRStkQXevXXVMn6nNIzTbbeQveJ71k8maTZFWHP xPN6G7SzT1rSSuNUFQIPzy4+Sc+C/F4giA/r1eTXyi4zOLpInvdO5yQ8HSPAMbOSGfPS G+qKeALpXIfUIFXsU2izw15aQ1VGFluK/4EkR8BbKP492sGlStGqmkGBktoKc0xWTjQx T5xwyBLK00u/6vcLAidyTaYX+SLH/kITeStzo4KiaSlBGCZj0giVh/PXFnVU+ygFTNcB tKMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704365396; x=1704970196; h=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=3ZroRwris0DtDaQFjQ/kdJIj4CeYX8OZcE1rnvSqF2A=; b=eHbX3m7psghSfcb+yHfeo5nYYe5Wi5gryqjEqMgy6U0eACzDhzsINfyKX5MFPsq3VJ ptMxsC3TASSBr6NAyu+2rw9DXAWB8vYO6u1GVf3r3f0v+p0kFpAX4DMd+5k6UwVwppAc Cwfb2SshNQdTsxlLkDoStmQrfvAU07s5N58M740Xqg9d7KOusrMI3CLC3axlp+z91UbU Es0yj2fkXbnJeUs7Ct/5iQusrUOX/ldRO3AbNaWX6Ia/9i3Cj/5sYX3nSn8wFf+hhOan +6rL5s95eV6zOtAV8VSaA8aq0/I67c+Oc9FfqQoRLfeoXiVi0nejIozl4whv028Xlw68 qKxQ== X-Gm-Message-State: AOJu0YwPr7t517AMJU5THSRqntlYjXlDU5b5Vu1t10ggrvcNm8P2VKJs uWa5jZiAEOOayFr6zM73kCOY0+Q9D07ephe5KVOwD53hCWK+3A== X-Received: by 2002:a25:2d03:0:b0:db9:82b9:28b5 with SMTP id t3-20020a252d03000000b00db982b928b5mr335890ybt.35.1704365395795; Thu, 04 Jan 2024 02:49:55 -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> <685f45d9-48e8-49c6-9de0-6771777ba62e@gmail.com> In-Reply-To: From: Dmitry Baryshkov Date: Thu, 4 Jan 2024 12:49:44 +0200 Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: ipq6018: add #power-domain-cells for gcc node To: Fenglin Wu 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 Content-Type: text/plain; charset="UTF-8" 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? -- With best wishes Dmitry