Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6965615pxb; Wed, 17 Feb 2021 19:57:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJznM6Q7LyPX3pftCGxwtZv0LZ+bLbpQz+lgD8Q6miV5tE4r/ISNgpEAmvqZYjPrf8fGd/iY X-Received: by 2002:a17:906:2a8b:: with SMTP id l11mr2041960eje.1.1613620638670; Wed, 17 Feb 2021 19:57:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613620638; cv=pass; d=google.com; s=arc-20160816; b=Z3BGJBtSfH4UtWN3rmPsoWNNeV7iEsWlFVCdGHNsyYTqZr0PNr/kPWPt+g9bybPIXF EvVsjKJxkD8ApLIJnNxlTle9NNeAuKs79hEyLzFSTlCh2ykQSwOuFX1ZOf1RAFasbeKg tATFAWc6d6M8StkA31LsANqhzRH8HCKSF2gMbDFGieYfqtmhjY4+/Z0JHQ/NALA8MzlK 4ajZqFpunObyVLOj2m2qimZhL1iMK1+hz3zXG3a7YiGjfuCHUI7QaxM8iIY9te6rPVAU PFN99SJvjxyjUJ6zC9NVv9VDs7jdAS43CBNu/Vbs/OvXCjmhfuWRu7DZH88r/QkWQ3sP q+2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FnMxqjHmpfosTrBx8T7Aj1USZxeM0BaO6lMHSr2uoPA=; b=IQHs955roL8kOfjIOOfL6MF1aPEyrSjTD3sJywg6T0si7LcoXcesEmvGh5pDpghWdS sp93exuM879ZPGiPRJzozthct9I5dbxY2mp9MK1V7MXYUm0CoJXmg8F5GkocWu7Ey6a/ an985pX5VGATlvn8FL+UUOjtHP/1Izd8UWFBi7LnBCT/9FGDH8J6GbJpsfBw7lrjU6JP NfCuYTEH74+YHDWqJsCfz5jaPJ5OEKEVHPOhS2GzXltOoMPzNC2PlbCsDqWmkhIW1hBt jthWpPmr2ZanNrggK8MOoDQKYGlwEXjTLVw8uw3NPksix8OFkLjQawpyblxtXfRwZNRf 8aEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ECJhfhuR; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a42si3464236edf.287.2021.02.17.19.56.56; Wed, 17 Feb 2021 19:57:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ECJhfhuR; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230228AbhBRD4E (ORCPT + 99 others); Wed, 17 Feb 2021 22:56:04 -0500 Received: from mail-vi1eur05on2068.outbound.protection.outlook.com ([40.107.21.68]:49249 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230200AbhBRDz5 (ORCPT ); Wed, 17 Feb 2021 22:55:57 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E8R8BF/SweASAtIK7UVr4R5IdHaSA98pJr4EsOcMYWvqwR6bNm3kKQMbvWDg5Qgs5iX6GlZNTAtVu/Z+eEzA8BgTtLpOy5pkMABZJyt7jNRMAuexaxorYomN8UmZa3JY5rIUF34AHFf//Vb63J6aovLz/TTEMFPbe5vy1jJHJO/Z906kKxLkhkSjJXa6eX9fHThkM3gYmln+2Z1sGONvY4JtQ8pu2+OoLiK+2pISWw3Qe51wh+AyfRfChzPihzrQzfdAkqEYc9OGz0mNvPVajRUUqupT+WhpkNOUxQXnXYGrTVd/ubnQFSyrpN2fuwGj5FV1eEkBrIcFuolIdGQkTA== 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=FnMxqjHmpfosTrBx8T7Aj1USZxeM0BaO6lMHSr2uoPA=; b=n84erz2CYpwlQIds3VLANK6dSDcxKymoSFPb875+dHu7RB7LphYksfbf2ylxJPC8VatnOOlzbBhJY7Z01o0au5WKMGVm7P6Pn5AgZvE5A6EsBORK2CLpWb9k9jv3YetProm0GU22cH7+LDMnOTCrey5wBmi84GXP1x0Z0wcMORg8JIFpj6YdbPRRMYb9Pf4bGZ20psliUuFTV5kDn4fGWqRzmUmcQFnoNLC5r3pIygSaahuA7IKeK47mP74KQzVrWNNMUPDl/YrmMA7TRanJ06C703fWhAcFp/rYyZg1B2jh2QhFoA6aFURnKVAF1egk7qNnfck4m/1FgYIgV5qWGw== 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=FnMxqjHmpfosTrBx8T7Aj1USZxeM0BaO6lMHSr2uoPA=; b=ECJhfhuRh45O5c7RFfd/K5pU7Jpwxlqt5IVqHtl/Ul0EkE5GGd+Kep/jeOZnvjVQaeDmLHuEZcBe0eVd2yZz1zhKGTM+LlrmxLL05MAPzTrgiydkG80iZil3nlyseujcoyedM5SuJEfHKbjqkFlBCH71KNt9OhzcN/PQu2yIXRo= 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 VI1PR0402MB3421.eurprd04.prod.outlook.com (2603:10a6:803:5::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.27; Thu, 18 Feb 2021 03:54: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.3868.027; Thu, 18 Feb 2021 03:54: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 Subject: [PATCH v4 04/14] dt-bindings: display: bridge: Add i.MX8qm/qxp pixel combiner binding Date: Thu, 18 Feb 2021 11:41:45 +0800 Message-Id: <1613619715-28785-5-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613619715-28785-1-git-send-email-victor.liu@nxp.com> References: <1613619715-28785-1-git-send-email-victor.liu@nxp.com> Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR06CA0144.apcprd06.prod.outlook.com (2603:1096:1:1f::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 SG2PR06CA0144.apcprd06.prod.outlook.com (2603:1096:1:1f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3868.27 via Frontend Transport; Thu, 18 Feb 2021 03:54:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8eb72906-14d7-422a-a5ec-08d8d3c0e47f X-MS-TrafficTypeDiagnostic: VI1PR0402MB3421: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hIfNM3WHfDCsbvlNQ2CRTJpBuKVIbqrtNnxp8akEhyA72Ve21EzyXEVCkU6PAeex8X/IO5+OQfgy6e6LzBP2/0Jk4hzkr3aNYoG4gwOGEDD5gDykpjvftkxUUw4lPScp3RCYzyTHlXsBLAKanY5fvEezU9lvbGZXJFIMjYrUN92yBnF17/Tm0T7i9GPy2+pFlBXN14qiuf8gCwSjDD2OjpkubRgQUNHYuwF98MF81fb1xFmdfZZb8as5NtzFzV3cls/q9gp55btTUb3D4Capffhtxi9kSVEun6sxCnh2CX00SCZb/OMGIjx3JYVaHxHB17Z/YZeM0B+kgSFS6zRAygdFsoKeIGIssdwAKGqVzVq5PiwABJlBBLaXf2UfT7QvD0f5RlMiTYOSTfIg8ebYnQBO5Q0ABPNwBQWres3ri6cVjgjZ+RNfg3dE0DGvUK7Mldk180aKbrtZa1XmwOIbuQKtx3e9fQuQ3cV8XMKKqWjcnf0ukX4ofOzkojqgLjc/d4YybOKk/GQ27nE7XPkivUo5ftL4zsHDlbcAo2fsxM5SB/GQLbX4av0ahOy92YXIx1nGYIqNJ8dIOcBdyWcuQQdVUzA+jvRz49Yt/OvR0346Vd4rnfQw7qPGhGTcKL0T6H2KwikcQbtw+GnDcEpb3A== 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)(396003)(39860400002)(136003)(376002)(366004)(346002)(83380400001)(52116002)(478600001)(86362001)(5660300002)(6666004)(69590400012)(6486002)(8936002)(956004)(186003)(26005)(7416002)(6512007)(2906002)(66946007)(2616005)(8676002)(316002)(66476007)(16526019)(36756003)(66556008)(966005)(4326008)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?16O1g86c5xiScaIdH0Aaje9XWhwdub4OpKjdX0/lNmYnRpXIzexpWDWikHgH?= =?us-ascii?Q?z65MM3vgfRKOHocxbrCXx1dykSVTHCyFKtkzkZMdevXXS1ETn3t5I3zdV+BC?= =?us-ascii?Q?8uJIpPvh1gL/WYZ3IbqxjU0k9HI2dN2bqZHM8t4T2htBbsVfbwUt7T3PqUZQ?= =?us-ascii?Q?MWoVIjni/W2N8NCuiDzhyJGJ9FXt8ALF0NI9gt9b+TjYK9F86qQpbkSblEsK?= =?us-ascii?Q?quFrNINhb09DN8mVHNh4ywyOzYcWbpefAg101r/mbZ63pv9tEyUDFIvzdhjF?= =?us-ascii?Q?ddpr5MJDhN2fZes/F7aO9Q0+/REGMAm91oF5MqIIVirOO84rtEUM2tBRo45R?= =?us-ascii?Q?44E4zHK+/G2wh86SozeYqNn4zLkenXmp1sylOVBOvRWx81PgI+65VjQdi/wF?= =?us-ascii?Q?pp91ICkcp9186Ra1w0PEFYlcqyDMtwHtqhu2XQE0YTqUCEu2zZ+D/MMd5eBq?= =?us-ascii?Q?zZNfqiM4r1OBhiw+9DYdcr5s2RsLRCJ2e/lPs7bfqF0iQbzcvcr6K4gkkxft?= =?us-ascii?Q?tRjOUkvCp2U6+l0BwtTm18o98TuvAFD9pAvCitz1aeH7gFo9eop5L08zku8g?= =?us-ascii?Q?P4gvHJa9LlLa0VAOY832weM5M/GY40EpTP9UlClFBYMAVpCOtiHr5ilJ1/l4?= =?us-ascii?Q?J4tsfJoE47tynQe5qQOxq/PzmOCcEi01GvK9GHA7dvqWhkvQOQovlDeUPtKh?= =?us-ascii?Q?VWCv5XGzWUPB0r9NMhxnl24lFptEXEvMi3scWXtf+VSHS2bll8FRgNZ60Q6O?= =?us-ascii?Q?rk6ATOG+bBGaBgWEh22PW0XAS1NhI/EAO6JI5uFpnqS20AnPNWOYhs7ykeZ4?= =?us-ascii?Q?nzZIqHS38LLuJuzIyEs46aAS/xbaBYmGDqODH7IZu1PjQ67qA1cyOkc7Fwsm?= =?us-ascii?Q?IVlRIZ1ItXQsoXluxIlmLSoOkNFJzZj0AWLKWew6BjBx4AU7FmuzoyqE6zP8?= =?us-ascii?Q?qNG9KQ+7M9l17c74XQe19437Mb1xsTMikSLQftZTv11clYds4wyTZVreX8gj?= =?us-ascii?Q?sqdsB3RYltWu8BJTtA0sUwtMQwobzShJ/6neMn00VeIpDFyFv8hCLVfVHu5d?= =?us-ascii?Q?yLoIHS/Cuf1DqsJPiWGmyi88X72lF7adHDissVarHx61329O7aXjGxchR3up?= =?us-ascii?Q?LREbR1K/fQT853Jx9isZG23qZdUsXLETkV+xQZbRY86SQBXNYbgbflHjnleO?= =?us-ascii?Q?jV0ec8I6PfGeDv7tk0Dak8jMNyGFy53atPyLn21Aj5J4Ys/KQBS8cfqHs9NM?= =?us-ascii?Q?9tYuo1CLjd/WDLu+KKZd3b502J+HRkIoFU73gmhbNUhWVcI8EWEGIlY1VtqF?= =?us-ascii?Q?Syq+bGt4pQc1mOBWIb3PhUhH?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8eb72906-14d7-422a-a5ec-08d8d3c0e47f X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2021 03:54:30.0533 (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: k4tB6V+qn2vQ/xTUKmSGlAjJO4lKr5vhlvT4AgQ/GccmqlJ/4qt9dFhoQbhTLW3bUon+iqayCSSp/LNGBH/J1A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3421 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds bindings for i.MX8qm/qxp pixel combiner. Reviewed-by: Rob Herring Signed-off-by: Liu Ying --- v3->v4: * No change. v2->v3: * Add Rob's R-b tag. v1->v2: * Use graph schema. (Laurent) * Use enum instead of oneOf + const for the reg property of pixel combiner channels. (Rob) .../display/bridge/fsl,imx8qxp-pixel-combiner.yaml | 144 +++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml b/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml new file mode 100644 index 00000000..50bae21 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/fsl,imx8qxp-pixel-combiner.yaml @@ -0,0 +1,144 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/fsl,imx8qxp-pixel-combiner.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8qm/qxp Pixel Combiner + +maintainers: + - Liu Ying + +description: | + The Freescale i.MX8qm/qxp Pixel Combiner takes two output streams from a + single display controller and manipulates the two streams to support a number + of modes(bypass, pixel combine, YUV444 to YUV422, split_RGB) configured as + either one screen, two screens, or virtual screens. The pixel combiner is + also responsible for generating some of the control signals for the pixel link + output channel. + +properties: + compatible: + enum: + - fsl,imx8qm-pixel-combiner + - fsl,imx8qxp-pixel-combiner + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: apb + + power-domains: + maxItems: 1 + +patternProperties: + "^channel@[0-1]$": + type: object + description: Represents a display stream of pixel combiner. + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + reg: + description: The display stream index. + enum: [ 0, 1 ] + + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Input endpoint of the display stream. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Output endpoint of the display stream. + + required: + - "#address-cells" + - "#size-cells" + - reg + - port@0 + - port@1 + + additionalProperties: false + +required: + - compatible + - "#address-cells" + - "#size-cells" + - reg + - clocks + - clock-names + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + pixel-combiner@56020000 { + compatible = "fsl,imx8qxp-pixel-combiner"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x56020000 0x10000>; + clocks = <&dc0_pixel_combiner_lpcg IMX_LPCG_CLK_4>; + clock-names = "apb"; + power-domains = <&pd IMX_SC_R_DC_0>; + + channel@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + port@0 { + reg = <0>; + + dc0_pixel_combiner_ch0_dc0_dpu_disp0: endpoint { + remote-endpoint = <&dc0_dpu_disp0_dc0_pixel_combiner_ch0>; + }; + }; + + port@1 { + reg = <1>; + + dc0_pixel_combiner_ch0_dc0_pixel_link0: endpoint { + remote-endpoint = <&dc0_pixel_link0_dc0_pixel_combiner_ch0>; + }; + }; + }; + + channel@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + port@0 { + reg = <0>; + + dc0_pixel_combiner_ch1_dc0_dpu_disp1: endpoint { + remote-endpoint = <&dc0_dpu_disp1_dc0_pixel_combiner_ch1>; + }; + }; + + port@1 { + reg = <1>; + + dc0_pixel_combiner_ch1_dc0_pixel_link1: endpoint { + remote-endpoint = <&dc0_pixel_link1_dc0_pixel_combiner_ch1>; + }; + }; + }; + }; -- 2.7.4