Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1578748pxb; Mon, 8 Mar 2021 00:40:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrPfFAwwPtVO1boIQbr/4JLKCtlDduoGjWcip1O6iWQyiVJCW+hDtYDPLTlVU38Js64gCj X-Received: by 2002:a17:906:228d:: with SMTP id p13mr14109556eja.412.1615192836546; Mon, 08 Mar 2021 00:40:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1615192836; cv=pass; d=google.com; s=arc-20160816; b=H6b1uWqKsYoBqxKO8MzgzW+yOyn4kO1DGBcuaCgAf2fx4yiVIzFGDHOOB192CNfLT+ cB6hTv4dppuZgHaBYQwBiRrRwArR/Mp4nyS3Q6bwQE9w5FV8iWtBdowrAQqYOoFSs9DD oPi5SMErr/+FRUY3UA27JJJRT1RUl0EYLfsgvA/1YNqK83LSAXGtrN7iWQ9WuZHgSLYX daQwZ5D9dxnDSiVHGJDzOgHhXV9gKzYdDubJIkBsK70zZCay8s3+5rUTcl+eWfMM+N6f Hgggwv47kbAdDd/OsCs0ACHWSKD+WdLSgIv+uN0w8W+2SmJkSD3Ec9Jv5gcqkzFaSW2j Av1A== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=I2ZopNTbXY8YACoWMR6OQ1EGo2e7LpJmvtZFUP9FQyA=; b=ntILFPQ5KtYy45r6CarUMi3XXDwOWB4bcAHPlccgCfRaH6IDpymVqeBdMF5Yiqq3PG 9xXui88JyZvnTPWwz8iQJAy+8p773hzQoHvK5n3t/jRzop8fLDMIVhm77KdcGFeLeeEW Sf2GnvQFLETNCjQvO9ueX2sJZFZw/KviEBj+lnf2ttXa2G/cmMkwLbnJyUCSaJ+GLGv2 M0aVAoDc19BFne51X6hhKUZ/+NGWpdOav/eJ+tz/lbQUSCXPiwHFhbvQfd7tkp2Zs38g jn5ZmfFnbKCmsUc3ckOxu4yC3ek0viz8vrOJn2gqMipt6Ji5e0m9GNWBTXzJ1BshpYCd Wqbg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="RMj/9y2x"; 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 lt10si6602926ejb.16.2021.03.08.00.40.13; Mon, 08 Mar 2021 00:40:36 -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="RMj/9y2x"; 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 S232516AbhCHC7Q (ORCPT + 99 others); Sun, 7 Mar 2021 21:59:16 -0500 Received: from mail-eopbgr00082.outbound.protection.outlook.com ([40.107.0.82]:39285 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231380AbhCHC7N (ORCPT ); Sun, 7 Mar 2021 21:59:13 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RbNVAyICeky4T91G0ug8vdvHEM6OznrPyvRDJYvLLR6ixWqC94TOyjE6aLiqu7G2BeTJlT8oikQ/2BMHMNRXqvSjZQe9tTf0HcIqZowtzunnpyDCmIo2vJ0wvLTUYPkSlX6amf0Er5j5Ekl5uNu0qTUHFDwfJB9DetZbb/rr6uWu5Q0uqoQNzm+7LADR94CcljII9kQIBEHfevaONhaUsffzBO2lHrUw/gBRGQv2BnPwChahoYMMkTMbEsmOVfCLU8SCIqa3w5IX2GT4ix3hno+egvjRkz+nIiTYQaFGVbpf3vjUamPSrM+Fz9WVPbs4NzqHi+onuG3pilaOsmjXig== 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=I2ZopNTbXY8YACoWMR6OQ1EGo2e7LpJmvtZFUP9FQyA=; b=N4Emtcaty9HSht9rerNYjxpT1Kp3UOnmVltB67FExwkM42TKkvrTS68vMiG5eI933AddaupAOHLU+y3zgoDYlxJri6IQTMeutu6mpXKIWtYaa7a3Dd8PszS5zkzIEuUDBGVF08RutGlcojf7hhzzaq7n/w+lKE5UMZ5yrs1ch73syriloYpFImTju7J5vbcC2afgM2JK4fXnbsxrY77bwYohw1RHhXdybsO7nLPrY3BElLDaT+1/849kXQrgg+ZpU4M8yPX+YaH9FDlexioeqquqEPyFVV/JRUepnCz++rTRh/es/G6+wp6nvR8O6uI2PBQU8Kw/eHZbdZBWqZaeaw== 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=I2ZopNTbXY8YACoWMR6OQ1EGo2e7LpJmvtZFUP9FQyA=; b=RMj/9y2xv2Ifb1bXjOtc3VHxeGAFoQrNn0FKhXC2ub6GdVFUx00oiusriSRIBU3gBkAd+0/tcflD+/1/RfPd2h97V7td+831l65b/ltNhE2D13rEaLoH6Zljl4fgi3viFWrW7k9L95jqf5vlvEkgt5PndcmKO1pLl9sSKdlk6xE= Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) by VI1PR0401MB2528.eurprd04.prod.outlook.com (2603:10a6:800:56::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.23; Mon, 8 Mar 2021 02:59:09 +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 02:59:09 +0000 Message-ID: Subject: Re: [PATCH v3 0/5] phy: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support From: Liu Ying To: Robert Foss Cc: linux-kernel , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , dri-devel , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , kishon@ti.com, Vinod Koul , Rob Herring , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, Fabio Estevam , linux-imx@nxp.com, agx@sigxcpu.org, robert.chiras@nxp.com, martin.kepplinger@puri.sm Date: Mon, 08 Mar 2021 10:57:37 +0800 In-Reply-To: References: <1607651182-12307-1-git-send-email-victor.liu@nxp.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4-0ubuntu1 Content-Transfer-Encoding: 7bit X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: MAXPR0101CA0013.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:c::23) To VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from blueberry.ap.freescale.net (119.31.174.66) by MAXPR0101CA0013.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Mon, 8 Mar 2021 02:59:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 591dbe19-7ad3-4b0f-d2cc-08d8e1de2473 X-MS-TrafficTypeDiagnostic: VI1PR0401MB2528: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Pe53asKPh0Xv8EJDpcTDVAZnSAJRWoB3Qtv2eawt7ceTG/aWfUdR3FoMIa0gjmQwMoStot4JPjiMbsCQK/eM31EqZ2lkaFT2SSJn1DyLgV4NJxqeuSSzz4Me10c7V7CYUIU7RlJEBOb0/+ZWwiMQVw7DjUfpzzMoTPFaCvlaQr1h8wE+SMRnHrA+Jzkd1gAvDRXCBoCl5VXroy0445Kq27uevP8Z2C/Yg9bF8Bx2c2Lobh7O6RMA7hVyrU5oqG5inp8hgpeJaoECa+H91RYlYhJ3gGCEAjzeRirQlsNeuocNXpZZnGlFHw8dbW1yO1c5VpxanRbOO/SPYr0HNh96N447FXahFcE2WR4dh/pisHpgTQjs4pr/9r4McPpLznBH9RqD/0iEvYFIe0/ho4ZiAzB2EGFXO1FdW0ok5SSONv/op15HJxNGwGSIDQJ2NcNBXH11EPvTOlnzb7gcn03fye+kckIytFyoW1blBGSeeK7tT79UXFo7Y3KTqanNm3fUd2caEUTf7wZKSTE8vEGOS3/4GFBsrKA/DgV+Hbspzl9mCbq7/x6BT/htUzbwrG8h/Crun2l5Z/5uMTYzYMk81UwqfihS0fb7sFskKM8sGK0= 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)(346002)(376002)(366004)(39860400002)(396003)(136003)(478600001)(6666004)(966005)(36756003)(8676002)(4326008)(6512007)(6506007)(45080400002)(2616005)(956004)(66556008)(86362001)(66946007)(66476007)(6916009)(26005)(186003)(16526019)(8936002)(4001150100001)(52116002)(83380400001)(2906002)(316002)(6486002)(54906003)(7416002)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?OWNndnF1WitTbEtMNG5Rbklab2h4cW92UDVPSmN6OTVRZk5uODM1WDBKQ29Q?= =?utf-8?B?enJ4ZVVyalVMS3dtazFoZGFLd0F3aVcwdWc0S3h3cmppaG4zOEJyU1dhci9S?= =?utf-8?B?QndvMjVzQTZUMklvbHR2WGFpQ3pGU2tqZUloOE4wc0FNTXp6cmFmR2RqWlhq?= =?utf-8?B?Nm84d29VTkhzQVpRWFFScGpHb3NmamJIU0kydytYS3dPS21qTG9kSGtwRm9w?= =?utf-8?B?VGJTM0EvZytBZlZGakRHUHlpZmRtN21UVGRKYXBpQmNNdlIvb1E5R1hDWTZ6?= =?utf-8?B?ckdTYlJPb0RIM2tDR2lTay9vb2YyWGw5QVhTZFBHZUxQZjBmYnBYSFhwbUJs?= =?utf-8?B?WVpYdkpQYWV3dkhDaGtaaWRYOVB1cktKVmdCNGRHNmYwUTJaLyt0TUZIMlE4?= =?utf-8?B?T3p6R2hpRnl3NTZ1QXRqTDl6ZE5yYTcxM1V5VkQ0cFZFSE8vaDNjNXVRTEwx?= =?utf-8?B?WDlWNFJOaklucl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aUxnVVdiRHZ6dXduUjRxSHJnc3llNm1VajJWQzI1WU5MUWNYdUk1d2Nu?= =?utf-8?B?VUs2YjhqZW82TklYVm1JNW5BRkNrVlNyVDRIK2hLRnJJSVJSWWZ2TzdoQjdP?= =?utf-8?B?VSs1blJkYlQ5VHFCSURpVkV4MjB4Y2Y2ZnlXQkl0ZzJWZWVZVUdvYnZVNVZT?= =?utf-8?B?aEhwNk5tNGtHOHpvclVLTGVlMHoyOCtPSmVDSnZZaWpkenpnVTVTc3BRV2Mz?= =?utf-8?B?YS9yOTE5U3lRaEFDbnpGV3hUQUIvbXZhdExyMkdmejI0Z0FNNGRkSit2Z0Fm?= =?utf-8?B?b2FuZTNiZXAybHpNbVJrdHNMRER0RVh6VWQwWkU3d0dOUkhKWlJNaG12djV2?= =?utf-8?Q?sX9bs7z7C1IU9coTIsI3+3969WJNche/2HoGBfU?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 591dbe19-7ad3-4b0f-d2cc-08d8e1de2473 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2021 02:59:08.8252 (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: rLEt05FjQdJfb2HDP8pT593Ph3rFmTT6RrHvyatF8BY2idQZXkEgurzxEimevETRfYi4b2H85aG2SYOQIzzrpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2528 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2021-03-05 at 16:22 +0100, Robert Foss wrote: > Hey Liu, > > Looking at this series[1], all but patch#2 has been reviewed, and #2 > looks good to me. So I think this series is ready to have v4 re-spun > and and all of the r-bs from v3 added to the relevant patches. Will respin this series soon with all R-b tags added. Thanks, Liu Ying > > [1] https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.kernel.org%2Fproject%2Fdri-devel%2Fcover%2F1607651182-12307-1-git-send-email-victor.liu%40nxp.com%2F&data=04%7C01%7Cvictor.liu%40nxp.com%7C36731aa7c5f949c44d0008d8dfea79db%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637505545446542467%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=T5JcZt9YDHHyH%2FCf02ErQZ5rn3qp3N5jayxk9It4knM%3D&reserved=0 > > On Fri, 19 Feb 2021 at 10:22, Liu Ying wrote: > > A gentle ping. > > > > Vinod, Kishon, it would be nice if you may help review this. > > > > Thanks, > > Liu Ying > > > > On Fri, 2020-12-11 at 09:46 +0800, Liu Ying wrote: > > > 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. > > > > > > 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 | 48 ++++ > > > include/linux/phy/phy.h | 4 + > > > 6 files changed, 423 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 > > >