| /linux/drivers/phy/cadence/ |
| H A D | cdns-dphy.c | 88 int (*probe)(struct cdns_dphy *dphy); 89 void (*remove)(struct cdns_dphy *dphy); 90 void (*set_psm_div)(struct cdns_dphy *dphy, u8 div); 91 void (*set_clk_lane_cfg)(struct cdns_dphy *dphy, 93 void (*set_pll_cfg)(struct cdns_dphy *dphy, 95 unsigned long (*get_wakeup_time_ns)(struct cdns_dphy *dphy); 96 int (*wait_for_pll_lock)(struct cdns_dphy *dphy); 97 int (*wait_for_cmn_ready)(struct cdns_dphy *dphy); 117 static int cdns_dphy_get_pll_cfg(struct cdns_dphy *dphy, in cdns_dphy_get_pll_cfg() argument 121 unsigned long pll_ref_hz = clk_get_rate(dphy->pll_ref_clk); in cdns_dphy_get_pll_cfg() [all …]
|
| H A D | cdns-dphy-rx.c | 82 struct cdns_dphy_rx *dphy = phy_get_drvdata(phy); in cdns_dphy_rx_power_on() local 88 dphy->regs + DPHY_CMN_SSM); in cdns_dphy_rx_power_on() 95 struct cdns_dphy_rx *dphy = phy_get_drvdata(phy); in cdns_dphy_rx_power_off() local 97 writel(0, dphy->regs + DPHY_CMN_SSM); in cdns_dphy_rx_power_off() 129 static int cdns_dphy_rx_wait_lane_ready(struct cdns_dphy_rx *dphy, in cdns_dphy_rx_wait_lane_ready() argument 136 void __iomem *reg = dphy->regs; in cdns_dphy_rx_wait_lane_ready() 172 struct cdns_dphy_rx *dphy = phy_get_drvdata(phy); in cdns_dphy_rx_configure() local 183 writel(reg, dphy->regs + DPHY_LANE); in cdns_dphy_rx_configure() 196 writel(reg, dphy->regs + DPHY_BAND_CFG); in cdns_dphy_rx_configure() 203 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
|
| /linux/drivers/media/platform/raspberrypi/rp1-cfe/ |
| H A D | dphy.c | 14 #define dphy_dbg(dphy, fmt, arg...) dev_dbg((dphy)->dev, fmt, ##arg) argument 15 #define dphy_err(dphy, fmt, arg...) dev_err((dphy)->dev, fmt, ##arg) argument 36 static u32 dw_csi2_host_read(struct dphy_data *dphy, u32 offset) in dw_csi2_host_read() argument 38 return readl(dphy->base + offset); in dw_csi2_host_read() 41 static void dw_csi2_host_write(struct dphy_data *dphy, u32 offset, u32 data) in dw_csi2_host_write() argument 43 writel(data, dphy->base + offset); in dw_csi2_host_write() 46 static void set_tstclr(struct dphy_data *dphy, u32 val) in set_tstclr() argument 48 u32 ctrl0 = dw_csi2_host_read(dphy, DPHY_PHY_TST_CTRL0); in set_tstclr() 50 dw_csi2_host_write(dphy, DPHY_PHY_TST_CTRL0, (ctrl0 & ~1) | val); in set_tstclr() 53 static void set_tstclk(struct dphy_data *dphy, u32 val) in set_tstclk() argument [all …]
|
| H A D | dphy.h | 23 void dphy_probe(struct dphy_data *dphy); 24 void dphy_start(struct dphy_data *dphy); 25 void dphy_stop(struct dphy_data *dphy);
|
| /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 …]
|
| /linux/drivers/phy/starfive/ |
| H A D | phy-jh7110-dphy-rx.c | 75 struct stf_dphy *dphy = phy_get_drvdata(phy); in stf_dphy_configure() local 76 const struct stf_dphy_info *info = dphy->info; in stf_dphy_configure() 88 dphy->regs + STF_DPHY_APBCFGSAIF_SYSCFG(188)); in stf_dphy_configure() 93 dphy->regs + STF_DPHY_APBCFGSAIF_SYSCFG(192)); in stf_dphy_configure() 99 dphy->regs + STF_DPHY_APBCFGSAIF_SYSCFG(196)); in stf_dphy_configure() 102 dphy->regs + STF_DPHY_APBCFGSAIF_SYSCFG(200)); in stf_dphy_configure() 109 struct stf_dphy *dphy = phy_get_drvdata(phy); in stf_dphy_power_on() local 112 ret = pm_runtime_resume_and_get(dphy->dev); in stf_dphy_power_on() 116 ret = regulator_enable(dphy->mipi_0p9); in stf_dphy_power_on() 118 pm_runtime_put(dphy->dev); in stf_dphy_power_on() [all …]
|
| H A D | phy-jh7110-dphy-tx.c | 212 static void stf_dphy_hw_reset(struct stf_dphy *dphy, int assert) in stf_dphy_hw_reset() argument 218 dphy->topsys + STF_DPHY_APBIFSAIF_SYSCFG(100)); in stf_dphy_hw_reset() 221 rc = readl_poll_timeout_atomic(dphy->topsys + in stf_dphy_hw_reset() 227 dev_err(dphy->dev, "MIPI dphy-tx # PLL Locked\n"); in stf_dphy_hw_reset() 233 struct stf_dphy *dphy = phy_get_drvdata(phy); in stf_dphy_configure() local 234 const struct stf_dphy_info *info = dphy->info; in stf_dphy_configure() 246 tmp = readl(dphy->topsys + STF_DPHY_APBIFSAIF_SYSCFG(100)); in stf_dphy_configure() 249 writel(tmp, dphy->topsys + STF_DPHY_APBIFSAIF_SYSCFG(100)); in stf_dphy_configure() 253 dphy->topsys + STF_DPHY_APBIFSAIF_SYSCFG(8)); in stf_dphy_configure() 261 dphy->topsys + STF_DPHY_APBIFSAIF_SYSCFG(12)); in stf_dphy_configure() [all …]
|
| H A D | Makefile | 2 obj-$(CONFIG_PHY_STARFIVE_JH7110_DPHY_RX) += phy-jh7110-dphy-rx.o 3 obj-$(CONFIG_PHY_STARFIVE_JH7110_DPHY_TX) += phy-jh7110-dphy-tx.o
|
| H A D | Kconfig | 16 phy-jh7110-dphy-rx.ko. 26 phy-jh7110-dphy-tx.ko.
|
| /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() 777 phy_exit(csi2_dev->dphy); in sun8i_a83t_mipi_csi2_resources_cleanup()
|
| /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 …]
|
| /linux/drivers/media/platform/marvell/ |
| H A D | mmp-driver.c | 100 pdata->dphy[0] = in mmpcam_calc_dphy() 108 pdata->dphy[0] = in mmpcam_calc_dphy() 140 pdata->dphy[2] = in mmpcam_calc_dphy() 145 pdata->dphy[0], pdata->dphy[1], pdata->dphy[2]); in mmpcam_calc_dphy() 202 mcam->dphy = pdata->dphy; in mmpcam_probe() 216 if ((IS_ERR(cam->mipi_clk) && mcam->dphy[2] == 0)) in mmpcam_probe()
|
| /linux/drivers/media/platform/rockchip/rkisp1/ |
| H A D | rkisp1-csi.c | 171 phy_set_mode(csi->dphy, PHY_MODE_MIPI_DPHY); in rkisp1_csi_start() 172 phy_configure(csi->dphy, &opts); in rkisp1_csi_start() 173 phy_power_on(csi->dphy); in rkisp1_csi_start() 190 phy_power_off(csi->dphy); in rkisp1_csi_stop() 503 csi->dphy = devm_phy_get(rkisp1->dev, "dphy"); in rkisp1_csi_init() 504 if (IS_ERR(csi->dphy)) in rkisp1_csi_init() 505 return dev_err_probe(rkisp1->dev, PTR_ERR(csi->dphy), in rkisp1_csi_init() 508 phy_init(csi->dphy); in rkisp1_csi_init() 517 phy_exit(csi->dphy); in rkisp1_csi_cleanup()
|
| /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() 681 csi2_dev->dphy = devm_phy_get(dev, "dphy"); in sun6i_mipi_csi2_resources_setup() 682 if (IS_ERR(csi2_dev->dphy)) { in sun6i_mipi_csi2_resources_setup() 684 ret = PTR_ERR(csi2_dev->dphy); in sun6i_mipi_csi2_resources_setup() 688 ret = phy_init(csi2_dev->dphy); in sun6i_mipi_csi2_resources_setup() 710 phy_exit(csi2_dev->dphy); in sun6i_mipi_csi2_resources_cleanup()
|
| /linux/drivers/media/platform/cadence/ |
| H A D | cdns-csi2rx.c | 141 struct phy *dphy; member 296 ret = phy_power_on(csi2rx->dphy); in csi2rx_configure_ext_dphy() 300 ret = phy_configure(csi2rx->dphy, &opts); in csi2rx_configure_ext_dphy() 302 phy_power_off(csi2rx->dphy); in csi2rx_configure_ext_dphy() 348 if (csi2rx->dphy) { in csi2rx_start() 420 if (csi2rx->dphy) { in csi2rx_start() 422 phy_power_off(csi2rx->dphy); in csi2rx_start() 465 if (csi2rx->dphy) { in csi2rx_stop() 468 if (phy_power_off(csi2rx->dphy)) in csi2rx_stop() 704 csi2rx->dphy = devm_phy_optional_get(&pdev->dev, "dphy"); in csi2rx_get_resources() [all …]
|
| /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
|
| /linux/drivers/gpu/drm/rockchip/ |
| H A D | rockchip_lvds.c | 53 struct phy *dphy; member 492 lvds->dphy = devm_phy_get(&pdev->dev, "dphy"); in px30_lvds_probe() 493 if (IS_ERR(lvds->dphy)) in px30_lvds_probe() 494 return PTR_ERR(lvds->dphy); in px30_lvds_probe() 496 ret = phy_init(lvds->dphy); in px30_lvds_probe() 500 ret = phy_set_mode(lvds->dphy, PHY_MODE_LVDS); in px30_lvds_probe() 504 return phy_power_on(lvds->dphy); in px30_lvds_probe()
|
| /linux/arch/arm64/boot/dts/sprd/ |
| H A D | ums9620.dtsi | 238 dphy_312m5: dphy-312m5 { 242 clock-output-names = "dphy-312m5"; 245 dphy_416m7: dphy-416m7 { 249 clock-output-names = "dphy-416m7";
|
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | k3-j722s-main.dtsi | 179 phy-names = "dphy"; 235 phy-names = "dphy"; 291 phy-names = "dphy"; 326 compatible = "cdns,dphy-rx"; 334 compatible = "cdns,dphy-rx"; 342 compatible = "cdns,dphy-rx";
|
| /linux/drivers/gpu/drm/bridge/cadence/ |
| H A D | cdns-dsi-core.c | 539 ret = phy_validate(dsi->dphy, PHY_MODE_MIPI_DPHY, 0, &output->phy_opts); in cdns_dsi_check_conf() 628 phy_power_off(dsi->dphy); in cdns_dsi_bridge_atomic_post_disable() 629 phy_exit(dsi->dphy); in cdns_dsi_bridge_atomic_post_disable() 649 phy_init(dsi->dphy); in cdns_dsi_hs_init() 650 phy_set_mode(dsi->dphy, PHY_MODE_MIPI_DPHY); in cdns_dsi_hs_init() 651 phy_configure(dsi->dphy, &output->phy_opts); in cdns_dsi_hs_init() 652 phy_power_on(dsi->dphy); in cdns_dsi_hs_init() 933 ret = phy_validate(dsi->dphy, PHY_MODE_MIPI_DPHY, 0, &phy_opts); in cdns_dsi_round_pclk() 1294 dsi->dphy = devm_phy_get(&pdev->dev, "dphy"); in cdns_dsi_drm_probe() 1295 if (IS_ERR(dsi->dphy)) in cdns_dsi_drm_probe() [all …]
|
| /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()
|
| /linux/drivers/media/platform/amlogic/c3/mipi-csi2/ |
| H A D | c3-mipi-csi2.c | 249 void __iomem *dphy; member 284 addr = csi->dphy + CSI2_REG_ADDR(reg); in c3_mipi_csi_write() 726 csi->dphy = devm_platform_ioremap_resource_byname(pdev, "dphy"); in c3_mipi_csi_ioremap_resource() 727 if (IS_ERR(csi->dphy)) in c3_mipi_csi_ioremap_resource() 728 return PTR_ERR(csi->dphy); in c3_mipi_csi_ioremap_resource()
|
| /linux/include/linux/platform_data/media/ |
| H A D | mmp-camera.h | 21 int dphy[3]; /* DPHY: CSI2_DPHY3, CSI2_DPHY5, CSI2_DPHY6 */ member
|