* [PATCH v2 0/2] Add PHY-dp bindings
@ 2024-05-10 11:04 Liankun Yang
2024-05-10 11:04 ` [PATCH v2 1/2] Add write DP phyd register from parse dts Liankun Yang
` (2 more replies)
0 siblings, 3 replies; 16+ messages in thread
From: Liankun Yang @ 2024-05-10 11:04 UTC (permalink / raw)
To: chunkuang.hu, p.zabel, airlied, daniel, maarten.lankhorst,
mripard, tzimmermann, robh+dt, krzysztof.kozlowski+dt, conor+dt,
chunfeng.yun, vkoul, kishon, matthias.bgg,
angelogioacchino.delregno, jitao.shi, mac.shen, liankun.yang,
Project_Global_Chrome_Upstream_Group
Cc: dri-devel, linux-mediatek, devicetree, linux-arm-kernel,
linux-kernel, linux-phy
Update write DP phyd register and add phy-dp bindings.
Liankun Yang (2):
Add write DP phyd register from parse dts
Add dp PHY dt-bindings
.../display/mediatek/mediatek.phy-dp.yaml | 45 +++++++++++++++++++
drivers/phy/mediatek/phy-mtk-dp.c | 37 +++++++++++++++
2 files changed, 82 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml
--
2.18.0
^ permalink raw reply [flat|nested] 16+ messages in thread* [PATCH v2 1/2] Add write DP phyd register from parse dts 2024-05-10 11:04 [PATCH v2 0/2] Add PHY-dp bindings Liankun Yang @ 2024-05-10 11:04 ` Liankun Yang 2024-05-13 6:38 ` Krzysztof Kozlowski 2024-05-13 13:11 ` AngeloGioacchino Del Regno 2024-05-10 11:04 ` [PATCH v2 2/2] Add dp PHY dt-bindings Liankun Yang 2024-05-10 11:27 ` [PATCH v2 0/2] Add PHY-dp bindings Jani Nikula 2 siblings, 2 replies; 16+ messages in thread From: Liankun Yang @ 2024-05-10 11:04 UTC (permalink / raw) To: chunkuang.hu, p.zabel, airlied, daniel, maarten.lankhorst, mripard, tzimmermann, robh+dt, krzysztof.kozlowski+dt, conor+dt, chunfeng.yun, vkoul, kishon, matthias.bgg, angelogioacchino.delregno, jitao.shi, mac.shen, liankun.yang, Project_Global_Chrome_Upstream_Group Cc: dri-devel, linux-mediatek, devicetree, linux-arm-kernel, linux-kernel, linux-phy During the testing phase, screen flickering is observed when using displayport for screen casting. Relevant SSC register parameters are set in dts to address the screen flickering issue effectively and improve compatibility with different devices by adjusting the SSC gear. Obtaining the DPTX node, parsing the dts to obtain PHY register address and value can adapt to settings of different manufacturers projects. Changeds in v2: - Optimized method of writing to DP PHY register https://patchwork.kernel.org/project/linux-mediatek/patch/ 20240403040517.3279-1-liankun.yang@mediatek.com/ Signed-off-by: Liankun Yang <liankun.yang@mediatek.com> --- drivers/phy/mediatek/phy-mtk-dp.c | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/drivers/phy/mediatek/phy-mtk-dp.c b/drivers/phy/mediatek/phy-mtk-dp.c index d7024a144335..ce78112d5938 100644 --- a/drivers/phy/mediatek/phy-mtk-dp.c +++ b/drivers/phy/mediatek/phy-mtk-dp.c @@ -28,6 +28,10 @@ #define MTK_DP_PHY_DIG_SW_RST (PHY_OFFSET + 0x38) #define DP_GLB_SW_RST_PHYD BIT(0) +#define MTK_DP_PHY_DIG_GLB_DA_REG_14 (PHY_OFFSET + 0xD8) +#define XTP_GLB_TXPLL_SSC_DELTA_RBR_DEFAULT GENMASK(15, 0) +#define XTP_GLB_TXPLL_SSC_DELTA_HBR_DEFAULT GENMASK(31, 16) + #define MTK_DP_LANE0_DRIVING_PARAM_3 (PHY_OFFSET + 0x138) #define MTK_DP_LANE1_DRIVING_PARAM_3 (PHY_OFFSET + 0x238) #define MTK_DP_LANE2_DRIVING_PARAM_3 (PHY_OFFSET + 0x338) @@ -78,10 +82,39 @@ #define DRIVING_PARAM_8_DEFAULT (XTP_LN_TX_LCTXCP1_SW2_PRE1_DEFAULT | \ XTP_LN_TX_LCTXCP1_SW3_PRE0_DEFAULT) +#define SSC_SETTING "dp-ssc-setting" +#define RG_XTP_GLB_TXPLL_SSC_DELTA_HBR "ssc-delta-hbr" + struct mtk_dp_phy { struct regmap *regs; + struct device *dev; }; +static int mtk_dp_set_ssc_config(struct phy *phy, struct mtk_dp_phy *dp_phy) +{ + int ret; + u32 read_value = 0, reg_mask = 0; + struct device_node *ssc_node = NULL; + + ssc_node = of_find_node_by_name(dp_phy->dev->of_node, SSC_SETTING); + if (!ssc_node) { + dev_err(&phy->dev, "SSC node is NULL\n"); + return -ENODEV; + } + + ret = of_property_read_u32(ssc_node, RG_XTP_GLB_TXPLL_SSC_DELTA_HBR, &read_value); + if (ret < 0 || !read_value) { + dev_err(&phy->dev, "Read SSC vlaue fail!\n"); + return -EINVAL; + } + read_value |= read_value << 16; + reg_mask |= XTP_GLB_TXPLL_SSC_DELTA_HBR_DEFAULT; + + regmap_update_bits(dp_phy->regs, MTK_DP_PHY_DIG_GLB_DA_REG_14, reg_mask, read_value); + + return 0; +} + static int mtk_dp_phy_init(struct phy *phy) { struct mtk_dp_phy *dp_phy = phy_get_drvdata(phy); @@ -137,6 +170,8 @@ static int mtk_dp_phy_configure(struct phy *phy, union phy_configure_opts *opts) regmap_update_bits(dp_phy->regs, MTK_DP_PHY_DIG_PLL_CTL_1, TPLL_SSC_EN, opts->dp.ssc ? TPLL_SSC_EN : 0); + mtk_dp_set_ssc_config(phy, dp_phy); + return 0; } @@ -186,6 +221,8 @@ static int mtk_dp_phy_probe(struct platform_device *pdev) if (!dev->of_node) phy_create_lookup(phy, "dp", dev_name(dev)); + dp_phy->dev = dev; + return 0; } -- 2.18.0 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH v2 1/2] Add write DP phyd register from parse dts 2024-05-10 11:04 ` [PATCH v2 1/2] Add write DP phyd register from parse dts Liankun Yang @ 2024-05-13 6:38 ` Krzysztof Kozlowski 2024-05-13 14:21 ` LIANKUN YANG (杨连坤) 2024-05-13 13:11 ` AngeloGioacchino Del Regno 1 sibling, 1 reply; 16+ messages in thread From: Krzysztof Kozlowski @ 2024-05-13 6:38 UTC (permalink / raw) To: Liankun Yang, chunkuang.hu, p.zabel, airlied, daniel, maarten.lankhorst, mripard, tzimmermann, robh+dt, krzysztof.kozlowski+dt, conor+dt, chunfeng.yun, vkoul, kishon, matthias.bgg, angelogioacchino.delregno, jitao.shi, mac.shen, Project_Global_Chrome_Upstream_Group Cc: dri-devel, linux-mediatek, devicetree, linux-arm-kernel, linux-kernel, linux-phy On 10/05/2024 13:04, Liankun Yang wrote: > During the testing phase, screen flickering is observed when > using displayport for screen casting. Relevant SSC register parameters > are set in dts to address the screen flickering issue effectively and > improve compatibility with different devices by adjusting the SSC gear. > > Obtaining the DPTX node, parsing the dts to obtain PHY register address > and value can adapt to settings of different manufacturers projects. > > Changeds in v2: > - Optimized method of writing to DP PHY register > https://patchwork.kernel.org/project/linux-mediatek/patch/ > 20240403040517.3279-1-liankun.yang@mediatek.com/ > > Signed-off-by: Liankun Yang <liankun.yang@mediatek.com> > --- > drivers/phy/mediatek/phy-mtk-dp.c | 37 +++++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/drivers/phy/mediatek/phy-mtk-dp.c b/drivers/phy/mediatek/phy-mtk-dp.c > index d7024a144335..ce78112d5938 100644 > --- a/drivers/phy/mediatek/phy-mtk-dp.c > +++ b/drivers/phy/mediatek/phy-mtk-dp.c > @@ -28,6 +28,10 @@ > #define MTK_DP_PHY_DIG_SW_RST (PHY_OFFSET + 0x38) > #define DP_GLB_SW_RST_PHYD BIT(0) > > +#define MTK_DP_PHY_DIG_GLB_DA_REG_14 (PHY_OFFSET + 0xD8) > +#define XTP_GLB_TXPLL_SSC_DELTA_RBR_DEFAULT GENMASK(15, 0) > +#define XTP_GLB_TXPLL_SSC_DELTA_HBR_DEFAULT GENMASK(31, 16) > + > #define MTK_DP_LANE0_DRIVING_PARAM_3 (PHY_OFFSET + 0x138) > #define MTK_DP_LANE1_DRIVING_PARAM_3 (PHY_OFFSET + 0x238) > #define MTK_DP_LANE2_DRIVING_PARAM_3 (PHY_OFFSET + 0x338) > @@ -78,10 +82,39 @@ > #define DRIVING_PARAM_8_DEFAULT (XTP_LN_TX_LCTXCP1_SW2_PRE1_DEFAULT | \ > XTP_LN_TX_LCTXCP1_SW3_PRE0_DEFAULT) > > +#define SSC_SETTING "dp-ssc-setting" > +#define RG_XTP_GLB_TXPLL_SSC_DELTA_HBR "ssc-delta-hbr" > + > struct mtk_dp_phy { > struct regmap *regs; > + struct device *dev; > }; > > +static int mtk_dp_set_ssc_config(struct phy *phy, struct mtk_dp_phy *dp_phy) > +{ > + int ret; > + u32 read_value = 0, reg_mask = 0; > + struct device_node *ssc_node = NULL; > + > + ssc_node = of_find_node_by_name(dp_phy->dev->of_node, SSC_SETTING); No, really. Node name can change. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 1/2] Add write DP phyd register from parse dts 2024-05-13 6:38 ` Krzysztof Kozlowski @ 2024-05-13 14:21 ` LIANKUN YANG (杨连坤) 0 siblings, 0 replies; 16+ messages in thread From: LIANKUN YANG (杨连坤) @ 2024-05-13 14:21 UTC (permalink / raw) To: robh+dt@kernel.org, krzk@kernel.org, Chunfeng Yun (云春峰), chunkuang.hu@kernel.org, Mac Shen (沈俊), tzimmermann@suse.de, mripard@kernel.org, Jitao Shi (石记涛), daniel@ffwll.ch, p.zabel@pengutronix.de, maarten.lankhorst@linux.intel.com, conor+dt@kernel.org, kishon@kernel.org, airlied@gmail.com, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, matthias.bgg@gmail.com, Project_Global_Chrome_Upstream_Group, angelogioacchino.delregno@collabora.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org On Mon, 2024-05-13 at 08:38 +0200, Krzysztof Kozlowski wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > On 10/05/2024 13:04, Liankun Yang wrote: > > During the testing phase, screen flickering is observed when > > using displayport for screen casting. Relevant SSC register > parameters > > are set in dts to address the screen flickering issue effectively > and > > improve compatibility with different devices by adjusting the SSC > gear. > > > > Obtaining the DPTX node, parsing the dts to obtain PHY register > address > > and value can adapt to settings of different manufacturers > projects. > > > > Changeds in v2: > > - Optimized method of writing to DP PHY register > > https://patchwork.kernel.org/project/linux-mediatek/patch/ > > 20240403040517.3279-1-liankun.yang@mediatek.com/ > > > > Signed-off-by: Liankun Yang <liankun.yang@mediatek.com> > > --- > > drivers/phy/mediatek/phy-mtk-dp.c | 37 > +++++++++++++++++++++++++++++++ > > 1 file changed, 37 insertions(+) > > > > diff --git a/drivers/phy/mediatek/phy-mtk-dp.c > b/drivers/phy/mediatek/phy-mtk-dp.c > > index d7024a144335..ce78112d5938 100644 > > --- a/drivers/phy/mediatek/phy-mtk-dp.c > > +++ b/drivers/phy/mediatek/phy-mtk-dp.c > > @@ -28,6 +28,10 @@ > > #define MTK_DP_PHY_DIG_SW_RST(PHY_OFFSET + 0x38) > > #define DP_GLB_SW_RST_PHYDBIT(0) > > > > +#define MTK_DP_PHY_DIG_GLB_DA_REG_14(PHY_OFFSET + 0xD8) > > +#define XTP_GLB_TXPLL_SSC_DELTA_RBR_DEFAULTGENMASK(15, 0) > > +#define XTP_GLB_TXPLL_SSC_DELTA_HBR_DEFAULTGENMASK(31, 16) > > + > > #define MTK_DP_LANE0_DRIVING_PARAM_3(PHY_OFFSET + 0x138) > > #define MTK_DP_LANE1_DRIVING_PARAM_3(PHY_OFFSET + 0x238) > > #define MTK_DP_LANE2_DRIVING_PARAM_3(PHY_OFFSET + 0x338) > > @@ -78,10 +82,39 @@ > > #define DRIVING_PARAM_8_DEFAULT(XTP_LN_TX_LCTXCP1_SW2_PRE1_DEFAULT > | \ > > XTP_LN_TX_LCTXCP1_SW3_PRE0_DEFAULT) > > > > +#define SSC_SETTING"dp-ssc-setting" > > +#define RG_XTP_GLB_TXPLL_SSC_DELTA_HBR"ssc-delta-hbr" > > + > > struct mtk_dp_phy { > > struct regmap *regs; > > +struct device *dev; > > }; > > > > +static int mtk_dp_set_ssc_config(struct phy *phy, struct > mtk_dp_phy *dp_phy) > > +{ > > +int ret; > > +u32 read_value = 0, reg_mask = 0; > > +struct device_node *ssc_node = NULL; > > + > > +ssc_node = of_find_node_by_name(dp_phy->dev->of_node, > SSC_SETTING); > > No, really. Node name can change. > > Best regards, > Krzysztof > Thank you for your comment. I will change the node name. Best regards. Liankun yang ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 1/2] Add write DP phyd register from parse dts 2024-05-10 11:04 ` [PATCH v2 1/2] Add write DP phyd register from parse dts Liankun Yang 2024-05-13 6:38 ` Krzysztof Kozlowski @ 2024-05-13 13:11 ` AngeloGioacchino Del Regno 2024-05-13 14:26 ` LIANKUN YANG (杨连坤) 1 sibling, 1 reply; 16+ messages in thread From: AngeloGioacchino Del Regno @ 2024-05-13 13:11 UTC (permalink / raw) To: Liankun Yang, chunkuang.hu, p.zabel, airlied, daniel, maarten.lankhorst, mripard, tzimmermann, robh+dt, krzysztof.kozlowski+dt, conor+dt, chunfeng.yun, vkoul, kishon, matthias.bgg, jitao.shi, mac.shen, Project_Global_Chrome_Upstream_Group Cc: dri-devel, linux-mediatek, devicetree, linux-arm-kernel, linux-kernel, linux-phy Il 10/05/24 13:04, Liankun Yang ha scritto: > During the testing phase, screen flickering is observed when > using displayport for screen casting. Relevant SSC register parameters > are set in dts to address the screen flickering issue effectively and > improve compatibility with different devices by adjusting the SSC gear. > > Obtaining the DPTX node, parsing the dts to obtain PHY register address > and value can adapt to settings of different manufacturers projects. > > Changeds in v2: > - Optimized method of writing to DP PHY register > https://patchwork.kernel.org/project/linux-mediatek/patch/ > 20240403040517.3279-1-liankun.yang@mediatek.com/ > > Signed-off-by: Liankun Yang <liankun.yang@mediatek.com> There's no devicetree support in this driver - infact, it's being probed by mtk-dp as a platform device. You keep sending untested stuff. Fourth time in a row. Please, TEST YOUR COMMITS upstream before sending! Regards, Angelo > --- > drivers/phy/mediatek/phy-mtk-dp.c | 37 +++++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/drivers/phy/mediatek/phy-mtk-dp.c b/drivers/phy/mediatek/phy-mtk-dp.c > index d7024a144335..ce78112d5938 100644 > --- a/drivers/phy/mediatek/phy-mtk-dp.c > +++ b/drivers/phy/mediatek/phy-mtk-dp.c > @@ -28,6 +28,10 @@ > #define MTK_DP_PHY_DIG_SW_RST (PHY_OFFSET + 0x38) > #define DP_GLB_SW_RST_PHYD BIT(0) > > +#define MTK_DP_PHY_DIG_GLB_DA_REG_14 (PHY_OFFSET + 0xD8) > +#define XTP_GLB_TXPLL_SSC_DELTA_RBR_DEFAULT GENMASK(15, 0) > +#define XTP_GLB_TXPLL_SSC_DELTA_HBR_DEFAULT GENMASK(31, 16) > + > #define MTK_DP_LANE0_DRIVING_PARAM_3 (PHY_OFFSET + 0x138) > #define MTK_DP_LANE1_DRIVING_PARAM_3 (PHY_OFFSET + 0x238) > #define MTK_DP_LANE2_DRIVING_PARAM_3 (PHY_OFFSET + 0x338) > @@ -78,10 +82,39 @@ > #define DRIVING_PARAM_8_DEFAULT (XTP_LN_TX_LCTXCP1_SW2_PRE1_DEFAULT | \ > XTP_LN_TX_LCTXCP1_SW3_PRE0_DEFAULT) > > +#define SSC_SETTING "dp-ssc-setting" > +#define RG_XTP_GLB_TXPLL_SSC_DELTA_HBR "ssc-delta-hbr" > + > struct mtk_dp_phy { > struct regmap *regs; > + struct device *dev; > }; > > +static int mtk_dp_set_ssc_config(struct phy *phy, struct mtk_dp_phy *dp_phy) > +{ > + int ret; > + u32 read_value = 0, reg_mask = 0; > + struct device_node *ssc_node = NULL; > + > + ssc_node = of_find_node_by_name(dp_phy->dev->of_node, SSC_SETTING); > + if (!ssc_node) { > + dev_err(&phy->dev, "SSC node is NULL\n"); > + return -ENODEV; > + } > + > + ret = of_property_read_u32(ssc_node, RG_XTP_GLB_TXPLL_SSC_DELTA_HBR, &read_value); > + if (ret < 0 || !read_value) { > + dev_err(&phy->dev, "Read SSC vlaue fail!\n"); > + return -EINVAL; > + } > + read_value |= read_value << 16; > + reg_mask |= XTP_GLB_TXPLL_SSC_DELTA_HBR_DEFAULT; > + > + regmap_update_bits(dp_phy->regs, MTK_DP_PHY_DIG_GLB_DA_REG_14, reg_mask, read_value); > + > + return 0; > +} > + > static int mtk_dp_phy_init(struct phy *phy) > { > struct mtk_dp_phy *dp_phy = phy_get_drvdata(phy); > @@ -137,6 +170,8 @@ static int mtk_dp_phy_configure(struct phy *phy, union phy_configure_opts *opts) > regmap_update_bits(dp_phy->regs, MTK_DP_PHY_DIG_PLL_CTL_1, > TPLL_SSC_EN, opts->dp.ssc ? TPLL_SSC_EN : 0); > > + mtk_dp_set_ssc_config(phy, dp_phy); > + > return 0; > } > > @@ -186,6 +221,8 @@ static int mtk_dp_phy_probe(struct platform_device *pdev) > if (!dev->of_node) > phy_create_lookup(phy, "dp", dev_name(dev)); > > + dp_phy->dev = dev; > + > return 0; > } > ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 1/2] Add write DP phyd register from parse dts 2024-05-13 13:11 ` AngeloGioacchino Del Regno @ 2024-05-13 14:26 ` LIANKUN YANG (杨连坤) 0 siblings, 0 replies; 16+ messages in thread From: LIANKUN YANG (杨连坤) @ 2024-05-13 14:26 UTC (permalink / raw) To: robh+dt@kernel.org, Mac Shen (沈俊), Chunfeng Yun (云春峰), chunkuang.hu@kernel.org, tzimmermann@suse.de, mripard@kernel.org, Jitao Shi (石记涛), daniel@ffwll.ch, p.zabel@pengutronix.de, maarten.lankhorst@linux.intel.com, conor+dt@kernel.org, kishon@kernel.org, airlied@gmail.com, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, matthias.bgg@gmail.com, Project_Global_Chrome_Upstream_Group, angelogioacchino.delregno@collabora.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org On Mon, 2024-05-13 at 15:11 +0200, AngeloGioacchino Del Regno wrote: > Il 10/05/24 13:04, Liankun Yang ha scritto: > > During the testing phase, screen flickering is observed when > > using displayport for screen casting. Relevant SSC register > > parameters > > are set in dts to address the screen flickering issue effectively > > and > > improve compatibility with different devices by adjusting the SSC > > gear. > > > > Obtaining the DPTX node, parsing the dts to obtain PHY register > > address > > and value can adapt to settings of different manufacturers > > projects. > > > > Changeds in v2: > > - Optimized method of writing to DP PHY register > > https://urldefense.com/v3/__https://patchwork.kernel.org/project/linux-mediatek/patch/__;!!CTRNKA9wMg0ARbw!jYnU_tl6YGTUcFparAOcusS3u-H9G26yso2BwugBLoeMOanZudxtqRpEYV1Zy6phDjCQH2amG0KdSaR0s7EZGycYxzaBhBvtuw$ > > > > 20240403040517.3279-1-liankun.yang@mediatek.com/ > > > > Signed-off-by: Liankun Yang <liankun.yang@mediatek.com> > > There's no devicetree support in this driver - infact, it's being > probed by > mtk-dp as a platform device. > > You keep sending untested stuff. Fourth time in a row. > > Please, TEST YOUR COMMITS upstream before sending! > > Regards, > Angelo > Thank you for your comment. It's being probed by mtk-dp as a platform device. But through dts analysis is a better solution. I TEST COMMITS upstream before sending in the next version. Best Regards, Liankun Yang > > --- > > drivers/phy/mediatek/phy-mtk-dp.c | 37 > > +++++++++++++++++++++++++++++++ > > 1 file changed, 37 insertions(+) > > > > diff --git a/drivers/phy/mediatek/phy-mtk-dp.c > > b/drivers/phy/mediatek/phy-mtk-dp.c > > index d7024a144335..ce78112d5938 100644 > > --- a/drivers/phy/mediatek/phy-mtk-dp.c > > +++ b/drivers/phy/mediatek/phy-mtk-dp.c > > @@ -28,6 +28,10 @@ > > #define MTK_DP_PHY_DIG_SW_RST (PHY_OFFSET + 0x38) > > #define DP_GLB_SW_RST_PHYD BIT(0) > > > > +#define MTK_DP_PHY_DIG_GLB_DA_REG_14 (PHY_OFFSET + 0xD8) > > +#define XTP_GLB_TXPLL_SSC_DELTA_RBR_DEFAULT GENMASK(15, 0) > > +#define XTP_GLB_TXPLL_SSC_DELTA_HBR_DEFAULT GENMASK(31, 16) > > + > > #define MTK_DP_LANE0_DRIVING_PARAM_3 (PHY_OFFSET + > > 0x138) > > #define MTK_DP_LANE1_DRIVING_PARAM_3 (PHY_OFFSET + > > 0x238) > > #define MTK_DP_LANE2_DRIVING_PARAM_3 (PHY_OFFSET + > > 0x338) > > @@ -78,10 +82,39 @@ > > #define DRIVING_PARAM_8_DEFAULT (XTP_LN_TX_LCTXCP1_SW2_PRE1_DEF > > AULT | \ > > XTP_LN_TX_LCTXCP1_SW3_PRE0_DEFAULT) > > > > +#define SSC_SETTING "dp-ssc-setting" > > +#define RG_XTP_GLB_TXPLL_SSC_DELTA_HBR "ssc-delta-hbr" > > + > > struct mtk_dp_phy { > > struct regmap *regs; > > + struct device *dev; > > }; > > > > +static int mtk_dp_set_ssc_config(struct phy *phy, struct > > mtk_dp_phy *dp_phy) > > +{ > > + int ret; > > + u32 read_value = 0, reg_mask = 0; > > + struct device_node *ssc_node = NULL; > > + > > + ssc_node = of_find_node_by_name(dp_phy->dev->of_node, > > SSC_SETTING); > > + if (!ssc_node) { > > + dev_err(&phy->dev, "SSC node is NULL\n"); > > + return -ENODEV; > > + } > > + > > + ret = of_property_read_u32(ssc_node, > > RG_XTP_GLB_TXPLL_SSC_DELTA_HBR, &read_value); > > + if (ret < 0 || !read_value) { > > + dev_err(&phy->dev, "Read SSC vlaue fail!\n"); > > + return -EINVAL; > > + } > > + read_value |= read_value << 16; > > + reg_mask |= XTP_GLB_TXPLL_SSC_DELTA_HBR_DEFAULT; > > + > > + regmap_update_bits(dp_phy->regs, MTK_DP_PHY_DIG_GLB_DA_REG_14, > > reg_mask, read_value); > > + > > + return 0; > > +} > > + > > static int mtk_dp_phy_init(struct phy *phy) > > { > > struct mtk_dp_phy *dp_phy = phy_get_drvdata(phy); > > @@ -137,6 +170,8 @@ static int mtk_dp_phy_configure(struct phy > > *phy, union phy_configure_opts *opts) > > regmap_update_bits(dp_phy->regs, MTK_DP_PHY_DIG_PLL_CTL_1, > > TPLL_SSC_EN, opts->dp.ssc ? TPLL_SSC_EN : > > 0); > > > > + mtk_dp_set_ssc_config(phy, dp_phy); > > + > > return 0; > > } > > > > @@ -186,6 +221,8 @@ static int mtk_dp_phy_probe(struct > > platform_device *pdev) > > if (!dev->of_node) > > phy_create_lookup(phy, "dp", dev_name(dev)); > > > > + dp_phy->dev = dev; > > + > > return 0; > > } > > > > ^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH v2 2/2] Add dp PHY dt-bindings 2024-05-10 11:04 [PATCH v2 0/2] Add PHY-dp bindings Liankun Yang 2024-05-10 11:04 ` [PATCH v2 1/2] Add write DP phyd register from parse dts Liankun Yang @ 2024-05-10 11:04 ` Liankun Yang 2024-05-10 12:48 ` Rob Herring 2024-05-13 6:37 ` Krzysztof Kozlowski 2024-05-10 11:27 ` [PATCH v2 0/2] Add PHY-dp bindings Jani Nikula 2 siblings, 2 replies; 16+ messages in thread From: Liankun Yang @ 2024-05-10 11:04 UTC (permalink / raw) To: chunkuang.hu, p.zabel, airlied, daniel, maarten.lankhorst, mripard, tzimmermann, robh+dt, krzysztof.kozlowski+dt, conor+dt, chunfeng.yun, vkoul, kishon, matthias.bgg, angelogioacchino.delregno, jitao.shi, mac.shen, liankun.yang, Project_Global_Chrome_Upstream_Group Cc: dri-devel, linux-mediatek, devicetree, linux-arm-kernel, linux-kernel, linux-phy Add dp PHY dt-bindings. Changeds in v2: - Add dp PHY dt-bindings. https://patchwork.kernel.org/project/linux-mediatek/patch/ 20240403040517.3279-1-liankun.yang@mediatek.com/ Signed-off-by: Liankun Yang <liankun.yang@mediatek.com> --- .../display/mediatek/mediatek.phy-dp.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml index 000000000000..476bc329363f --- /dev/null +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/mediatek/mediatek,phy-dp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Display Port Controller + +maintainers: + - Mac shen <mac.shen@mediatek.com> + - Liankun yang <Liankun.yang@mediatek.com> + +description: | + Special settings need to be configured by MediaTek DP based on the actual + hardware situation. For example, when using a certain brand's docking + station for display projection, garbage may appear. Adjusting the specific + ssc value can resolve this issue. + +properties: + status: disabled + description: | + Since the DP driver has already registered the DP PHY device + through mtk_dp_register_phy(), so the status is disabled. + + dp-ssc-setting: + - ssc-delta-hbr + description: Specific values are set based on the actual HW situation. + +required: + - status + - dp-ssc-setting + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + phy-dp@1c600000 { + status = "disabled"; + dp-ssc-setting { + ssc-delta-hbr = <0x01fe>; + } + }; + }; -- 2.18.0 ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH v2 2/2] Add dp PHY dt-bindings 2024-05-10 11:04 ` [PATCH v2 2/2] Add dp PHY dt-bindings Liankun Yang @ 2024-05-10 12:48 ` Rob Herring 2024-05-13 14:06 ` LIANKUN YANG (杨连坤) 2024-05-13 6:37 ` Krzysztof Kozlowski 1 sibling, 1 reply; 16+ messages in thread From: Rob Herring @ 2024-05-10 12:48 UTC (permalink / raw) To: Liankun Yang Cc: chunkuang.hu, p.zabel, airlied, daniel, maarten.lankhorst, mripard, tzimmermann, krzysztof.kozlowski+dt, conor+dt, chunfeng.yun, vkoul, kishon, matthias.bgg, angelogioacchino.delregno, jitao.shi, mac.shen, Project_Global_Chrome_Upstream_Group, dri-devel, linux-mediatek, devicetree, linux-arm-kernel, linux-kernel, linux-phy On Fri, May 10, 2024 at 07:04:15PM +0800, Liankun Yang wrote: > Add dp PHY dt-bindings. > > Changeds in v2: > - Add dp PHY dt-bindings. > https://patchwork.kernel.org/project/linux-mediatek/patch/ > 20240403040517.3279-1-liankun.yang@mediatek.com/ > > Signed-off-by: Liankun Yang <liankun.yang@mediatek.com> > --- > .../display/mediatek/mediatek.phy-dp.yaml | 45 +++++++++++++++++++ > 1 file changed, 45 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml > > diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml git refuses to apply your patch because 'new file mode 100644' is missing. You must have edited the patch or something. If it did apply, you'd notice it fails testing. > index 000000000000..476bc329363f > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml > @@ -0,0 +1,45 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/mediatek/mediatek,phy-dp.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek Display Port Controller > + > +maintainers: > + - Mac shen <mac.shen@mediatek.com> > + - Liankun yang <Liankun.yang@mediatek.com> > + > +description: | > + Special settings need to be configured by MediaTek DP based on the actual > + hardware situation. For example, when using a certain brand's docking > + station for display projection, garbage may appear. Adjusting the specific > + ssc value can resolve this issue. > + > +properties: > + status: disabled > + description: | > + Since the DP driver has already registered the DP PHY device > + through mtk_dp_register_phy(), so the status is disabled. What!? Please show me any other binding that has 'status' in it. Go read up on how to write bindings and what goes in them. > + > + dp-ssc-setting: > + - ssc-delta-hbr > + description: Specific values are set based on the actual HW situation. > + > +required: > + - status > + - dp-ssc-setting > + > +examples: > + - | > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + phy-dp@1c600000 { > + status = "disabled"; > + dp-ssc-setting { > + ssc-delta-hbr = <0x01fe>; > + } > + }; > + }; > -- > 2.18.0 > ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 2/2] Add dp PHY dt-bindings 2024-05-10 12:48 ` Rob Herring @ 2024-05-13 14:06 ` LIANKUN YANG (杨连坤) 0 siblings, 0 replies; 16+ messages in thread From: LIANKUN YANG (杨连坤) @ 2024-05-13 14:06 UTC (permalink / raw) To: robh@kernel.org Cc: linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Mac Shen (沈俊), Chunfeng Yun (云春峰), chunkuang.hu@kernel.org, devicetree@vger.kernel.org, tzimmermann@suse.de, mripard@kernel.org, Jitao Shi (石记涛), daniel@ffwll.ch, p.zabel@pengutronix.de, maarten.lankhorst@linux.intel.com, conor+dt@kernel.org, kishon@kernel.org, airlied@gmail.com, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, matthias.bgg@gmail.com, linux-phy@lists.infradead.org, Project_Global_Chrome_Upstream_Group, angelogioacchino.delregno@collabora.com On Fri, 2024-05-10 at 07:48 -0500, Rob Herring wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > On Fri, May 10, 2024 at 07:04:15PM +0800, Liankun Yang wrote: > > Add dp PHY dt-bindings. > > > > Changeds in v2: > > - Add dp PHY dt-bindings. > > https://patchwork.kernel.org/project/linux-mediatek/patch/ > > 20240403040517.3279-1-liankun.yang@mediatek.com/ > > > > Signed-off-by: Liankun Yang <liankun.yang@mediatek.com> > > --- > > .../display/mediatek/mediatek.phy-dp.yaml | 45 > +++++++++++++++++++ > > 1 file changed, 45 insertions(+) > > create mode 100644 > Documentation/devicetree/bindings/display/mediatek/mediatek.phy- > dp.yaml > > > > diff --git > a/Documentation/devicetree/bindings/display/mediatek/mediatek.phy- > dp.yaml > b/Documentation/devicetree/bindings/display/mediatek/mediatek.phy- > dp.yaml > > git refuses to apply your patch because 'new file mode 100644' is > missing. You must have edited the patch or something. > > If it did apply, you'd notice it fails testing. > After checking patch,one warning is new file is 'new file mode 100644'. I will pay attention to the problem in a later patch. > > index 000000000000..476bc329363f > > --- /dev/null > > +++ > b/Documentation/devicetree/bindings/display/mediatek/mediatek.phy- > dp.yaml > > @@ -0,0 +1,45 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: > http://devicetree.org/schemas/display/mediatek/mediatek,phy-dp.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: MediaTek Display Port Controller > > + > > +maintainers: > > + - Mac shen <mac.shen@mediatek.com> > > + - Liankun yang <Liankun.yang@mediatek.com> > > + > > +description: | > > + Special settings need to be configured by MediaTek DP based on > the actual > > + hardware situation. For example, when using a certain brand's > docking > > + station for display projection, garbage may appear. Adjusting > the specific > > + ssc value can resolve this issue. > > + > > +properties: > > + status: disabled > > + description: | > > + Since the DP driver has already registered the DP PHY device > > + through mtk_dp_register_phy(), so the status is disabled. > > What!? Please show me any other binding that has 'status' in it. Go > read > up on how to write bindings and what goes in them. > Sorry,thank you for your comments. I immediately learn how to write bindings. > > + > > + dp-ssc-setting: > > + - ssc-delta-hbr > > + description: Specific values are set based on the actual HW > situation. > > + > > +required: > > + - status > > + - dp-ssc-setting > > + > > +examples: > > + - | > > + soc { > > + #address-cells = <2>; > > + #size-cells = <2>; > > + > > + phy-dp@1c600000 { > > + status = "disabled"; > > + dp-ssc-setting { > > + ssc-delta-hbr = <0x01fe>; > > + } > > + }; > > + }; > > -- > > 2.18.0 > > Best regards, Liankun yang ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 2/2] Add dp PHY dt-bindings 2024-05-10 11:04 ` [PATCH v2 2/2] Add dp PHY dt-bindings Liankun Yang 2024-05-10 12:48 ` Rob Herring @ 2024-05-13 6:37 ` Krzysztof Kozlowski 2024-05-13 14:15 ` LIANKUN YANG (杨连坤) 1 sibling, 1 reply; 16+ messages in thread From: Krzysztof Kozlowski @ 2024-05-13 6:37 UTC (permalink / raw) To: Liankun Yang, chunkuang.hu, p.zabel, airlied, daniel, maarten.lankhorst, mripard, tzimmermann, robh+dt, krzysztof.kozlowski+dt, conor+dt, chunfeng.yun, vkoul, kishon, matthias.bgg, angelogioacchino.delregno, jitao.shi, mac.shen, Project_Global_Chrome_Upstream_Group Cc: dri-devel, linux-mediatek, devicetree, linux-arm-kernel, linux-kernel, linux-phy On 10/05/2024 13:04, Liankun Yang wrote: > Add dp PHY dt-bindings. This tells me nothing. Read submitting patches. > > Changeds in v2: This does goes to changelog, not commit log. > - Add dp PHY dt-bindings. > https://patchwork.kernel.org/project/linux-mediatek/patch/ > 20240403040517.3279-1-liankun.yang@mediatek.com/ > > Signed-off-by: Liankun Yang <liankun.yang@mediatek.com> This patch looks terrible... there's so many wrong things I don't even know where to start. Please use subject prefixes matching the subsystem. You can get them for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching. For bindings, the preferred subjects are explained here: https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters Please run scripts/checkpatch.pl and fix reported warnings. Then please run `scripts/checkpatch.pl --strict` and (probably) fix more warnings. Some warnings can be ignored, especially from --strict run, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear. > --- > .../display/mediatek/mediatek.phy-dp.yaml | 45 +++++++++++++++++++ > 1 file changed, 45 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml Wrong filename > > diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml > index 000000000000..476bc329363f > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml > @@ -0,0 +1,45 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/mediatek/mediatek,phy-dp.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek Display Port Controller > + > +maintainers: > + - Mac shen <mac.shen@mediatek.com> > + - Liankun yang <Liankun.yang@mediatek.com> > + > +description: | > + Special settings need to be configured by MediaTek DP based on the actual > + hardware situation. For example, when using a certain brand's docking > + station for display projection, garbage may appear. Adjusting the specific > + ssc value can resolve this issue. > + > +properties: > + status: disabled I think you nicely shocked Rob already. Please reach internally to Mediatek or collaborating companies to get basic training and instructions how to write patches and bindings. Otherwise it is waste of our time. Mediatek is not a small company so there is no excuse in sending such poor quality patches, which would be EASILY spotted by the MOST BASIC review. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 2/2] Add dp PHY dt-bindings 2024-05-13 6:37 ` Krzysztof Kozlowski @ 2024-05-13 14:15 ` LIANKUN YANG (杨连坤) 2024-05-13 14:17 ` Krzysztof Kozlowski 0 siblings, 1 reply; 16+ messages in thread From: LIANKUN YANG (杨连坤) @ 2024-05-13 14:15 UTC (permalink / raw) To: robh+dt@kernel.org, krzk@kernel.org, Chunfeng Yun (云春峰), chunkuang.hu@kernel.org, Mac Shen (沈俊), tzimmermann@suse.de, mripard@kernel.org, Jitao Shi (石记涛), daniel@ffwll.ch, p.zabel@pengutronix.de, maarten.lankhorst@linux.intel.com, conor+dt@kernel.org, kishon@kernel.org, airlied@gmail.com, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, matthias.bgg@gmail.com, Project_Global_Chrome_Upstream_Group, angelogioacchino.delregno@collabora.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org On Mon, 2024-05-13 at 08:37 +0200, Krzysztof Kozlowski wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > On 10/05/2024 13:04, Liankun Yang wrote: > > Add dp PHY dt-bindings. > > This tells me nothing. Read submitting patches. > > > > > Changeds in v2: > > This does goes to changelog, not commit log. > > > - Add dp PHY dt-bindings. > > https://patchwork.kernel.org/project/linux-mediatek/patch/ > > 20240403040517.3279-1-liankun.yang@mediatek.com/ > > > > Signed-off-by: Liankun Yang <liankun.yang@mediatek.com> > > This patch looks terrible... there's so many wrong things I don't > even > know where to start. > > Please use subject prefixes matching the subsystem. You can get them > for > example with `git log --oneline -- DIRECTORY_OR_FILE` on the > directory > your patch is touching. For bindings, the preferred subjects are > explained here: > https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters > > Please run scripts/checkpatch.pl and fix reported warnings. Then > please > run `scripts/checkpatch.pl --strict` and (probably) fix more > warnings. > Some warnings can be ignored, especially from --strict run, but the > code > here looks like it needs a fix. Feel free to get in touch if the > warning > is not clear. > > > > --- > > .../display/mediatek/mediatek.phy-dp.yaml | 45 > +++++++++++++++++++ > > 1 file changed, 45 insertions(+) > > create mode 100644 > Documentation/devicetree/bindings/display/mediatek/mediatek.phy- > dp.yaml > > Wrong filename > > > > > diff --git > a/Documentation/devicetree/bindings/display/mediatek/mediatek.phy- > dp.yaml > b/Documentation/devicetree/bindings/display/mediatek/mediatek.phy- > dp.yaml > > index 000000000000..476bc329363f > > --- /dev/null > > +++ > b/Documentation/devicetree/bindings/display/mediatek/mediatek.phy- > dp.yaml > > @@ -0,0 +1,45 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: > http://devicetree.org/schemas/display/mediatek/mediatek,phy-dp.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: MediaTek Display Port Controller > > + > > +maintainers: > > + - Mac shen <mac.shen@mediatek.com> > > + - Liankun yang <Liankun.yang@mediatek.com> > > + > > +description: | > > + Special settings need to be configured by MediaTek DP based on > the actual > > + hardware situation. For example, when using a certain brand's > docking > > + station for display projection, garbage may appear. Adjusting > the specific > > + ssc value can resolve this issue. > > + > > +properties: > > + status: disabled > > I think you nicely shocked Rob already. > > Please reach internally to Mediatek or collaborating companies to get > basic training and instructions how to write patches and bindings. > > Otherwise it is waste of our time. Mediatek is not a small company so > there is no excuse in sending such poor quality patches, which would > be > EASILY spotted by the MOST BASIC review. > > Best regards, > Krzysztof > I used scripts/checkpatch.pl and fix reported error and warnings. I am resumbmitting bindings by the MOST BASIC review. Best regards, Liankun Yang ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 2/2] Add dp PHY dt-bindings 2024-05-13 14:15 ` LIANKUN YANG (杨连坤) @ 2024-05-13 14:17 ` Krzysztof Kozlowski 2024-05-13 14:20 ` Krzysztof Kozlowski 0 siblings, 1 reply; 16+ messages in thread From: Krzysztof Kozlowski @ 2024-05-13 14:17 UTC (permalink / raw) To: LIANKUN YANG (杨连坤), robh+dt@kernel.org, Chunfeng Yun (云春峰), chunkuang.hu@kernel.org, Mac Shen (沈俊), tzimmermann@suse.de, mripard@kernel.org, Jitao Shi (石记涛), daniel@ffwll.ch, p.zabel@pengutronix.de, maarten.lankhorst@linux.intel.com, conor+dt@kernel.org, kishon@kernel.org, airlied@gmail.com, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, matthias.bgg@gmail.com, Project_Global_Chrome_Upstream_Group, angelogioacchino.delregno@collabora.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org On 13/05/2024 16:15, LIANKUN YANG (杨连坤) wrote: > On Mon, 2024-05-13 at 08:37 +0200, Krzysztof Kozlowski wrote: >> >> External email : Please do not click links or open attachments until >> you have verified the sender or the content. >> On 10/05/2024 13:04, Liankun Yang wrote: >>> Add dp PHY dt-bindings. >> >> This tells me nothing. Read submitting patches. >> >>> >>> Changeds in v2: >> >> This does goes to changelog, not commit log. >> >>> - Add dp PHY dt-bindings. >>> https://patchwork.kernel.org/project/linux-mediatek/patch/ >>> 20240403040517.3279-1-liankun.yang@mediatek.com/ >>> >>> Signed-off-by: Liankun Yang <liankun.yang@mediatek.com> >> >> This patch looks terrible... there's so many wrong things I don't >> even >> know where to start. >> >> Please use subject prefixes matching the subsystem. You can get them >> for >> example with `git log --oneline -- DIRECTORY_OR_FILE` on the >> directory >> your patch is touching. For bindings, the preferred subjects are >> explained here: >> > https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters >> >> Please run scripts/checkpatch.pl and fix reported warnings. Then >> please >> run `scripts/checkpatch.pl --strict` and (probably) fix more >> warnings. >> Some warnings can be ignored, especially from --strict run, but the >> code >> here looks like it needs a fix. Feel free to get in touch if the >> warning >> is not clear. >> >> >>> --- >>> .../display/mediatek/mediatek.phy-dp.yaml | 45 >> +++++++++++++++++++ >>> 1 file changed, 45 insertions(+) >>> create mode 100644 >> Documentation/devicetree/bindings/display/mediatek/mediatek.phy- >> dp.yaml >> >> Wrong filename >> >>> >>> diff --git >> a/Documentation/devicetree/bindings/display/mediatek/mediatek.phy- >> dp.yaml >> b/Documentation/devicetree/bindings/display/mediatek/mediatek.phy- >> dp.yaml >>> index 000000000000..476bc329363f >>> --- /dev/null >>> +++ >> b/Documentation/devicetree/bindings/display/mediatek/mediatek.phy- >> dp.yaml >>> @@ -0,0 +1,45 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: >> http://devicetree.org/schemas/display/mediatek/mediatek,phy-dp.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: MediaTek Display Port Controller >>> + >>> +maintainers: >>> + - Mac shen <mac.shen@mediatek.com> >>> + - Liankun yang <Liankun.yang@mediatek.com> >>> + >>> +description: | >>> + Special settings need to be configured by MediaTek DP based on >> the actual >>> + hardware situation. For example, when using a certain brand's >> docking >>> + station for display projection, garbage may appear. Adjusting >> the specific >>> + ssc value can resolve this issue. >>> + >>> +properties: >>> + status: disabled >> >> I think you nicely shocked Rob already. >> >> Please reach internally to Mediatek or collaborating companies to get >> basic training and instructions how to write patches and bindings. >> >> Otherwise it is waste of our time. Mediatek is not a small company so >> there is no excuse in sending such poor quality patches, which would >> be >> EASILY spotted by the MOST BASIC review. >> >> Best regards, >> Krzysztof >> > > I used scripts/checkpatch.pl and fix reported error and warnings. > I am resumbmitting bindings by the MOST BASIC review. No, please wait. Who did the basic review of your patch? Who from Mediatek? Upstream is not a workhorse to use instead of your resources for the absolute basic stuff... This feels such exploiting. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 2/2] Add dp PHY dt-bindings 2024-05-13 14:17 ` Krzysztof Kozlowski @ 2024-05-13 14:20 ` Krzysztof Kozlowski 2024-05-14 4:43 ` LIANKUN YANG (杨连坤) 0 siblings, 1 reply; 16+ messages in thread From: Krzysztof Kozlowski @ 2024-05-13 14:20 UTC (permalink / raw) To: LIANKUN YANG (杨连坤), robh+dt@kernel.org, Chunfeng Yun (云春峰), chunkuang.hu@kernel.org, Mac Shen (沈俊), tzimmermann@suse.de, mripard@kernel.org, Jitao Shi (石记涛), daniel@ffwll.ch, p.zabel@pengutronix.de, maarten.lankhorst@linux.intel.com, conor+dt@kernel.org, kishon@kernel.org, airlied@gmail.com, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, matthias.bgg@gmail.com, Project_Global_Chrome_Upstream_Group, angelogioacchino.delregno@collabora.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org On 13/05/2024 16:17, Krzysztof Kozlowski wrote: >>> dp.yaml >>>> @@ -0,0 +1,45 @@ >>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>>> +%YAML 1.2 >>>> +--- >>>> +$id: >>> http://devicetree.org/schemas/display/mediatek/mediatek,phy-dp.yaml# >>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>> + >>>> +title: MediaTek Display Port Controller >>>> + >>>> +maintainers: >>>> + - Mac shen <mac.shen@mediatek.com> >>>> + - Liankun yang <Liankun.yang@mediatek.com> >>>> + >>>> +description: | >>>> + Special settings need to be configured by MediaTek DP based on >>> the actual >>>> + hardware situation. For example, when using a certain brand's >>> docking >>>> + station for display projection, garbage may appear. Adjusting >>> the specific >>>> + ssc value can resolve this issue. >>>> + >>>> +properties: >>>> + status: disabled >>> >>> I think you nicely shocked Rob already. >>> >>> Please reach internally to Mediatek or collaborating companies to get >>> basic training and instructions how to write patches and bindings. >>> >>> Otherwise it is waste of our time. Mediatek is not a small company so >>> there is no excuse in sending such poor quality patches, which would >>> be >>> EASILY spotted by the MOST BASIC review. >>> >>> Best regards, >>> Krzysztof >>> >> >> I used scripts/checkpatch.pl and fix reported error and warnings. >> I am resumbmitting bindings by the MOST BASIC review. > > No, please wait. Who did the basic review of your patch? Who from > Mediatek? Upstream is not a workhorse to use instead of your resources > for the absolute basic stuff... This feels such exploiting. > After reading AngeloGioacchino's response, it looks even worse... This was never tested... So not only exploiting but also feels like wasting our time. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 2/2] Add dp PHY dt-bindings 2024-05-13 14:20 ` Krzysztof Kozlowski @ 2024-05-14 4:43 ` LIANKUN YANG (杨连坤) 0 siblings, 0 replies; 16+ messages in thread From: LIANKUN YANG (杨连坤) @ 2024-05-14 4:43 UTC (permalink / raw) To: robh+dt@kernel.org, Mac Shen (沈俊), Chunfeng Yun (云春峰), chunkuang.hu@kernel.org, krzk@kernel.org, tzimmermann@suse.de, Jitao Shi (石记涛), mripard@kernel.org, daniel@ffwll.ch, p.zabel@pengutronix.de, maarten.lankhorst@linux.intel.com, conor+dt@kernel.org, kishon@kernel.org, airlied@gmail.com, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, matthias.bgg@gmail.com, Project_Global_Chrome_Upstream_Group, angelogioacchino.delregno@collabora.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org On Mon, 2024-05-13 at 16:20 +0200, Krzysztof Kozlowski wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > On 13/05/2024 16:17, Krzysztof Kozlowski wrote: > >>> dp.yaml > >>>> @@ -0,0 +1,45 @@ > >>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > >>>> +%YAML 1.2 > >>>> +--- > >>>> +$id: > >>> > http://devicetree.org/schemas/display/mediatek/mediatek,phy-dp.yaml# > >>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >>>> + > >>>> +title: MediaTek Display Port Controller > >>>> + > >>>> +maintainers: > >>>> + - Mac shen <mac.shen@mediatek.com> > >>>> + - Liankun yang <Liankun.yang@mediatek.com> > >>>> + > >>>> +description: | > >>>> + Special settings need to be configured by MediaTek DP based > on > >>> the actual > >>>> + hardware situation. For example, when using a certain brand's > >>> docking > >>>> + station for display projection, garbage may appear. Adjusting > >>> the specific > >>>> + ssc value can resolve this issue. > >>>> + > >>>> +properties: > >>>> + status: disabled > >>> > >>> I think you nicely shocked Rob already. > >>> > >>> Please reach internally to Mediatek or collaborating companies to > get > >>> basic training and instructions how to write patches and > bindings. > >>> > >>> Otherwise it is waste of our time. Mediatek is not a small > company so > >>> there is no excuse in sending such poor quality patches, which > would > >>> be > >>> EASILY spotted by the MOST BASIC review. > >>> > >>> Best regards, > >>> Krzysztof > >>> > >> > >> I used scripts/checkpatch.pl and fix reported error and warnings. > >> I am resumbmitting bindings by the MOST BASIC review. > > > > No, please wait. Who did the basic review of your patch? Who from > > Mediatek? Upstream is not a workhorse to use instead of your > resources > > for the absolute basic stuff... This feels such exploiting. > > > > After reading AngeloGioacchino's response, it looks even worse... > This > was never tested... > > So not only exploiting but also feels like wasting our time. > > Best regards, > Krzysztof > Sorry,I guess I didn't make myself clear. I am resumbmitting bindings after the MOST BASIC internal review. Thank you for your comment. Best Regards, Liankun Yang ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 0/2] Add PHY-dp bindings 2024-05-10 11:04 [PATCH v2 0/2] Add PHY-dp bindings Liankun Yang 2024-05-10 11:04 ` [PATCH v2 1/2] Add write DP phyd register from parse dts Liankun Yang 2024-05-10 11:04 ` [PATCH v2 2/2] Add dp PHY dt-bindings Liankun Yang @ 2024-05-10 11:27 ` Jani Nikula 2024-05-13 13:57 ` LIANKUN YANG (杨连坤) 2 siblings, 1 reply; 16+ messages in thread From: Jani Nikula @ 2024-05-10 11:27 UTC (permalink / raw) To: Liankun Yang, chunkuang.hu, p.zabel, airlied, daniel, maarten.lankhorst, mripard, tzimmermann, robh+dt, krzysztof.kozlowski+dt, conor+dt, chunfeng.yun, vkoul, kishon, matthias.bgg, angelogioacchino.delregno, jitao.shi, mac.shen, liankun.yang, Project_Global_Chrome_Upstream_Group Cc: dri-devel, linux-mediatek, devicetree, linux-arm-kernel, linux-kernel, linux-phy On Fri, 10 May 2024, Liankun Yang <liankun.yang@mediatek.com> wrote: > Update write DP phyd register and add phy-dp bindings. > > Liankun Yang (2): > Add write DP phyd register from parse dts > Add dp PHY dt-bindings Please use the proper subject prefix for the driver. git log suggests "phy: phy-mtk-dp:". Thanks, Jani. > > .../display/mediatek/mediatek.phy-dp.yaml | 45 +++++++++++++++++++ > drivers/phy/mediatek/phy-mtk-dp.c | 37 +++++++++++++++ > 2 files changed, 82 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek.phy-dp.yaml -- Jani Nikula, Intel ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH v2 0/2] Add PHY-dp bindings 2024-05-10 11:27 ` [PATCH v2 0/2] Add PHY-dp bindings Jani Nikula @ 2024-05-13 13:57 ` LIANKUN YANG (杨连坤) 0 siblings, 0 replies; 16+ messages in thread From: LIANKUN YANG (杨连坤) @ 2024-05-13 13:57 UTC (permalink / raw) To: robh+dt@kernel.org, Mac Shen (沈俊), Chunfeng Yun (云春峰), chunkuang.hu@kernel.org, tzimmermann@suse.de, mripard@kernel.org, Jitao Shi (石记涛), daniel@ffwll.ch, p.zabel@pengutronix.de, maarten.lankhorst@linux.intel.com, conor+dt@kernel.org, kishon@kernel.org, airlied@gmail.com, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, matthias.bgg@gmail.com, Project_Global_Chrome_Upstream_Group, angelogioacchino.delregno@collabora.com, jani.nikula@linux.intel.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org On Fri, 2024-05-10 at 14:27 +0300, Jani Nikula wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > On Fri, 10 May 2024, Liankun Yang <liankun.yang@mediatek.com> wrote: > > Update write DP phyd register and add phy-dp bindings. > > > > Liankun Yang (2): > > Add write DP phyd register from parse dts > > Add dp PHY dt-bindings > > Please use the proper subject prefix for the driver. git log suggests > "phy: phy-mtk-dp:". > > Thanks, > Jani. > > > > > > .../display/mediatek/mediatek.phy-dp.yaml | 45 > +++++++++++++++++++ > > drivers/phy/mediatek/phy-mtk-dp.c | 37 +++++++++++++++ > > 2 files changed, 82 insertions(+) > > create mode 100644 > Documentation/devicetree/bindings/display/mediatek/mediatek.phy- > dp.yaml > > -- > Jani Nikula, Intel Thank you for your comments. I will actively study and correct in the next version. Best Regards, Liankun Yang ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2024-05-14 4:43 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-05-10 11:04 [PATCH v2 0/2] Add PHY-dp bindings Liankun Yang 2024-05-10 11:04 ` [PATCH v2 1/2] Add write DP phyd register from parse dts Liankun Yang 2024-05-13 6:38 ` Krzysztof Kozlowski 2024-05-13 14:21 ` LIANKUN YANG (杨连坤) 2024-05-13 13:11 ` AngeloGioacchino Del Regno 2024-05-13 14:26 ` LIANKUN YANG (杨连坤) 2024-05-10 11:04 ` [PATCH v2 2/2] Add dp PHY dt-bindings Liankun Yang 2024-05-10 12:48 ` Rob Herring 2024-05-13 14:06 ` LIANKUN YANG (杨连坤) 2024-05-13 6:37 ` Krzysztof Kozlowski 2024-05-13 14:15 ` LIANKUN YANG (杨连坤) 2024-05-13 14:17 ` Krzysztof Kozlowski 2024-05-13 14:20 ` Krzysztof Kozlowski 2024-05-14 4:43 ` LIANKUN YANG (杨连坤) 2024-05-10 11:27 ` [PATCH v2 0/2] Add PHY-dp bindings Jani Nikula 2024-05-13 13:57 ` LIANKUN YANG (杨连坤)
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).