From patchwork Mon Jun 20 03:45:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 12886967 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 944ACC433EF for ; Mon, 20 Jun 2022 03:46:30 +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: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:In-Reply-To:References: List-Owner; bh=bnUCMpqM+T4kgk5b6gEEh3Wgw5MEdlr8c1OColeK3JI=; b=HlEk7pgMctLAPr /5hGGR/vMd28lsqemzdFBfheaj8q9wD2c9IKtfLROsD5vx1hv3wyOIJkecXw8070zQ0vnrl66Alrj YUwjmtNg19P5Xb0YPr8eW6YwEmiNpDOhFwKy5CQhgOzGgcUsLpUqfm6rBEwI1vuWSuhIB1sGeKDEW dvWUhsJBNKtv1bEWIYPp4Yk+i0BPScSAmyTK3wpyXvGefU6z5yZm8FbsfCPprmjgT60LZr1gPtjsy WvIa9FURgIUNH6Vn9VjHst+1aTgKHIVoPdjs4lH/1WEdrds/B25knBE8KOoyDhjAp9s6ZsMwopSkz dhcqP4sGwq7MNO8Z+MQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o38LQ-00G19c-4K; Mon, 20 Jun 2022 03:44:56 +0000 Received: from mail-am6eur05on20626.outbound.protection.outlook.com ([2a01:111:f400:7e1b::626] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o38Kk-00G0jL-VL; Mon, 20 Jun 2022 03:44:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=czlAYbO9eJhyLqar+5zpM39u07BT6p67rZ1lDMKYI5h8BcLOOHaMORh44K3U6uRsD/vrlb9V0BqmxmP6kM/luUxC5Aa3bUR5R+xvZK0EZW7YD44yC3v96xTrJY2wBP0ouL6XosHkKyJ1JvnyfHkL5krzlGyOymZCffqBgBjppuYNiyiHT3NzwsWB/DY1fr3QuxeNO4QdypC7hZKW+y/SOXjkKQ+6f1pOEKm7Kv4/jNJStSfQb9ZrmNZmMiX8TMK/jtZiRGr6qKMCMfSvpMxsNJa2vlK5t9SZq4NY2gHLImOslZmya08zEcn4HJErusyV/0fY6Od/HLbmbqLIr38wmg== 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=yizgp67pNldag0XQAD19mh7rryGfiSb3vJKiopj3hEg=; b=nfmLzJxmobLTsp6TH+PX0ndtxyiD/B0Q1yibKPyd8EpuF0tnJvmWVHYlOxsOw/zCkW+P6cyXBNfC7H9nRamBFc6HFctWbT/iVnmRvDf/Z+Y0pWJN8tnLFE20AuvJ8VV7xb9bYflsjV2NCertpDiD5s2c9QmEwxvLulDCWVzzhFK19iCYK5Lk6GJ2mJt6D5f9+PsyUg2GYf39hkYfD7bN2StsAn/sZZXuB/IA/Lu/ig/XgSHLaPJpfv+th3gZzlcRfM9nBBc6R0HI7Jo3054CgNVMsGNieDScnS86WJsaPtd7tLb6kMkP5QWGi9L/0onWkwdXBK5RVR2zTFmvzCmiMg== 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=yizgp67pNldag0XQAD19mh7rryGfiSb3vJKiopj3hEg=; b=o9Gv0VflWg7osDlH6Lt5aHElR2lFd8v2oJoMd5o7fBPlHvLvU0agagGRldRhTjUIfAYO2fFdvEIoUw0CRzYn2Eir5kmAxfkdRbMa4XQHIy2x1UVwPvnVoTJjXRTQlPBCjbnBRYOVSSHqlzK83vjKXoqvyGalcBQYT717UJmp9Uw= 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 AM6PR04MB4664.eurprd04.prod.outlook.com (2603:10a6:20b:25::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.21; Mon, 20 Jun 2022 03:44:11 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::3c82:f63b:711a:502]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::3c82:f63b:711a:502%6]) with mapi id 15.20.5353.021; Mon, 20 Jun 2022 03:44:11 +0000 From: Liu Ying To: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kishon@ti.com, vkoul@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, krzysztof.kozlowski@linaro.org Subject: [PATCH v2 0/3] phy: freescale: Add i.MX8qm Mixel LVDS PHY support Date: Mon, 20 Jun 2022 11:45:30 +0800 Message-Id: <20220620034533.4108170-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SI2PR02CA0049.apcprd02.prod.outlook.com (2603:1096:4:196::7) 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: abf9cbbe-9024-4b80-46c7-08da526f2342 X-MS-TrafficTypeDiagnostic: AM6PR04MB4664: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: oVXKu3wkILYdmlQvzr+pg6HZMajjEhW3AjZHMbh56nc3T/xTB+Cwj035+DUkdCbESmyGNurGc8zXRori76BYSJe4YTw2tvSQR63/tiN1zmhfvTmHdQlN8T1cG4Ffr2lu1+1g/EwprbvlTsWSnjr5BhrLIR5uFpk0DnNhCU+SFT+edF+8af5hJ5yvojUnU+LlUKbUb1A7l+/bJtjG/EDjKbqlJ2VM1LEnZFGCZfc2CL1I8Tid/BFw9IdRfd6+mGnE4yj+fbZIqJ2n+4FvGWTbJPP+Ya586O0YEMYkyCzYP9G9P3FEPKjyhDJyCX/VzysQKo4lo6VpT8g6aPSpWgu9g0IaqL79bKvHWrYFx5SYceHtMCbCyqBHBB9PrVaoxPFmhJ7sRlYzY79Ck1PD8b7BqrcCed4BoI0WniPtjMHt5PXWCECB+KjoXdTO6gSA7ZkRerxZEq9wQTHq6muFAnuSHBfcNYEUHd+3D/7KSeDpwg8w8cLz44IxPRmYXLmfwHpC/dBk1d9iXDaiZLyBnwL+pWQiNi5QtmyGP/XIygnaSLz4OtTZ96IME5hB0B+ktnKUCplLcWmQmL/Z6AOFHt41ciKeKD547KZZD6sF6wU+YRPLbMnI9K2M9FHgH7mDRgC7P1Gk+0EJe30qVtjdxEK0o9arNCztJTxEfBt1WpTWeYQ3rVqJ6b0d2HFVcP2Ju5oYPpJCVxXYxvb99jCCKd4AEQ== 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:(13230016)(4636009)(376002)(346002)(136003)(39860400002)(396003)(366004)(83380400001)(66476007)(66946007)(6486002)(8676002)(4326008)(316002)(478600001)(66556008)(86362001)(186003)(2616005)(6506007)(52116002)(1076003)(6512007)(6666004)(38350700002)(26005)(38100700002)(7416002)(5660300002)(2906002)(8936002)(36756003)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: X4mOQjAtC9p2YDklEzlk8at5saTRI8qvz3ibmqzeQxuXfmw93qTZ4pPWYebj4LwzINIWTGV5Mddc03zMp56ajIMpvG4oF541v6VgRUEIbZkkpx7cc4FXaeILPXJoDddN1gYH4HKwG+6e9GpJxeBQoEEg/gZO72R8+XZ/PpXqa+YPtLATp6jhnCDPv3VSCLEK8OIbplDQiiW7GT5n/NQouJ9jsYqahSTeoKjF1UOjAbJ4iTayUM+Ze83i42R3XCezO2boESxoColNyRamhmVykRpn/rRxKBEsGFt2pkzLM7PaomWGXyLEwcMwQJSPNeE+JRgfb7Sw19L9Xtj2d2x9qmfPJMzYLGX0TFx9LhqABKBPcIocBaoeVkkI0u4tUiWe2VXD3fHwNVGyigOBEiIpnFbNEWupiUnUr0gVe6CaDP+NWocMvSWqY4v9NnVf2/LOhx7IsFJwyKmBS1vpUoaF4rTDK4Npg1DwdLaCwSALLTFKJ2HYEkY6I0P9H4omwJQFHtz0iAA1uZKIBhmjiZGJvzpuyksfwEV6SaWMy8d40Us0gVqGdB8bfP00WncPgesdl+B3dwzPr9xbwv+ATy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CcG1XwuEQR+mJDGNxcmuNjg3KglfZhIAxpfgrbYXtuNNZk92n1Fkgo5kwcfwM+hAtPg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: abf9cbbe-9024-4b80-46c7-08da526f2342 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2022 03:44:11.4614 (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: cw54ItY04PdMjC7JUKj1uC1fDZVBGgkrQsoN1+ABxn1EMHpmWM9BtJixwP8448R1xHreQadupOD8j86Vb6ZBVg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4664 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220619_204415_052430_56027D84 X-CRM114-Status: UNSURE ( 9.61 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This series aims to add Freescale i.MX8qm LVDS PHY driver and dt-binding support. The PHY IP is from Mixel, Inc. The PHY IP supports two LVDS PHYs, thus two LVDS channels. Each LVDS PHY may work by itself to support a LVDS display device. When two LVDS PHYs are enabled simultaneously, PHY configurations and reference clock rate have to be the same since there is only one set of PHY registers. In this case, the two LVDS PHYs are usually used to support a dual LVDS link display device, one as master PHY and the other as slave PHY. Patch 1/3 adds vendor prefix for the PHY IP vendor 'Mixel, Inc.'. Patch 2/3 adds dt-binding for the PHY IP. Patch 3/3 adds PHY driver support. v1->v2: * Document vendor prefix for the PHY IP vendor 'Mixel, Inc.'. (Krzysztof) * Set fsl,imx8qm-lvds-phy' and 'mixel,lvds-phy' as compatible's enum. (Krzysztof) * Skip 'clock-names' property. (Krzysztof) * Drop 'This patch' from commit messages. (Krzysztof) * Make dev_err_probe() function calls as one-liners. (Krzysztof) * Drop unnecessary debug messages. (Krzysztof) Liu Ying (3): dt-bindings: vendor-prefixes: Add prefix for Mixel, Inc. dt-bindings: phy: Add Freescale i.MX8qm Mixel LVDS PHY binding phy: freescale: Add i.MX8qm Mixel LVDS PHY support .../bindings/phy/mixel,lvds-phy.yaml | 61 +++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + drivers/phy/freescale/Kconfig | 9 + drivers/phy/freescale/Makefile | 1 + .../phy/freescale/phy-fsl-imx8qm-lvds-phy.c | 440 ++++++++++++++++++ 5 files changed, 513 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/mixel,lvds-phy.yaml create mode 100644 drivers/phy/freescale/phy-fsl-imx8qm-lvds-phy.c