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: 12121395 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=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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=ham 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 1F103C433E0 for ; Mon, 8 Mar 2021 04:06:14 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D10AB650BF for ; Mon, 8 Mar 2021 04:06:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D10AB650BF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2F8916E334; Mon, 8 Mar 2021 04:06:13 +0000 (UTC) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60045.outbound.protection.outlook.com [40.107.6.45]) by gabe.freedesktop.org (Postfix) with ESMTPS id A6D0F6E334 for ; Mon, 8 Mar 2021 04:06:11 +0000 (UTC) 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 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: martin.kepplinger@puri.sm, jernej.skrabec@siol.net, kernel@pengutronix.de, narmstrong@baylibre.com, airlied@linux.ie, s.hauer@pengutronix.de, jonas@kwiboo.se, robert.foss@linaro.org, kishon@ti.com, a.hajda@samsung.com, vkoul@kernel.org, robh+dt@kernel.org, Laurent.pinchart@ideasonboard.com, robert.chiras@nxp.com, shawnguo@kernel.org, agx@sigxcpu.org, linux-imx@nxp.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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: