/Linux-v6.1/drivers/phy/cadence/ |
D | cdns-dphy.c | 95 int (*probe)(struct cdns_dphy *dphy); 96 void (*remove)(struct cdns_dphy *dphy); 97 void (*set_psm_div)(struct cdns_dphy *dphy, u8 div); 98 void (*set_clk_lane_cfg)(struct cdns_dphy *dphy, 100 void (*set_pll_cfg)(struct cdns_dphy *dphy, 102 unsigned long (*get_wakeup_time_ns)(struct cdns_dphy *dphy); 120 static int cdns_dsi_get_dphy_pll_cfg(struct cdns_dphy *dphy, in cdns_dsi_get_dphy_pll_cfg() argument 125 unsigned long pll_ref_hz = clk_get_rate(dphy->pll_ref_clk); in cdns_dsi_get_dphy_pll_cfg() 161 static int cdns_dphy_setup_psm(struct cdns_dphy *dphy) in cdns_dphy_setup_psm() argument 163 unsigned long psm_clk_hz = clk_get_rate(dphy->psm_clk); in cdns_dphy_setup_psm() [all …]
|
D | cdns-dphy-rx.c | 71 struct cdns_dphy_rx *dphy = phy_get_drvdata(phy); in cdns_dphy_rx_power_on() local 77 dphy->regs + DPHY_CMN_SSM); in cdns_dphy_rx_power_on() 84 struct cdns_dphy_rx *dphy = phy_get_drvdata(phy); in cdns_dphy_rx_power_off() local 86 writel(0, dphy->regs + DPHY_CMN_SSM); in cdns_dphy_rx_power_off() 118 static int cdns_dphy_rx_wait_lane_ready(struct cdns_dphy_rx *dphy, in cdns_dphy_rx_wait_lane_ready() argument 125 void __iomem *reg = dphy->regs; in cdns_dphy_rx_wait_lane_ready() 148 struct cdns_dphy_rx *dphy = phy_get_drvdata(phy); in cdns_dphy_rx_configure() local 162 writel(reg, dphy->regs + DPHY_BAND_CFG); in cdns_dphy_rx_configure() 169 writel(reg, dphy->regs + DPHY_POWER_ISLAND_EN_DATA); in cdns_dphy_rx_configure() 171 writel(reg, dphy->regs + DPHY_POWER_ISLAND_EN_CLK); in cdns_dphy_rx_configure() [all …]
|
D | Makefile | 3 obj-$(CONFIG_PHY_CADENCE_DPHY) += cdns-dphy.o 4 obj-$(CONFIG_PHY_CADENCE_DPHY_RX) += cdns-dphy-rx.o
|
/Linux-v6.1/drivers/phy/allwinner/ |
D | phy-sun6i-mipi-dphy.c | 131 struct sun6i_dphy *dphy = phy_get_drvdata(phy); in sun6i_dphy_init() local 133 reset_control_deassert(dphy->reset); in sun6i_dphy_init() 134 clk_prepare_enable(dphy->mod_clk); in sun6i_dphy_init() 135 clk_set_rate_exclusive(dphy->mod_clk, 150000000); in sun6i_dphy_init() 142 struct sun6i_dphy *dphy = phy_get_drvdata(phy); in sun6i_dphy_configure() local 149 memcpy(&dphy->config, opts, sizeof(dphy->config)); in sun6i_dphy_configure() 154 static int sun6i_dphy_tx_power_on(struct sun6i_dphy *dphy) in sun6i_dphy_tx_power_on() argument 156 u8 lanes_mask = GENMASK(dphy->config.lanes - 1, 0); in sun6i_dphy_tx_power_on() 158 regmap_write(dphy->regs, SUN6I_DPHY_TX_CTL_REG, in sun6i_dphy_tx_power_on() 161 regmap_write(dphy->regs, SUN6I_DPHY_TX_TIME0_REG, in sun6i_dphy_tx_power_on() [all …]
|
D | Makefile | 3 obj-$(CONFIG_PHY_SUN6I_MIPI_DPHY) += phy-sun6i-mipi-dphy.o
|
/Linux-v6.1/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/ |
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()
|
D | sun8i_a83t_mipi_csi2.c | 211 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() 317 phy_power_off(dphy); in sun8i_a83t_mipi_csi2_s_stream() 766 phy_exit(csi2_dev->dphy); in sun8i_a83t_mipi_csi2_resources_cleanup()
|
D | sun8i_a83t_mipi_csi2.h | 50 struct phy *dphy; member
|
/Linux-v6.1/drivers/gpu/drm/kmb/ |
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-v6.1/drivers/media/platform/marvell/ |
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()
|
/Linux-v6.1/drivers/media/platform/sunxi/sun6i-mipi-csi2/ |
D | sun6i_mipi_csi2.c | 179 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() 285 phy_power_off(dphy); in sun6i_mipi_csi2_s_stream() 670 csi2_dev->dphy = devm_phy_get(dev, "dphy"); in sun6i_mipi_csi2_resources_setup() 671 if (IS_ERR(csi2_dev->dphy)) { in sun6i_mipi_csi2_resources_setup() 673 ret = PTR_ERR(csi2_dev->dphy); in sun6i_mipi_csi2_resources_setup() 677 ret = phy_init(csi2_dev->dphy); in sun6i_mipi_csi2_resources_setup() 699 phy_exit(csi2_dev->dphy); in sun6i_mipi_csi2_resources_cleanup()
|
D | sun6i_mipi_csi2.h | 47 struct phy *dphy; member
|
/Linux-v6.1/drivers/staging/media/omap4iss/ |
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()
|
D | iss_csiphy.h | 38 struct iss_csiphy_dphy_cfg dphy; member
|
/Linux-v6.1/drivers/media/platform/rockchip/rkisp1/ |
D | rkisp1-csi.c | 174 phy_set_mode(csi->dphy, PHY_MODE_MIPI_DPHY); in rkisp1_csi_start() 175 phy_configure(csi->dphy, &opts); in rkisp1_csi_start() 176 phy_power_on(csi->dphy); in rkisp1_csi_start() 193 phy_power_off(csi->dphy); in rkisp1_csi_stop() 521 csi->dphy = devm_phy_get(rkisp1->dev, "dphy"); in rkisp1_csi_init() 522 if (IS_ERR(csi->dphy)) in rkisp1_csi_init() 523 return dev_err_probe(rkisp1->dev, PTR_ERR(csi->dphy), in rkisp1_csi_init() 526 phy_init(csi->dphy); in rkisp1_csi_init() 535 phy_exit(csi->dphy); in rkisp1_csi_cleanup()
|
/Linux-v6.1/drivers/phy/amlogic/ |
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-v6.1/Documentation/devicetree/bindings/display/bridge/ |
D | cdns,dsi.txt | 13 - phy-names: must contain "dphy". 42 phy-names = "dphy"; 73 phy-names = "dphy";
|
/Linux-v6.1/drivers/gpu/drm/rockchip/ |
D | rockchip_lvds.c | 54 struct phy *dphy; member 503 lvds->dphy = devm_phy_get(&pdev->dev, "dphy"); in px30_lvds_probe() 504 if (IS_ERR(lvds->dphy)) in px30_lvds_probe() 505 return PTR_ERR(lvds->dphy); in px30_lvds_probe() 507 ret = phy_init(lvds->dphy); in px30_lvds_probe() 511 ret = phy_set_mode(lvds->dphy, PHY_MODE_LVDS); in px30_lvds_probe() 515 return phy_power_on(lvds->dphy); in px30_lvds_probe()
|
/Linux-v6.1/drivers/media/platform/cadence/ |
D | cdns-csi2rx.c | 71 struct phy *dphy; member 302 csi2rx->dphy = devm_phy_optional_get(&pdev->dev, "dphy"); in csi2rx_get_resources() 303 if (IS_ERR(csi2rx->dphy)) { in csi2rx_get_resources() 305 return PTR_ERR(csi2rx->dphy); in csi2rx_get_resources() 312 if (csi2rx->dphy) { in csi2rx_get_resources()
|
/Linux-v6.1/drivers/gpu/drm/sun4i/ |
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() 1170 dsi->dphy = devm_phy_get(dev, "dphy"); in sun6i_dsi_probe() 1171 if (IS_ERR(dsi->dphy)) { in sun6i_dsi_probe() 1173 ret = PTR_ERR(dsi->dphy); in sun6i_dsi_probe()
|
D | sun6i_mipi_dsi.h | 28 struct phy *dphy; member
|
/Linux-v6.1/include/linux/platform_data/media/ |
D | mmp-camera.h | 21 int dphy[3]; /* DPHY: CSI2_DPHY3, CSI2_DPHY5, CSI2_DPHY6 */ member
|
/Linux-v6.1/drivers/phy/freescale/ |
D | Makefile | 4 obj-$(CONFIG_PHY_MIXEL_MIPI_DPHY) += phy-fsl-imx8-mipi-dphy.o
|
/Linux-v6.1/drivers/gpu/drm/bridge/ |
D | cdns-dsi.c | 466 struct phy *dphy; member 626 ret = phy_validate(dsi->dphy, PHY_MODE_MIPI_DPHY, 0, &output->phy_opts); in cdns_dsi_check_conf() 738 phy_init(dsi->dphy); in cdns_dsi_hs_init() 739 phy_set_mode(dsi->dphy, PHY_MODE_MIPI_DPHY); in cdns_dsi_hs_init() 740 phy_configure(dsi->dphy, &output->phy_opts); in cdns_dsi_hs_init() 741 phy_power_on(dsi->dphy); in cdns_dsi_hs_init() 1232 dsi->dphy = devm_phy_get(&pdev->dev, "dphy"); in cdns_dsi_drm_probe() 1233 if (IS_ERR(dsi->dphy)) in cdns_dsi_drm_probe() 1234 return PTR_ERR(dsi->dphy); in cdns_dsi_drm_probe()
|
/Linux-v6.1/Documentation/devicetree/bindings/display/rockchip/ |
D | dw_mipi_dsi_rockchip.txt | 15 clock(ref) when using an internal dphy and APB clock(pclk). 26 - phy-names: Should be "dphy" if phys references an external phy.
|