Message ID | 1607067224-15616-1-git-send-email-victor.liu@nxp.com (mailing list archive) |
---|---|
Headers | show |
Series | phy: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support | expand |
Hi Liu, On Fri, Dec 04, 2020 at 03:33:40PM +0800, Liu Ying wrote: > Hi, > > This series adds i.MX8qxp LVDS PHY mode support for the Mixel PHY in the > Freescale i.MX8qxp SoC. This looks good to me from the NWL and actual phy driver part. I'll comment in the individual patches but leave comments on the extension of the generic phy struct to someone knowledgeable with that part. What display controllers do you intend to drive that with? Cheers, -- Guido > > 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/4 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/4 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/4 adds dt binding support for the Mixel combo PHY in i.MX8qxp SoC. > > Patch 4/4 adds the i.MX8qxp LVDS PHY mode support in the Mixel PHY driver. > > > Welcome comments, thanks. > > > Liu Ying (4): > drm/bridge: nwl-dsi: Set PHY mode in nwl_dsi_enable() > phy: Add LVDS configuration options > 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 | 8 +- > drivers/gpu/drm/bridge/nwl-dsi.c | 6 + > drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c | 266 ++++++++++++++++++++- > include/linux/phy/phy-lvds.h | 48 ++++ > include/linux/phy/phy.h | 4 + > 5 files changed, 320 insertions(+), 12 deletions(-) > create mode 100644 include/linux/phy/phy-lvds.h > > -- > 2.7.4 >
Hi Guido, On Tue, 2020-12-08 at 10:02 +0100, Guido Günther wrote: > Hi Liu, > On Fri, Dec 04, 2020 at 03:33:40PM +0800, Liu Ying wrote: > > Hi, > > > > This series adds i.MX8qxp LVDS PHY mode support for the Mixel PHY in the > > Freescale i.MX8qxp SoC. > > This looks good to me from the NWL and actual phy driver part. I'll > comment in the individual patches but leave comments on the extension > of the generic phy struct to someone knowledgeable with that part. Thank you for the review. > > What display controllers do you intend to drive that with? The display controller DPU embedded in i.MX8qxp SoC would drive the MIPI DSI display or the LVDS display through the Mixel combo PHY. I've sent out a series to add DPU DRM driver support(KMS part only so far) for review: https://www.spinics.net/lists/kernel/msg3762462.html I can Cc you when I send the next version for it. Regards, Liu Ying > Cheers, > -- Guido > > > 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/4 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/4 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/4 adds dt binding support for the Mixel combo PHY in i.MX8qxp SoC. > > > > Patch 4/4 adds the i.MX8qxp LVDS PHY mode support in the Mixel PHY driver. > > > > > > Welcome comments, thanks. > > > > > > Liu Ying (4): > > drm/bridge: nwl-dsi: Set PHY mode in nwl_dsi_enable() > > phy: Add LVDS configuration options > > 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 | 8 +- > > drivers/gpu/drm/bridge/nwl-dsi.c | 6 + > > drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c | 266 ++++++++++++++++++++- > > include/linux/phy/phy-lvds.h | 48 ++++ > > include/linux/phy/phy.h | 4 + > > 5 files changed, 320 insertions(+), 12 deletions(-) > > create mode 100644 include/linux/phy/phy-lvds.h > > > > -- > > 2.7.4 > >