Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp10951rdb; Thu, 21 Dec 2023 00:57:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmRKg2aQFLJ0m01IuCsDLl8dnfETyCEXoRdqlzlT8yjgKw8vr/qLlu/LhqEAt9QssCam4v X-Received: by 2002:a05:6402:2553:b0:554:35b4:60 with SMTP id l19-20020a056402255300b0055435b40060mr59972edb.28.1703149041712; Thu, 21 Dec 2023 00:57:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703149041; cv=none; d=google.com; s=arc-20160816; b=ZxLrVn0ts9x0nz/L3bhQa0QEUDVVb9cuYPyYiKWr9DqAMRm/57fmjZNLO6kaxLRUv4 rgYmoF43ErebN3YgAiNnJg5RFhgpE48Nt1v4+etFqYeTTMqOZGF9XOPO26QR6cZgT4+9 BFDYH9d1K9bx8KUOYi5eKGzntFb5kBYtLgsfOoBxSJpFz13yWdJ1dvQDQUjkWDQ12Ngb bb4yifHOLBLVBf48mTrUSxr4Py+7ywJ1Db6kIagD+3mS59pBmp5GIXG6G+ZGvZAT+9mi MBXKShLfOX7rY0AF0dchoKG0xEXH1J8+d54p0PG650hSqauaAa71uEZzUp8cG6YTR1vY xVpw== 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=IEpTLEBwYtzfdtfV17OSlaS7IaFDu0jr1ITxf4EdUzE=; fh=EaeN2kDiNt0uAyzBy6fh6+AgkKkKIFfVjy08r7WC8eY=; b=MD7eZlG9jfzi8BXn1mG+nO2UalRDCD4MZw/tajlW4iWTB1FXuKFdOeV5elmYR9HfJY amLuwEbYH4kjHgUftPPPF27A3qOjRyTtGRbjpTwuj4OjQznGK8kUSWIxMJE5y4LC2nsb bCFBlB9ETipINhSsKa99SVzaCLGMOV4aXN20FF96J/U+rD+VhaHVBVuBRvrF4S9IuZ9z wa3keupmB4go/zuH/UAA3u7AeK9+7HKQgGGp9HRIlyG0C2qPU8k3PiRTRveDfLGXx+OW 9/bkd8cHQdS3YTHdDT1uj0Nho9VdxLJn88aOrIpoYDzmegsRGWQRu/zAAY4tJBADrXh8 21Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TVBtASz3; spf=pass (google.com: domain of linux-kernel+bounces-8029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j18-20020a508a92000000b00553fc60f094si648135edj.259.2023.12.21.00.57.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 00:57:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8029-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=@linaro.org header.s=google header.b=TVBtASz3; spf=pass (google.com: domain of linux-kernel+bounces-8029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8029-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3F42A1F21A6B for ; Thu, 21 Dec 2023 08:57:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A9FA208B4; Thu, 21 Dec 2023 08:57:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TVBtASz3" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 E751220322 for ; Thu, 21 Dec 2023 08:57:11 +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-f54.google.com with SMTP id a640c23a62f3a-a2330a92ae6so64748866b.0 for ; Thu, 21 Dec 2023 00:57:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703149030; x=1703753830; 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=IEpTLEBwYtzfdtfV17OSlaS7IaFDu0jr1ITxf4EdUzE=; b=TVBtASz3BiVrp7v0ytOWgdzRV75zr7yVkacHAV90cEofpe0oJIv2v4gfwKCKdXP592 OdaIOJ0tpDp6dxmkifduVTN8AGLG0c0IRlLjgr+5SVLNm/7u0rO0K+fIZY7wkkm0nR0a 49PPDIYjCHZFhaKl1YjJ22c2QzcUFKhubiX6pDzeSxLpgidWaUnuY1VjtRVigJ1LsayH ht4J3NNaMYShkxnBVNzoNWyRkl62kLKY/jPiS0Piw8heVmFi6bWflFjtO0zP/IF0ZQhT lu7EAHg0CWMqpMYdwtOyqcV+byBimVJoZ894Hti3FfErCdYEBgQZj7aBis7yK1GCVhqI x4vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703149030; x=1703753830; 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=IEpTLEBwYtzfdtfV17OSlaS7IaFDu0jr1ITxf4EdUzE=; b=pTf15PE7UkPYGsmtUJRPpj2HxVpVoZtO0gAf8UMP3wk2fQj4edvdIi2Fsw/Os4l6of OAdN5jsEu32X66vVNurHcW1x5RIHvAekCsSB7VxnJmzJJbr5k8H1UiTkt1xGIvY7m1MP DTPwE/v+KGqqZBrvShJw8k891gOeovVFrvoXoDAAOGY0z1lSRm9BwyxxLC7KXM5x4h7G 2f2fXXqBo7l483nqtmUZRezIVL6WRdxgouSOWuZHG20Mj7BZ3vIJhSF53xCgCB5NlrqR KE6WYrJQnd3a0sWqOWOL4oB+27gZ14dUlp1tEvuamCaFbvPlGjEhOWBFF3ThRB74qRHq 8svg== X-Gm-Message-State: AOJu0YzOtCUaNbzn+Qe1HR81ZlRdshJKs+Lj9GnRARKSmEIIaDM0ZZke YyNJhGD/OrV8fOxHLADhjoSxYw== X-Received: by 2002:a17:906:1bb2:b0:a23:7467:7a82 with SMTP id r18-20020a1709061bb200b00a2374677a82mr2057573ejg.22.1703149030164; Thu, 21 Dec 2023 00:57:10 -0800 (PST) Received: from [192.168.0.22] ([78.10.206.178]) by smtp.gmail.com with ESMTPSA id k16-20020a17090632d000b00a2357c16fd0sm718773ejk.171.2023.12.21.00.57.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Dec 2023 00:57:09 -0800 (PST) Message-ID: <6a4356e2-e201-4b87-bac0-056b29a07fc8@linaro.org> Date: Thu, 21 Dec 2023 09:57:08 +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 v3 1/1] arm64: dts: qcom: sm8550: remove address/size-cells from mdss_dsi1 Content-Language: en-US To: "Aiqun Yu (Maria)" , Dmitry Baryshkov Cc: Tengfei Fan , andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@quicinc.com 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> 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 v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JrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. 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