Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp671773rdb; Fri, 22 Dec 2023 01:10:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuMuahUGKNIeQqgJTORzuUzeBD9SLtPVa2miorKwv1kyat9JFMD0wtPbj64VW76BVrJGeS X-Received: by 2002:a17:906:2849:b0:a23:5742:d037 with SMTP id s9-20020a170906284900b00a235742d037mr571071ejc.119.1703236243653; Fri, 22 Dec 2023 01:10:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703236243; cv=none; d=google.com; s=arc-20160816; b=UYBe7DmdDBpW4Ar6A19v7403lS4KrNftl6yUboANkt/5F7YtvGGNRfZdO/v3kdDdPP NQGTrutwagtCJyYtB/7fOlRGMhpMHo1PE6wgGHAtzKcjnViuIxD+ZMoRN/G0Xf8G5Brn z6SbP1IXi+F9W+70euelRsstlK+0V7oXRZlu/TOe0DG2ptOp0OggA83g1uBI+IK1ZjuC vEeMaD51ciWJ4eUgxVXhTYZO1dX3drkW/Xvu2iFUAxbpjwk20x0Wyjkp7Eyv2d1yen1S uLCoydV0cR4ZVn/H1/3u+/AFNZB3RKc7NybcsJNPFMLY8KyyjV5DW8y7KzVXQpjw7f+D P1JQ== 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=Lkv5cExqbgBfEYwPN2LzjTfOWK6VQMomkTuKOAgayGQ=; fh=nj3N5qwUz6vhZRHz9epxZMUO1VEzb3JEVLSW/ciuE0g=; b=J1ZwXFrkQlJAJLw/Lpy/Av5IV1cfJt7656hOqmp4D6pnPy18dJFsj5yPwYAwghhnCn 3iap3t9AZbZBHn3MivK0Wq9IrOR8kTJP35MgmUunBCWFGUw5cZG7feBQbmui4FtlwbeC fWPuB0hH/6qoFCsTFpi5zr1s5O954yHQ21YiPqIpvEorjDJ0YK3iEAiPlV+/Il2khO/7 E2GU7fGReIzRDFhYRWh8E1dPZhezkB++UOYzs3DSwJOxtDnZHNGczfgYqMvMadY9Zk/b uJe1tbZBC8dKtjuwHIfCgahnY/AFeA6p7AhPtmze4i0b6ouqHL6gzUzimGQ/p6RL2DSR gl1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hVOjVLwW; spf=pass (google.com: domain of linux-kernel+bounces-9533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l25-20020a170906079900b00a269e6528fesi1603585ejc.732.2023.12.22.01.10.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 01:10:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hVOjVLwW; spf=pass (google.com: domain of linux-kernel+bounces-9533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9533-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 34EAB1F2600B for ; Fri, 22 Dec 2023 09:10:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B3F0DF42; Fri, 22 Dec 2023 09:10:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="hVOjVLwW" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 D0904D512; Fri, 22 Dec 2023 09:10:31 +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 (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BM0oWRi016607; Fri, 22 Dec 2023 09:10:27 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=Lkv5cExqbgBfEYwPN2LzjTfOWK6VQMomkTuKOAgayGQ=; b=hV OjVLwWU0KI77djXTtp2Unxzt++fe6xahYC0CEtfHHMTeVd2niC7uon1qemQtweWX zS7kLHw5bH3QVVXFNrnD3YRdC7fog6QdKKtZQMNdcMS+pcgO+xX9FMeFNfvvYEFu z8FyFZuR4LSyRlrOeslb/Y3NARbpGRjWA3siFpGRI80xBXmNAUEajCW4rluMb6p/ DnCORbgGg8z5B0FZEOAPPqivizc7hL03NasLErbkkGdmlxypIKa+5sn6CW+v14Ef kdGt0KQupcZR24hMtNwiGKTJG6F4wUqs/Q8PE2gyGdmmVvzguHE5M3Ji7lzU/7vj d3jDdmgP/V3lfGPFuPsA== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3v4tue9qe6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Dec 2023 09:10:27 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BM9AQW4007949 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Dec 2023 09:10:26 GMT Received: from [10.239.132.150] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 22 Dec 2023 01:10:19 -0800 Message-ID: <459ef8e4-bbbc-4a7d-969c-43f269ef6793@quicinc.com> Date: Fri, 22 Dec 2023 17:10:16 +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 v3 1/1] arm64: dts: qcom: sm8550: remove address/size-cells from mdss_dsi1 Content-Language: en-US To: Krzysztof Kozlowski , Dmitry Baryshkov CC: Tengfei Fan , , , , , , , , , References: <20231219003106.8663-1-quic_tengfan@quicinc.com> <20231219003106.8663-2-quic_tengfan@quicinc.com> <457e336e-004c-4721-b58d-e9ada16dc04b@linaro.org> <13b61d41-6045-499e-864b-51c6cb6eacf9@linaro.org> <38604415-b410-4995-9c4f-525536435699@quicinc.com> <72305a35-02e6-4ff6-8251-01f986530c5d@quicinc.com> <4e328cd8-9ef7-42ce-b592-7f2216c00c0b@quicinc.com> <6a4356e2-e201-4b87-bac0-056b29a07fc8@linaro.org> From: "Aiqun Yu (Maria)" In-Reply-To: <6a4356e2-e201-4b87-bac0-056b29a07fc8@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: RH3ULBYQU0Wd-WIavAZYZ4eMUWlWP0BD X-Proofpoint-ORIG-GUID: RH3ULBYQU0Wd-WIavAZYZ4eMUWlWP0BD 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_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 impostorscore=0 phishscore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 spamscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312220064 On 12/21/2023 4:57 PM, Krzysztof Kozlowski wrote: > On 21/12/2023 09:49, Aiqun Yu (Maria) wrote: >> For example: >> >> --- a/Documentation/devicetree/bindings/display/msm/qcom,sm8550-mdss.yaml >> +++ b/Documentation/devicetree/bindings/display/msm/qcom,sm8550-mdss.yaml >> >> @@ -55,14 +50,7 @@ patternProperties: >> - const: qcom,sm8350-dp >> >> "^dsi@[0-9a-f]+$": >> - type: object >> - additionalProperties: true >> - >> - properties: >> - compatible: >> - items: >> - - const: qcom,sm8550-dsi-ctrl >> - - const: qcom,mdss-dsi-ctrl >> + $ref: ../dsi-controller-main.yaml# >> >> With above unified reference change, it will be easier for other >> developers to reference bindings files next time. >> Also dsi@[0-9a-f] node in mdss node will be correctly fully described. > > No, this does not make sense and allows anything as dsi. It is opposite > of what we want in bindings, so NAK. > >>> >>>> In my opinion if the example have "#address-cells" "#size-cells", then >>>> it's better to also include "panel@0" with "reg = <0>" to not confuse. >>> >>> It is already there, see dsi-controller.yaml. >>> >>>>>> 3. Too many bindings files for driver "qcom,mdss-dsi-ctrl", shall we align them into 1 binding files. >>>>> >>>>> There is just one. >>>> Currently I mentioned bindings files was searched the compatible >>>> "qcom,mdss-dsi-ctrl", and find binding docs like "qcom,sm8550-mdss.yaml" >>>> "qcom,sm8450-mdss.yaml" etc. >>>> There is duplicate information on "qcom,sm8550-mdss.yaml" etc, while >>>> "qcom,mdss-common.yaml" is not common enough for my understanding. >>> >>> If you had compared the qcom,SOC-mdss.yaml, you would have seen that >>> they provide tight binding between compatible strings used for all the >>> subblocks. The `mdss-common.yaml` describes MDSS common properties. It >>> describes everything except the platform specifics. It can not be made >>> more common. And there is no duplication. >>> >>> If you think you can improve the bindings, please send the patches. >> I am thinking of a unified qcom,mdss.yaml instead of "qcom,*each >> SOC*-mdss.yaml". I will try to have a patch. > > I asked first of you to read previous discussions. If you still insist > on sending patch for this, it means you did not read them. Do you have the previous discussion title/link that you are refereed here pls? > > How you wrote this idea, sounds like exactly opposite of what we were > doing and what I was recommending few times on the list, so it is very > likely I will NAK it. > >>> They must pass the `make dt_binding_check` check. >> Thx for the remind. > > And follow bindings guidelines. > >>> >>>>>> 4. enhance the dtc warning check if we still want to have "#address-cells" "#size-cells" even if there is no "panel@0" attached. >>>>> >>>>> In my opinion this is a way to go, if any. Did you include devicetree@ ML and the corresponding maintainers into the discussion? >>>> Already included devicetree@ ML at the very beginning. >>> >>> Good, thanks for the confirmation. >>> >>>> If the required properties part in each yaml is marked good enough, I >>>> think it can be an input for avoid unnecessary dtc warnings. >>> >>> Patches are welcome. >> Improving developer efficiency with unnecessary warnings is one of my >> interest as well. >> First of all, I'd better to make sure "Required properties" attribute in >> current bindings are good enough. Let me try to get back on this in a > > I don't understand why do you keep mentioning the "required properties". > They have nothing to do with any of this here. > > > > Best regards, > Krzysztof > -- Thx and BRs, Aiqun(Maria) Yu