Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2832374iog; Mon, 20 Jun 2022 05:54:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ukb5+3v2FNQTDOnkJoyL45y95AsRHDiMnxL1hweJimYUVKSIzMz4MXIyrc378fiVW9DSDh X-Received: by 2002:a17:907:6d15:b0:711:d2d8:4818 with SMTP id sa21-20020a1709076d1500b00711d2d84818mr20720294ejc.336.1655729675425; Mon, 20 Jun 2022 05:54:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655729675; cv=pass; d=google.com; s=arc-20160816; b=s+L6K/5dCD5TfUPVRnuFzow4SRU7vFx/C1atWXAb/GNXy4kZAyNjg0W4ZWS0uYrnur yFeHmyTFrFzcMgWoQW3lKvax/OqtxjOkMXAL6E9EwwFgodiKtOghhTUnxO3s1pq1V+eA lHW0NeP/JvuG69l+r9FrMVUEYuL36sLwQ5E42Vco2AE+3mRXQ5PwiHi7K21DpTh8TmB4 Y+Q7o6QikE3Z9sWhS2Olvo0rPd+zfh74/JTdt7v+VcXeH83y8GPJZz2hGFXzl/kD7L0G A39OvgbrwC99T0zUCfcaQSCE3NZYKy7Mbs0seyG/rDfhbunj7rYwo6sMNXAdugEF4ARk uS4g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=sgl9RWdY5LtKlMnFWjuiAyHcdPQjqJGiWztZ70QOmOc=; b=brf9txK0mGYwg7d9gC6Ng8N3C0AfnS4EuRFXLZc7r0m+eG0YUTpGwMRNyUOCMaSEDk perzOtI0Rd7b0qI5QE75bdh04yeqFR7d6lRvVV4Om99yWs95ziDWKv7Dos0JhcPyitVd gX2A+74EXNPMw0XUf7hOR7RQQb+5rHXUrfu/VuBpOMWLddUkW9R0l0TLZYsijycvfz8a TCPBNkm3vjisTCUpEOpN5ALhPu2wAB1JVHI8SShHnC2x7nlzPMgWSrgTUeBDV8HOggp8 rhjtuKtSHUhmIgQhFviufJ7DTLj7S8pEr3iHvDxyQlIiaz8MIXotnJCcBaD4KhIU4Euk fYrg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=SlUPn1lo; 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 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v3-20020a1709063bc300b007122fd0e855si11461599ejf.633.2022.06.20.05.54.02; Mon, 20 Jun 2022 05:54:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=SlUPn1lo; 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 2620:137:e000::1:20 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 S241651AbiFTMhb (ORCPT + 99 others); Mon, 20 Jun 2022 08:37:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240242AbiFTMh1 (ORCPT ); Mon, 20 Jun 2022 08:37:27 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2047.outbound.protection.outlook.com [40.107.22.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E9BE15FE7; Mon, 20 Jun 2022 05:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g/gdmcRJz4G0YX3Z+vt3cM70FXLbqpD7UwDKq/stc59A11qBr4xnr2Xx++qoKYCoqwTYedAaJQk8BciuNmV5FGkkA685nnE3Mmr4UIqBlagnuWfVgW91A90IF1fk8GF1WGhRQMGqTnoaNdFBgp0w7TmS9eGwuu99pqWsHNnpR6RcTJKj3STkzSdK9VKnmgURBkGmER3mwnWiOJu+lIT5SRzFHx3uBMYZc6KiyGDbyc9OCNfE4+cWumL1QdjtBv0Z3Z4Tcnif7ALEUGk3RewvMfsqR0YpRG0t2/CTXZW2hRPnea0EQq+UDPO1qYunhSARTl2ZYC5p7Sig7OVSKvsuAQ== 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=sgl9RWdY5LtKlMnFWjuiAyHcdPQjqJGiWztZ70QOmOc=; b=Im57NWxwN6md8qW7O8k4ZFsrrpZj1i9gn1XdKW5bT1Ne4hcYRc4SzGzoJMZq3nIFdPY2Mwt/H8DLBMuLf2wLDnkwCho0QtXqtupYh8alzm+l1TWXDNPPNKIQOMEBQS9VdcJKNV8J6bEEEnz7mQtYk1/1xTNH48Ia0/YAV+fcdJ39z6GcmNrQ37WDKr9xECGxvgrCaKLY88zTEMiL52eaiQITI0hG8twzZPtkYbLwYoUAOPZyhdWaEerzoCdLKzSID/uycx6qdX5ZVu59Soi1Jf4Idh05mdzosNV1YUteFQQHU8rYfeKagmyHXLVENrJIF/wjHqagt4aKGr2g9x6igw== 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=sgl9RWdY5LtKlMnFWjuiAyHcdPQjqJGiWztZ70QOmOc=; b=SlUPn1lox8yhOK9nYVc8SHppnrFyNcQCFN0MRva9meKx3RD4uIPg2CEkAlRUh9EpzTsxYGC2I3b4fITNhhNtRwayh0xjjT+vCklDbULZhe2rZMNOD1x+Hirvh2E0fBWKPMdELwYohrRbtOxtBs+kW5Mk0cFmONSQ6OPJKTuTqgQ= 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 AM8PR04MB7873.eurprd04.prod.outlook.com (2603:10a6:20b:247::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.22; Mon, 20 Jun 2022 12:37:24 +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 12:37:24 +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 v3 0/3] phy: freescale: Add i.MX8qm Mixel LVDS PHY support Date: Mon, 20 Jun 2022 20:38:51 +0800 Message-Id: <20220620123854.1138028-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0219.apcprd06.prod.outlook.com (2603:1096:4:68::27) 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: 6448ec73-2f0e-4cd4-5c2a-08da52b9a06e X-MS-TrafficTypeDiagnostic: AM8PR04MB7873: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: zRTQvvbLU86czsP2MMQ0fNBVR2haMvwjhowiwIVuW2HHfexZZx9RKOioWq4TPwIu+moROwn2mCxbPD0jhcaoyYo2c8V1AECnkXD9cxq/JELDhWwYSzc9G7RA9t7Ks2pDFgKVabD+orfyanrjAtRZT4e8AD54VCSt5WLfr66/3uIRvs6T8/tWBU9FAIE9JIURJ/zvRu3IRaeN6iSsbup/pBN/r3YLPF/MJ0RI5Hg2X8ICL3X2H3+//w7vB6HVM8oMIYfShaTOHsPKgKRd8jKyX9CpXl21OhQGXYa+98haEkjPVA0ICDHg5Shr7zBxCb9VumKDevGJYx1AJ7ivr6/WrFANueO8YCdRQLeGunY7VGKCRyt+e3iG/2MoSqzwWlJxPVJi5kMC50wkC5o+vJH5qSHBHimszLMPMXaptRS74eGHkXKEYKmw70eKsbpxlCsAYMsFVBFcykQIuAvJBWnmCcoVN2a7q/wr1gCb8zduVPOW1lMUWUYl8XpyVGcMIqhwLIQp0ok0VS6xyJXSaDmJ9Z4IFJdd1pp7EyazVle0DzJOXfmdOgGVQmYVnlm5c9Oa0jyzxTZumGhcabvX3wbXdgsw7MY6AlRKdJVD1TA5cqVNgyvifO2iYx+NyAeSgTd8nz3qhH73CJCXBckSGdo2vc/CVFva7pING//FlXiSwbJHMDlKhMfljMCsiCMy+ZUcNBeFP0yDZYjj9ya62d0SUQ== 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)(396003)(39860400002)(376002)(136003)(366004)(346002)(66556008)(66946007)(36756003)(8676002)(4326008)(66476007)(6486002)(83380400001)(316002)(186003)(1076003)(478600001)(8936002)(2616005)(5660300002)(41300700001)(38100700002)(7416002)(6512007)(26005)(38350700002)(52116002)(6666004)(6506007)(86362001)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?zPYl1Hfijd5BHIYfBD28Qrd3ZCUSW60S1gHxWIVkJMu8/QlRdePfrhe4ioG/?= =?us-ascii?Q?ITPJfLsgc4//5FCcIpyhcll9Ayu3zAqKtnVvb6ObF17RdnUb690jQkEvHxcY?= =?us-ascii?Q?iZXVjsCeDIZrITCQwpExpztXGjbstZlBTiRqD1cVcWDMVBjg7iUO1Whf9RAA?= =?us-ascii?Q?tcOg9pGsiQahbQUI8VHySQe2sYCP5E3+pAYEXvQ6YSUgdcQfDq8xFmWe4gzb?= =?us-ascii?Q?NEvxdAXINO+pmYf8Ff6EkgwF9o4hsgZW46eWoxOC3c97u1Btls4yYAKea8nl?= =?us-ascii?Q?7rA18H16XJe5z6yDWQBFhtft9x14YyUBEL3bN1vwYdgT65yrncLeRbBgMket?= =?us-ascii?Q?ng+nu3WhrjBQrE/JZ4VsVxX5KnSysIjMsgIo3zNplV9ZjU5CNVFRZd1TCFYo?= =?us-ascii?Q?t4ImUTVt7TW99b4Ufj0ys1+YLzgo6xgTgC7YjorpHl2cwH4aEoW+g7AoOdsS?= =?us-ascii?Q?pax7Eivt4kHmb4HJG0NWNbF/qOlHRSJOHB+PY0yh0u+r6tYF/ntEeLGLOP6q?= =?us-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wfKOcr+puw7w0Ayk2npldgnC1qIoN07HUyD?= =?us-ascii?Q?UeMUxRkKYrSpzZHPz2dp1yPeukz80LaMDwWjgS9qJiwrlbAwrOYC5w7YUV9H?= =?us-ascii?Q?gdIYpO2+QFyi8+a1KImnb/SUmT+P59XaVGsJCvtXKxkPQ8YVmElTKkggtVQX?= =?us-ascii?Q?TpLiNRH5vngqC9jm87KSWAdaPBZ4bsI8K8gRhJhfSbUyHEYdPbRiOXB51bzO?= =?us-ascii?Q?zLWuUgZVkFSt9NH9Jr/zd9C+saiouzhfs+IWLGDXzPtuX2WQk0ZFtzpLbpUO?= =?us-ascii?Q?5d8S5nBY2PCP/rMa9PnKcMyWqSdx9otz938OCIHsDH2YXWosjg6OUwQ/bGgL?= =?us-ascii?Q?CZPzkDdX1Q=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6448ec73-2f0e-4cd4-5c2a-08da52b9a06e X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2022 12:37:24.3016 (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: HdHdK3Lwo5gy3ezOyG0wdOD3cnpjzfbWA3Cmi+R1w6ZSX+W+s7KEQcweeFyA0rLvtbYZZnoB46cQI79L6+ViBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7873 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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. v2->v3: * Add Krzysztof's A-b tag on patch 1/3. * Change compatible string from 'mixel,lvds-phy' to 'mixel,28fdsoi-lvds-1250-8ch-tx-pll' in patch 1/3. (Krzysztof) * Rename dt-binding file to 'fsl,imx8qm-lvds-phy.yaml'. (Krzysztof) 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/fsl,imx8qm-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/fsl,imx8qm-lvds-phy.yaml create mode 100644 drivers/phy/freescale/phy-fsl-imx8qm-lvds-phy.c -- 2.25.1