From patchwork Sat Apr 2 05:24:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 12798977 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6216BC433EF for ; Sat, 2 Apr 2022 05:24:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=83iLNUbPm4s3a2EaZcwYkXiq6ew9NI9kGiHqLx7+6Nk=; b=lexMlvlMOFb2w4 5Xl8Jc6Q9En6gVqmhOnmOBGqGr9JfGFXl5zU8fF6zDHm95ynjQs5QKPTxhgBjaTro6c5oE+HqJOm1 fkIByii9Lch7PYLXG+BWqGSMre163pvy8KR827KzFiCMiQtMIg4FzKy7arYJhiLI8B7TCfRuHz9Zf FXCTagAYy5D9QWsOBIwle3I4bumz5BHvc5itKB3Vs6bQBmmmirvA1q94/GCxvmg3b/jMWr6MfA08R PxOoJuSNzM0l2/7mdikGP7P6VnUQA+KtPlZEyAop0730eV8/hEDTvW3Gm670CgcPjpd246oSJbi0t w8Hfkk3EV7yEE+ypt20w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1naWFX-0084Pp-O8; Sat, 02 Apr 2022 05:24:35 +0000 Received: from mail-am6eur05on2060f.outbound.protection.outlook.com ([2a01:111:f400:7e1b::60f] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1naWEk-008432-OB; Sat, 02 Apr 2022 05:23:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mLR7hqpxBR/fvin7OZsIYvsyhDRXG3Bh5SOoinUYyfarpl01lQHfht1jFeHUfJvNeDlB3QnfGOtJkBEWuR+FAXN7MAR3glgJxniDs5GSMk4SwVMzczaGi8GasvdSXYDZl6aMLp6+8F8poQK9WI6byo/7kaW9Ruf6qXZPV8b5yW4jok1yJxF1kficMXOtC5s7Qh+1cKttSN6yFD/cIkfz7jcNzg/ZInmOKYNHub3CZfEvQqfm9gHyZl6j2pGx6bmkDRqa/24dGwMCGc81NdrCsuZ11ciui0/TjlKjkzBglvo7bomS0zkUPVw2miN8y4/HZFWeHAxR57hhA1LFY6zUjg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oGFfS88Z0L9svuW6iyHKRmljyrsYlgWUs4+4IejC1IY=; b=kifb6KAOzDsZBjeXAYr5ro4NfiuYCcxcQCQFpdPTQezvAezQxNgpv+iA18/xCKID4KGf/km08m2JpCIaUq6xh2l0Ze1hbs6rN9oOjeVNgmUuoc37Cy2ef8Ni48RYuPgorcMYyNEJLI1vnnjMPeVt+uCNWPvgrcONoRPpY1fPwfjWj2Xa3gHRo27nEsDbqYEKRfxk/cwSvMO/QltumB7R+14912fjZZ10i7iXwnqYUQJtTX8IFnvH9B7y6USZoisp/c8HxPHyLnWgeridoQ5cKohlFKt6uIIztVVl2qgE9DdDKhOskTkbzPUV1EpkNERowC03oRFWAn5Xii3f3fekHA== 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=oGFfS88Z0L9svuW6iyHKRmljyrsYlgWUs4+4IejC1IY=; b=dxJpuPew0VRKcwF6SGsqQSLwjKZ9nYlXQGtCazPTf+65hs26pSLfJNni3Ytos5BY0nMJ2rjlBPdOMSPKmSpsGRbLJzr1G+6b+Xo4MJkR8DOKz9G3ykYhq4Gr4T3Te9ilpul+kX+xttzm2Zu+G84ynVlkpNDWS9/K9/mA6srOli4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by PAXPR04MB8750.eurprd04.prod.outlook.com (2603:10a6:102:20c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.30; Sat, 2 Apr 2022 05:23:44 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::b09c:8ffe:8e02:7387]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::b09c:8ffe:8e02:7387%9]) with mapi id 15.20.5123.030; Sat, 2 Apr 2022 05:23:43 +0000 From: Liu Ying To: linux-phy@lists.infradead.org, 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, andrzej.hajda@intel.com, narmstrong@baylibre.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, 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, Rob Herring Subject: [PATCH v6 resend 4/5] dt-bindings: phy: mixel: mipi-dsi-phy: Add Mixel combo PHY support for i.MX8qxp Date: Sat, 2 Apr 2022 13:24:50 +0800 Message-Id: <20220402052451.2517469-5-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220402052451.2517469-1-victor.liu@nxp.com> References: <20220402052451.2517469-1-victor.liu@nxp.com> X-ClientProxiedBy: SI2P153CA0008.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::19) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ac110f71-a519-4e4b-4e0d-08da1468f466 X-MS-TrafficTypeDiagnostic: PAXPR04MB8750:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v8aQYz7VRjX28JWtFD9C+5C63G9/zHYLoRv6VCrm3yDJ559u39qu1CFMxH0kt6ePr24siLj/7LT/YHFpWkfs8Rf4UFqQZ64CUmuSWJ71RWsmwRFJsjAsB9YcsvDp9d5Kda4fuQxS+L4lwIKfqQAItzZfuLiywpcBIuYWAXJOjVA5RSVJHpRYi/IoidXLHQ1XHCAIsr3q/9hrymT2xzmibrDjmsUCh5J/E6Ds0As9mW/gUPPEYFTy9bNv+ih3Snlk5zj/4tqUcBgHK9dsKLzACasymI19TRIBxUtYmioJaWi9BCCHmVFdupkUkEA8ewYmY4K0V28ES3Aa53zxPlwblQRaBTIZ4iQfOVQShBwE6Pl8iFaefWEwftHwG2GbNfFS0XmJvHno/uT2cCmx+Ik8xilfHSDlPNjayEr//J6IQLHFV4CVmNX77AIZ3hhuQmsmcYBX/FeyXHB/PidzgZVNK3vqBBwJc5k7ysWnE2dPKWbdztksVc11GkHHucK8klmPCAJrVnMQeUlp1OGDlZ8R9Efp5LMkLahbllJtNmee6bQNsLS9IHO+V8oa1FM5HmMeVHFpIW5f443UOeggrERNbF3KoC8aXIjOv1eRJo2fQ1jFSIchpfpBZFdsiJYlPYJELtL5HmjAiI7WmBcU2KWhO8wLDD+7QmcLNIAj8c11Iz/l/XDi6lFDUkQ7jf7QQr5X/4tx8XcCb5JakGt5oOqkGA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR04MB7046.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(36756003)(6486002)(83380400001)(316002)(6512007)(52116002)(186003)(26005)(6666004)(6506007)(1076003)(2616005)(508600001)(7416002)(8936002)(86362001)(38100700002)(5660300002)(38350700002)(2906002)(66476007)(66946007)(4326008)(8676002)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?B2YuE/6pQO4xVAFP9qQx33481KRj?= =?utf-8?q?JcVdDKYrdPnG5FLUODcphcjGKJ3lnHSIrifOL+5i0s1vnuZR3DGd1B/zlTql0DIxC?= =?utf-8?q?3c9j4KZr7GhwI+CATgORc6qIJVWsfszfgFFVwTlAlx6BaptwO+XAYT2qd5LIknkxb?= =?utf-8?q?bXtLddZ5zRenGJU/AF2q6jlSJWw8cAcQkmUEYMZXDdJqhHQqNuzRBjOcMHBSwQazW?= =?utf-8?q?aFiFyKBD5wEA1/I98K67LJitgL9KTieroqiqeiE41/zERu1iWrlPZ0g80spxYSYLV?= =?utf-8?q?JJ23HubqIqJMPT/Fu7bQgq70/43mh9y93soAzhVju6u+hlfGEGgXkSbV9TEisUG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8?q?TVwG75ayOsVPXXlHW9iy32fAfBJXTT7qVnY0zZm/umzzBVmQsiUkFh7LInl19iYCn?= =?utf-8?q?jVjjJIQyCirS9KIUwjyBJ/SbrHY3YSXZhEBVaEmtUSH6Fs7mLrsWlCZqAAPhAqVNA?= =?utf-8?q?IGy3lnDlBtdDIcbWtGuy9aOiDkqOh1Bb+nSED26G13hBxk2uRlO62vrpG1Igq+yi0?= =?utf-8?q?MfU8FAyJxAc91HGgQr7gZvqQ0GnaJO670kLAjpW8xduW9ruEH9j0OC26Iumo4YIZB?= =?utf-8?q?H4oBm+4SU9POh7uCpacwtfmcccUhJodjGJSkzTeypdUmjhZY7NRf3/qbMJzlnxRja?= =?utf-8?q?JEJ+tiim9k79gcqOZQJ/2kFq7XcYqO2KQJxuAEKtwVKtzoV7OUgR1cnSwFQCdA9zJ?= =?utf-8?q?iWwXRd5XDBdXMdU5xvQDRRlsp0fbsUV7ZTD/HxxSfFxC6ZQSAi9u12o7wXerSKszc?= =?utf-8?q?Jktt6HF2K9bCn8f1M+7fX71a1RVYqGZg=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac110f71-a519-4e4b-4e0d-08da1468f466 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2022 05:23:43.8814 (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: OtLo7ln5a8fFDKzM9iRDS4XB6I/Qe2KZhLkdo0JHiUHCsqO4UxU4+rdeuoT4YtpJHpX63CKiGn/55mMCjrPp7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8750 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220401_222346_820941_76EEDAA5 X-CRM114-Status: UNSURE ( 9.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.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 --- v5->v6: * No change. v4->v5: * No change. 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 c34f2e6d6bd5..786cfd71cb7e 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: