Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7634349rdb; Thu, 4 Jan 2024 02:55:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGitQ6bcQsRge1httaTTl+oMXJ8YLC+wCy9EtrRvU7cUg90x9vI/u0n1D+b1ru1Gpy/uk/0 X-Received: by 2002:a81:5fc6:0:b0:5d7:1940:b37b with SMTP id t189-20020a815fc6000000b005d71940b37bmr441655ywb.71.1704365737334; Thu, 04 Jan 2024 02:55:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704365737; cv=none; d=google.com; s=arc-20160816; b=L7AVdZco8qnjUEUpCql4+pit3En4OekESjuQ+myGcWm9BQUzItukz/wn9u0Afx50id +BEVaJOfBy8fHqM+Kzyji+IZdrkhqN2s4smUdXo1m0qIkwtoSmTWvkxfVLpQm74NGiwS 1ljSg+WWeiCXdlwOuPIQYiTQ9wrw3rwtU5YQkgrVMJ+4HjrPfMcHEPX3SWEZGTMLlPOp 36pnyxGSarzSsjWcdWnQzABhKEVpygjjF9RpVcB3+ZemC7EyQQhlTLvwXfo1H6bOnEhr rA6tgeRKtaEkSouqZVqjrGtd22AesfuO49I3cVKVkR8BFhPvCSk0dQxiRBgKswoDoJg/ T1KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=jJxf3ykBzLOve/gMDAYe0KU704WucKcXMjpxdgkaS3U=; fh=GdkoJ1rnTaEeh8o4hyJ4vzhTX9klwenFbLXJs9x/too=; b=gkcqnY3k6HEO3IyIV6YWyMe900xFlMRWEwSofFWIKrKLfSYEXXAZko9u4M1F4slKPn GJzqHDDpQ7bO42zGlsQMbfcDrHEVUyKhyJJw6ZOTdhczp65Q3Sc/WD8w5jzFl2Ak5lWK tFPXg/Qbe0wGruApDCpbPrXzKY1EtSS5NDCpzhKWC2WDAN752BE34kuF0T3X0b3ebEwN Lc3ckv0Q/y6QtW2odfKAgr/afR4guPv3wcKH4zJXglaNzaPfurG974Ewrk1NRbwNCJhY 2Lqrg6OFWEBcMETAR/Lfsi1e5fIrnkgVVf1Fc4NvrBle5MUW57jTLUldaHJWnNB/zewo yqrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HBQIlj5Z; spf=pass (google.com: domain of linux-kernel+bounces-16543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a22-20020a0ca996000000b0067fa01e78c7si27061798qvb.45.2024.01.04.02.55.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 02:55:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16543-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=@quicinc.com header.s=qcppdkim1 header.b=HBQIlj5Z; spf=pass (google.com: domain of linux-kernel+bounces-16543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 C6FB51C213A9 for ; Thu, 4 Jan 2024 10:55:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 05FA520DFF; Thu, 4 Jan 2024 10:55:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="HBQIlj5Z" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 C819520DDE; Thu, 4 Jan 2024 10:55:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4048ADkP011104; Thu, 4 Jan 2024 10:55:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=jJxf3ykBzLOve/gMDAYe0KU704WucKcXMjpxdgkaS3U=; b=HB QIlj5Z0Iue7xkthyxIDNbocF6PzCtdt6gV+jXnFBRhRktqSKsbglHlrIw0B+jhJn /2XIC4E9UWfWI37//ZOPUgumBWAg3Cl189ct4VlRVAV5octyPxeHtHuU597Chyvl nIpxEIppsQzvTuR54mxbukESFGUmZjdyg45x52T13+QzKc891DjxbMnkO331dQWm l23RXGZOcCagsCSCujABUp45Tzh66abC9TSqM1868I7P1g0H28QKuzdhc+VbQPUW zg/jD4F+rcej/WSbln9DYzkpIRbKgwK2Z9wR39sE2l2mkNyIxBBZlTlK7WWv3vr0 emziBTglcP4cTyplnCsQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vdev61ppu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 Jan 2024 10:55:21 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 404AtK5S024963 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 4 Jan 2024 10:55:20 GMT Received: from [10.239.154.73] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 4 Jan 2024 02:55:14 -0800 Message-ID: Date: Thu, 4 Jan 2024 18:55:12 +0800 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: Dmitry Baryshkov CC: Robert Marko , Konrad Dybcio , , , , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , 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: Fenglin Wu In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: boIiyprB72E7FDxOgs4SXEuNFWYs6zAZ X-Proofpoint-GUID: boIiyprB72E7FDxOgs4SXEuNFWYs6zAZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 impostorscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 mlxlogscore=999 priorityscore=1501 bulkscore=0 mlxscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401040083 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 warnings/errors reported on Qcom board files can be fixed. She can help to comment further. >