| /kernel/linux/linux-5.10/drivers/phy/mediatek/ |
| D | phy-mtk-hdmi-mt2701.c | 70 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_prepare() local 72 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON7, RG_HTPLL_AUTOK_EN); in mtk_hdmi_pll_prepare() 73 mtk_hdmi_phy_clear_bits(hdmi_phy, HDMI_CON6, RG_HTPLL_RLH_EN); in mtk_hdmi_pll_prepare() 74 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON6, RG_HTPLL_POSDIV_MASK); in mtk_hdmi_pll_prepare() 75 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON2, RG_HDMITX_EN_MBIAS); in mtk_hdmi_pll_prepare() 77 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON6, RG_HTPLL_EN); in mtk_hdmi_pll_prepare() 78 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON2, RG_HDMITX_EN_TX_CKLDO); in mtk_hdmi_pll_prepare() 79 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON0, RG_HDMITX_EN_SLDO_MASK); in mtk_hdmi_pll_prepare() 81 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON2, RG_HDMITX_MBIAS_LPF_EN); in mtk_hdmi_pll_prepare() 82 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON0, RG_HDMITX_EN_SER_MASK); in mtk_hdmi_pll_prepare() [all …]
|
| D | phy-mtk-hdmi.c | 18 void mtk_hdmi_phy_clear_bits(struct mtk_hdmi_phy *hdmi_phy, u32 offset, in mtk_hdmi_phy_clear_bits() argument 21 void __iomem *reg = hdmi_phy->regs + offset; in mtk_hdmi_phy_clear_bits() 29 void mtk_hdmi_phy_set_bits(struct mtk_hdmi_phy *hdmi_phy, u32 offset, in mtk_hdmi_phy_set_bits() argument 32 void __iomem *reg = hdmi_phy->regs + offset; in mtk_hdmi_phy_set_bits() 40 void mtk_hdmi_phy_mask(struct mtk_hdmi_phy *hdmi_phy, u32 offset, in mtk_hdmi_phy_mask() argument 43 void __iomem *reg = hdmi_phy->regs + offset; in mtk_hdmi_phy_mask() 58 struct mtk_hdmi_phy *hdmi_phy = phy_get_drvdata(phy); in mtk_hdmi_phy_power_on() local 61 ret = clk_prepare_enable(hdmi_phy->pll); in mtk_hdmi_phy_power_on() 65 hdmi_phy->conf->hdmi_phy_enable_tmds(hdmi_phy); in mtk_hdmi_phy_power_on() 71 struct mtk_hdmi_phy *hdmi_phy = phy_get_drvdata(phy); in mtk_hdmi_phy_power_off() local [all …]
|
| D | phy-mtk-hdmi-mt8173.c | 112 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_prepare() local 114 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON1, RG_HDMITX_PLL_AUTOK_EN); in mtk_hdmi_pll_prepare() 115 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON0, RG_HDMITX_PLL_POSDIV); in mtk_hdmi_pll_prepare() 116 mtk_hdmi_phy_clear_bits(hdmi_phy, HDMI_CON3, RG_HDMITX_MHLCK_EN); in mtk_hdmi_pll_prepare() 117 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON1, RG_HDMITX_PLL_BIAS_EN); in mtk_hdmi_pll_prepare() 119 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON0, RG_HDMITX_PLL_EN); in mtk_hdmi_pll_prepare() 121 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON1, RG_HDMITX_PLL_BIAS_LPF_EN); in mtk_hdmi_pll_prepare() 122 mtk_hdmi_phy_set_bits(hdmi_phy, HDMI_CON1, RG_HDMITX_PLL_TXDIV_EN); in mtk_hdmi_pll_prepare() 129 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_unprepare() local 131 mtk_hdmi_phy_clear_bits(hdmi_phy, HDMI_CON1, RG_HDMITX_PLL_TXDIV_EN); in mtk_hdmi_pll_unprepare() [all …]
|
| D | phy-mtk-hdmi.h | 26 void (*hdmi_phy_enable_tmds)(struct mtk_hdmi_phy *hdmi_phy); 27 void (*hdmi_phy_disable_tmds)(struct mtk_hdmi_phy *hdmi_phy); 45 void mtk_hdmi_phy_clear_bits(struct mtk_hdmi_phy *hdmi_phy, u32 offset, 47 void mtk_hdmi_phy_set_bits(struct mtk_hdmi_phy *hdmi_phy, u32 offset, 49 void mtk_hdmi_phy_mask(struct mtk_hdmi_phy *hdmi_phy, u32 offset,
|
| /kernel/linux/linux-6.6/drivers/phy/mediatek/ |
| D | phy-mtk-hdmi.c | 27 struct mtk_hdmi_phy *hdmi_phy = phy_get_drvdata(phy); in mtk_hdmi_phy_power_on() local 30 ret = clk_prepare_enable(hdmi_phy->pll); in mtk_hdmi_phy_power_on() 34 hdmi_phy->conf->hdmi_phy_enable_tmds(hdmi_phy); in mtk_hdmi_phy_power_on() 40 struct mtk_hdmi_phy *hdmi_phy = phy_get_drvdata(phy); in mtk_hdmi_phy_power_off() local 42 hdmi_phy->conf->hdmi_phy_disable_tmds(hdmi_phy); in mtk_hdmi_phy_power_off() 43 clk_disable_unprepare(hdmi_phy->pll); in mtk_hdmi_phy_power_off() 50 struct mtk_hdmi_phy *hdmi_phy = phy_get_drvdata(phy); in mtk_hdmi_phy_configure() local 52 if (hdmi_phy->conf->hdmi_phy_configure) in mtk_hdmi_phy_configure() 53 return hdmi_phy->conf->hdmi_phy_configure(phy, opts); in mtk_hdmi_phy_configure() 59 mtk_hdmi_phy_dev_get_ops(const struct mtk_hdmi_phy *hdmi_phy) in mtk_hdmi_phy_dev_get_ops() argument [all …]
|
| D | phy-mtk-hdmi-mt8195.c | 20 static void mtk_hdmi_ana_fifo_en(struct mtk_hdmi_phy *hdmi_phy) in mtk_hdmi_ana_fifo_en() argument 23 mtk_phy_set_bits(hdmi_phy->regs + HDMI_ANA_CTL, REG_ANA_HDMI20_FIFO_EN); in mtk_hdmi_ana_fifo_en() 27 mtk_phy_tmds_clk_ratio(struct mtk_hdmi_phy *hdmi_phy, bool enable) in mtk_phy_tmds_clk_ratio() argument 29 void __iomem *regs = hdmi_phy->regs; in mtk_phy_tmds_clk_ratio() 31 mtk_hdmi_ana_fifo_en(hdmi_phy); in mtk_phy_tmds_clk_ratio() 44 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_sel_src() local 45 void __iomem *regs = hdmi_phy->regs; in mtk_hdmi_pll_sel_src() 56 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_perf() local 57 void __iomem *regs = hdmi_phy->regs; in mtk_hdmi_pll_perf() 89 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_set_hw() local [all …]
|
| D | phy-mtk-hdmi-mt8173.c | 89 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_prepare() local 90 void __iomem *base = hdmi_phy->regs; in mtk_hdmi_pll_prepare() 107 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_unprepare() local 108 void __iomem *base = hdmi_phy->regs; in mtk_hdmi_pll_unprepare() 124 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_round_rate() local 126 hdmi_phy->pll_rate = rate; in mtk_hdmi_pll_round_rate() 138 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_set_rate() local 139 void __iomem *base = hdmi_phy->regs; in mtk_hdmi_pll_set_rate() 146 dev_dbg(hdmi_phy->dev, "%s: %lu Hz, parent: %lu Hz\n", __func__, in mtk_hdmi_pll_set_rate() 182 hdmi_ibias = hdmi_phy->ibias; in mtk_hdmi_pll_set_rate() [all …]
|
| D | phy-mtk-hdmi-mt2701.c | 52 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_prepare() local 53 void __iomem *base = hdmi_phy->regs; in mtk_hdmi_pll_prepare() 74 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_unprepare() local 75 void __iomem *base = hdmi_phy->regs; in mtk_hdmi_pll_unprepare() 102 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_set_rate() local 103 void __iomem *base = hdmi_phy->regs; in mtk_hdmi_pll_set_rate() 138 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); in mtk_hdmi_pll_recalc_rate() local 142 tmp = readl(hdmi_phy->regs + HDMI_CON6); in mtk_hdmi_pll_recalc_rate() 159 tmp = readl(hdmi_phy->regs + HDMI_CON2); in mtk_hdmi_pll_recalc_rate() 177 static void mtk_hdmi_phy_enable_tmds(struct mtk_hdmi_phy *hdmi_phy) in mtk_hdmi_phy_enable_tmds() argument [all …]
|
| D | phy-mtk-hdmi.h | 24 void (*hdmi_phy_enable_tmds)(struct mtk_hdmi_phy *hdmi_phy); 25 void (*hdmi_phy_disable_tmds)(struct mtk_hdmi_phy *hdmi_phy);
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/msm/hdmi/ |
| D | hdmi.h | 22 struct hdmi_phy; 58 struct hdmi_phy *phy; 145 void (*powerup)(struct hdmi_phy *phy, unsigned long int pixclock); 146 void (*powerdown)(struct hdmi_phy *phy); 158 struct hdmi_phy { struct 167 static inline void hdmi_phy_write(struct hdmi_phy *phy, u32 reg, u32 data) in hdmi_phy_write() argument 172 static inline u32 hdmi_phy_read(struct hdmi_phy *phy, u32 reg) in hdmi_phy_read() 177 int msm_hdmi_phy_resource_enable(struct hdmi_phy *phy); 178 void msm_hdmi_phy_resource_disable(struct hdmi_phy *phy); 179 void msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock); [all …]
|
| D | hdmi_phy.c | 11 static int msm_hdmi_phy_resource_init(struct hdmi_phy *phy) in msm_hdmi_phy_resource_init() 55 int msm_hdmi_phy_resource_enable(struct hdmi_phy *phy) in msm_hdmi_phy_resource_enable() 79 void msm_hdmi_phy_resource_disable(struct hdmi_phy *phy) in msm_hdmi_phy_resource_disable() 93 void msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock) in msm_hdmi_phy_powerup() 101 void msm_hdmi_phy_powerdown(struct hdmi_phy *phy) in msm_hdmi_phy_powerdown() 137 struct hdmi_phy *phy; in msm_hdmi_phy_probe() 148 phy->mmio = msm_ioremap(pdev, "hdmi_phy"); in msm_hdmi_phy_probe()
|
| D | hdmi_phy_8x74.c | 9 static void hdmi_phy_8x74_powerup(struct hdmi_phy *phy, in hdmi_phy_8x74_powerup() 22 static void hdmi_phy_8x74_powerdown(struct hdmi_phy *phy) in hdmi_phy_8x74_powerdown()
|
| D | hdmi_phy_8960.c | 9 static void hdmi_phy_8960_powerup(struct hdmi_phy *phy, in hdmi_phy_8960_powerup() 28 static void hdmi_phy_8960_powerdown(struct hdmi_phy *phy) in hdmi_phy_8960_powerdown()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/msm/hdmi/ |
| D | hdmi.h | 22 struct hdmi_phy; 58 struct hdmi_phy *phy; 146 void (*powerup)(struct hdmi_phy *phy, unsigned long int pixclock); 147 void (*powerdown)(struct hdmi_phy *phy); 159 struct hdmi_phy { struct 168 static inline void hdmi_phy_write(struct hdmi_phy *phy, u32 reg, u32 data) in hdmi_phy_write() argument 173 static inline u32 hdmi_phy_read(struct hdmi_phy *phy, u32 reg) in hdmi_phy_read() 178 int msm_hdmi_phy_resource_enable(struct hdmi_phy *phy); 179 void msm_hdmi_phy_resource_disable(struct hdmi_phy *phy); 180 void msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock); [all …]
|
| D | hdmi_phy.c | 10 static int msm_hdmi_phy_resource_init(struct hdmi_phy *phy) in msm_hdmi_phy_resource_init() 61 int msm_hdmi_phy_resource_enable(struct hdmi_phy *phy) in msm_hdmi_phy_resource_enable() 86 void msm_hdmi_phy_resource_disable(struct hdmi_phy *phy) in msm_hdmi_phy_resource_disable() 101 void msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock) in msm_hdmi_phy_powerup() 109 void msm_hdmi_phy_powerdown(struct hdmi_phy *phy) in msm_hdmi_phy_powerdown() 145 struct hdmi_phy *phy; in msm_hdmi_phy_probe() 156 phy->mmio = msm_ioremap(pdev, "hdmi_phy", "HDMI_PHY"); in msm_hdmi_phy_probe()
|
| D | hdmi_phy_8x74.c | 9 static void hdmi_phy_8x74_powerup(struct hdmi_phy *phy, in hdmi_phy_8x74_powerup() 22 static void hdmi_phy_8x74_powerdown(struct hdmi_phy *phy) in hdmi_phy_8x74_powerdown()
|
| D | hdmi_phy_8960.c | 9 static void hdmi_phy_8960_powerup(struct hdmi_phy *phy, in hdmi_phy_8960_powerup() 28 static void hdmi_phy_8960_powerdown(struct hdmi_phy *phy) in hdmi_phy_8960_powerdown()
|
| D | hdmi_phy_8x60.c | 11 static void hdmi_phy_8x60_powerup(struct hdmi_phy *phy, in hdmi_phy_8x60_powerup() 95 static void hdmi_phy_8x60_powerdown(struct hdmi_phy *phy) in hdmi_phy_8x60_powerdown()
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/msm/ |
| D | hdmi.txt | 43 * "hdmi_phy" 83 phys = <&hdmi_phy>; 84 phy-names = "hdmi_phy"; 87 hdmi_phy: phy@4a00400 { 89 reg-names = "hdmi_phy",
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/phy/ |
| D | phy-rockchip-inno-hdmi.txt | 24 hdmi_phy: hdmi-phy@12030000 { 31 clock-output-names = "hdmi_phy"; 40 phys = <&hdmi_phy>;
|
| D | qcom,hdmi-phy-other.yaml | 26 - const: hdmi_phy 113 hdmi_phy: phy@4a00400 { 115 reg-names = "hdmi_phy",
|
| D | qcom,hdmi-phy-qmp.yaml | 28 - const: hdmi_phy 81 "hdmi_phy";
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/phy/ |
| D | phy-rockchip-inno-hdmi.txt | 24 hdmi_phy: hdmi-phy@12030000 { 31 clock-output-names = "hdmi_phy"; 40 phys = <&hdmi_phy>;
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/display/msm/ |
| D | hdmi.yaml | 50 - hdmi_phy 179 phys = <&hdmi_phy>; 210 phys = <&hdmi_phy>;
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/mediatek/ |
| D | mediatek,hdmi.txt | 83 hdmi_phy: hdmi-phy@10209100 { 114 phys = <&hdmi_phy>; 118 assigned-clock-parents = <&hdmi_phy>;
|