summaryrefslogtreecommitdiff
path: root/drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c')
-rw-r--r--drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c b/drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c
index 9f2c1da14f5a..1d4665be027a 100644
--- a/drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c
+++ b/drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c
@@ -57,6 +57,8 @@
enum mixel_dphy_devtype {
MIXEL_IMX8MQ,
+ MIXEL_IMX8QM,
+ MIXEL_IMX8QX,
};
struct mixel_dphy_devdata {
@@ -75,6 +77,20 @@ static const struct mixel_dphy_devdata mixel_dphy_devdata[] = {
.reg_rxcdrp = 0x44,
.reg_rxhs_settle = 0x48,
},
+ [MIXEL_IMX8QM] = {
+ .reg_tx_rcal = 0x00,
+ .reg_auto_pd_en = 0x38,
+ .reg_rxlprp = 0x3c,
+ .reg_rxcdrp = 0x40,
+ .reg_rxhs_settle = 0x44,
+ },
+ [MIXEL_IMX8QX] = {
+ .reg_tx_rcal = 0x00,
+ .reg_auto_pd_en = 0x38,
+ .reg_rxlprp = 0x3c,
+ .reg_rxcdrp = 0x40,
+ .reg_rxhs_settle = 0x44,
+ },
};
struct mixel_dphy_cfg {
@@ -424,6 +440,10 @@ static const struct phy_ops mixel_dphy_phy_ops = {
static const struct of_device_id mixel_dphy_of_match[] = {
{ .compatible = "fsl,imx8mq-mipi-dphy",
.data = &mixel_dphy_devdata[MIXEL_IMX8MQ] },
+ { .compatible = "fsl,imx8qm-mipi-dphy",
+ .data = &mixel_dphy_devdata[MIXEL_IMX8QM] },
+ { .compatible = "fsl,imx8qx-mipi-dphy",
+ .data = &mixel_dphy_devdata[MIXEL_IMX8QX] },
{ /* sentinel */ },
};
MODULE_DEVICE_TABLE(of, mixel_dphy_of_match);