/openbmc/linux/drivers/phy/cadence/ |
H A D | cdns-dphy.c | 94 int (*probe)(struct cdns_dphy *dphy); 95 void (*remove)(struct cdns_dphy *dphy); 96 void (*set_psm_div)(struct cdns_dphy *dphy, u8 div); 97 void (*set_clk_lane_cfg)(struct cdns_dphy *dphy, 99 void (*set_pll_cfg)(struct cdns_dphy *dphy, 101 unsigned long (*get_wakeup_time_ns)(struct cdns_dphy *dphy); 119 static int cdns_dsi_get_dphy_pll_cfg(struct cdns_dphy *dphy, in cdns_dsi_get_dphy_pll_cfg() argument 124 unsigned long pll_ref_hz = clk_get_rate(dphy->pll_ref_clk); in cdns_dsi_get_dphy_pll_cfg() 160 static int cdns_dphy_setup_psm(struct cdns_dphy *dphy) in cdns_dphy_setup_psm() argument 162 unsigned long psm_clk_hz = clk_get_rate(dphy->psm_clk); in cdns_dphy_setup_psm() [all …]
|
H A D | cdns-dphy-rx.c | 81 struct cdns_dphy_rx *dphy = phy_get_drvdata(phy); in cdns_dphy_rx_power_on() local 87 dphy->regs + DPHY_CMN_SSM); in cdns_dphy_rx_power_on() 94 struct cdns_dphy_rx *dphy = phy_get_drvdata(phy); in cdns_dphy_rx_power_off() local 96 writel(0, dphy->regs + DPHY_CMN_SSM); in cdns_dphy_rx_power_off() 128 static int cdns_dphy_rx_wait_lane_ready(struct cdns_dphy_rx *dphy, in cdns_dphy_rx_wait_lane_ready() argument 135 void __iomem *reg = dphy->regs; in cdns_dphy_rx_wait_lane_ready() 171 struct cdns_dphy_rx *dphy = phy_get_drvdata(phy); in cdns_dphy_rx_configure() local 182 writel(reg, dphy->regs + DPHY_LANE); in cdns_dphy_rx_configure() 195 writel(reg, dphy->regs + DPHY_BAND_CFG); in cdns_dphy_rx_configure() 202 writel(reg, dphy->regs + DPHY_POWER_ISLAND_EN_DATA); in cdns_dphy_rx_configure() [all …]
|
H A D | Makefile | 3 obj-$(CONFIG_PHY_CADENCE_DPHY) += cdns-dphy.o 4 obj-$(CONFIG_PHY_CADENCE_DPHY_RX) += cdns-dphy-rx.o
|
/openbmc/linux/drivers/phy/allwinner/ |
H A D | phy-sun6i-mipi-dphy.c | 183 void (*tx_power_on)(struct sun6i_dphy *dphy); 202 struct sun6i_dphy *dphy = phy_get_drvdata(phy); in sun6i_dphy_init() local 204 reset_control_deassert(dphy->reset); in sun6i_dphy_init() 205 clk_prepare_enable(dphy->mod_clk); in sun6i_dphy_init() 206 clk_set_rate_exclusive(dphy->mod_clk, 150000000); in sun6i_dphy_init() 213 struct sun6i_dphy *dphy = phy_get_drvdata(phy); in sun6i_dphy_configure() local 220 memcpy(&dphy->config, opts, sizeof(dphy->config)); in sun6i_dphy_configure() 225 static void sun6i_a31_mipi_dphy_tx_power_on(struct sun6i_dphy *dphy) in sun6i_a31_mipi_dphy_tx_power_on() argument 227 u8 lanes_mask = GENMASK(dphy->config.lanes - 1, 0); in sun6i_a31_mipi_dphy_tx_power_on() 229 regmap_write(dphy->regs, SUN6I_DPHY_ANA0_REG, in sun6i_a31_mipi_dphy_tx_power_on() [all …]
|
H A D | Makefile | 3 obj-$(CONFIG_PHY_SUN6I_MIPI_DPHY) += phy-sun6i-mipi-dphy.o
|
/openbmc/linux/drivers/phy/starfive/ |
H A D | phy-jh7110-dphy-rx.c | 80 struct stf_dphy *dphy = phy_get_drvdata(phy); in stf_dphy_configure() local 81 const struct stf_dphy_info *info = dphy->info; in stf_dphy_configure() 93 dphy->regs + STF_DPHY_APBCFGSAIF_SYSCFG(188)); in stf_dphy_configure() 98 dphy->regs + STF_DPHY_APBCFGSAIF_SYSCFG(192)); in stf_dphy_configure() 104 dphy->regs + STF_DPHY_APBCFGSAIF_SYSCFG(196)); in stf_dphy_configure() 107 dphy->regs + STF_DPHY_APBCFGSAIF_SYSCFG(200)); in stf_dphy_configure() 114 struct stf_dphy *dphy = phy_get_drvdata(phy); in stf_dphy_power_on() local 117 ret = pm_runtime_resume_and_get(dphy->dev); in stf_dphy_power_on() 121 ret = regulator_enable(dphy->mipi_0p9); in stf_dphy_power_on() 123 pm_runtime_put(dphy->dev); in stf_dphy_power_on() [all …]
|
H A D | Makefile | 2 obj-$(CONFIG_PHY_STARFIVE_JH7110_DPHY_RX) += phy-jh7110-dphy-rx.o
|
/openbmc/linux/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/ |
H A D | sun8i_a83t_dphy.c | 13 static int sun8i_a83t_dphy_configure(struct phy *dphy, in sun8i_a83t_dphy_configure() argument 19 static int sun8i_a83t_dphy_power_on(struct phy *dphy) in sun8i_a83t_dphy_power_on() argument 21 struct sun8i_a83t_mipi_csi2_device *csi2_dev = phy_get_drvdata(dphy); in sun8i_a83t_dphy_power_on() 36 static int sun8i_a83t_dphy_power_off(struct phy *dphy) in sun8i_a83t_dphy_power_off() argument 38 struct sun8i_a83t_mipi_csi2_device *csi2_dev = phy_get_drvdata(dphy); in sun8i_a83t_dphy_power_off() 57 csi2_dev->dphy = devm_phy_create(dev, NULL, &sun8i_a83t_dphy_ops); in sun8i_a83t_dphy_register() 58 if (IS_ERR(csi2_dev->dphy)) { in sun8i_a83t_dphy_register() 60 return PTR_ERR(csi2_dev->dphy); in sun8i_a83t_dphy_register() 63 phy_set_drvdata(csi2_dev->dphy, csi2_dev); in sun8i_a83t_dphy_register()
|
H A D | sun8i_a83t_mipi_csi2.c | 210 struct phy *dphy = csi2_dev->dphy; in sun8i_a83t_mipi_csi2_s_stream() local 281 ret = phy_reset(dphy); in sun8i_a83t_mipi_csi2_s_stream() 287 ret = phy_configure(dphy, &dphy_opts); in sun8i_a83t_mipi_csi2_s_stream() 300 ret = phy_power_on(dphy); in sun8i_a83t_mipi_csi2_s_stream() 315 phy_power_off(dphy); in sun8i_a83t_mipi_csi2_s_stream() 773 phy_exit(csi2_dev->dphy); in sun8i_a83t_mipi_csi2_resources_cleanup()
|
H A D | sun8i_a83t_mipi_csi2.h | 50 struct phy *dphy; member
|
/openbmc/linux/drivers/gpu/drm/kmb/ |
H A D | kmb_regs.h | 647 #define SET_DPHY_INIT_CTRL0(dev, dphy, offset) \ argument 649 ((dphy) + (offset))) 650 #define CLR_DPHY_INIT_CTRL0(dev, dphy, offset) \ argument 652 ((dphy) + (offset))) 659 #define SET_DPHY_FREQ_CTRL0_3(dev, dphy, val) \ argument 661 + (((dphy) / 4) * 4), (dphy % 4) * 8, 6, val) 667 #define GET_STOPSTATE_DATA(dev, dphy) \ argument 669 ((dphy) / 4) * 4)) >> \ 670 (((dphy % 4) * 8) + 4)) & 0x03) 675 #define SET_DPHY_TEST_CTRL0(dev, dphy) \ argument [all …]
|
/openbmc/linux/drivers/media/platform/marvell/ |
H A D | mmp-driver.c | 99 pdata->dphy[0] = in mmpcam_calc_dphy() 107 pdata->dphy[0] = in mmpcam_calc_dphy() 139 pdata->dphy[2] = in mmpcam_calc_dphy() 144 pdata->dphy[0], pdata->dphy[1], pdata->dphy[2]); in mmpcam_calc_dphy() 201 mcam->dphy = pdata->dphy; in mmpcam_probe() 215 if ((IS_ERR(cam->mipi_clk) && mcam->dphy[2] == 0)) in mmpcam_probe()
|
/openbmc/linux/drivers/media/platform/cadence/ |
H A D | cdns-csi2rx.c | 81 struct phy *dphy; member 119 ret = phy_power_on(csi2rx->dphy); in csi2rx_configure_ext_dphy() 123 ret = phy_configure(csi2rx->dphy, &opts); in csi2rx_configure_ext_dphy() 125 phy_power_off(csi2rx->dphy); in csi2rx_configure_ext_dphy() 168 if (csi2rx->dphy) { in csi2rx_start() 235 if (csi2rx->dphy) { in csi2rx_start() 237 phy_power_off(csi2rx->dphy); in csi2rx_start() 266 if (csi2rx->dphy) { in csi2rx_stop() 269 if (phy_power_off(csi2rx->dphy)) in csi2rx_stop() 381 csi2rx->dphy = devm_phy_optional_get(&pdev->dev, "dphy"); in csi2rx_get_resources() [all …]
|
/openbmc/linux/drivers/staging/media/omap4iss/ |
H A D | iss_csiphy.c | 94 reg = phy->dphy.ths_term << REGISTER0_THS_TERM_SHIFT; in csiphy_dphy_config() 95 reg |= phy->dphy.ths_settle << REGISTER0_THS_SETTLE_SHIFT; in csiphy_dphy_config() 100 reg = phy->dphy.tclk_term << REGISTER1_TCLK_TERM_SHIFT; in csiphy_dphy_config() 101 reg |= phy->dphy.tclk_miss << REGISTER1_CTRLCLK_DIV_FACTOR_SHIFT; in csiphy_dphy_config() 102 reg |= phy->dphy.tclk_settle << REGISTER1_TCLK_SETTLE_SHIFT; in csiphy_dphy_config() 211 csi2->phy->dphy = csi2phy; in omap4iss_csiphy_config()
|
H A D | iss_csiphy.h | 38 struct iss_csiphy_dphy_cfg dphy; member
|
/openbmc/linux/drivers/media/platform/sunxi/sun6i-mipi-csi2/ |
H A D | sun6i_mipi_csi2.c | 178 struct phy *dphy = csi2_dev->dphy; in sun6i_mipi_csi2_s_stream() local 249 ret = phy_reset(dphy); in sun6i_mipi_csi2_s_stream() 255 ret = phy_configure(dphy, &dphy_opts); in sun6i_mipi_csi2_s_stream() 268 ret = phy_power_on(dphy); in sun6i_mipi_csi2_s_stream() 283 phy_power_off(dphy); in sun6i_mipi_csi2_s_stream() 677 csi2_dev->dphy = devm_phy_get(dev, "dphy"); in sun6i_mipi_csi2_resources_setup() 678 if (IS_ERR(csi2_dev->dphy)) { in sun6i_mipi_csi2_resources_setup() 680 ret = PTR_ERR(csi2_dev->dphy); in sun6i_mipi_csi2_resources_setup() 684 ret = phy_init(csi2_dev->dphy); in sun6i_mipi_csi2_resources_setup() 706 phy_exit(csi2_dev->dphy); in sun6i_mipi_csi2_resources_cleanup()
|
H A D | sun6i_mipi_csi2.h | 47 struct phy *dphy; member
|
/openbmc/linux/drivers/media/platform/rockchip/rkisp1/ |
H A D | rkisp1-csi.c | 186 phy_set_mode(csi->dphy, PHY_MODE_MIPI_DPHY); in rkisp1_csi_start() 187 phy_configure(csi->dphy, &opts); in rkisp1_csi_start() 188 phy_power_on(csi->dphy); in rkisp1_csi_start() 205 phy_power_off(csi->dphy); in rkisp1_csi_stop() 541 csi->dphy = devm_phy_get(rkisp1->dev, "dphy"); in rkisp1_csi_init() 542 if (IS_ERR(csi->dphy)) in rkisp1_csi_init() 543 return dev_err_probe(rkisp1->dev, PTR_ERR(csi->dphy), in rkisp1_csi_init() 546 phy_init(csi->dphy); in rkisp1_csi_init() 555 phy_exit(csi->dphy); in rkisp1_csi_cleanup()
|
/openbmc/linux/drivers/phy/amlogic/ |
H A D | Makefile | 7 obj-$(CONFIG_PHY_MESON_G12A_MIPI_DPHY_ANALOG) += phy-meson-g12a-mipi-dphy-analog.o 10 obj-$(CONFIG_PHY_MESON_AXG_MIPI_DPHY) += phy-meson-axg-mipi-dphy.o
|
/openbmc/linux/drivers/gpu/drm/rockchip/ |
H A D | rockchip_lvds.c | 53 struct phy *dphy; member 506 lvds->dphy = devm_phy_get(&pdev->dev, "dphy"); in px30_lvds_probe() 507 if (IS_ERR(lvds->dphy)) in px30_lvds_probe() 508 return PTR_ERR(lvds->dphy); in px30_lvds_probe() 510 ret = phy_init(lvds->dphy); in px30_lvds_probe() 514 ret = phy_set_mode(lvds->dphy, PHY_MODE_LVDS); in px30_lvds_probe() 518 return phy_power_on(lvds->dphy); in px30_lvds_probe()
|
/openbmc/linux/drivers/gpu/drm/sun4i/ |
H A D | sun6i_mipi_dsi.c | 762 phy_init(dsi->dphy); in sun6i_dsi_encoder_enable() 768 phy_set_mode(dsi->dphy, PHY_MODE_MIPI_DPHY); in sun6i_dsi_encoder_enable() 769 phy_configure(dsi->dphy, &opts); in sun6i_dsi_encoder_enable() 770 phy_power_on(dsi->dphy); in sun6i_dsi_encoder_enable() 808 phy_power_off(dsi->dphy); in sun6i_dsi_encoder_disable() 809 phy_exit(dsi->dphy); in sun6i_dsi_encoder_disable() 1171 dsi->dphy = devm_phy_get(dev, "dphy"); in sun6i_dsi_probe() 1172 if (IS_ERR(dsi->dphy)) { in sun6i_dsi_probe() 1174 ret = PTR_ERR(dsi->dphy); in sun6i_dsi_probe()
|
H A D | sun6i_mipi_dsi.h | 33 struct phy *dphy; member
|
/openbmc/linux/include/linux/platform_data/media/ |
H A D | mmp-camera.h | 21 int dphy[3]; /* DPHY: CSI2_DPHY3, CSI2_DPHY5, CSI2_DPHY6 */ member
|
/openbmc/linux/drivers/phy/freescale/ |
H A D | Makefile | 4 obj-$(CONFIG_PHY_MIXEL_MIPI_DPHY) += phy-fsl-imx8-mipi-dphy.o
|
/openbmc/linux/drivers/phy/ |
H A D | Makefile | 7 obj-$(CONFIG_GENERIC_PHY_MIPI_DPHY) += phy-core-mipi-dphy.o
|