Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2107432pxb; Fri, 5 Mar 2021 07:27:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwIA3wkAuQvoXBb4ICABhNrKBiOaiFbzwrfeVm50r787DJkM0bulYL8ZYRSQwybXh/cu0I X-Received: by 2002:a17:906:27c7:: with SMTP id k7mr2707666ejc.13.1614958027029; Fri, 05 Mar 2021 07:27:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614958027; cv=none; d=google.com; s=arc-20160816; b=w5PbnpPana+G+xV9B1CyrC1IOaW8p61Q7tfSPnXtjEgGw70saxsSpphoasf/fd/cON WQptWcLfgSnBkdTj7KfWt4NJeZaxeu3U1g+Mi1oct7CdlNZSjfeDRz5pFpHZpXZN42Rq dcg/yu5F3FjHguskqJOjL3YQwxYi0tDNd4itBa8cp4aJ7MGRW59az9nuKGmrNTveBPip rfsV5Q5PkVwxbuAxCK/0M5UUNBnVhDO08+U8ve/vxpXpU2OVaEGrAohU5ukuivIWbUys wCsMEHQjMcAHLV63pmhm/RjtG5HFCe1LUY3Srp0szF0VMPYKW2nl1NsJbcp/0UMs9q3D 9qiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Pp062KYeaR4WdsQXRbsz4rfCGOxQmDJuQ9W1VEyK3XQ=; b=cTs9IoVvq271sHiNaPPCL9yJEj6oTVvVLMjjzruLH6Rj/BgWHbhdSHZCoxO1SoG5jM 54zQ87jkgXasxhZKEweHfH6HHJm+4NelFZfYZ2oMZAObKZl2laiZ1+IKKLaEV8pVFdsR uA4vUfgkkRuQJfzqe/chCiK+oq57lAm09sxKHOrfrnWupogXd406hYjbRaCDC7J9S1rk VxDc75Bsn9I4SRPjUTLD8zIugtFp2LPo17XyGB2Es8saIXGzCVU1ENEdVNa6l5zQaIBo bAKQPXkqeBlICtOraueZTqXSgmIhFc1//o8PRRlJaHay6jLARjVTm9ZxiTHPTfmWNfOM vKCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XHY3umtG; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s14si1408373edx.521.2021.03.05.07.26.43; Fri, 05 Mar 2021 07:27:07 -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=@linaro.org header.s=google header.b=XHY3umtG; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229517AbhCEPXq (ORCPT + 99 others); Fri, 5 Mar 2021 10:23:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbhCEPXX (ORCPT ); Fri, 5 Mar 2021 10:23:23 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97A02C061574 for ; Fri, 5 Mar 2021 07:23:23 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id 18so2354798pfo.6 for ; Fri, 05 Mar 2021 07:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Pp062KYeaR4WdsQXRbsz4rfCGOxQmDJuQ9W1VEyK3XQ=; b=XHY3umtG6cjNXchXwqhPDXV4lVZUK0S5fW9GSsxoucPUht3GHSVNb1wK4JW20COpge Kqz7MFoCSZWVO/+bG0amcRbQtJqnKA/SxEu8dnIcS3ppxsfYeL0fYGNDyQn7X5OtC32f zqomNiWePsioBMvBJenPU/IDPJj5cifKY1PW7uFeuPe1Jwh6rVr/UYue7Fga3n8+q62d mm8jiMOa7hhFQw4yR2KDm2nHVXOF4Lc1l7MM0nR0PW2di4BF4UQDqczyCxesi10S5osZ SubotUmlI16dsQX4yxKzuccjEk1PLXzTI+H6FJD4fNTm/ok+c9zb91nzZsh+Qj76i/iB 85xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Pp062KYeaR4WdsQXRbsz4rfCGOxQmDJuQ9W1VEyK3XQ=; b=kWaQNGFXUCAy2IevvtEqrhObOF6rCcLHBYdc2UQqkFbEeu9QavdHSJve+zE/Icl6yR sNw8sL7dVveNl4BcjBizcEhKEgH2copFl2WIEwL22UAW97BXr9uHr+Smur6kBh26a4UO C/Mq/Uw6V2U57kQfEZD9PUSglMfb9fdOLZS+/5HvRa2X3PrhekC1+V2hmELJfwzghftT vYuF6OkVn9EfArxW05CkoZcvKbfznlW7TtIdbNf6gZTR9qG6Bmi/v2c3GaqEomDJJ4ds tSMSwtT0XeHA6gYQIKiy6Psf5iOf46nVxTeiYQaNDVy+8lPcuMN3Mb9JmHAeYALLQJCU eDsg== X-Gm-Message-State: AOAM531OCzrnhXCvf6s4lAf52knu2uTcKuTZXu8nspUaZxqY3B7Is0N7 PD2O6ro3yULqD6b5Lg+u1lGOsvDG09ELYIdLgh46vQ== X-Received: by 2002:aa7:9843:0:b029:1ed:cc86:fa0 with SMTP id n3-20020aa798430000b02901edcc860fa0mr9324771pfq.39.1614957803176; Fri, 05 Mar 2021 07:23:23 -0800 (PST) MIME-Version: 1.0 References: <1607651182-12307-1-git-send-email-victor.liu@nxp.com> <1607651182-12307-3-git-send-email-victor.liu@nxp.com> In-Reply-To: From: Robert Foss Date: Fri, 5 Mar 2021 16:23:12 +0100 Message-ID: Subject: Re: [PATCH v3 2/5] phy: Add LVDS configuration options To: Liu Ying 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Mar 2021 at 16:03, Robert Foss wrote: > > Hey Liu, > > This patch seems to be included in both this series and the "Add some > DRM bridge drivers support for i.MX8qm/qxp SoCs" series. Instead of > having the two series have a conflict I would suggest either merging > them (if that makes sense) or removing this patch from one of them and > explicitly stating that there is a dependency on the other series. > > (the patch itself still looks good though :) ) After having looked through the rest of the series, and seeing it is pretty much ready to be merged. Feel free to add my r-b to this patch. Reviewed-by: Robert Foss > > On Fri, 11 Dec 2020 at 02:56, Liu Ying wrote: > > > > This patch allows LVDS PHYs to be configured through > > the generic functions and through a custom structure > > added to the generic union. > > > > The parameters added here are based on common LVDS PHY > > implementation practices. The set of parameters > > should cover all potential users. > > > > Cc: Kishon Vijay Abraham I > > Cc: Vinod Koul > > Cc: NXP Linux Team > > Signed-off-by: Liu Ying > > --- > > v2->v3: > > * No change. > > > > v1->v2: > > * No change. > > > > include/linux/phy/phy-lvds.h | 48 ++++++++++++++++++++++++++++++++++++++++++++ > > include/linux/phy/phy.h | 4 ++++ > > 2 files changed, 52 insertions(+) > > create mode 100644 include/linux/phy/phy-lvds.h > > > > diff --git a/include/linux/phy/phy-lvds.h b/include/linux/phy/phy-lvds.h > > new file mode 100644 > > index 00000000..1b5b9d6 > > --- /dev/null > > +++ b/include/linux/phy/phy-lvds.h > > @@ -0,0 +1,48 @@ > > +/* SPDX-License-Identifier: GPL-2.0 */ > > +/* > > + * Copyright 2020 NXP > > + */ > > + > > +#ifndef __PHY_LVDS_H_ > > +#define __PHY_LVDS_H_ > > + > > +/** > > + * struct phy_configure_opts_lvds - LVDS configuration set > > + * > > + * This structure is used to represent the configuration state of a > > + * LVDS phy. > > + */ > > +struct phy_configure_opts_lvds { > > + /** > > + * @bits_per_lane_and_dclk_cycle: > > + * > > + * Number of bits per data lane and differential clock cycle. > > + */ > > + unsigned int bits_per_lane_and_dclk_cycle; > > + > > + /** > > + * @differential_clk_rate: > > + * > > + * Clock rate, in Hertz, of the LVDS differential clock. > > + */ > > + unsigned long differential_clk_rate; > > + > > + /** > > + * @lanes: > > + * > > + * Number of active, consecutive, data lanes, starting from > > + * lane 0, used for the transmissions. > > + */ > > + unsigned int lanes; > > + > > + /** > > + * @is_slave: > > + * > > + * Boolean, true if the phy is a slave which works together > > + * with a master phy to support dual link transmission, > > + * otherwise a regular phy or a master phy. > > + */ > > + bool is_slave; > > +}; > > + > > +#endif /* __PHY_LVDS_H_ */ > > diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h > > index e435bdb..d450b44 100644 > > --- a/include/linux/phy/phy.h > > +++ b/include/linux/phy/phy.h > > @@ -17,6 +17,7 @@ > > #include > > > > #include > > +#include > > #include > > > > struct phy; > > @@ -51,10 +52,13 @@ enum phy_mode { > > * the MIPI_DPHY phy mode. > > * @dp: Configuration set applicable for phys supporting > > * the DisplayPort protocol. > > + * @lvds: Configuration set applicable for phys supporting > > + * the LVDS phy mode. > > */ > > union phy_configure_opts { > > struct phy_configure_opts_mipi_dphy mipi_dphy; > > struct phy_configure_opts_dp dp; > > + struct phy_configure_opts_lvds lvds; > > }; > > > > /** > > -- > > 2.7.4 > >