From patchwork Mon Mar 6 11:52:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 64621 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1795493wrd; Mon, 6 Mar 2023 04:00:55 -0800 (PST) X-Google-Smtp-Source: AK7set9vePq2GriBA3o0yR5e3pupKjgCOjyziYiYsZNc0bfDH8eWV4gInFade1Vl+ox56M0sK5Sr X-Received: by 2002:a05:6a20:158f:b0:cc:606a:4330 with SMTP id h15-20020a056a20158f00b000cc606a4330mr14345570pzj.55.1678104055033; Mon, 06 Mar 2023 04:00:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678104055; cv=none; d=google.com; s=arc-20160816; b=mrfsDZM+EUPVD8DU01dZzoQaIChMHAi3/B8pU6C80OLe+HzR+z8u0obsQDogWg7uNK oCq3tzlZJZ/PrZfZ6CtxrQlnP/Qlj91k/s2W+cJIeccbFC3FVk6irD0Bzl9CTphSmqdB RdJ5Vqcsveo4yQQLzoZOrSU0yGaM8kS5n9ZwemWvEjczDomIXML440Y6iUhq41wD18Ol FjP7FZNLyLk38AMfxVkFxEl2ke3UJpdklk/nwo0K8vZSxA8O7hkzpXO7UfaTokIZK20X +PVEN2/wxdJbjlTUf/J4mMd1bbk+4Nai7m9heEmoyy+a3wlJtPAwLigt3dGo95jlPN3H HhbQ== 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; bh=ZaMA+TUOC77BBTTv31wa4kUAG+1k1LRT7gZhnjRanKI=; b=En459bcJnMhsTv3GYZs8FR00k0e/nFqV/n5zasZB57VkjSSK04IQdbpoVQncKdtMr/ ImBw5qsA5qs3LeuSusX6xV1ciKoyPAUG2jVnhOqYlyYkcCqqLxNic45JK3t8KxmBlkZ+ 3bDT2biW0kiIuas9FdBQlELWMAdE2YJSJjXxtW5/pkY4iLij2XYMs2PxNqBpXJZRvBh7 43bv/D5Le5q7WdiXMjok4m1MWBECB2+uUF8LqbKyRIEKYfRQO+2iJxNNJcficD/GUozq t4SDvm7sp0qvJpTqNWxAJl/5KODDME6JZaYcWprLWMtyjTATbyl4QApL2hNxgxFcgUxA Fl/g== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n15-20020aa7984f000000b0058623296e77si9471895pfq.327.2023.03.06.04.00.41; Mon, 06 Mar 2023 04:00:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230091AbjCFLxS (ORCPT + 99 others); Mon, 6 Mar 2023 06:53:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229962AbjCFLxQ (ORCPT ); Mon, 6 Mar 2023 06:53:16 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10735B471 for ; Mon, 6 Mar 2023 03:53:15 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZ9Os-0007KR-PP; Mon, 06 Mar 2023 12:53:07 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pZ9Or-002EWs-PV; Mon, 06 Mar 2023 12:53:05 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pZ9Oq-002fPG-Ud; Mon, 06 Mar 2023 12:53:04 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Philipp Zabel , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring Subject: [PATCH v6 1/2] dt-bindings: display: imx: Describe drm binding for fsl,imx-lcdc Date: Mon, 6 Mar 2023 12:52:48 +0100 Message-Id: <20230306115249.2223042-2-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230306115249.2223042-1-u.kleine-koenig@pengutronix.de> References: <20230306115249.2223042-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2297; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=LGBP388eXSDg5Sh4xW/Yqw1YR9mypcnK1JjPdoElm2E=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBkBdQKHwEYtxDaV/z5cjvnMONPwLCLR71/3xlxO Zb2eL5zhoOJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCZAXUCgAKCRDB/BR4rcrs CVrYB/4grsN2L140LJPRllDHrOmmq0VUt+jnyitg/LNSi5USndrgyBiEP0vnHzMYFs4klpJU1FD OwvRzZ4T5gIxycTWCsdT+FQf+XHnmkSJ/UCUzyEOHZmiZAwvVrGi3bmsKtJJEi/n3e9R810TRlj aE/V4ezD7B9Nyb3Lztx4ZyTCssIhYFzT6UJOvUioslNBDDyT2xmHW781Vl1HJpnQ+q//gxu/eus DlJZR9jBpM9kQ747BXwl8cPW5owDtePtlOUxEYALx1FN5qB9OWmNGzoeQDuYexNURW2/6QDP99z mLBD8SHIfN7BYklceHIptq4vxi5iWc9FQz0xSLEHGBklHRDk X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759619637721084978?= X-GMAIL-MSGID: =?utf-8?q?1759619637721084978?= Modify the existing (fb-like) binding to support the drm-like binding in parallel. Reviewed-by: Rob Herring Signed-off-by: Uwe Kleine-König --- .../bindings/display/imx/fsl,imx-lcdc.yaml | 46 ++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/imx/fsl,imx-lcdc.yaml b/Documentation/devicetree/bindings/display/imx/fsl,imx-lcdc.yaml index 35a8fff036ca..c2b29622bceb 100644 --- a/Documentation/devicetree/bindings/display/imx/fsl,imx-lcdc.yaml +++ b/Documentation/devicetree/bindings/display/imx/fsl,imx-lcdc.yaml @@ -21,6 +21,9 @@ properties: - fsl,imx25-fb - fsl,imx27-fb - const: fsl,imx21-fb + - items: + - const: fsl,imx25-lcdc + - const: fsl,imx21-lcdc clocks: maxItems: 3 @@ -31,6 +34,9 @@ properties: - const: ahb - const: per + port: + $ref: /schemas/graph.yaml#/properties/port + display: $ref: /schemas/types.yaml#/definitions/phandle @@ -59,17 +65,55 @@ properties: description: LCDC Sharp Configuration Register value. +allOf: + - if: + properties: + compatible: + contains: + enum: + - fsl,imx1-lcdc + - fsl,imx21-lcdc + then: + properties: + display: false + fsl,dmacr: false + fsl,lpccr: false + fsl,lscr1: false + + required: + - port + + else: + properties: + port: false + + required: + - display + required: - compatible - clocks - clock-names - - display - interrupts - reg additionalProperties: false examples: + - | + lcdc@53fbc000 { + compatible = "fsl,imx25-lcdc", "fsl,imx21-lcdc"; + reg = <0x53fbc000 0x4000>; + interrupts = <39>; + clocks = <&clks 103>, <&clks 66>, <&clks 49>; + clock-names = "ipg", "ahb", "per"; + + port { + parallel_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; - | imxfb: fb@10021000 { compatible = "fsl,imx21-fb";