From patchwork Tue Jan 24 10:12:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aradhya Bhatia X-Patchwork-Id: 47630 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2070422wrn; Tue, 24 Jan 2023 02:23:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXt3FF0Z8pJtO//DO8P9Ai539p39UoN0Jbo7hdO0EORu81K7qD55UsPlIerAO0BTvDyue96u X-Received: by 2002:a05:6402:5412:b0:49d:f4de:1988 with SMTP id ev18-20020a056402541200b0049df4de1988mr31318786edb.42.1674555838961; Tue, 24 Jan 2023 02:23:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674555838; cv=none; d=google.com; s=arc-20160816; b=lFNzYy6hQMNir2QY0HbPyZ5BEH2PEpxWsUYWS6rDhFQDf1SWp6jR5b+emHPFn7aUKU ieHYZIXipdnQyt9i4cn7VnOwQb8IZTxDGzJsl/08b0uvSvaNdLsjYEGwqC6tPnv2xDHp JT6hpv2TUoJr7kBHWHzTeLymJbs5m3ypqjtxMxSyxHDMnnXDpC+Uzslh+8o6bPy2CuII aQselI1ElnyTEeXDlS9yk0vIFqsTdP1dds0rsiAsFQ7EctSxnysrmZGjmft5QiLG/+on aJUzmc1f7ATYxGJgWpUx6G0m5ZhGTvzm/0Qao4Xh9oPVlQkKLsCc+E2B8Q0kXCigoJXr Ju5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FHMc3/+dyDhMpyV5LUTgIySjmD40chmrnfgxrWRBXUc=; b=yTpMJ94aJN2qIxXyg/bwIPv6HqwMXg3XtQjO1UYJIZQLj93Q0ufQnWTJ4ZwrXymc4g jpfzL6/rxAFzVkOj4DJW063m3heY2A7daIVpMmA20X8CiTK9wHPVY8cl9LeGh7byxAfT 7lKrXFZDjGWCqQqw65Cv9W8DsYivc6pZE9oGaKUwCZey+8yW2/RBfDZJXzVyiL874Og0 XZjoWdg0V4Tv8zX8KizxPoVOl6pLi+doa9aRtfbiVfFSne3c/InRpCgTO58g5rW1d84Z jT0jOSsaM3RlKou+iYQvOYKZT3NZmQfdc6ozB6uGJ27kxgl3GAWKxED8KcEb2jY8FEQN i35Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mzSLFs4L; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i21-20020a056402055500b0049e52450de7si2697966edx.334.2023.01.24.02.23.34; Tue, 24 Jan 2023 02:23:58 -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=@ti.com header.s=ti-com-17Q1 header.b=mzSLFs4L; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232470AbjAXKN3 (ORCPT + 99 others); Tue, 24 Jan 2023 05:13:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233737AbjAXKNV (ORCPT ); Tue, 24 Jan 2023 05:13:21 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD2B02B60E; Tue, 24 Jan 2023 02:13:19 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30OACiaN088014; Tue, 24 Jan 2023 04:12:44 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1674555164; bh=FHMc3/+dyDhMpyV5LUTgIySjmD40chmrnfgxrWRBXUc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mzSLFs4LWt92C9t43gDsALwf3XPqE0Y+Wu4kOPTC+Y7uv0ba/6jvTtyGCyXZIx/G0 ViH2PEWqCAJrggZP0ZonjKDTiVf0aN5pX83eq/OBt5yz9tU3TWs3u5xFtvx//GSbv8 rezvJAaQIHJkJVc+e2o26bah6ZipBoFg1gctDcyY= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 30OACiC7032448 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 24 Jan 2023 04:12:44 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 24 Jan 2023 04:12:43 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 24 Jan 2023 04:12:43 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 30OAChZ6018486; Tue, 24 Jan 2023 04:12:43 -0600 From: Aradhya Bhatia To: 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 , Aradhya Bhatia Subject: [PATCH v2 3/4] dt-bindings: panel: Introduce dual-link LVDS panel Date: Tue, 24 Jan 2023 15:42:37 +0530 Message-ID: <20230124101238.4542-4-a-bhatia1@ti.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230124101238.4542-1-a-bhatia1@ti.com> References: <20230124101238.4542-1-a-bhatia1@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755899063221521727?= X-GMAIL-MSGID: =?utf-8?q?1755899063221521727?= 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 | 149 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 150 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..e2ce1768e9a3 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/panel-dual-lvds.yaml @@ -0,0 +1,149 @@ +# 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# + +properties: + compatible: + items: + - enum: + - lincolntech,lcd185-101ct + - microtips,mf-101hiebcaf0 + - const: panel-dual-lvds + + 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: + required: + - dual-lvds-odd-pixels + then: + properties: + port@1: + properties: + dual-lvds-odd-pixels: false + + - if: + properties: + port@0: + required: + - dual-lvds-even-pixels + then: + properties: + port@1: + properties: + 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: + - | + panel { + compatible = "microtips,mf-101hiebcaf0", "panel-dual-lvds"; + + width-mm = <217>; + height-mm = <136>; + + data-mapping = "vesa-24"; + + panel-timing { + clock-frequency = <150275000>; + hactive = <1920>; + vactive = <1200>; + hfront-porch = <32>; + hsync-len = <52>; + hback-porch = <24>; + vfront-porch = <24>; + vsync-len = <8>; + vback-porch = <3>; + de-active = <1>; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dual-lvds-odd-pixels; + lcd_in0: endpoint { + remote-endpoint = <&oldi_out0>; + }; + }; + + port@1 { + reg = <1>; + dual-lvds-even-pixels; + lcd_in1: endpoint { + remote-endpoint = <&oldi_out1>; + }; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 5e18388b4579..6025bb024586 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6461,6 +6461,7 @@ T: git git://anongit.freedesktop.org/drm/drm-misc S: Maintained F: drivers/gpu/drm/panel/panel-lvds.c F: Documentation/devicetree/bindings/display/lvds.yaml +F: Documentation/devicetree/bindings/display/panel/panel-dual-lvds.yaml F: Documentation/devicetree/bindings/display/panel/panel-lvds.yaml DRM DRIVER FOR MANTIX MLAF057WE51 PANELS