Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1579010pxb; Mon, 8 Mar 2021 00:41:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvF6dPTyg5Td0NnxhH4sRji9rgusn/3m3GQZYEIrf/CjOGJGlMXAhqyrKXg05Ub6EtN6jo X-Received: by 2002:a17:907:72d5:: with SMTP id du21mr5493229ejc.167.1615192880190; Mon, 08 Mar 2021 00:41:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1615192880; cv=pass; d=google.com; s=arc-20160816; b=jcprQ50Bcj4WjMnFXK8lMEObVfr+ph/t/2NJ6t7xHwEPbonFvMM+STvxS+uOZN3QVP JkKKS4qb8/A2f3y8mJ69V28uoJqCq0hJeAkECfCCOHYRdyC3VaiX6ya/nsAg1YBALCH9 xV0yLYuB53lZJ5QT0FJAgGg1AKyWYS4QmWOutvwRdQGD/FTEXrkkDoZoEUqLyYElL0eR DYIOCwlIf0j24Kj9+UUJzV6INEX8EW46zobCYGlkKp5OgPXEvY/5JUQxAMmEpznYGN00 Ak+wdEGW1Rm42Z6C0T+jrtTnsM8/uOCv0qqfamNbySv1Ry0S9XjqxCnhn8C7fQAUc89Z QNaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6Ejl6By0anWBMcx8dIAnvM+cP0pB66r5TAY6zdfq5Jc=; b=K/SnRadWUeR/GMLHCC+N0ZcyVKIKeQ0Y1gtuQTsaT/pw7BjXOFkBP16SBrD5WfgcLl +2xhT6EdS1WHwzla6Ur2oeqdervRE4n0owvFsH6+QOB6udJqBsE0iAAGxPf6cnMDi05d b8/MDGqDfxwyaLTa1tdKahtZu/yd6HlFwfpiJf7vFKNJ2Fnko+xSXTDGtEPSqVEk2IPq HmLw4WgNSozqKZdV9XVwk8DPzcGP6CpVn6eRuBMBAuWi/HctVOj/zbDLFIMR/HHUu4WR GC8yqcISXfgKED9eC6UNxdQ+g7Kor+Pm9ehj/VOoUKaN42DQAkR3aW5GT3iuwYph8M1p pM5g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=EIgLvnoh; 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 l25si6744490ejg.664.2021.03.08.00.40.54; Mon, 08 Mar 2021 00:41:20 -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=EIgLvnoh; 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 S234150AbhCHEGY (ORCPT + 99 others); Sun, 7 Mar 2021 23:06:24 -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> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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?B?a3drZFBYRlE4SjZGWjlic2pnREM2dmdHd0x2RzJ4UGpoL0x4Ri9UdUxESjhj?= =?utf-8?B?OS9XaWR1WGJoRVlFajFTRHh6T05nS1dyNVF0QStuYWI2d1FQUk15VjJTUWg5?= =?utf-8?B?Qi80NHZTd2d3Z0lWUm9sZ0xmWDNtR0ZENjJuR28rQVRtN2lXaWtPam92ckds?= =?utf-8?B?Z3FPajlzTnMvejVMMDdOeHd3RFhCOHQzQkVPMFk1UUFJT0hkTzBzczNSRHI0?= =?utf-8?B?bWVoSzVCUlMzVEJpZ0ZIU2Y2M0JjYUUvbUJTcHZSOGxiRWd1NzZrSnRoMGlW?= =?utf-8?B?Z2lMNlBQb2hIdEdIOXBvMHIwb3hPRDRKVUlkVDZxM2xqcVgvNXkwUEU0YmNV?= =?utf-8?B?cW84T01uOHJDb1A4bmxwbUhRTjQ3cEN0Q2xZN1FkTk5IcFQwMnRodStScG51?= =?utf-8?B?M1pUaVEzTWE1RSsyMWo2bGhaZE1rb0VlUzhEa3lZcGxwbFc2TDJCUExqMmhM?= =?utf-8?B?SCtUdXJtN2M5K0RSV2YxWmN1SkFOWG1EM3R0MUgrV0ZBa3NIL09MMFY3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aE1NT2JuSlp4NElDNEl4?= =?utf-8?B?cDdobFJrQnk0dGUycUZ3TWFzdHY4RmgyT01xQ01RbU4vMFRPT0ZVaHZxK3NV?= =?utf-8?B?dVArN1lUbnRtcUpLZ2xhZU1hWWVBMkl3eHpYeDh2TG03ZlpYSVEwemZLTndF?= =?utf-8?B?UWtQdWFrUTdIZ0lvYkpJN25CN3VmN28rOEt2ekludmJQdXErUGp1WGVXSFdK?= =?utf-8?B?bnlvTkhMd28wUTk3VGpSYzJUMVB1M2U3MzlyTDFGcklBZlBiRTJMLzVrTDRs?= =?utf-8?B?SXBlSm9jWXVtNlpvYzNaOGhIQUZuaUhwdzBaNU5JOWJSeE9sRUU2b216SGkv?= =?utf-8?Q?MAowb/EBQ6RbS2HusrvY9RM5toMxblsun+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: linux-kernel@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: -- 2.7.4