Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11555639rwl; Tue, 3 Jan 2023 00:43:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXvvJCPXBV1a3EcbifdH1UO3ZS8xt27za4O3qjLbpZjbTj+v+2+NYAvcgMLb5gdRXkQ7J/V6 X-Received: by 2002:a17:907:a08d:b0:7c0:dac7:36d8 with SMTP id hu13-20020a170907a08d00b007c0dac736d8mr38672839ejc.10.1672735424583; Tue, 03 Jan 2023 00:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672735424; cv=none; d=google.com; s=arc-20160816; b=0IF9MKuAM7CvpCp20Ba+dbFwomUeuvFgm7zKm2CBKMLdWjq3X0T8njwZPnQo49QEDT vRD6KNHo01nWZbsgHKaZoW473eh/EzfbO41gnwOKB6Ev7jUcJTq9wOIcn8BjnCWEvNEj zZHATZ7xlfJynnwlyr8chR/NoJlt9NdKJbeOiBs1yJKtAt/wUH1G276RxBjs+wnkbIAz i42W9+iF6OKJcRGGyTIkFa6ysP2vQapigeU7QKS0tFqMUAKdKMflUEbtRIJwphTElw+h nc5s3VbClZY1VL3Mz8h2luFujv2YKaZeq9RbWG362Mjf+3sDE8VPOjosbCv3u3J5IAaK SNxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+eQuzBlsYHsLGCB8bOG5IW6L2kvDsW6xtprRoZMICuU=; b=kpahJcTBrx5+hW4SgI0xFUHp4cCetHHjCrGsWVpfRshVsNBKfT7329vzP5F24m8YDi wYK4eJ90Ld0RYbEn0v+2t3Zflzn4JrmYrKhznfU5mT2R3b83QN3a/zE3+LYLhbqv5Sz9 slijiwfws9YYVpVw6Pxkc3j5lf/qNC2OYN2mljcW8NtBigUtGl8LDZdJNdUOr/GFwPGf x1lsao7BjU6GK+IBXwAQ8zMWj5XpoWT2vuQe2QzuYRQCMre82gKqx2lCDjR8X8cIybtQ QXzF0EfFBJ7bSl2WnFVDM/PNq1NTShn2T134/NpQWnRjMMZXj/VGXDlWikpzh4DBIRUP m0kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tmr45XwF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he35-20020a1709073da300b007c1870600fcsi30338072ejc.192.2023.01.03.00.43.29; Tue, 03 Jan 2023 00:43:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tmr45XwF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236999AbjACIcX (ORCPT + 61 others); Tue, 3 Jan 2023 03:32:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236915AbjACIcT (ORCPT ); Tue, 3 Jan 2023 03:32:19 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE2A5C775 for ; Tue, 3 Jan 2023 00:32:17 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id e13so28535937ljn.0 for ; Tue, 03 Jan 2023 00:32:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=+eQuzBlsYHsLGCB8bOG5IW6L2kvDsW6xtprRoZMICuU=; b=tmr45XwFeEugin61Rnftw28ni6bHN0sEbHxVWVWq+J4OVvg/AlM1rrw+gIQUqGnU1Z JYyJFmdeo0DMfQ02tNVOkFPo6OEy+GJ1H6pTCbS0FoBxFa/0JNxZf9ZTy6an06BSniiI gIaQ8ozWSRcvyf+qVmdoASAjj6KmIK3dFVM6KqQahH3uiX7WinVX53Cu0fcU099v/1R0 oYbWkHacnBUD+fxQ2Q6AVDc9FRZoYQ8or2dTrRm6Q/9lBeT3DRuVMijPCpVpxOKfFj1C QoKk5Zg67+jTD8ahyRydOHtrOIAhE0PjYHj+RZfr+xmh9YYQ0QVqyIeD2AzBRnSJfQle DwgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to: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=+eQuzBlsYHsLGCB8bOG5IW6L2kvDsW6xtprRoZMICuU=; b=0Yq79+1ZQuG7qKt8kgHYgWRdzIomJApPT2cb1C7KGfiZq1DZcn4JqpVzEiPAD4/efa aDp5+MYkI+tZIcMGUeNICXkO8R39u0op0DNCRNfAOhst93z66kvNoUniFqlOtq+w2idd AT9DHjx174kSsURRyUh8ii9seY1RQjpH0zvm1QoAHJrd+DOukJ3pHqS9VfGMb2dbs+2A zhWNocayvkOOrr8dt3f7Dm3QXwNKYZkneOUTEz9Z/AZnV2y2TB7JPbqOhLst56+1X+kt vVT6CHns2nvCmz/UDYv1yM/UoNC+4pwHrgcHfVRqz9Zsn4K2uOtbNFdfR5NwvNCLFUVZ OXAQ== X-Gm-Message-State: AFqh2kpkBd39Nd9zrcVH2p88dK8pDiO10FpkNJtD22A/nkMHqdmRGDrF BYB1wSpZH8ZPM9yeZZStyaJglw== X-Received: by 2002:a2e:bd0c:0:b0:27f:aa2b:61da with SMTP id n12-20020a2ebd0c000000b0027faa2b61damr10160611ljq.14.1672734736218; Tue, 03 Jan 2023 00:32:16 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id c20-20020a2ebf14000000b0027fffd54dadsm42145ljr.73.2023.01.03.00.32.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Jan 2023 00:32:15 -0800 (PST) Message-ID: <85837957-f6d2-4722-7693-98c6cf932096@linaro.org> Date: Tue, 3 Jan 2023 09:32:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [RFC PATCH 3/4] dt-bindings: panel: Introduce dual-link LVDS panel Content-Language: en-US To: Aradhya Bhatia , Rob Herring , Krzysztof Kozlowski , Tomi Valkeinen , Jyri Sarha , David Airlie , Daniel Vetter , Laurent Pinchart , Thierry Reding , Sam Ravnborg , Maxime Ripard , Liam Girdwood , Mark Brown , Lad Prabhakar , Paul Walmsley , Palmer Dabbelt , Albert Ou , Matthias Brugger , Guo Ren Cc: DRI Development List , Devicetree List , Linux Kernel List , Linux RISC-V List , Linux ARM Kernel List , Linux Mediatek List , Linux C-SKY Arch List , Nishanth Menon , Vignesh Raghavendra , Rahul T R , Devarsh Thakkar , Jai Luthra , Jayesh Choudhary References: <20230103064615.5311-1-a-bhatia1@ti.com> <20230103064615.5311-4-a-bhatia1@ti.com> From: Krzysztof Kozlowski In-Reply-To: <20230103064615.5311-4-a-bhatia1@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/01/2023 07:46, Aradhya Bhatia wrote: > Dual-link LVDS interfaces have 2 links, with even pixels traveling on > one link, and odd pixels on the other. These panels are also generic in > nature, with no documented constraints, much like their single-link > counterparts, "panel-lvds". > > Add a new compatible, "panel-dual-lvds", and a dt-binding document for > these panels. > > Signed-off-by: Aradhya Bhatia > --- > .../display/panel/panel-dual-lvds.yaml | 157 ++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 158 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/panel/panel-dual-lvds.yaml > > diff --git a/Documentation/devicetree/bindings/display/panel/panel-dual-lvds.yaml b/Documentation/devicetree/bindings/display/panel/panel-dual-lvds.yaml > new file mode 100644 > index 000000000000..88a7aa2410be > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/panel/panel-dual-lvds.yaml > @@ -0,0 +1,157 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/panel/panel-dual-lvds.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Generic Dual-Link LVDS Display Panel > + > +maintainers: > + - Aradhya Bhatia > + - Thierry Reding > + > +description: | > + A dual-LVDS interface is a dual-link connection with the even pixels > + traveling on one link, and the odd pixels traveling on the other. > + > +allOf: > + - $ref: panel-common.yaml# > + - $ref: /schemas/display/lvds.yaml/# Drop trailing / > + > +properties: > + compatible: > + oneOf: > + - items: > + - enum: > + - lincolntech,lcd185-101ct > + - microtips,13-101hieb0hf0-s > + - const: panel-dual-lvds > + - const: panel-dual-lvds You cannot have this compatible alone. > + > + ports: > + $ref: /schemas/graph.yaml#/properties/ports > + > + properties: > + port@0: > + $ref: /schemas/graph.yaml#/$defs/port-base > + unevaluatedProperties: false > + description: The sink for first set of LVDS pixels. > + > + properties: > + dual-lvds-odd-pixels: > + type: boolean > + > + dual-lvds-even-pixels: > + type: boolean > + > + oneOf: > + - required: [dual-lvds-odd-pixels] > + - required: [dual-lvds-even-pixels] > + > + port@1: > + $ref: /schemas/graph.yaml#/$defs/port-base > + unevaluatedProperties: false > + description: The sink for second set of LVDS pixels. > + > + properties: > + dual-lvds-even-pixels: > + type: boolean > + > + dual-lvds-odd-pixels: > + type: boolean > + > + oneOf: > + - required: [dual-lvds-even-pixels] > + - required: [dual-lvds-odd-pixels] > + > + allOf: > + - if: > + properties: > + port@0: > + properties: > + dual-lvds-odd-pixels: true That's not correct clause. It has no effect. > + required: > + - dual-lvds-odd-pixels > + then: > + properties: > + port@1: > + properties: > + dual-lvds-even-pixels: true > + dual-lvds-odd-pixels: false Why do you need this? Your oneOf before already solves it. > + > + - if: > + properties: > + port@0: > + properties: > + dual-lvds-even-pixels: true > + required: > + - dual-lvds-even-pixels > + then: > + properties: > + port@1: > + properties: > + dual-lvds-odd-pixels: true > + dual-lvds-even-pixels: false > + > + required: > + - port@0 > + - port@1 > + > + port: false > + > +unevaluatedProperties: false > + > +required: > + - compatible > + - width-mm > + - height-mm > + - data-mapping > + - panel-timing > + - ports > + > +examples: > + - |+ Drop + > + panel-dual-lvds { Just "panel". Node names should be generic. > + compatible = "microtips,13-101hieb0hf0-s", "panel-dual-lvds"; > + > + width-mm = <217>; > + height-mm = <136>; > + Best regards, Krzysztof