From patchwork Mon Mar 8 03:52:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 1448841 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=Iuf9m75L; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4Dv4YX5VNxz9sVv for ; Mon, 8 Mar 2021 15:07:28 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234161AbhCHEGw (ORCPT ); Sun, 7 Mar 2021 23:06:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234109AbhCHEGS (ORCPT ); Sun, 7 Mar 2021 23:06:18 -0500 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on0621.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0d::621]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CBDDC06174A; Sun, 7 Mar 2021 20:06:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R1qNoYLWSrmxjvZkvspkj52/giTsYCr0KBz8Hc37gMawvKdA/ZkT5zSIGU0rG/TKJMdWFOH5ZKzVj4D0H4vyjXMjqIPbnrTdz8s94mG2ICxJpS2Krco7VpkcTPZgdTSrBND0nB9nuNBKv7suURZQGnNWS4BSRu8GNwTS/yu4awE2q9NzW2AOtjSCHgWQwzf2Chtmbo9mGGWOeMGJ9Vk6z93/QLhPswpVW+iWlNCeWFfFm3tK+jy41Nfo2eZvqXr1VcrBq6i5CZ82XDh8euv0PsNxlkvSZ+oL5moFDC1irxF5GYYcdyVKvgEgrwPT58Xyi7LhhSfWlAWFSGxzC8LR9Q== 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=xmm40p51s6caJ6CzKnCIXNbh+ZLkxm0me6fSvaEnsTE=; b=UmE7vU47tls5gmUZpv9JDBfYKoTbpT1kG5gKXEjOUTsyHysLfeDKLQTw1zGC1TkBsXdJuOQ41JSfe+OURWtHslNJXLg/W9nzoFO3KcEiVwVnjS+PU2fpTpJ2dsnVG3DV1PZ4/zwjvH3vbHhYvDkCrtrl0TcsK+kkIsq3IE/cWBaWICy4XyHEnhS2nVKbOc1aHY+tPWCoMfKTiDAyhMQo0uT3+uHJo1TARVaKZ8J6vtdUx18hQxjmIOVzH+1tfZtSxwGHpMJxNS48R2A583jP9ufw5IztjGxI4m4g4wTnWuVQlpe0QFtvlAgTvhc7flr5Eo4U9IOKviksW9sBGJFkaA== 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=xmm40p51s6caJ6CzKnCIXNbh+ZLkxm0me6fSvaEnsTE=; b=Iuf9m75L5gcq+FEj0KE5nbtd3zhCWM2/BbHTuB4UmoyZKwGSXOkteiciobUisKWGnAr5Nef4qO/xULwx+Zxv7fMsB6KxudnOH8YwEhbwrcHWeoTQfcYiOQZonE1gQeqCGT2fRDCeuphRdXN1/Aj4hcPXBEsFY9i9I9aJbJIoL9Q= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) by VI1PR04MB3310.eurprd04.prod.outlook.com (2603:10a6:802:11::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.27; Mon, 8 Mar 2021 04:06:02 +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.027; Mon, 8 Mar 2021 04:06:02 +0000 From: Liu Ying To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Cc: kishon@ti.com, vkoul@kernel.org, robh+dt@kernel.org, a.hajda@samsung.com, narmstrong@baylibre.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, airlied@linux.ie, daniel@ffwll.ch, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agx@sigxcpu.org, robert.chiras@nxp.com, martin.kepplinger@puri.sm, robert.foss@linaro.org Subject: [PATCH v4 3/5] dt-bindings: phy: Convert mixel,mipi-dsi-phy to json-schema Date: Mon, 8 Mar 2021 11:52:19 +0800 Message-Id: <1615175541-29009-4-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1615175541-29009-1-git-send-email-victor.liu@nxp.com> References: <1615175541-29009-1-git-send-email-victor.liu@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR04CA0088.apcprd04.prod.outlook.com (2603:1096:202:15::32) 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 HK2PR04CA0088.apcprd04.prod.outlook.com (2603:1096:202:15::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3912.17 via Frontend Transport; Mon, 8 Mar 2021 04:05:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7e58561e-8edf-4de5-07af-08d8e1e77cbc X-MS-TrafficTypeDiagnostic: VI1PR04MB3310: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B8Wk3SQyrEx3LqZcphdxHCbeTx0/svDOa4x+m4qoHw/09T8wyRXGP5kyTUQAJx6g/FM6zy7YSsT+INJwB+m5971NgSWwfeOceUTgUS9i4N46uwwEIXIo+KPlPyHWdML1imUBaHPMC039+NXB8FEfPrGhjJ/U5HH9u26dbYliCluXegrUXg6VyP851mQtodmUpynkfH9sUM1CELEFGZbbBLJyfO7+cMY/OJpcei3d6gdBUlfJrWKehHCODaOw+ZBfHaYiKqH20fALvmgAnwBsIAWzjS6cn/ydfYvuDhtXYSzglRqUoeIYSFyDrBHeDpuvGWRNhSpVaE/ZPj/ECJT9QZWezytzlC1i4k0en7BYtCvydm+tW2h02irJOCKDeFw+P5lMHkNUuiJDJkT+pI3Oajs3KcFuKykN/7GQCLNFryxeAokInetdMgL4b/lr7cIfAbth6N3NvVeUKXOKDVLyVpRkQXgMSUllBm/izFIOGx2wHJphOKmAkvzcEnKzuYGT6/n6kYZoDswOYs4p9PEVyzQQ0PTQ42zS8RSNrSo6tdK3ObPrkKCtRum+RnTSz6Gciu+iqIed2iiC6c/mdXvVKRoPi/HjzI5PYswlSYRt6Fc= 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)(376002)(136003)(396003)(366004)(346002)(66556008)(186003)(16526019)(478600001)(66946007)(2906002)(316002)(966005)(66476007)(26005)(5660300002)(52116002)(8936002)(6666004)(6486002)(36756003)(8676002)(6512007)(7416002)(4326008)(956004)(6506007)(83380400001)(2616005)(66574015)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?bfP+WKamQOAUjMVWevfIWQHBJk+ccp?= =?utf-8?q?/mrCdQgCGLtkNfS7jFlHc1QnfyEN/lzu9l06+3vGCJcu39wUvpPjRyVbHWV4p7QhX?= =?utf-8?q?P55GW1NNy/amnvTVm8TqRCWxpYCbzQqficFyhGXO5/lgP6JAAARsr3vYCo1zYTPvd?= =?utf-8?q?HAVti1OHguiWtuXhtuh8R+BOSi9fh0eIE1LWH5D6Y8TJR04zx5p6bTXRKcDroDFum?= =?utf-8?q?piaWlZC3YmXioeRTEC17fSj6HoUiOciNWCIF8s+uxZqdDNXYSQFNAxrEYOJ1ZwEXo?= =?utf-8?q?9thssmMVKbcl31PHDOKRpTqgghl6V+mmEiBfl19zAcPAV8zlnDaVVXuBrcUxxGJXA?= =?utf-8?q?9M7FtQxgAia+2X24omxMgZ6W19qbamlr9Wrw/Ksb7kQjjlw5jok8cXMYE4BNF2ykt?= =?utf-8?q?j7SYQjjNPCUFkvim8X7AyIpPlMv4/JDy82KinX9M32BQ/AbZiPL1r8qO7kMi0y7j/?= =?utf-8?q?qR1s8rZnV0DeYNWFchZNzpUVk8iVN1TZVKi3qbkF4wVgif7D9iGKq7fWRpev+BaQE?= =?utf-8?q?tww7QFWxX0jHjrAoYa0gcxVh/Muj4lHjpKfLqcGKmcImQBOb0lrrjbLW5euhkB2Yp?= =?utf-8?q?NhUyjdWVf4hTcfpw08umNqZfs6pWb5UIaWMSMn5q2dNiesnsonjmNDqTqnDGUCBmJ?= =?utf-8?q?LO+h5mJFwuLx80sgZ4sU/sGhRMf5wg2185gJsFe5o4Psd2Tpf+rhBVv8Jr0lMimQE?= =?utf-8?q?CNtuu1MrE9yJjFUgnejmIAEed6OIgwo/0eSaGvJspxnIaZXBLQ/9D0yczeEDuQ+CK?= =?utf-8?q?jxsNjNz8PfsT3QPfggjMAGzVhyn4yr/ZKt/bpRLq1GibufupoB+Qp8IEGpQMkscqU?= =?utf-8?q?JPUDuoNO7biI5VlaDbOoV8J0IvFQBfOe9nb03irerSBzu9nWCn+vB5LF75SzKSBDt?= =?utf-8?q?xZ9Zi3pmrf6USRYi9LrMoP4NU4islfXBvx0CxZGszMcFYYNQcMwyE4R6UwpbGDki5?= =?utf-8?q?ch+QKNcnYs3yFdF06VkEK7vZrzwGd31Dx65rtwn/2PHc9XQdCB8WxnxxTU3GmncZ0?= =?utf-8?q?EyqBRhfeKsuet+mVUINAEwzAcDRbnd1mtS1KlIjiF6w/KbICWPZhyA6Z3bbY+Kjqn?= =?utf-8?q?aRYio+EyfkqR1ZpAhOoPtmI+A0ojkYHDqHzKWOLeY9BQkDV4FCKHKPLgEN3269vxC?= =?utf-8?q?Ooq+8EpBRSXxKd4OVzD4XKhvPWoRtr0oV0xO9SIHsZNuZJWXtbz5au45RN2z81oSI?= =?utf-8?q?tPHO3bifbTbOh/GjfhWv1auTCu7lhDJgwaD0j2tOod2TzcDptamPTCtpHK4WGyC2u?= =?utf-8?q?PKjPKXPNhACzM8?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e58561e-8edf-4de5-07af-08d8e1e77cbc X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2021 04:06:02.1746 (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: vR0QbPlmKaOzLcz2YT3FEr8S1EWHLbPUOtUTlqgdw/37DvjfBOgRZ3/CzKjEiuzRz5ZhM65wJ/eEWUY3t2AKMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3310 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch converts the mixel,mipi-dsi-phy binding to DT schema format using json-schema. Comparing to the plain text version, the new binding adds the 'assigned-clocks', 'assigned-clock-parents' and 'assigned-clock-rates' properites, otherwise 'make dtbs_check' would complain that there are mis-matches. Also, the new binding requires the 'power-domains' property since all potential SoCs that embed this PHY would provide a power domain for it. The example of the new binding takes reference to the latest dphy node in imx8mq.dtsi. Cc: Guido Günther Cc: Kishon Vijay Abraham I Cc: Vinod Koul Cc: Rob Herring Cc: NXP Linux Team Reviewed-by: Rob Herring Reviewed-by: Guido Günther Signed-off-by: Liu Ying --- v3->v4: * Add Rob's and Guido's R-b tags. v2->v3: * Improve the 'clock-names' property by dropping 'items:'. v1->v2: * Newly introduced in v2. (Guido) .../devicetree/bindings/phy/mixel,mipi-dsi-phy.txt | 29 --------- .../bindings/phy/mixel,mipi-dsi-phy.yaml | 72 ++++++++++++++++++++++ 2 files changed, 72 insertions(+), 29 deletions(-) delete mode 100644 Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.txt create mode 100644 Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.txt b/Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.txt deleted file mode 100644 index 9b23407..00000000 --- a/Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.txt +++ /dev/null @@ -1,29 +0,0 @@ -Mixel DSI PHY for i.MX8 - -The Mixel MIPI-DSI PHY IP block is e.g. found on i.MX8 platforms (along the -MIPI-DSI IP from Northwest Logic). It represents the physical layer for the -electrical signals for DSI. - -Required properties: -- compatible: Must be: - - "fsl,imx8mq-mipi-dphy" -- clocks: Must contain an entry for each entry in clock-names. -- clock-names: Must contain the following entries: - - "phy_ref": phandle and specifier referring to the DPHY ref clock -- reg: the register range of the PHY controller -- #phy-cells: number of cells in PHY, as defined in - Documentation/devicetree/bindings/phy/phy-bindings.txt - this must be <0> - -Optional properties: -- power-domains: phandle to power domain - -Example: - dphy: dphy@30a0030 { - compatible = "fsl,imx8mq-mipi-dphy"; - clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>; - clock-names = "phy_ref"; - reg = <0x30a00300 0x100>; - power-domains = <&pd_mipi0>; - #phy-cells = <0>; - }; diff --git a/Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.yaml b/Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.yaml new file mode 100644 index 00000000..c34f2e6 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/mixel,mipi-dsi-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mixel DSI PHY for i.MX8 + +maintainers: + - Guido Günther + +description: | + The Mixel MIPI-DSI PHY IP block is e.g. found on i.MX8 platforms (along the + MIPI-DSI IP from Northwest Logic). It represents the physical layer for the + electrical signals for DSI. + +properties: + compatible: + enum: + - fsl,imx8mq-mipi-dphy + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: phy_ref + + assigned-clocks: + maxItems: 1 + + assigned-clock-parents: + maxItems: 1 + + assigned-clock-rates: + maxItems: 1 + + "#phy-cells": + const: 0 + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - assigned-clocks + - assigned-clock-parents + - assigned-clock-rates + - "#phy-cells" + - power-domains + +additionalProperties: false + +examples: + - | + #include + dphy: dphy@30a0030 { + compatible = "fsl,imx8mq-mipi-dphy"; + reg = <0x30a00300 0x100>; + clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>; + clock-names = "phy_ref"; + assigned-clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>; + assigned-clock-parents = <&clk IMX8MQ_VIDEO_PLL1_OUT>; + assigned-clock-rates = <24000000>; + #phy-cells = <0>; + power-domains = <&pgc_mipi>; + }; From patchwork Mon Mar 8 03:52:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 1448840 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=EIgLvnoh; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4Dv4Xt1sGDz9sWq for ; Mon, 8 Mar 2021 15:06:54 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234118AbhCHEGT (ORCPT ); Sun, 7 Mar 2021 23:06:19 -0500 Received: from mail-eopbgr60067.outbound.protection.outlook.com ([40.107.6.67]:36181 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234103AbhCHEGL (ORCPT ); Sun, 7 Mar 2021 23:06:11 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yi4RXcM3Gol2iKZ1RZS3shmtxBBsQHzk+CLkVxEyTaVDEMYoe1oRCQWAieQkh0/OsvVeelNOqil7Dz79KEfw+ZrpCDkYmquYlwl879jZf4OWrA02n9OY/dp6x5hBSY6EQpdPLPFmoLtMZz9QM9QmSOosl75WOMXDdPLezG0pjfBlAzMsrbN7loGuCWdsaxtk6qNZD9YYg9S8gHCx5XOKAJqLwW7xV6H4BR9yNRP0mqRENsMJkw6nsDyMyUv5R3Md5ur+nS6ZYMehhXO3ZYszzHFUrNlEJ23es6xlvE1j0s7p2ItCdCdL+bvTdNsP3AW8uIFgDUDnQPgIsDgIJQF44g== 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=6Ejl6By0anWBMcx8dIAnvM+cP0pB66r5TAY6zdfq5Jc=; b=EavBYzx92QzO8P1MbLTP26Ed8erCl5j0MSxQvTmtYXQodNEIRCJdpdg+rd0WAio9HRBLPyurbFUixdNBmg+4zUKPOClqczG4ueg/xd9YZq9Ier2UpBEDio5Cx7jFA//48Uu+zr+te0PtHuu3cJy2ECKXcgZYyRHhQ0jHNoXxaLkPAqRWzkVrEjJYvhTBVTgfqP5yOi85RD7H49YPRE+JTERC/0rw96ujRWvrnsYCknpEm96aDteSUhCRQilHd9gBBf/x/10uDEFkeGRrffZycfK7DQsQE9/skGVWNrZppf21NRtkiFcNsmDCauybHP13xKhnG8WLlCseuM+oYK3DSQ== 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=6Ejl6By0anWBMcx8dIAnvM+cP0pB66r5TAY6zdfq5Jc=; b=EIgLvnohM7r348bvKf0oyUk9Wcl6tTiMxE6gZHn+mch/3j8ReXfvt8K9rC3S+FG+fJAB2cxu98aUKITr55UfFokFbqeRG27WgiYjQyOzWZAemsVmcWqY103OlhkV+cZfRj0BdyF+bUeFBLK8TdnJhcBzZAMFT3gpOwrCvqFBZvc= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) by VI1PR04MB5184.eurprd04.prod.outlook.com (2603:10a6:803:5d::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.26; Mon, 8 Mar 2021 04:06:08 +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.027; Mon, 8 Mar 2021 04:06:08 +0000 From: Liu Ying To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Cc: kishon@ti.com, vkoul@kernel.org, robh+dt@kernel.org, a.hajda@samsung.com, narmstrong@baylibre.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, airlied@linux.ie, daniel@ffwll.ch, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agx@sigxcpu.org, robert.chiras@nxp.com, martin.kepplinger@puri.sm, robert.foss@linaro.org Subject: [PATCH v4 4/5] dt-bindings: phy: mixel: mipi-dsi-phy: Add Mixel combo PHY support for i.MX8qxp Date: Mon, 8 Mar 2021 11:52:20 +0800 Message-Id: <1615175541-29009-5-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1615175541-29009-1-git-send-email-victor.liu@nxp.com> References: <1615175541-29009-1-git-send-email-victor.liu@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR04CA0088.apcprd04.prod.outlook.com (2603:1096:202:15::32) 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 HK2PR04CA0088.apcprd04.prod.outlook.com (2603:1096:202:15::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3912.17 via Frontend Transport; Mon, 8 Mar 2021 04:06:02 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4415ffa0-d3b2-4edf-0699-08d8e1e7809e X-MS-TrafficTypeDiagnostic: VI1PR04MB5184: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dZz0UkzH7I0Tdzm0a1hVd9OqJzrMiTKVfradCOnb8C9c1Nb9qvyKL4p8Bb8vJLFlOi4KNVRFmzoLCGWACX+ub4UEaR8gjUv+TwVFLtkJPszt5mhZFVZIUdk1QjXSZpe6Zb68uSkHVCYd+CqZuzI94/IXKS/Jkldj4eQs5zCYpf+3qZNiCiF137SUVoda6LN/TpgxMwgVQKBuS1mlpcJcP45VrFJ38uPeAf/2Y+QI1rey3KQcwn6YhxGC1jap82uQTedm8N7TWyGIQdseigrgkV2Acx1+yV3qz1Y+f/dopFqracVSy0jQER0dkE1NOgQklcHgZPk9lDrb4Vna0Y3BwoVNIy3MVXk3uQLDGDPcpeSNup7fjEb/bo1+frT11K6Isjlvwh8OmKbmQGLov8aJ4h+Jy5DqyYEt+/lhAhWLVImX9EuqG7Le+J8SDfeGJntg9+/MEYTFuG8J5IH/3okH1ho4+Qv/F59UYxghgxDp1Tb6mDZKGr/c8mZOrhytOinzYLgFgo82cnridQ7yT75rcQ== 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)(366004)(376002)(346002)(39860400002)(136003)(396003)(956004)(66946007)(478600001)(26005)(2616005)(4326008)(2906002)(6666004)(86362001)(36756003)(83380400001)(66476007)(186003)(8676002)(52116002)(16526019)(5660300002)(316002)(6486002)(6512007)(8936002)(6506007)(7416002)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?kwkdPXFQ8J6FZ9bsjgDC6vgGwLvG2x?= =?utf-8?q?Pjh/LxF/TuLDJ8c9/WiduXbhEYEj1SDxzONgKWr5QtA+nab6wQPRMyV2SQh9B/44v?= =?utf-8?q?SwgwgIVRolgLfX3mGFD62nGo+ATm7iWikOjovrGlgqOj9sNs/z5L07NxwwDXB8t3B?= =?utf-8?q?EO0Y5QAIOHdO0ss3RDr4mehK5BRS3TBigFHSf63BcaE/mBSpvR8lbEgu76kJth0iV?= =?utf-8?q?giL6PPohHtGH9po0r0oxOD4JUIdT6q3ljqX/5y0PE4bcUqo8OMn8rCoP8nlpmHQN4?= =?utf-8?q?7pCtClY7QdNNHpT02thu+Rpnu3ZTiQ3Ma5E+21j6lhZdMkoEeS8DkyYplplW6L2BP?= =?utf-8?q?Lj2hLH+Turm7c9+DRWf1ZcuJANXmD3tt1H+WFAksH/OL0V7X9zKO9YVck3Oj4c31F?= =?utf-8?q?UVM+z+ZMredd17D+c2eJwPyAOtHKkj8VxPDDVMWYWTuC8bImdtTDa3sGimaQW+bRq?= =?utf-8?q?GneisFlfRyniSnT5nKmJEXHsE0In75CVVLHsUrwfPiQYeOvnZ1OynP3NrhATJ2n9Q?= =?utf-8?q?TeBMhuKIV+E2tMyGBngK6VIOfY/+lzc6coktZrJ9tT5FsjwqFeITeVvioBxqU9Oc7?= =?utf-8?q?CkZAr2g9K2laotY2pUiafSWooSsbqecpg0GJpurO0ESkcDR+YWPuzzFKKaSIZ8Xpc?= =?utf-8?q?iEhX/wMUsaHg7haMP1Pcer+V5d6Wb83ZmxuNmv5HfJpMJEy9tGEwwoQyaAD3AF8Dp?= =?utf-8?q?LC5NHlQ7jqrBLygo7eVCbJYHM2eh2zZvoeDA28P1HBu5OVQ2Rzanzldh++23HlloC?= =?utf-8?q?4zXGQi35CnGFaF7pYO+4VXnCLeqjczYHv1ul4TkuNSwlTgyQfZrZUa1TT13wTFK3e?= =?utf-8?q?M+yIsGdGwRZ0/GUjaQMEMY2g6i/+6LShixuJC5/6rk5Bat7xwAa4aW1Zxa2LgDt1/?= =?utf-8?q?M3FnoQGiSNfNxXRUmcelLnQqGLpa0c5ps2JMXV1KCFaecenMSvFOvIgOwhipWkMki?= =?utf-8?q?xNTm7mk6Jsyhw2cX2GIHF7S68pg3ibMLi2ecLJ0GfunWZjLv6O07DdhfFclEhMMOb?= =?utf-8?q?nJZx4IC4Ixp7hlRkBy4te2qFwMastv8Fh2OMqCMQmN/0TOOFUhvq+sUuP+7YTntmq?= =?utf-8?q?JKglaeMaYeA2IwxzXx8vLm7fZXIQ0zfKNwEQkPuakQ7HgIobJI7nB7uf7o+8KvzIn?= =?utf-8?q?vbPuq+PjuXeWHWJnyoNHLwo0Q97TjRc2T1Pu3e739rL1FrIAfPbE2L/5kL4lIpeJo?= =?utf-8?q?cYum6Zoc3Z8hHAFniHpw0Z5NI9bRxOlEE6omzHi/MAowb/EBQ6RbS2HusrvY9RM5t?= =?utf-8?q?oMxblsun+zslSs?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4415ffa0-d3b2-4edf-0699-08d8e1e7809e X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2021 04:06:08.6389 (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: kkDkW4NmiDuSfuJHF+I5n2QI1x0kd7cK0PN4oepJmFcIzRlqBZZs9n/0mWYAbVDURLkozXSzSVIXCs4Q9jvbeQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5184 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support for Mixel MIPI DPHY + LVDS PHY combo IP as found on Freescale i.MX8qxp SoC. Cc: Guido Günther Cc: Kishon Vijay Abraham I Cc: Vinod Koul Cc: Rob Herring Cc: NXP Linux Team Reviewed-by: Rob Herring Reviewed-by: Guido Günther Signed-off-by: Liu Ying --- v3->v4: * Add Rob's and Guido's R-b tags. v2->v3: * No change. v1->v2: * Add the binding for i.MX8qxp Mixel combo PHY based on the converted binding. (Guido) .../bindings/phy/mixel,mipi-dsi-phy.yaml | 41 ++++++++++++++++++++-- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.yaml b/Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.yaml index c34f2e6..786cfd7 100644 --- a/Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.yaml +++ b/Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.yaml @@ -14,10 +14,14 @@ description: | MIPI-DSI IP from Northwest Logic). It represents the physical layer for the electrical signals for DSI. + The Mixel PHY IP block found on i.MX8qxp is a combo PHY that can work + in either MIPI-DSI PHY mode or LVDS PHY mode. + properties: compatible: enum: - fsl,imx8mq-mipi-dphy + - fsl,imx8qxp-mipi-dphy reg: maxItems: 1 @@ -40,6 +44,11 @@ properties: "#phy-cells": const: 0 + fsl,syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + A phandle which points to Control and Status Registers(CSR) module. + power-domains: maxItems: 1 @@ -48,12 +57,38 @@ required: - reg - clocks - clock-names - - assigned-clocks - - assigned-clock-parents - - assigned-clock-rates - "#phy-cells" - power-domains +allOf: + - if: + properties: + compatible: + contains: + const: fsl,imx8mq-mipi-dphy + then: + properties: + fsl,syscon: false + + required: + - assigned-clocks + - assigned-clock-parents + - assigned-clock-rates + + - if: + properties: + compatible: + contains: + const: fsl,imx8qxp-mipi-dphy + then: + properties: + assigned-clocks: false + assigned-clock-parents: false + assigned-clock-rates: false + + required: + - fsl,syscon + additionalProperties: false examples: