Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp130616pxb; Thu, 14 Jan 2021 01:36:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoeVbFJPFJEsfnepehx6+p8RvfOGBsyLE98JklXP8rncf1Wpw7nksafHmgvwC25/U1vtHV X-Received: by 2002:a17:907:3e02:: with SMTP id hp2mr4519301ejc.411.1610617007222; Thu, 14 Jan 2021 01:36:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1610617007; cv=pass; d=google.com; s=arc-20160816; b=Ba2ehsM8jRcJjzLhXlqqGmBDjYl1b5eJeQuLeniLDgeHei+B+725vmHXa7OILujvnM 3fq2Ut33HpPi5MABPw0b7r4sVsy3pFrlov8RdeVQhd1HB7OqizuDn1fN5jxBDz5LLk0R +sKdsJ/1aubMUXr54y6BXtXrLGIgpcZXBFJcbCkFG2URvWxJPWaUtFBQvMOry3J7yfKH HEIDSb2KEJtXGmQszhhkg2nNpwDeHeG9H1T+zw6EfaccnrkIrjbuqENGMbY4z51OZPYz sRChpYEwkHgp+V5ZmXE1UlzRag3UPt+dEpjQkRRZO5brqMNwBRuoxjhkWAozqnnw6L08 5cCA== 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=9iORmodMUeEZVrrlBf0aYmcA8r09umAegySM3XV3gNg=; b=kY9QDQkqtw1qLJ2C8Yl+EIgfxnvZ8MpRM/m64U3t725kirzx7wA+17Nq7vybjkD3ly KUXweEbxsT30F3NLXAG3WUW9oe7c1EFKCZ4yCOhd9CCQPROI7OOPET3LEbhmF4nFuSkQ u7ocl9NoJUhFHoh4AtzyQz9BYpilNwVrsKyW8ZV2wuTyBsZIrLzLL/K7PrNsdMau2qxB ecTizOT0itCHe2G4utNT58V65ZVicAYySIwLz2U1S+nAe+GSK13AxmgDSe4tAAyTM6al 5TZH2DGdHURuZxTfXVLbwQBeV3e2INdP9omGxWCEujV/IT78CXoRcZ9H3+Cx8titHCXW 4wMg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=YBl7CcNp; 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 w9si1511010edr.281.2021.01.14.01.36.23; Thu, 14 Jan 2021 01:36:47 -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=YBl7CcNp; 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 S1728410AbhANJeY (ORCPT + 99 others); Thu, 14 Jan 2021 04:34:24 -0500 Received: from mail-db8eur05on2073.outbound.protection.outlook.com ([40.107.20.73]:17830 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728123AbhANJeO (ORCPT ); Thu, 14 Jan 2021 04:34:14 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MjbWrIW4uw3S7JypBk9I8igjac3x+tke5GaC0Q/uzNvJPEQRpa/TuzzEJ1gYNj4PFGZk3UWZTVSFPmD5RAXpZhtN0Ktq7igbgjJfDI8QyPpXipVxCUq483vYPJ5Slib7wJ1SyuPtkHoFEDH2Xg/fJoUHjMB4WnwJl0d6zsLINyXLjt7S8sBBGMaqmJzAUzos0ublWOVQdve7uGnqiH32ENrTUczHJDYAeVxV/shp6atNM+mfxaJMyr9iFJwkkOGABQbMDkHoGBaVhJSJrelCNZGFJd1rTMxdjL25l9aaC114K8/uXyulsHeUYRzioUcptzTGraHKHAWm+NJzvxzaDQ== 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=9iORmodMUeEZVrrlBf0aYmcA8r09umAegySM3XV3gNg=; b=oS6w4pJMtc/kmltZ6uNSfHxDJPetDQQ9GzbJlskDl2ajBg/jy65kt9EJKpGl3z/oD9U52HFMYmekWtsJfqOQVpc+USXohCJWqco0txjwTQ0YGevm3VaOjc2UyUZY7ob14nNpSRpB0f+1k5LhdoUWfXhS1BxoI1mZwaqbU8rT7GtRf0Mh+rbVtPXBrfsuAUJbRRG00Tg5ZE9XwWOow/9cIISynQaGOR3YS/VwExEulC7hCGAwn/JNytysJAH5LVYZ7sI1u89UCcfQJdyeRBQYazAJs88Tm2xOwlC/wl9tZORQ2hoULKRh+YqhJkd4ko6TkNSivWYEZaL1+HeEHAap7g== 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=9iORmodMUeEZVrrlBf0aYmcA8r09umAegySM3XV3gNg=; b=YBl7CcNp+OM0Wn0JOu/pCUgioxkbrmJf2BZsb7aLKAzBdTlRm5sXsz9gm4FLmByXKyqqXZ3SJhKfLhYh99ExY1/+cwZSgw5z7j0ZtPl6t0rdhqUN0wH/I4SdG/rWy6HsuDuPV9lgYVrREEo+3qMxsCHQYQUYq4FxFzOC+qAmLDM= 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 VI1PR04MB5710.eurprd04.prod.outlook.com (2603:10a6:803:df::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9; Thu, 14 Jan 2021 09:32:52 +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.3763.010; Thu, 14 Jan 2021 09:32:52 +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 v2 04/14] dt-bindings: display: bridge: Add i.MX8qm/qxp pixel combiner binding Date: Thu, 14 Jan 2021 17:22:02 +0800 Message-Id: <1610616132-8220-5-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1610616132-8220-1-git-send-email-victor.liu@nxp.com> References: <1610616132-8220-1-git-send-email-victor.liu@nxp.com> Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR04CA0175.apcprd04.prod.outlook.com (2603:1096:4:14::13) 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 SG2PR04CA0175.apcprd04.prod.outlook.com (2603:1096:4:14::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3763.10 via Frontend Transport; Thu, 14 Jan 2021 09:32:46 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 77bf23a9-aafb-4fc9-2c12-08d8b86f5d64 X-MS-TrafficTypeDiagnostic: VI1PR04MB5710: 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: RlYsF7whNerdeambWBmZDO2C0QBy1ya2aV+aJ8dEmmUJU8pMpDpMQO7u+j/O/qdMPLxSxmqEn8dIiamxsy6oOvNG3ubXNL1n2Obr4kTKIzHr6wpqcjQJbbqrW0eovdYg87QAJs0cBYxyMCs11m/NlY02IzZH40yuc/fdetveOMagHSoAn4oo8Cr1OxO4rU7cCPNUKbxiO2V1SfMu5pTXzxLACps77zb8L6vOYvttOx3KxV2BXdFBeYhJw6xWbF4XtYxcQiLoUrAT6hrowEUF3C8//ltnYW+JcvQAbH39nalCDu+0vS43WFIDI73SjBgSYiILziDF5vXdBG9aXTys82CAZSJsu4OmujujWAAA6doptKxPoqeDy4TqZ+uLEN+E/cMdf4YUWsFNcah8G3UfDBX16h1I7NifOPYxNi4aJ4Pv9sRrUynY+AZunVmEavaFZJrVjNzSyWBAjIGcIXhc0LHbJ/mDhJ+krDdwY3tJEuNbtCHvGTTL2fpKbYGxebxD5LrtFlAVeGWZX5UOuJSVPA== 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)(136003)(396003)(366004)(39860400002)(346002)(376002)(36756003)(6486002)(956004)(8676002)(26005)(6666004)(66556008)(6512007)(66476007)(478600001)(6506007)(8936002)(83380400001)(2616005)(7416002)(86362001)(4326008)(316002)(966005)(5660300002)(186003)(52116002)(2906002)(66946007)(69590400011)(16526019);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?H+oH25v834oJslDamTSWZWozjq2abgZSe/rI3IGlirWvFo4UU68JcJ4iS2EO?= =?us-ascii?Q?XQYrGBqkuk1sB5PxwRZT+HDFbNADGXlD7w2sIkDTw839QXZ2Ro8f4LCmrsWl?= =?us-ascii?Q?gSmMzoON5IvXDC+GLLw/hR1RoIBVmYtGcZS7zVPiCbBfHfzunSGd401abyBL?= =?us-ascii?Q?mwn/n7W7W5bOAJN9UJ1UkbCB7czdxippZhCYMQnGL5qQaw3pAQb1dDyPPuVO?= =?us-ascii?Q?7YXLmvOHN8ZllCQuW0RC1I4KT5F0dyxOniC2ZjaX73qy/aRsA4xmi6Xn+aXu?= =?us-ascii?Q?it+4aYllCBZrt1A63TXEncUyD3kPgTpXvQHAfUKDJW2ttco1ZpTtA+mUVczs?= =?us-ascii?Q?40cHwCIbtj9JbdLhhDgw/aIS2QDrwtl8m12R4NTNLKmWp7yLi6FJ6c2qxXao?= =?us-ascii?Q?YQWNSe975MXNwIKijdHsWepAAQdQ46xs3PTTvZWQ+Lfb8S3BWoMIF8lqDfB+?= =?us-ascii?Q?n+u9HFKul2MtVhAgPyaMXXxJvOcSUvtqL5jKETC3j/mMHbaK4KNdSIlUxWSC?= =?us-ascii?Q?U5DQ2lfYclR1P7flh+3iJp3922hy8/dkU4rRsymBFWQG52k9IhuQZKHNJk9N?= =?us-ascii?Q?657YvZ+ohVzO35ZGi1+lZKip8EafUQH+gvXn3foMNWlPVSZpwcopgcg/e3+a?= =?us-ascii?Q?ImNTg+3rpBvnWU4i+f+3AklPiZtqwAKgkbsWioL0Z8jLj+qNh5mzoY8zRR1X?= =?us-ascii?Q?uCLTzUkv/VZZzcWEwb5ZfU87S7bYkb0+FRn+6qyzS1ebn3DOILh1lC5xXP9I?= =?us-ascii?Q?p1O5QzN4+y4VGT2vdN9mI9dUmN84h7BpEJ1rNgH7R7E91a1XZJBFOTciI8cs?= =?us-ascii?Q?/H1W9Z0i2YCYmsE7HZu7C03N86WHYptIUPhgm0V5Gmvf8c5OEU7aClnaP6QN?= =?us-ascii?Q?j04GrJeozHltWIHZI/4zNg6hQfGSQ+GjGi+VLGNYFPAOuqq9PL6fXqXIKXYW?= =?us-ascii?Q?wonFQ84AK0GVQVgNpFghCkDrrxMh8nNMJ/JwsDQ3Uz4MFKqpXeI7n+yeq5/A?= =?us-ascii?Q?h1Nc?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jan 2021 09:32:51.8902 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 77bf23a9-aafb-4fc9-2c12-08d8b86f5d64 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xhs34N1pZhH+hK2uMYzkvMXXkL7l8FnUYNAGrExiMrFoFQ1HkLvfrX9UemA+kbT+0iKH6Te5xmjKJvV1bXG5Lg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5710 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds bindings for i.MX8qm/qxp pixel combiner. Signed-off-by: Liu Ying --- 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