Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp214961pxf; Thu, 25 Mar 2021 02:16:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvY0Ki1CqMlvwllVTMKaUlNsB6BKwfiOfyzfpS2eF3kTlr9SSRou/Dbql1MYCb5VJRF4zl X-Received: by 2002:a17:906:9515:: with SMTP id u21mr8433530ejx.86.1616663788997; Thu, 25 Mar 2021 02:16:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616663788; cv=pass; d=google.com; s=arc-20160816; b=P+L85N++2jWr2BtD8nTOn+caE2i0yL5OnMzzi5LlT4qw51CCwPlEANuAoBv1S3U/oj /FJ9XbGzBJGZ1qs4erU5NtcsaW4Hd1BKNOEdendIdXcrkAyblGEFSxfNMA/yRDE+t8Zq TgYkVvxZE6LniPpa82sThp9FdFj8uLco7xzioahRyFp8f0xXmrbCh0cOXXLaSouNmMgL r1CTTlRIzG/i/PX/m7lLGyqxvPUhoqRMFND7lHVaCkclO/6GUueXTiru8B9f3iRJMLby tqinFqpQjVl8nn0MStZ/VnqilVyybmH2sCHGx3I2iECLHQ3jP7jiaFSzl+5AAs7//NV7 yhjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=ruMk2lK0dyLF2YPXgjIMmcHuwgSAz6LJsghuIFeEitM=; b=kC7ztUXPmcuy3Z4BNRWc1gtXPlh2Zm0VT9t8J8uyNoEFQRuvnOEZGm8/R113Dur2KX /wfWwHortoUMi3ixbVfhwxjBRaec+80IA3NVGq+S4q0FjSRXLOPkJAUPxIp/lFn2y1n6 ifRAavJLksx8rK9/8cJTyIoROa5C7G4naL4LHzFA8jVYD4Q5XT9VUv7TFaoZLknoJqAc Lsd/iKMCf5wh6oFuzsyNkU2M0hKnSYhhMxCNdW4A1qLBUL8vx9m8wu+6JT65lNdPDGFQ LOheww/HAC5YpcOAsvqz9Z0vvRQQPUxuC1e5rSeWfQAbpDf9Vd+8PJY+BsbQja94bQF0 Xw2g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="gl/TwzpI"; 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 b5si3748725edz.154.2021.03.25.02.16.05; Thu, 25 Mar 2021 02:16:28 -0700 (PDT) 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="gl/TwzpI"; 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 S229629AbhCYJPE (ORCPT + 99 others); Thu, 25 Mar 2021 05:15:04 -0400 Received: from mail-eopbgr00079.outbound.protection.outlook.com ([40.107.0.79]:23876 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229581AbhCYJOs (ORCPT ); Thu, 25 Mar 2021 05:14:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bS9KfxWICujeZbwPBONf+t6nZGPR34gH9Yc3al3bVeKlpgjb6mxb7ACYdQeQRd/hJonAT3DcSdJB/+SRuqOYnjeV/c+J7Hz0fh5912qeGNjft4aWVcsNZtglLVP0eLh1La+xYFmhkpaaSi6MyrT1z1pdgR8zPHTopCKofSNBS8AD/7ubzuJMQK3xJifKIBW/rYJmhZhmLfYDfy5VqHaWEj5ir0E6gdR/nIxBFrpA6Kl5s58xFevanarSL0ZahulVsmAL927D0utCpYbZu5KFEQmeMJY4W/BXNX2vnv2f5pLUM5hJfCJs+6q9bPtGhHX9BLYZS26w/6hNF+eLdMzhyQ== 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=ruMk2lK0dyLF2YPXgjIMmcHuwgSAz6LJsghuIFeEitM=; b=agnduqyd6miWcK6ZyTTo3pzNgMCyKk3SIabVIijUssgl3y3qRBcINnnjHgVoDAWPoLU8i0OFd0TCG9srYVJoeRQQ9c4Vl8ARPd8EmDaAp9kGd2+29JqwiePa3gj/2rEyajJUFG3mUCespCyOpDygMM2D8QmU805S7q/mPiD7dqUnDbSZtyYeZe5Sn1rt/RlVtN/+Xdg6uKsOG8Kuk4Eb2bp49/E2gSbw8BDyRX2zsmHI0WD8t0Kdz/Pu70/u6xKa7bmKDL0Zb5jBF1u9ksq+/ASKp/y+Hbb+sa2j4Bik2tbT7rK8AXHscG1y5HxvBkym4oT/tdlQO62OaxqjHAoFIQ== 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=ruMk2lK0dyLF2YPXgjIMmcHuwgSAz6LJsghuIFeEitM=; b=gl/TwzpI98p/QwYRmGxWKaQvyk73esc99xVa5cX/G1p/+gBkGEid9whDfZwUHVbbxl3OWK9JrZ9mqyygv8vyTvSQ8RNPv0YoRxSAdiFIQg9/szbVAYa8lXiVfSyYQtHpM0I7FE4T1O8oV/3i3O4ZNsFm65mHxaWlvor/H3g5Zhg= 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 VI1PR04MB2976.eurprd04.prod.outlook.com (2603:10a6:802:8::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Thu, 25 Mar 2021 09:14:43 +0000 Received: from VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::3ce1:4759:5c33:514c]) by VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::3ce1:4759:5c33:514c%5]) with mapi id 15.20.3977.026; Thu, 25 Mar 2021 09:14:43 +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 v5 0/5] phy: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support Date: Thu, 25 Mar 2021 17:00:27 +0800 Message-Id: <1616662832-27048-1-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0164.apcprd02.prod.outlook.com (2603:1096:201:1f::24) 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 HK2PR02CA0164.apcprd02.prod.outlook.com (2603:1096:201:1f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.25 via Frontend Transport; Thu, 25 Mar 2021 09:14:36 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f351a3ee-95d4-4c7c-2202-08d8ef6e6cf5 X-MS-TrafficTypeDiagnostic: VI1PR04MB2976: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GS9S0QVpgYb4bS7Q+pX8tN9RtSAjch4nPOgZ8CzgD5Q84i60ylIL1R8DYxeNoTBtkxe4odi3C7xkchzaWj9nCTBirljsrhMZE7kOJ0iUiKmXeQt5pqVaYDnQCVoG0SBAItpJckLkIfO6UtuKMEWSBgn9VY9Ev7UTK8C009nslTSRnyuCj2Tdf0FBK4ObouK+6QF3l3XhJ7EWXPxM6OfnGy9hzO462rvbC9HbKlfS1v9fFvy9IyHhwYDKKN+IlUmt1vo+9vJHKcMnsdqsiGavzhEaG3MrirR6G8w4FZGYohUya6CVrlPA5X4oI0C9+bzsshkm40PJaacjPckm3zm1Wrv0zIMC4LnNZR6+CeH9ARIE99ZQrKw24oEpEHX/4wZjrDrljY6jI6f7xJ3qigx4BsjShFWa7c4xHW9YXbgW3tVQm9VbAR+3psFoqAnwyL5XG5Xd0ru9znV0ZXK9Rb+/McR8asT1u1kaCH0VFjvfn/PmcFi2zt9LiUlwZWgM425iYwhriYef/nMPwCcAC+rvjFc2sKDEW76VgONjzMgHhmaTFvKD6nxpZpZIqSwoVAllKjMK7Pdh8cUrUe/yeQerKJeqOEtWZ0y0GUSTr4aTKsgf89Z8upmWlLcB1HL35waWoaoU1L/N8xbZdDxM3eM46JWt2lYW/W2qlr6FFwPSvPeR/XJrRhCtswDXbjnfPEYE 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)(376002)(346002)(136003)(39860400002)(396003)(366004)(66556008)(86362001)(16526019)(26005)(316002)(7416002)(66476007)(5660300002)(186003)(6666004)(478600001)(956004)(2906002)(2616005)(6506007)(66946007)(38100700001)(8936002)(6512007)(6486002)(69590400012)(83380400001)(52116002)(8676002)(36756003)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?A9OV4ZdRHcxrp7vrw2ZQP2+C1Pgrq+5lhdWBtO3waVtQ3V2QLBG03aIXrBYx?= =?us-ascii?Q?TcHV9KEAbb3/E9/eyDRwR9xHuc3v4v66vTa0JjxjTCG0Jj+qhDQMC4MOutwE?= =?us-ascii?Q?iZ1zQLzdoFLfbbnOVjXdb5wtywqYQFLN+3kZe7QAl2Ca4dcmd0bzG7Joy+PW?= =?us-ascii?Q?8LjbAk1aMDOiJEkNtmYIUi6rsXNmnOhdihbDCdnlpERtalt0iUPFFSF2+dLD?= =?us-ascii?Q?TD0RrfEnTI9rqCzL/oCg8CZG0leAv2AR+3otBlAQuCGvlhk2KspHWdrpVULM?= =?us-ascii?Q?T7t4LBQpkk9xXF25b6s23L4jt45J7JWLx59Vg4kT4s9V206kI7un+xDW0u8m?= =?us-ascii?Q?/DoaMlS1mrrW6t9g1x3CZbT2sfAM9DyyFrdxVcXf3NzGS3L/p9uxziRdPuhw?= =?us-ascii?Q?GyM9wJI3witwz6WRN7wBeki4xlwj16pcbxG9Muc9Tt/0zOnkH9/1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X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f351a3ee-95d4-4c7c-2202-08d8ef6e6cf5 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2021 09:14:43.2866 (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: e9elz4Zy8DcASONk5UIuxcglyXSLJ+PyikItYoplnaBCJJwBij0OGQ19Ro5HNld9Xfoio2kn1wNVTG+KGvqDbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB2976 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series adds i.MX8qxp LVDS PHY mode support for the Mixel PHY in the Freescale i.MX8qxp SoC. The Mixel PHY is MIPI DPHY + LVDS PHY combo, which can works in either MIPI DPHY mode or LVDS PHY mode. The PHY mode is controlled by i.MX8qxp SCU firmware. The PHY driver would call a SCU function to configure the mode. The PHY driver is already supporting the Mixel MIPI DPHY in i.MX8mq SoC, where it appears to be a single MIPI DPHY. Patch 1/5 sets PHY mode in the Northwest Logic MIPI DSI host controller bridge driver, since i.MX8qxp SoC embeds this controller IP to support MIPI DSI displays together with the Mixel PHY. Patch 2/5 allows LVDS PHYs to be configured through the generic PHY functions and through a custom structure added to the generic PHY configuration union. Patch 3/5 converts mixel,mipi-dsi-phy plain text dt binding to json-schema. Patch 4/5 adds dt binding support for the Mixel combo PHY in i.MX8qxp SoC. Patch 5/5 adds the i.MX8qxp LVDS PHY mode support in the Mixel PHY driver. Welcome comments, thanks. v4->v5: * Align kernel-doc style of include/linux/phy/phy-lvds.h to include/linux/phy/phy.h for patch 2/5. (Vinod) * Trivial tweaks on patch 2/5. * Drop Robert's R-b tag on patch 2/5. v3->v4: * Add all R-b tags received from v3 on relevant patches and respin. (Robert) v2->v3: * Improve readability of mixel_dphy_set_mode() in the Mixel PHY driver. (Guido) * Improve the 'clock-names' property in the PHY dt binding. v1->v2: * Convert mixel,mipi-dsi-phy plain text dt binding to json-schema. (Guido) * Print invalid PHY mode in dmesg from the Mixel PHY driver. (Guido) * Add Guido's R-b tag on the patch for the nwl-dsi drm bridge driver. Liu Ying (5): drm/bridge: nwl-dsi: Set PHY mode in nwl_dsi_enable() phy: Add LVDS configuration options dt-bindings: phy: Convert mixel,mipi-dsi-phy to json-schema dt-bindings: phy: mixel: mipi-dsi-phy: Add Mixel combo PHY support for i.MX8qxp phy: freescale: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support .../devicetree/bindings/phy/mixel,mipi-dsi-phy.txt | 29 --- .../bindings/phy/mixel,mipi-dsi-phy.yaml | 107 ++++++++ drivers/gpu/drm/bridge/nwl-dsi.c | 6 + drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c | 269 ++++++++++++++++++++- include/linux/phy/phy-lvds.h | 32 +++ include/linux/phy/phy.h | 4 + 6 files changed, 407 insertions(+), 40 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 create mode 100644 include/linux/phy/phy-lvds.h -- 2.7.4