From patchwork Wed Mar 10 09:55:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 397998 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60734C432C3 for ; Wed, 10 Mar 2021 10:10:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1EE4D6500E for ; Wed, 10 Mar 2021 10:10:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229609AbhCJKJn (ORCPT ); Wed, 10 Mar 2021 05:09:43 -0500 Received: from mail-eopbgr130042.outbound.protection.outlook.com ([40.107.13.42]:27270 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230046AbhCJKJe (ORCPT ); Wed, 10 Mar 2021 05:09:34 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DzNDNSqVvuQo21wxShIFtcNJVYJ1nwdnoZdPZ6esCfmCmvJi4LzUNTPtC4ZsjTMdEeh3oFatcNaCe/FijsQmtJZAtPzJEkcLwo3JT9jpXVCyyOvNqS8CuMbhan7yptdHx4Gw41n8NwVz7foMlNoTV6XKKUcR/pyTk+j4+91aJLEaEBlHKT03XgHJ7gVngSYqenZNMhK75l6/tXA+K0U5kD5rqDUpHbxQr/ER6TGQF0cfQMfnIRmbPREVMtWfphNa+ktaQVyCV66cGlcMM1HoYbY2EKzY0BAGZVvvwokRK2Yf24OJn1FngwIdMDB1AlgNuUw0VlckQIh3ZeGq2oDtfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=K/q7PlZULgvJu7I/uCGFPoHPqerd5X/flwMZ3r7GdiI=; b=kw53f88bIZ8ztnwAVGYFW1fqVAom0i5mXrGWnvsxWDQ3TX01g5MUweWmepBJI2oZhuOKxaL+PuRILujC1b6EzDxEuSeZRb5hOQ/mTAb/T8LcVjE/lyxkvyBQgWKpgL3wMKxpiLur6BRt+VzKJDGpNGfQ4Yi7AhDd/0nC7xvEQ73MqWeylRTUqEXE5xwYOfsd9Zd5rmGYYa6ycyrck5HJf8umZTTV+eEoYrE/mh6roJiN6U2/iaUbquNyPPQBS5SN208hZAWGmW18QSf/aXee9BwML/ew8EJg5uEH1DUxvciHynGnVSXs2Xr+woFVtQ14Txb+S0zArjagHHHtEKFe2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=K/q7PlZULgvJu7I/uCGFPoHPqerd5X/flwMZ3r7GdiI=; b=dYazTsl+a+dawXsaIdAuQfr6rqTvwWD/ehBbcL9ZUuyAosI6S/2A6MwmewXfaVKjtwFnQBmR4NUYv3KG4fEOsOaQPOBgaLkISIkdcQaeppSNkHieouqezjn93/Mnj5dMdGkxGfZ1DRsEyUGR5bvJHtAb1ltCPNFkDePEIuccATY= Authentication-Results: lists.freedesktop.org; dkim=none (message not signed) header.d=none; lists.freedesktop.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) by VI1PR0401MB2318.eurprd04.prod.outlook.com (2603:10a6:800:27::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17; Wed, 10 Mar 2021 10:09:30 +0000 Received: from VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::2564:cacc:2da5:52d0]) by VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::2564:cacc:2da5:52d0%5]) with mapi id 15.20.3912.028; Wed, 10 Mar 2021 10:09:30 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, mchehab@kernel.org, a.hajda@samsung.com, narmstrong@baylibre.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, kishon@ti.com, vkoul@kernel.org, robert.foss@linaro.org, lee.jones@linaro.org Subject: [PATCH v5 05/14] dt-bindings: display: bridge: Add i.MX8qm/qxp display pixel link binding Date: Wed, 10 Mar 2021 17:55:29 +0800 Message-Id: <1615370138-5673-6-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1615370138-5673-1-git-send-email-victor.liu@nxp.com> References: <1615370138-5673-1-git-send-email-victor.liu@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR06CA0010.apcprd06.prod.outlook.com (2603:1096:202:2e::22) To VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by HK2PR06CA0010.apcprd06.prod.outlook.com (2603:1096:202:2e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3912.17 via Frontend Transport; Wed, 10 Mar 2021 10:09:24 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5ce7d3ae-ced3-4d71-68b9-08d8e3ac9811 X-MS-TrafficTypeDiagnostic: VI1PR0401MB2318: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1775; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mM1GhfXgFvLVW2Brb5jCMt27m2oCQIsHvhyfrzLMLdWVQaa0Ev1c5rQVbu25t9JrVBCZbSFrhVIJ3u0azSc81Jz8nrUxm9vprGQkPKdjrTZMmgQDj+doDYUGi0ucLk+kz6UoZy8nD7Dog68ExC8knXH73WOlxBEEncLhiItAKbmn+4hlDLYULhijqt+48VtC2hebRXc+Ql5sNBnugsm+EJmclAIyLaoQGVfwg1JkK4VP8cKKvh7k/tPYpQUodx4mUjB1t/nq1NpCiPuTESB7rtcNFkL0h8s+v+ONV41aLa4rjslCSJmRepyOLdZfybMSAac2R2cYqjQAOQwQlZjysZI01M44yRXjB4qKQGtS2k7xSLyGaYkgsc4k5bjWnzCWgxSz+sk7iWgsPmTmPOS8MaVTuFvacFkTvPjDXt/XHJLJqGtKn9IfKjoxmAVIaUOC/PTyYXSidztNa/nlcf7BzgfdflYiNe3o9R97hulHIqMPpR8PV7QPlVUSv8Hku3VRTkG5wyV/wkfHZbvqvEllNanAlB0Zc4LFPAmAGfSFB7C8AKvJcO2R1nuRpNNGqY3ARrD/bn+lLI+t6btY52r/R/hKhPkoJfGamqIRf9TxD9jU4tO8yJfKFayXHMvNBRdooTBRvLHQ8csCNXmYh04QXw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB3983.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(136003)(396003)(366004)(376002)(346002)(66476007)(83380400001)(66556008)(8936002)(6512007)(966005)(2616005)(36756003)(6506007)(316002)(66946007)(69590400012)(956004)(4326008)(86362001)(16526019)(5660300002)(478600001)(8676002)(2906002)(52116002)(6486002)(186003)(7416002)(26005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Qb8wHxTIDL/3SQmwqa7+gYu3Hriw/u7IMMu9Nh76TQnUqs0FThNwGKnzv+8ODgyOz+1Cug1jzdY0BitHqFYOE5rgAwK5GLCYj4fCKRvrImact5v7ypcy7MCXyRxlvASJvux0aHk0wWtLf/zMqT6Eecbf9ET5QLAb0uGicSuL9Df059NOBJM0STI6Moop5G4i8R3Dttj1G43na3K1kYTccOu+Yupe4I0bNcwEO2miKwLatnkU9AF57yqShBRso4JbVVgdXydiXPywi4teqM2SLGIFj4f6nBBj8QIM0yltqn62QuZ9lBgQzlYDbor0bNyVTzNg7b72Lnr9kDmhSWv16tUEcUDrpdeH5FgBElYKJjhKdgdcW2zbhDSE9yVBAm8DJO/HJbJPHsHjwkNydcwsF5ToSGlNnNGOh0WxUzaepDK3Z43/cRHvTa6S+Z6uYJixmzIzMw7vC1l/YTqvilo1o1BMT7xgy0KMvuWU5Q1CA8b6/rfq8e3v4fegZCgG8xpmYVckfasiNCXC2szHCYSmocOyiijP2DezIcuB982jKC4TrHEsm6IYGZ4/MyOOSgGd4RQ0s9b0KbN729cGpaKt85G41m65GiPPZNoLv2VOhWqLHZQVbHKn/7m4x4AnPuSm9P3/iC5y36aC5faDZyhQDGRbgTTPZ08LH8m1ZuTbPtsKBsA5xwasn8Lb7LeC4LbtMFfbyoCOPOS+jG2KH0iIH10WAml+XzqzGGxX7Pfg3DR0KnFIml04fRgJItFHy5uH7M0o/8DtDdvzqPjuYE8X1bzRuGZ2tWrzHkqdVFr79+8xftHtjAjAJfBMCZ2LMuuOp5QNi/LnODyDj6fl08Qm6J3vWUevuKzuCuNp5xc4+PVAJBY1wT60fUeg5I1DoxVElbraGpZ6pxXoQzpXYas6oaZaxrixAoN6GyoJQKKVGB77nHbML8Ox3hGgtnWkckkPU2bloErkebH47WVoJNRYbFsnpbW72e4p0goAD7hYa1tikl7NYs9N8Xarj/sXXq0eH50M/CNU4I5dQHm9wSfIUxIdivR1tcTUEBw/tLbwF4xK/2TCJway600kliDVNy9rncByEIsWAQ3CMp47+5aXYFim9MEysBQ8Dap2do+J5pRt+BJoh4Naz3KMIe+WaLY8pVnp4W0VY2J/4+MZBvC2TvFwqIQlRrIQaPs2RZtxpK3MHJuUajdKhsOK+A77Aet1RhCqRTMT7ABVA0x6BpeCmpw7YJqnne28M6rzbkBvSMLqAbTAQk/WkxwLgDLTn9N/t/lfzw5lv3T6gCPVs5741n0/b6WC0iGV+tUHyfwPg6PBG2ppawEewzURm76KYMyV X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ce7d3ae-ced3-4d71-68b9-08d8e3ac9811 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2021 10:09:30.0791 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UryfB0XQDVctWyw7KPbkmBB2YLaIqGwPzjDDS5knv0nFCbv+0H+qSjj1nyWLKcN9PoCw4EhEaYxje55OodBdSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2318 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch adds bindings for i.MX8qm/qxp display pixel link. Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v4->v5: * No change. v3->v4: * No change. v2->v3: * Add Rob's R-b tag. v1->v2: * Use graph schema. (Laurent) * Require all four pixel link output ports. (Laurent) * Mention pixel link is accessed via SCU firmware. (Rob) .../display/bridge/fsl,imx8qxp-pixel-link.yaml | 106 +++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml b/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml new file mode 100644 index 00000000..3af67cc --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-link.yaml @@ -0,0 +1,106 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/fsl,imx8qxp-pixel-link.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8qm/qxp Display Pixel Link + +maintainers: + - Liu Ying + +description: | + The Freescale i.MX8qm/qxp Display Pixel Link(DPL) forms a standard + asynchronous linkage between pixel sources(display controller or + camera module) and pixel consumers(imaging or displays). + It consists of two distinct functions, a pixel transfer function and a + control interface. Multiple pixel channels can exist per one control channel. + This binding documentation is only for pixel links whose pixel sources are + display controllers. + + The i.MX8qm/qxp Display Pixel Link is accessed via System Controller Unit(SCU) + firmware. + +properties: + compatible: + enum: + - fsl,imx8qm-dc-pixel-link + - fsl,imx8qxp-dc-pixel-link + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: The pixel link input port node from upstream video source. + + patternProperties: + "^port@[1-4]$": + $ref: /schemas/graph.yaml#/properties/port + description: The pixel link output port node to downstream bridge. + + required: + - port@0 + - port@1 + - port@2 + - port@3 + - port@4 + +required: + - compatible + - ports + +additionalProperties: false + +examples: + - | + dc0-pixel-link0 { + compatible = "fsl,imx8qxp-dc-pixel-link"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + /* from dc0 pixel combiner channel0 */ + port@0 { + reg = <0>; + + dc0_pixel_link0_dc0_pixel_combiner_ch0: endpoint { + remote-endpoint = <&dc0_pixel_combiner_ch0_dc0_pixel_link0>; + }; + }; + + /* to PXL2DPIs in MIPI/LVDS combo subsystems */ + port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + dc0_pixel_link0_mipi_lvds_0_pxl2dpi: endpoint@0 { + reg = <0>; + remote-endpoint = <&mipi_lvds_0_pxl2dpi_dc0_pixel_link0>; + }; + + dc0_pixel_link0_mipi_lvds_1_pxl2dpi: endpoint@1 { + reg = <1>; + remote-endpoint = <&mipi_lvds_1_pxl2dpi_dc0_pixel_link0>; + }; + }; + + /* unused */ + port@2 { + reg = <2>; + }; + + /* unused */ + port@3 { + reg = <3>; + }; + + /* to imaging subsystem */ + port@4 { + reg = <4>; + }; + }; + };