Add Type-C DP support for RK3399 EVB IND board
Subsystems (6)
PATCH v3 1/5 dt-bindings: phy: rockchip: rk3399-typec-phy: Support mode-switch
In reply to Chaoyi ChenFrom: Chaoyi Chen <[email protected]>
The RK3399 SoC integrates two USB/DP combo PHYs, each of which supports software-configurable pin mapping and DisplayPort lane assignment. These capabilities enable the PHY itself to handle both mode switching and orientation switching, based on the Type-C plug orientation and USB PD negotiation results.
While an external Type-C controller is still required to detect cable attachment and report USB PD events, the actual mode and orientation switching is performed internally by the PHY through software configuration. This allows the PHY to act as a Type-C multiplexer for both data role and DP altmode configuration.
To reflect this hardware design, this patch introduces a new "mode-switch" property for the dp-port node in the device tree bindings. This property indicates that the connected PHY is capable of handling Type-C mode switching itself.
---
Changes in v3:
- Add more descriptions to clarify the role of the PHY in switching.
Changes in v2:
- Reuse dp-port/usb3-port in rk3399-typec-phy binding.
.../devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml +6 -0
@@ -51,6 +51,12 @@ properties: '#phy-cells': const: 0 + mode-switch: + description: | + Indicates the PHY can handle altmode switching. In this case, + requires an external USB Type-C controller to report USB PD message. + type: boolean + port: $ref: /schemas/graph.yaml#/properties/port description: Connection to USB Type-C connector
Signature · 1 line
2.49.0
PATCH v3 2/5 phy: rockchip: phy-rockchip-typec: Add typec_mux/typec_switch support
In reply to Chaoyi ChenFrom: Chaoyi Chen <[email protected]>
This patch add support for Type-C Port Controller Manager. Each PHY will register typec_mux and typec_switch when external Type-C controller is present. Type-C events are handled by TCPM without extcon.
The extcon device should still be supported.
---
Changes in v2:
- Fix compile error when CONFIG_TYPEC is not enabled.
- Notify DP HPD state by USB/DP PHY.
drivers/phy/rockchip/phy-rockchip-typec.c | 403 +++++++++++++++++++++- 1 file changed, 387 insertions(+), 16 deletions(-)
drivers/phy/rockchip/phy-rockchip-typec.c +387 -16
@@ -47,6 +47,7 @@#include <linux/mutex.h> #include <linux/of.h> #include <linux/of_address.h> +#include <linux/of_graph.h> #include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/regmap.h>
@@ -54,6 +55,9 @@#include <linux/mfd/syscon.h> #include <linux/phy/phy.h> +#include <linux/usb/typec_dp.h> +#include <linux/usb/typec_mux.h> +#include <drm/drm_connector.h> #define CMN_SSM_BANDGAP (0x21 << 2)#define CMN_SSM_BIAS (0x22 << 2)
@@ -286,12 +290,23 @@#define RX_DIAG_SC2C_DELAY (0x81e1 << 2)#define PMA_LANE_CFG (0xc000 << 2) +#define PMA_LANE3_DP_LANE_SEL (x) (((x) & 0x3) << 14) +#define PMA_LANE3_INTERFACE_SEL (x) (((x) & 0x1) << 12) +#define PMA_LANE2_DP_LANE_SEL (x) (((x) & 0x3) << 10) +#define PMA_LANE2_INTERFACE_SEL (x) (((x) & 0x1) << 8) +#define PMA_LANE1_DP_LANE_SEL (x) (((x) & 0x3) << 6) +#define PMA_LANE1_INTERFACE_SEL (x) (((x) & 0x1) << 4) +#define PMA_LANE0_DP_LANE_SEL (x) (((x) & 0x3) << 2) +#define PMA_LANE0_INTERFACE_SEL (x) (((x) & 0x1) << 0)#define PIPE_CMN_CTRL1 (0xc001 << 2)#define PIPE_CMN_CTRL2 (0xc002 << 2)#define PIPE_COM_LOCK_CFG1 (0xc003 << 2)#define PIPE_COM_LOCK_CFG2 (0xc004 << 2)#define PIPE_RCV_DET_INH (0xc005 << 2)#define DP_MODE_CTL (0xc008 << 2) +#define PHY_DP_POWER_STATE_ACK_MASK GENMASK(7, 4) +#define PHY_DP_POWER_STATE_ACK_SHIFT 4 +#define PHY_DP_POWER_STATE_MASK GENMASK(3, 0)#define DP_CLK_CTL (0xc009 << 2)#define STS (0xc00F << 2)#define PHY_ISO_CMN_CTRL (0xc010 << 2)
@@ -327,8 +342,15 @@#define DP_MODE_A0 BIT(4)#define DP_MODE_A2 BIT(6) -#define DP_MODE_ENTER_A0 0xc101 -#define DP_MODE_ENTER_A2 0xc104 + +#define DP_MODE_MASK 0xf +#define DP_MODE_ENTER_A0 BIT(0) +#define DP_MODE_ENTER_A2 BIT(2) +#define DP_MODE_ENTER_A3 BIT(3) +#define DP_MODE_A0_ACK BIT(4) +#define DP_MODE_A2_ACK BIT(6) +#define DP_MODE_A3_ACK BIT(7) +#define DP_LINK_RESET_DEASSERTED BIT(8)#define PHY_MODE_SET_TIMEOUT 100000
@@ -340,6 +362,31 @@#define MODE_DFP_USB BIT(1)#define MODE_DFP_DP BIT(2) +enum phy_dp_lane_num { +PHY_DP_LANE_0 =0 , +PHY_DP_LANE_1 , +PHY_DP_LANE_2 , +PHY_DP_LANE_3 , +}; + +enum phy_pma_if { +PMA_IF_PIPE_PCS =0 , +PMA_IF_PHY_DP , +}; + +enum phy_typec_role { +TYPEC_PHY_USB =0 , +TYPEC_PHY_DP , +TYPEC_PHY_MAX , +}; + +enum phy_dp_power_state { +PHY_DP_POWER_STATE_A0 =0 , +PHY_DP_POWER_STATE_A1 , +PHY_DP_POWER_STATE_A2 , +PHY_DP_POWER_STATE_A3 , +}; +struct usb3phy_reg {u32 offset;u32 enable_bit;
@@ -372,18 +419,23 @@ struct rockchip_typec_phy {struct device *dev;void __iomem *base;struct extcon_dev *extcon; +struct fwnode_handle *connector_fwnode; +struct typec_mux_dev *mux; +struct typec_switch_dev *sw;struct regmap *grf_regs;struct clk *clk_core;struct clk *clk_ref;struct reset_control *uphy_rst;struct reset_control *pipe_rst;struct reset_control *tcphy_rst; +struct phy *phys[TYPEC_PHY_MAX ];const struct rockchip_usb3phy_port_cfg *port_cfgs;/* mutex to protect access to individual PHYs */ struct mutex lock;bool flip;u8 mode; +u8 new_mode; };struct phy_reg {
@@ -454,6 +506,99 @@ static const struct rockchip_usb3phy_port_cfg rk3399_usb3phy_port_cfgs[] = { {/* sentinel */ } }; +static int tcphy_cfg_usb3_to_usb2_only (struct rockchip_typec_phy *tcphy, +bool value); + +static int tcphy_dp_set_power_state (struct rockchip_typec_phy *tcphy, +enum phy_dp_power_state state) +{ +u32 ack, reg, sts =BIT (state); +int ret; + +/* +* Power state changes must not be requested until after the cmn_ready +* signal has gone active. +*/ + reg =readl (tcphy->base +PMA_CMN_CTRL1 ); +if (!(reg &CMN_READY )) { +dev_err (tcphy->dev,"cmn_ready in the inactive state\n" ); +return -EINVAL ; + } + + reg =readl (tcphy->base +DP_MODE_CTL ); + reg &= ~PHY_DP_POWER_STATE_MASK ; + reg |= sts; +writel (reg, tcphy->base +DP_MODE_CTL ); + + ret =readl_poll_timeout (tcphy->base +DP_MODE_CTL , + ack, (((ack &PHY_DP_POWER_STATE_ACK_MASK ) >> +PHY_DP_POWER_STATE_ACK_SHIFT ) == sts),10 , +PHY_MODE_SET_TIMEOUT ); +if (ret <0 ) { +dev_err (tcphy->dev,"failed to enter power state %d\n" , state); +return ret; + } + +return 0 ; +} + +/* +* For the TypeC PHY, the 4 lanes are mapping to the USB TypeC receptacle pins +* as follows: +* ------------------------------------------------------------------- +* PHY Lanes/Module Pins TypeC Receptacle Pins +* ------------------------------------------------------------------- +* Lane0 (tx_p/m_ln_0) TX1+/TX1- (pins A2/A3) +* Lane1 (tx_rx_p/m_ln_1) RX1+/RX1- (pins B11/B10) +* Lane2 (tx_rx_p/m_ln_2) RX2+/RX2- (pins A11/A10) +* Lane3 (tx_p/m_ln_3) TX2+/TX2- (pins B2/B3) +* ------------------------------------------------------------------- +* +* USB and DP lanes mapping to TypeC PHY lanes for each of pin assignment +* options (normal connector orientation) described in the VESA DisplayPort +* Alt Mode on USB TypeC Standard as follows: +* +* ---------------------------------------------------------------------- +* PHY Lanes A B C D E F +* ---------------------------------------------------------------------- +* 0 ML1 SSTX ML2 SSTX ML2 SSTX +* 1 ML3 SSRX ML3 SSRX ML3 SSRX +* 2 ML2 ML1 ML0 ML0 ML0 ML0 +* 3 ML0 ML0 ML1 ML1 ML1 ML1 +* ---------------------------------------------------------------------- +*/ +static void tcphy_set_lane_mapping (struct rockchip_typec_phy *tcphy,u8 mode) +{ +/* +* The PMA_LANE_CFG register is used to select whether a PMA lane +* is mapped for USB or PHY DP. The PMA_LANE_CFG register is +* configured based on a normal connector orientation. Logic in the +* PHY automatically handles the flipped connector case based on the +* setting of orientation of TypeC PHY. +*/ +if (mode ==MODE_DFP_DP ) { +/* This maps to VESA DP Alt Mode pin assignments C and E. */ +writel (PMA_LANE3_DP_LANE_SEL (PHY_DP_LANE_1 ) | +PMA_LANE3_INTERFACE_SEL (PMA_IF_PHY_DP ) | +PMA_LANE2_DP_LANE_SEL (PHY_DP_LANE_0 ) | +PMA_LANE2_INTERFACE_SEL (PMA_IF_PHY_DP ) | +PMA_LANE1_DP_LANE_SEL (PHY_DP_LANE_3 ) | +PMA_LANE1_INTERFACE_SEL (PMA_IF_PHY_DP ) | +PMA_LANE0_DP_LANE_SEL (PHY_DP_LANE_2 ) | +PMA_LANE0_INTERFACE_SEL (PMA_IF_PHY_DP ), + tcphy->base +PMA_LANE_CFG ); + }else { +/* This maps to VESA DP Alt Mode pin assignments D and F. */ +writel (PMA_LANE3_DP_LANE_SEL (PHY_DP_LANE_1 ) | +PMA_LANE3_INTERFACE_SEL (PMA_IF_PHY_DP ) | +PMA_LANE2_DP_LANE_SEL (PHY_DP_LANE_0 ) | +PMA_LANE2_INTERFACE_SEL (PMA_IF_PHY_DP ) | +PMA_LANE1_INTERFACE_SEL (PMA_IF_PIPE_PCS ) | +PMA_LANE0_INTERFACE_SEL (PMA_IF_PIPE_PCS ), + tcphy->base +PMA_LANE_CFG ); + } +} +static void tcphy_cfg_24m (struct rockchip_typec_phy *tcphy) {u32 i, rdata;
@@ -743,8 +888,10 @@ static int tcphy_phy_init(struct rockchip_typec_phy *tcphy, u8 mode)tcphy_dp_aux_set_flip (tcphy);tcphy_cfg_24m (tcphy); +tcphy_set_lane_mapping (tcphy, mode);if (mode ==MODE_DFP_DP ) { +tcphy_cfg_usb3_to_usb2_only (tcphy, true);tcphy_cfg_dp_pll (tcphy);for (i =0 ; i <4 ; i++)tcphy_dp_cfg_lane (tcphy, i);
@@ -768,7 +915,10 @@ static int tcphy_phy_init(struct rockchip_typec_phy *tcphy, u8 mode)writel (PIN_ASSIGN_D_F , tcphy->base +PMA_LANE_CFG ); } -writel (DP_MODE_ENTER_A2 , tcphy->base +DP_MODE_CTL ); + val =readl (tcphy->base +DP_MODE_CTL ); + val &= ~DP_MODE_MASK ; + val |=DP_MODE_ENTER_A2 |DP_LINK_RESET_DEASSERTED ; +writel (val, tcphy->base +DP_MODE_CTL );reset_control_deassert (tcphy->uphy_rst);
@@ -811,8 +961,9 @@ static int tcphy_get_mode(struct rockchip_typec_phy *tcphy)u8 mode;int ret, ufp, dp; +/* If extcon not exist, try to use tcpm mode */ if (!edev) -return MODE_DFP_USB ; +return tcphy->new_mode; ufp =extcon_get_state (edev,EXTCON_USB ); dp =extcon_get_state (edev,EXTCON_DISP_DP );
@@ -850,6 +1001,72 @@ static int tcphy_get_mode(struct rockchip_typec_phy *tcphy)return mode; } +#if IS_ENABLED (CONFIG_TYPEC ) +static int tcphy_orien_sw_set (struct typec_switch_dev *sw, +enum typec_orientation orien) +{ +struct rockchip_typec_phy *tcphy =typec_switch_get_drvdata (sw); + +mutex_lock (&tcphy->lock); + +if (orien ==TYPEC_ORIENTATION_NONE ) { + tcphy->new_mode =MODE_DISCONNECT ; + goto unlock_ret; + } + + tcphy->flip = (orien ==TYPEC_ORIENTATION_REVERSE ) ? true : false; + tcphy->new_mode =MODE_DFP_USB ; + +unlock_ret: +mutex_unlock (&tcphy->lock); +return 0 ; +} + +static void udphy_orien_switch_unregister (void *data) +{ +struct rockchip_typec_phy *tcphy = data; + +typec_switch_unregister (tcphy->sw); +} + +static int tcphy_setup_orien_switch (struct rockchip_typec_phy *tcphy) +{ +struct typec_switch_desc sw_desc = { }; +struct device_node *np; +int ret =0 ; + + np =of_get_child_by_name (tcphy->dev->of_node,"usb3-port" ); +if (!np) +return 0 ; + +if (!of_property_read_bool (np,"orientation-switch" )) + goto put_np; + + sw_desc.drvdata = tcphy; + sw_desc.fwnode =device_get_named_child_node (tcphy->dev,"usb3-port" ); + sw_desc.set = tcphy_orien_sw_set; + + tcphy->sw =typec_switch_register (tcphy->dev, &sw_desc); +if (IS_ERR (tcphy->sw)) { +dev_err (tcphy->dev,"Error register typec orientation switch: %ld\n" , +PTR_ERR (tcphy->sw)); + ret =PTR_ERR (tcphy->sw); + goto put_np; + } + + ret =devm_add_action_or_reset (tcphy->dev, udphy_orien_switch_unregister, tcphy); + +put_np: +of_node_put (np); +return ret; +} +#else +static int tcphy_setup_orien_switch (struct rockchip_typec_phy *tcphy) +{ +return 0 ; +} +#endif +static int tcphy_cfg_usb3_to_usb2_only (struct rockchip_typec_phy *tcphy,bool value) {
@@ -989,14 +1206,9 @@ static int rockchip_dp_phy_power_on(struct phy *phy)tcphy_dp_aux_calibration (tcphy); -writel (DP_MODE_ENTER_A0 , tcphy->base +DP_MODE_CTL ); - - ret =readx_poll_timeout (readl, tcphy->base +DP_MODE_CTL , - val, val &DP_MODE_A0 ,1000 , -PHY_MODE_SET_TIMEOUT ); -if (ret <0 ) { -writel (DP_MODE_ENTER_A2 , tcphy->base +DP_MODE_CTL ); -dev_err (tcphy->dev,"failed to wait TCPHY enter A0\n" ); + ret =tcphy_dp_set_power_state (tcphy,PHY_DP_POWER_STATE_A0 ); +if (ret) { +dev_err (tcphy->dev,"failed to enter A0 power state\n" ); goto power_on_finish; }
@@ -1013,6 +1225,7 @@ static int rockchip_dp_phy_power_on(struct phy *phy)static int rockchip_dp_phy_power_off (struct phy *phy) {struct rockchip_typec_phy *tcphy =phy_get_drvdata (phy); +int ret;mutex_lock (&tcphy->lock);
@@ -1021,7 +1234,11 @@ static int rockchip_dp_phy_power_off(struct phy *phy) tcphy->mode &= ~MODE_DFP_DP ; -writel (DP_MODE_ENTER_A2 , tcphy->base +DP_MODE_CTL ); + ret =tcphy_dp_set_power_state (tcphy,PHY_DP_POWER_STATE_A2 ); +if (ret) { +dev_err (tcphy->dev,"failed to enter A2 power state\n" ); + goto unlock; + }if (tcphy->mode ==MODE_DISCONNECT )tcphy_phy_deinit (tcphy);
@@ -1037,6 +1254,94 @@ static const struct phy_ops rockchip_dp_phy_ops = { .owner = THIS_MODULE, }; +#if IS_ENABLED (CONFIG_TYPEC ) +static int tcphy_typec_mux_set (struct typec_mux_dev *mux,struct typec_mux_state *state) +{ +struct rockchip_typec_phy *tcphy =typec_mux_get_drvdata (mux); +struct typec_displayport_data *data; +int hpd =0 ; + +mutex_lock (&tcphy->lock); + +switch (state->mode) { +case TYPEC_STATE_SAFE : + fallthrough; +case TYPEC_STATE_USB : + tcphy->new_mode =MODE_DFP_USB ; +phy_set_bus_width (tcphy->phys[TYPEC_PHY_DP ],0 ); +break ; +case TYPEC_DP_STATE_C : +case TYPEC_DP_STATE_E : + tcphy->new_mode =MODE_DFP_DP ; + data = state->data; + hpd = !!(data->status &DP_STATUS_HPD_STATE ); +phy_set_bus_width (tcphy->phys[TYPEC_PHY_DP ], hpd ?4 :0 ); +break ; +case TYPEC_DP_STATE_D : + tcphy->new_mode =MODE_DFP_DP |MODE_DFP_USB ; + data = state->data; + hpd = !!(data->status &DP_STATUS_HPD_STATE ); +phy_set_bus_width (tcphy->phys[TYPEC_PHY_DP ], hpd ?2 :0 ); +break ; +default : +break ; + } + +mutex_unlock (&tcphy->lock); + +if (state->alt && state->alt->svid ==USB_TYPEC_DP_SID ) +drm_connector_oob_hotplug_event (tcphy->connector_fwnode, + hpd ? connector_status_connected : + connector_status_disconnected); + +return 0 ; +} + +static void tcphy_typec_mux_unregister (void *data) +{ +struct rockchip_typec_phy *tcphy = data; + +typec_mux_unregister (tcphy->mux); +} + +static int tcphy_setup_typec_mux (struct rockchip_typec_phy *tcphy) +{ +struct typec_mux_desc mux_desc = {}; +struct device_node *np; +int ret =0 ; + + np =of_get_child_by_name (tcphy->dev->of_node,"dp-port" ); +if (!np) +return 0 ; + +if (!of_property_read_bool (np,"mode-switch" )) + goto put_np; + + mux_desc.drvdata = tcphy; + mux_desc.fwnode =device_get_named_child_node (tcphy->dev,"dp-port" ); + mux_desc.set = tcphy_typec_mux_set; + + tcphy->mux =typec_mux_register (tcphy->dev, &mux_desc); +if (IS_ERR (tcphy->mux)) { +dev_err (tcphy->dev,"Error register typec mux: %ld\n" , +PTR_ERR (tcphy->mux)); + ret =PTR_ERR (tcphy->mux); + goto put_np; + } + + ret =devm_add_action_or_reset (tcphy->dev, tcphy_typec_mux_unregister, tcphy); + +put_np: +of_node_put (np); +return ret; +} +#else +static int tcphy_setup_typec_mux (struct rockchip_typec_phy *tcphy) +{ +return 0 ; +} +#endif +static int tcphy_parse_dt (struct rockchip_typec_phy *tcphy,struct device *dev) {
@@ -1095,6 +1400,53 @@ static void typec_phy_pre_init(struct rockchip_typec_phy *tcphy) tcphy->mode =MODE_DISCONNECT ; } +static int typec_dp_lane_get (struct rockchip_typec_phy *tcphy) +{ +int dp_lanes; + +switch (tcphy->new_mode) { +case MODE_DFP_DP : + dp_lanes =4 ; +break ; +case MODE_DFP_DP |MODE_DFP_USB : + dp_lanes =2 ; +break ; +default : + dp_lanes =0 ; +break ; + } + +return dp_lanes; +} + +static void rockchip_dp_connector_fwnode_get (struct rockchip_typec_phy *tcphy) +{ +struct device *dev = tcphy->dev; +struct device_node *np = dev->of_node; +struct device_node *dp_port; +struct device_node *ep; +struct device_node *remote; + + dp_port =of_get_child_by_name (np,"dp-port" ); +if (!dp_port) +return ; + + ep =of_graph_get_endpoint_by_regs (dp_port,-1 ,1 );/* endpoint@1 */ +if (!ep) + goto put_dp_port; + + remote =of_graph_get_remote_port_parent (ep); +if (!remote) + goto put_ep; + + tcphy->connector_fwnode =fwnode_handle_get (of_fwnode_handle (remote)); + +put_ep: +of_node_put (ep); +put_dp_port: +of_node_put (dp_port); +} +static int rockchip_typec_phy_probe (struct platform_device *pdev) {struct device *dev = &pdev->dev;
@@ -1142,6 +1494,7 @@ static int rockchip_typec_phy_probe(struct platform_device *pdev)return ret; tcphy->dev = dev; + tcphy->new_mode =MODE_DFP_USB ;platform_set_drvdata (pdev, tcphy);mutex_init (&tcphy->lock);
@@ -1151,6 +1504,7 @@ static int rockchip_typec_phy_probe(struct platform_device *pdev)if (IS_ERR (tcphy->extcon)) {if (PTR_ERR (tcphy->extcon) == -ENODEV ) { tcphy->extcon =NULL ; +dev_info (dev,"extcon not exist, try to use typec mux\n" ); }else {if (PTR_ERR (tcphy->extcon) != -EPROBE_DEFER )dev_err (dev,"Invalid or missing extcon\n" );
@@ -1158,19 +1512,36 @@ static int rockchip_typec_phy_probe(struct platform_device *pdev) } } + ret =tcphy_setup_orien_switch (tcphy); +if (ret) +return ret; + + ret =tcphy_setup_typec_mux (tcphy); +if (ret) +return ret; + +rockchip_dp_connector_fwnode_get (tcphy); +pm_runtime_enable (dev);for_each_available_child_of_node (np, child_np) {struct phy *phy; -if (of_node_name_eq (child_np,"dp-port" )) +if (of_node_name_eq (child_np,"dp-port" )) { phy =devm_phy_create (dev, child_np, &rockchip_dp_phy_ops); -else if (of_node_name_eq (child_np,"usb3-port" )) +if (!IS_ERR (phy)) { + tcphy->phys[TYPEC_PHY_DP ] = phy; +phy_set_bus_width (phy,typec_dp_lane_get (tcphy)); + } + }else if (of_node_name_eq (child_np,"usb3-port" )) { phy =devm_phy_create (dev, child_np, &rockchip_usb3_phy_ops); -else +if (!IS_ERR (phy)) + tcphy->phys[TYPEC_PHY_USB ] = phy; + }else {continue ; + }if (IS_ERR (phy)) { dev_err(dev, "failed to create phy: %pOFn\n",
Signature · 1 line
2.49.0
v3 cover Add Type-C DP support for RK3399 EVB IND board
From: Chaoyi Chen <[email protected]>
This series focuses on adding Type-C DP support for USBDP PHY and DP driver. The USBDP PHY and DP will perceive the changes in cable status based on the USB PD and Type-C state machines provided by TCPM. Before this, the USBDP PHY and DP controller of RK3399 sensed cable state changes through extcon, and devices such as the RK3399 Gru-Chromebook rely on them. This series should not break them.
====
1. Altmode switching and orientation switching for USBDP PHY
For USB Type-C interfaces, an external Type-C controller chip assists by detecting cable attachment, determining plug orientation, and reporting USB PD message. The USB/DP combo PHY supports software configurable pin mapping and DisplayPort lane assignment. Based on these message, the combo PHY can perform both altmode switching and orientation switching via software.
The RK3399 EVB IND board has a Type-C interface DisplayPort. It use fusb302 chip as Type-C controller. The connection diagram is shown below:
fusb302 chip +---> USB2.0 PHY ----> DWC3 USB controller
|
+---> USB/DP PHY0 +--> CDN-DP controller
|
+--> DWC3 USB controller====
2. DP HPD event notify
The RK3399 has two USB/DP combo PHY and one CDN-DP controller. And the CDN-DP can be switched to output to one of the PHYs.
USB/DP PHY0 ---+
| <----> CDN-DP controller
USB/DP PHY1 ---+
BTW, one of the important things to do is to implement extcon-like notifications. I found include/drm/bridge/aux-bridge.h , but if the aux-bridge is used, the bridge chain would look like this:
PHY0 aux-bridge ---+
| ----> CDN-DP bridge
PHY1 aux-bridge ---+
Oh, CDN-DP bridge has two previous aux-bridge!
Now, I try to use drm_connector_oob_hotplug_event() to notify HPD state between PHY and CDN-DP controller.
Patch1 add new Type-C mode switch for RK3399 USBDP phy binding. Patch2 add typec_mux and typec_switch for RK3399 USBDP PHY. Patch3 drops CDN-DP's extcon dependency when Type-C is present. Patch4 add missing dp_out port for RK3399 CDN-DP. Patch5 add Type-C DP support for RK3399 EVB IND board.
Changes in v3:
- Link to V2: https://lore.kernel.org/all/[email protected]/
- Add more descriptions to clarify the role of the PHY in switching.
- Fix wrong vdo value.
- Fix port node in usb-c-connector.
Changes in v2:
- Link to V1: https://lore.kernel.org/all/[email protected]/
- Reuse dp-port/usb3-port in rk3399-typec-phy binding.
- Fix compile error when CONFIG_TYPEC is not enabled.
- Notify DP HPD state by USB/DP PHY.
- Ignore duplicate HPD events.
- Add endpoint to link DP PHY and DP controller.
- Fix devicetree coding style.
Chaoyi Chen (5):
dt-bindings: phy: rockchip: rk3399-typec-phy: Support mode-switch
phy: rockchip: phy-rockchip-typec: Add typec_mux/typec_switch support drm/rockchip: cdn-dp: Support handle lane info and HPD without extcon
arm64: dts: rockchip: Add missing dp_out port for RK3399 CDN-DP
arm64: dts: rockchip: rk3399-evb-ind: Add support for DisplayPort
.../phy/rockchip,rk3399-typec-phy.yaml | 6 + arch/arm64/boot/dts/rockchip/rk3399-base.dtsi | 12 +- .../boot/dts/rockchip/rk3399-evb-ind.dts | 146 +++++++ drivers/gpu/drm/rockchip/cdn-dp-core.c | 37 +- drivers/phy/rockchip/phy-rockchip-typec.c | 403 +++++++++++++++++- 5 files changed, 579 insertions(+), 25 deletions(-)
Signature · 1 line
2.49.0
PATCH v3 3/5 drm/rockchip: cdn-dp: Support handle lane info and HPD without extcon
From: Chaoyi Chen <[email protected]>
This patch add support for get PHY lane info and handle HPD state without help of extcon.
There is no extcon needed if the Type-C controller is present. In this case, cdn_dp_hpd_notify() will handle HPD event from USB/DP combo PHY, and the lane info can be get from PHY instead of extcon.
The extcon device should still be supported if Type-C controller is not present.
---
Changes in v2:
- Ignore duplicate HPD events.
drivers/gpu/drm/rockchip/cdn-dp-core.c | 37 ++++++++++++++++++++------ 1 file changed, 29 insertions(+), 8 deletions(-)
drivers/gpu/drm/rockchip/cdn-dp-core.c +29 -8
@@ -156,6 +156,9 @@ static int cdn_dp_get_port_lanes(struct cdn_dp_port *port)int dptx;u8 lanes; +if (!edev) +return phy_get_bus_width (port->phy); + dptx =extcon_get_state (edev,EXTCON_DISP_DP );if (dptx >0 ) { extcon_get_property(edev, EXTCON_DISP_DP,
@@ -219,7 +222,7 @@ static bool cdn_dp_check_sink_connection(struct cdn_dp_device *dp)* some docks need more time to power up. */ while (time_before (jiffies, timeout)) { -if (!extcon_get_state (port->extcon,EXTCON_DISP_DP )) +if (port->extcon && !extcon_get_state (port->extcon,EXTCON_DISP_DP ))return false;if (!cdn_dp_get_sink_count (dp, &sink_count))
@@ -385,11 +388,14 @@ static int cdn_dp_enable_phy(struct cdn_dp_device *dp, struct cdn_dp_port *port) goto err_power_on; } - ret =extcon_get_property (port->extcon,EXTCON_DISP_DP , -EXTCON_PROP_USB_TYPEC_POLARITY , &property); -if (ret) { -DRM_DEV_ERROR (dp->dev,"get property failed\n" ); - goto err_power_on; + property.intval =0 ; +if (port->extcon) { + ret =extcon_get_property (port->extcon,EXTCON_DISP_DP , +EXTCON_PROP_USB_TYPEC_POLARITY , &property); +if (ret) { +DRM_DEV_ERROR (dp->dev,"get property failed\n" ); + goto err_power_on; + } } port->lanes =cdn_dp_get_port_lanes (port);
@@ -821,6 +827,17 @@ static int cdn_dp_audio_mute_stream(struct drm_connector *connector,return ret; } +static void cdn_dp_hpd_notify (struct drm_bridge *bridge, +enum drm_connector_status status) +{ +struct cdn_dp_device *dp =bridge_to_dp (bridge); +enum drm_connector_status last_status = + dp->connected ? connector_status_connected : connector_status_disconnected; + +if (last_status != status) +schedule_work (&dp->event_work); +} +static const struct drm_bridge_funcs cdn_dp_bridge_funcs = { .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state, .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state,
@@ -831,6 +848,7 @@ static const struct drm_bridge_funcs cdn_dp_bridge_funcs = { .atomic_disable = cdn_dp_bridge_atomic_disable, .mode_valid = cdn_dp_bridge_mode_valid, .mode_set = cdn_dp_bridge_mode_set, + .hpd_notify = cdn_dp_hpd_notify, .dp_audio_prepare = cdn_dp_audio_prepare, .dp_audio_mute_stream = cdn_dp_audio_mute_stream,
@@ -1028,6 +1046,9 @@ static int cdn_dp_bind(struct device *dev, struct device *master, void *data)for (i =0 ; i < dp->ports; i++) { port = dp->port[i]; +if (!port->extcon) +continue ; + port->event_nb.notifier_call = cdn_dp_pd_event; ret = devm_extcon_register_notifier(dp->dev, port->extcon, EXTCON_DISP_DP,
@@ -1120,14 +1141,14 @@ static int cdn_dp_probe(struct platform_device *pdev) PTR_ERR(phy) == -EPROBE_DEFER)return -EPROBE_DEFER ; -if (IS_ERR (extcon) ||IS_ERR (phy)) +if (IS_ERR (phy) ||PTR_ERR (extcon) != -ENODEV )continue ; port =devm_kzalloc (dev,sizeof (*port),GFP_KERNEL );if (!port)return -ENOMEM ; - port->extcon = extcon; + port->extcon =IS_ERR (extcon) ?NULL : extcon; port->phy = phy; port->dp = dp; port->id = i;
Signature · 1 line
2.49.0
PATCH v3 4/5 arm64: dts: rockchip: Add missing dp_out port for RK3399 CDN-DP
In reply to Chaoyi ChenFrom: Chaoyi Chen <[email protected]>
Let's make the ports nodes of cdn_dp in the same style as the other display interface, and match the style of ports's yaml.
--- arch/arm64/boot/dts/rockchip/rk3399-base.dtsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3399-base.dtsi +11 -1
@@ -618,7 +618,11 @@ cdn_dp: dp@fec00000 { status = "disabled"; ports { - dp_in: port { + #address-cells = <1>; + #size-cells = <0>; + + dp_in: port@0 { + reg = <0>; #address-cells = <1>; #size-cells = <0>;
@@ -632,6 +636,12 @@ dp_in_vopl: endpoint@1 { remote-endpoint = <&vopl_out_dp>; }; }; + + dp_out: port@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + }; }; };
Signature · 1 line
2.49.0
PATCH v3 5/5 arm64: dts: rockchip: rk3399-evb-ind: Add support for DisplayPort
In reply to Chaoyi ChenFrom: Chaoyi Chen <[email protected]>
The RK3399 EVB IND board has a Type-C interface DisplayPort. It use fusb302 chip as Type-C controller.
fusb302 chip ---> USB/DP PHY0 <----> CDN-DP controller
---
Changes in v3:
- Fix wrong vdo value.
- Fix port node in usb-c-connector.
Changes in v2:
- Add endpoint to link DP PHY and DP controller.
- Fix devicetree coding style.
.../boot/dts/rockchip/rk3399-evb-ind.dts | 146 ++++++++++++++++++ 1 file changed, 146 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dts +146 -0
@@ -4,6 +4,7 @@ */ /dts-v1/; +#include <dt-bindings/usb/pd.h> #include "rk3399.dtsi" / {
@@ -19,6 +20,21 @@ chosen { stdout-path = "serial2:1500000n8"; }; + sound: sound { + compatible = "rockchip,rk3399-gru-sound"; + rockchip,cpu = <&i2s0 &spdif>; + }; + + vbus_typec: regulator-vbus-typec { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc5v0_typec0_en>; + regulator-name = "vbus_typec"; + vin-supply = <&vcc5v0_sys>; + }; + vcc5v0_sys: regulator-vcc5v0-sys { compatible = "regulator-fixed"; enable-active-high;
@@ -31,6 +47,11 @@ vcc5v0_sys: regulator-vcc5v0-sys { }; }; +&cdn_dp { + phys = <&tcphy0_dp>; + status = "okay"; +}; + &cpu_b0 { cpu-supply = <&vdd_cpu_b>; };
@@ -55,6 +76,12 @@ &cpu_l3 { cpu-supply = <&vdd_cpu_l>; }; +&dp_out { + dp_controller_output: endpoint { + remote-endpoint = <&dp_phy_in>; + }; +}; + &emmc_phy { status = "okay"; };
@@ -341,6 +368,71 @@ regulator-state-mem { }; }; +&i2c4 { + i2c-scl-rising-time-ns = <475>; + i2c-scl-falling-time-ns = <26>; + status = "okay"; + + usbc0: typec-portc@22 { + compatible = "fcs,fusb302"; + reg = <0x22>; + interrupt-parent = <&gpio1>; + interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&usbc0_int>; + vbus-supply = <&vbus_typec>; + + usb_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "dual"; + power-role = "dual"; + try-power-role = "sink"; + op-sink-microwatt = <1000000>; + sink-pdos = + <PDO_FIXED(5000, 2500, PDO_FIXED_USB_COMM)>; + source-pdos = + <PDO_FIXED(5000, 1500, PDO_FIXED_USB_COMM)>; + + altmodes { + displayport { + svid = /bits/ 16 <0xff01>; + vdo = <0x00001c46>; + }; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + usbc_hs: endpoint { + remote-endpoint = <&u2phy0_typec_hs>; + }; + }; + + port@1 { + reg = <1>; + + usbc_ss: endpoint { + remote-endpoint = <&tcphy0_typec_ss>; + }; + }; + + port@2 { + reg = <2>; + + usbc_dp: endpoint { + remote-endpoint = <&tcphy0_typec_dp>; + }; + }; + }; + }; + }; +}; + &i2s2 { status = "okay"; };
@@ -354,6 +446,16 @@ &io_domains { }; &pinctrl { + usb-typec { + usbc0_int: usbc0-int { + rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; + }; + + vcc5v0_typec0_en: vcc5v0-typec0-en { + rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pmic { pmic_int_l: pmic-int-l { rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
@@ -400,10 +502,48 @@ &sdmmc { status = "okay"; }; +&sound { + rockchip,codec = <&cdn_dp>; + status = "okay"; +}; + +&spdif { + status = "okay"; +}; + &tcphy0 { status = "okay"; }; +&tcphy0_dp { + mode-switch; + + port { + #address-cells = <1>; + #size-cells = <0>; + + tcphy0_typec_dp: endpoint@0 { + reg = <0>; + remote-endpoint = <&usbc_dp>; + }; + + dp_phy_in: endpoint@1 { + reg = <1>; + remote-endpoint = <&dp_controller_output>; + }; + }; +}; + +&tcphy0_usb3 { + orientation-switch; + + port { + tcphy0_typec_ss: endpoint { + remote-endpoint = <&usbc_ss>; + }; + }; +}; + &tcphy1 { status = "okay"; };
@@ -418,6 +558,12 @@ &tsadc { &u2phy0 { status = "okay"; + + port { + u2phy0_typec_hs: endpoint { + remote-endpoint = <&usbc_hs>; + }; + }; }; &u2phy0_host {
Signature · 1 line
2.49.0
Re: [PATCH v3 4/5] arm64: dts: rockchip: Add missing dp_out port for RK3399 CDN-DP
In reply to Chaoyi ChenQuoted 28 lines · Chaoyi Chen
From: Chaoyi Chen <[email protected]>
Let's make the ports nodes of
cdn_dpin the same style as the other display interface, and match the style of ports's yaml.Signed-off-by Chaoyi Chen <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-base.dtsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)arch/arm64/boot/dts/rockchip/rk3399-base.dtsi +5
-1@@ -618,7 +618,11 @@ cdn_dp: dp@fec00000 { status = "disabled"; ports { - dp_in: port { + #address-cells = <1>; + #size-cells = <0>; + + dp_in: port@0 { + reg = <0>; #address-cells = <1>; #size-cells = <0>;
arch/arm64/boot/dts/rockchip/rk3399-base.dtsi dp_in_vopl: endpoint@1 { · line 644
Quoted 9 lines
arch/arm64/boot/dts/rockchip/rk3399-base.dtsi +6
-0@@ -632,6 +636,12 @@ dp_in_vopl: endpoint@1 { remote-endpoint = <&vopl_out_dp>; }; }; + + dp_out: port@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + };
Patch 5 adds a single endpoint to dp_out (without a reg property), so it seems that #address/#size-cells is not needed?
If you run ``make CHECK_DTBS=y W=1 rockchip/rk3399-evb-ind.dtb`` it should spit out a warning about that.
Cheers,
Diederik
Quoted 3 lines
arch/arm64/boot/dts/rockchip/rk3399-base.dtsi +0
-0}; };
kernel test robot
build botRe: [PATCH v3 2/5] phy: rockchip: phy-rockchip-typec: Add typec_mux/typec_switch support
In reply to Chaoyi Chenkernel test robot noticed the following build errors:
Hi Chaoyi,
kernel test robot noticed the following build errors:
[auto build test ERROR on next-20250729]
[also build test ERROR on linus/master v6.16]
[cannot apply to robh/for-next rockchip/for-next krzk/for-next krzk-dt/for-next v6.16 v6.16-rc7 v6.16-rc6] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Chaoyi-Chen/dt-bindings-phy-rockchip-rk3399-typec-phy-Support-mode-switch/20250729-170255 base: next-20250729 patch link: https://lore.kernel.org/r/20250729090032.97-3-kernel%40airkyi.com patch subject: [PATCH v3 2/5] phy: rockchip: phy-rockchip-typec: Add typec_mux/typec_switch support config: powerpc-randconfig-002-20250730 (https://download.01.org/0day-ci/archive/20250730/[email protected]/config) compiler: powerpc-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250730/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> ERROR: modpost: "drm_connector_oob_hotplug_event" [drivers/phy/rockchip/phy-rockchip-typec.ko] undefined!
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n]) Selected by [y]:
- PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=n] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y]
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Re: [PATCH v3 4/5] arm64: dts: rockchip: Add missing dp_out port for RK3399 CDN-DP
In reply to Diederik de HaasQuoted 28 lines · Diederik de Haas
Quoted 27 lines · Chaoyi Chen
From: Chaoyi Chen <[email protected]>
Let's make the ports nodes of
cdn_dpin the same style as the other display interface, and match the style of ports's yaml.Signed-off-by Chaoyi Chen <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3399-base.dtsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)arch/arm64/boot/dts/rockchip/rk3399-base.dtsi +5
-1@@ -618,7 +618,11 @@ cdn_dp: dp@fec00000 { status = "disabled"; ports { - dp_in: port { + #address-cells = <1>; + #size-cells = <0>; + + dp_in: port@0 { + reg = <0>; #address-cells = <1>; #size-cells = <0>;
Quoted 14 lines
arch/arm64/boot/dts/rockchip/rk3399-base.dtsi dp_in_vopl: endpoint@1 { · line 644
Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3399-base.dtsi +6
-0@@ -632,6 +636,12 @@ dp_in_vopl: endpoint@1 { remote-endpoint = <&vopl_out_dp>; }; }; + + dp_out: port@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + };Patch 5 adds a single endpoint to
dp_out(without a reg property), so it seems that #address/#size-cells is not needed?
If you run ``make CHECK_DTBS=y W=1 rockchip/rk3399-evb-ind.dtb`` it should spit out a warning about that.
Exactly! Will remove this in v4.
Quoted 7 lines
Cheers,
DiederikQuoted 3 lines
arch/arm64/boot/dts/rockchip/rk3399-base.dtsi +0
-0}; };
Re: [PATCH v3 1/5] dt-bindings: phy: rockchip: rk3399-typec-phy: Support mode-switch
In reply to Chaoyi ChenQuoted 36 lines · Chaoyi Chen
From: Chaoyi Chen <[email protected]>
The RK3399 SoC integrates two USB/DP combo PHYs, each of which supports software-configurable pin mapping and DisplayPort lane assignment. These capabilities enable the PHY itself to handle both mode switching and orientation switching, based on the Type-C plug orientation and USB PD negotiation results.
While an external Type-C controller is still required to detect cable attachment and report USB PD events, the actual mode and orientation switching is performed internally by the PHY through software configuration. This allows the PHY to act as a Type-C multiplexer for both data role and DP altmode configuration.
To reflect this hardware design, this patch introduces a new "mode-switch" property for the dp-port node in the device tree bindings. This property indicates that the connected PHY is capable of handling Type-C mode switching itself.
Signed-off-by Chaoyi Chen <[email protected]>---
Changes in v3:
- Add more descriptions to clarify the role of the PHY in switching.Changes in v2:
- Reuse dp-port/usb3-port in rk3399-typec-phy binding..../devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml | 6 ++++++ 1 file changed, 6 insertions(+)Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml +0
-0
Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml properties: · line 55
Quoted 5 lines
Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml +2
-0@@ -51,6 +51,12 @@ properties: '#phy-cells': const: 0 + mode-switch: + description: |
Do not need '|' unless you need to preserve formatting.
Best regards,
Krzysztof
Quoted 9 lines · Chaoyi Chen
From: Chaoyi Chen <[email protected]>
This series focuses on adding Type-C DP support for USBDP PHY and DP driver. The USBDP PHY and DP will perceive the changes in cable status based on the USB PD and Type-C state machines provided by TCPM. Before this, the USBDP PHY and DP controller of RK3399 sensed cable state changes through extcon, and devices such as the RK3399 Gru-Chromebook rely on them. This series should not break them.
[....]
Quoted 9 lines
====
2. DP HPD event notifyThe RK3399 has two USB/DP combo PHY and one CDN-DP controller. And the CDN-DP can be switched to output to one of the PHYs.
USB/DP PHY0 ---+
| <----> CDN-DP controllerUSB/DP PHY1 ---+
Could you please clarify this, can you switch DP stream between two USB-C outputs? What happens if user plugs in DP dongles in both USB-C ports?
Quoted 5 lines
BTW, one of the important things to do is to implement extcon-like notifications. I found
include/drm/bridge/aux-bridge.h, but if the aux-bridge is used, the bridge chain would look like this:
Quoted 8 lines
PHY0 aux-bridge ---+
| ----> CDN-DP bridgePHY1 aux-bridge ---+
Oh, CDN-DP bridge has two previous aux-bridge!
Now, I try to use
drm_connector_oob_hotplug_event()to notify HPD state between PHY and CDN-DP controller.
Does it actually work? The OOB HPD event will be repoted for the usb-c connector's fwnode, but the DP controller isn't connected to that node anyhow. If I'm not mistaken, the HPD signal will not reach DP driver in this case.
Quoted 7 lines
Patch1 add new Type-C mode switch for RK3399 USBDP phy binding. Patch2 add
typec_muxandtypec_switchfor RK3399 USBDP PHY. Patch3 drops CDN-DP's extcon dependency when Type-C is present. Patch4 add missingdp_outport for RK3399 CDN-DP. Patch5 add Type-C DP support for RK3399 EVB IND board.
Signature · 2 lines
With best wishes Dmitry
Hi Dmitry,
Quoted 18 lines · Dmitry Baryshkov
Quoted 9 lines · Chaoyi Chen
From: Chaoyi Chen <[email protected]>
This series focuses on adding Type-C DP support for USBDP PHY and DP driver. The USBDP PHY and DP will perceive the changes in cable status based on the USB PD and Type-C state machines provided by TCPM. Before this, the USBDP PHY and DP controller of RK3399 sensed cable state changes through extcon, and devices such as the RK3399 Gru-Chromebook rely on them. This series should not break them.
[....]
Quoted 6 lines
====
2. DP HPD event notifyThe RK3399 has two USB/DP combo PHY and one CDN-DP controller. And the CDN-DP can be switched to output to one of the PHYs.
Quoted 6 lines
Quoted 3 lines
USB/DP PHY0 ---+
| <----> CDN-DP controllerUSB/DP PHY1 ---+
Could you please clarify this, can you switch DP stream between two USB-C outputs? What happens if user plugs in DP dongles in both USB-C ports?
Currently, the software simply selects the first available port. So if user plugs in DP dongles in both USB-C ports, the DP driver will select the first port. This process is implemented in cdn_dp_connected_port() .
Quoted 9 lines
Quoted 9 lines
BTW, one of the important things to do is to implement extcon-like notifications. I found
include/drm/bridge/aux-bridge.h, but if the aux-bridge is used, the bridge chain would look like this:PHY0 aux-bridge ---+
| ----> CDN-DP bridgePHY1 aux-bridge ---+
Quoted 8 lines
Quoted 4 lines
Oh, CDN-DP bridge has two previous aux-bridge!
Now, I try to use
drm_connector_oob_hotplug_event()to notify HPD state between PHY and CDN-DP controller.Does it actually work? The OOB HPD event will be repoted for the usb-c connector's fwnode, but the DP controller isn't connected to that node anyhow. If I'm not mistaken, the HPD signal will not reach DP driver in this case.
Yes. What you mentioned is the case in drivers/usb/typec/altmodes/displayport.c . I have also added a new OOB event notify in the PHY driver in Patch 3, where the expected fwnode is used in the PHY. So now we have two OOB HPD events, one from altmodes/displayport.c and the other from PHY. Only the HPD from PHY is eventually passed to the DP driver.
Quoted 7 lines
Quoted 7 lines
Patch1 add new Type-C mode switch for RK3399 USBDP phy binding. Patch2 add
typec_muxandtypec_switchfor RK3399 USBDP PHY. Patch3 drops CDN-DP's extcon dependency when Type-C is present. Patch4 add missingdp_outport for RK3399 CDN-DP. Patch5 add Type-C DP support for RK3399 EVB IND board.
Signature · 3 lines
linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
Quoted 24 lines · Chaoyi Chen
Hi Dmitry,
Quoted 21 lines · Dmitry Baryshkov
Quoted 9 lines · Chaoyi Chen
From: Chaoyi Chen <[email protected]>
This series focuses on adding Type-C DP support for USBDP PHY and DP driver. The USBDP PHY and DP will perceive the changes in cable status based on the USB PD and Type-C state machines provided by TCPM. Before this, the USBDP PHY and DP controller of RK3399 sensed cable state changes through extcon, and devices such as the RK3399 Gru-Chromebook rely on them. This series should not break them.
[....]
Quoted 9 lines
====
2. DP HPD event notifyThe RK3399 has two USB/DP combo PHY and one CDN-DP controller. And the CDN-DP can be switched to output to one of the PHYs.
USB/DP PHY0 ---+
| <----> CDN-DP controllerUSB/DP PHY1 ---+
Quoted 8 lines
Quoted 3 lines
Could you please clarify this, can you switch DP stream between two USB-C outputs? What happens if user plugs in DP dongles in both USB-C ports?
Currently, the software simply selects the first available port. So if user plugs in DP dongles in both USB-C ports, the DP driver will select the first port. This process is implemented in
cdn_dp_connected_port().
I think Stephen Boyd has been looking on similar issues for Chromebooks, which were sharing DP controller between several USB-C ports. I don't remember what was his last status. I think there it was easier since the bifurcation point was the EC.
I think, CDN-DP needs to register up to two encoders and up to two connectors, having a separate drm_bridge chain for each of the DP signals paths (in the end, you can not guarantee that both branches will have the same simple CDN-DP -> PHY -> USB-C configuration: there can be different retimers, etc).
Both encoders should list the same CRTC in possible_crtcs, etc. Of course, it should not be possible to enable both of them.
This way if the user plugs in two DP dongles, it would be possible to select, which output actually gets a signal.
Quoted 20 lines
Quoted 11 lines
Quoted 11 lines
BTW, one of the important things to do is to implement extcon-like notifications. I found
include/drm/bridge/aux-bridge.h, but if the aux-bridge is used, the bridge chain would look like this:PHY0 aux-bridge ---+
| ----> CDN-DP bridgePHY1 aux-bridge ---+
Quoted 8 lines
Quoted 4 lines
Oh, CDN-DP bridge has two previous aux-bridge!
Now, I try to use
drm_connector_oob_hotplug_event()to notify HPD state between PHY and CDN-DP controller.Does it actually work? The OOB HPD event will be repoted for the usb-c connector's fwnode, but the DP controller isn't connected to that node anyhow. If I'm not mistaken, the HPD signal will not reach DP driver in this case.
Quoted 6 lines
Yes. What you mentioned is the case in
drivers/usb/typec/altmodes/displayport.c. I have also added a new OOB event notify in the PHY driver in Patch 3, where the expected fwnode is used in the PHY. So now we have two OOB HPD events, one fromaltmodes/displayport.cand the other from PHY. Only the HPD from PHY is eventually passed to the DP driver.
This way you will loose IRQ_HPD pulse events from the DP. They are used by DPRX (aka DP Sink) to signal to DPTX (DP Source) that there was a change on the DPRX side and the DPTX should reread link params and maybe retrain the link.
Quoted 11 lines
Quoted 6 lines
Quoted 6 lines
Patch1 add new Type-C mode switch for RK3399 USBDP phy binding. Patch2 add
typec_muxandtypec_switchfor RK3399 USBDP PHY. Patch3 drops CDN-DP's extcon dependency when Type-C is present. Patch4 add missingdp_outport for RK3399 CDN-DP. Patch5 add Type-C DP support for RK3399 EVB IND board.Signature · 3 lines
linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
Signature · 2 lines
With best wishes Dmitry
Hi Dmitry,
On 8/2/2025 5:55 PM, Dmitry Baryshkov wrote:
[...]
Quoted 8 lines
Quoted 4 lines
Currently, the software simply selects the first available port. So if user plugs in DP dongles in both USB-C ports, the DP driver will select the first port. This process is implemented in
cdn_dp_connected_port().I think Stephen Boyd has been looking on similar issues for Chromebooks, which were sharing DP controller between several USB-C ports. I don't remember what was his last status. I think there it was easier since the bifurcation point was the EC.
I think the latest progress should be here: [0]. It seems that it hasn't been updated for a while.
[0]: https://lore.kernel.org/all/[email protected]/
Quoted 7 lines
I think, CDN-DP needs to register up to two encoders and up to two connectors, having a separate
drm_bridgechain for each of the DP signals paths (in the end, you can not guarantee that both branches will have the same simple CDN-DP -> PHY -> USB-C configuration: there can be different retimers, etc).
Quoted 5 lines
Both encoders should list the same CRTC in
possible_crtcs, etc. Of course, it should not be possible to enable both of them.This way if the user plugs in two DP dongles, it would be possible to select, which output actually gets a signal.
That makes sense, but this might make the DP driver quite complex. I will see if I can make it happen.
Quoted 24 lines
Quoted 18 lines
Quoted 10 lines
Quoted 10 lines
BTW, one of the important things to do is to implement extcon-like notifications. I found
include/drm/bridge/aux-bridge.h, but if the aux-bridge is used, the bridge chain would look like this:PHY0 aux-bridge ---+
| ----> CDN-DP bridgePHY1 aux-bridge ---+
Quoted 8 lines
Quoted 4 lines
Oh, CDN-DP bridge has two previous aux-bridge!
Now, I try to use
drm_connector_oob_hotplug_event()to notify HPD state between PHY and CDN-DP controller.Does it actually work? The OOB HPD event will be repoted for the usb-c connector's fwnode, but the DP controller isn't connected to that node anyhow. If I'm not mistaken, the HPD signal will not reach DP driver in this case.
Quoted 6 lines
Yes. What you mentioned is the case in
drivers/usb/typec/altmodes/displayport.c. I have also added a new OOB event notify in the PHY driver in Patch 3, where the expected fwnode is used in the PHY. So now we have two OOB HPD events, one fromaltmodes/displayport.cand the other from PHY. Only the HPD from PHY is eventually passed to the DP driver.
Quoted 4 lines
This way you will loose
IRQ_HPDpulse events from the DP. They are used by DPRX (aka DP Sink) to signal to DPTX (DP Source) that there was a change on the DPRX side and the DPTX should reread link params and maybe retrain the link.
Sorry, I still don't quite understand your point. I think the entire notification path is as follows:
Type-C mux callback -> RK3399 USBDP PHY -> PHY calls drm_connector_oob_hotplug_event() -> DP driver
Are you concerned that the IRQ_HPD event is not being handled somewhere along the path? Is it that the Type-C mux callback didn't notify the PHY, or that after the PHY passed the event to the DP driver via the OOB event, the DP driver didn't handle it?
Quoted 11 lines · Chaoyi Chen
Hi Dmitry,
On 8/2/2025 5:55 PM, Dmitry Baryshkov wrote:
[...]
Quoted 4 lines
Quoted 4 lines
Currently, the software simply selects the first available port. So if user plugs in DP dongles in both USB-C ports, the DP driver will select the first port. This process is implemented in
cdn_dp_connected_port().
Quoted 6 lines
Quoted 4 lines
I think Stephen Boyd has been looking on similar issues for Chromebooks, which were sharing DP controller between several USB-C ports. I don't remember what was his last status. I think there it was easier since the bifurcation point was the EC.
I think the latest progress should be here: [0]. It seems that it hasn't been updated for a while.
Might be :-(
Quoted 11 lines
[0]: https://lore.kernel.org/all/20240901040658.157425-1- [email protected]/
Quoted 7 lines
I think, CDN-DP needs to register up to two encoders and up to two connectors, having a separate
drm_bridgechain for each of the DP signals paths (in the end, you can not guarantee that both branches will have the same simple CDN-DP -> PHY -> USB-C configuration: there can be different retimers, etc).
Quoted 7 lines
Quoted 5 lines
Both encoders should list the same CRTC in
possible_crtcs, etc. Of course, it should not be possible to enable both of them.This way if the user plugs in two DP dongles, it would be possible to select, which output actually gets a signal.
That makes sense, but this might make the DP driver quite complex. I will see if I can make it happen.
I think it's trading one burden for another, because CDN-DP currently has a complication of calling cdn_dp_get_port_lanes() / cdn_dp_enable_phy() in a loop rather than just enabling one instance.
Quoted 31 lines
Quoted 26 lines
Quoted 20 lines
Quoted 12 lines
Quoted 12 lines
BTW, one of the important things to do is to implement extcon-like notifications. I found
include/drm/bridge/aux-bridge.h, but if the aux-bridge is used, the bridge chain would look like this:PHY0 aux-bridge ---+
| ----> CDN-DP bridge
PHY1 aux-bridge ---+Quoted 8 lines
Quoted 4 lines
Oh, CDN-DP bridge has two previous aux-bridge!
Now, I try to use
drm_connector_oob_hotplug_event()to notify HPD state between PHY and CDN-DP controller.Does it actually work? The OOB HPD event will be repoted for the usb-c connector's fwnode, but the DP controller isn't connected to that node anyhow. If I'm not mistaken, the HPD signal will not reach DP driver in this case.
Quoted 6 lines
Yes. What you mentioned is the case in
drivers/usb/typec/altmodes/displayport.c. I have also added a new OOB event notify in the PHY driver in Patch 3, where the expected fwnode is used in the PHY. So now we have two OOB HPD events, one from altmodes/displayport.cand the other from PHY. Only the HPD from PHY is eventually passed to the DP driver.Quoted 4 lines
This way you will loose
IRQ_HPDpulse events from the DP. They are used by DPRX (aka DP Sink) to signal to DPTX (DP Source) that there was a change on the DPRX side and the DPTX should reread link params and maybe retrain the link.
Quoted 5 lines
Sorry, I still don't quite understand your point. I think the entire notification path is as follows:
Type-C mux callback -> RK3399 USBDP PHY -> PHY calls
drm_connector_oob_hotplug_event()-> DP driverAre you concerned that the
IRQ_HPDevent is not being handled somewhere along the path? Is it that the Type-C mux callback didn't notify the PHY, or that after the PHY passed the event to the DP driver via the OOB event, the DP driver didn't handle it?
The IRQ_HPD is an event coming from DPRX, it is delivered as a part of the attention VDM, see DP_STATUS_IRQ_HPD. It's being handled by the altmode displayport.c driver and is then delivered as an OOB hotplug call. However, it's not a mux event, so it is not (and it should not) being broadcasted over the typec_mux devices.
The way we were handling that is by having a chain of drm_aux_bridges for all interim devices, ending up with a drm_dp_hpd_bridge registered by the TCPM. This way when the DPRX triggers the IRQ_HPD event, it is being handled by the displayport.c and then delivered through that bridge to the DP driver.
Signature · 2 lines
With best wishes Dmitry
Hi Dmitry,
Quoted 35 lines · Dmitry Baryshkov
Quoted 11 lines · Chaoyi Chen
Hi Dmitry,
On 8/2/2025 5:55 PM, Dmitry Baryshkov wrote:
[...]
Quoted 4 lines
Quoted 4 lines
Currently, the software simply selects the first available port. So if user plugs in DP dongles in both USB-C ports, the DP driver will select the first port. This process is implemented in
cdn_dp_connected_port().Quoted 6 lines
Quoted 4 lines
I think Stephen Boyd has been looking on similar issues for Chromebooks, which were sharing DP controller between several USB-C ports. I don't remember what was his last status. I think there it was easier since the bifurcation point was the EC.
I think the latest progress should be here: [0]. It seems that it hasn't been updated for a while.
Might be :-(
Quoted 14 lines
[0]: https://lore.kernel.org/all/20240901040658.157425-1- [email protected]/
Quoted 10 lines
I think, CDN-DP needs to register up to two encoders and up to two connectors, having a separate
drm_bridgechain for each of the DP signals paths (in the end, you can not guarantee that both branches will have the same simple CDN-DP -> PHY -> USB-C configuration: there can be different retimers, etc).Both encoders should list the same CRTC in
possible_crtcs, etc. Of course, it should not be possible to enable both of them.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
This way if the user plugs in two DP dongles, it would be possible to select, which output actually gets a signal.
That makes sense, but this might make the DP driver quite complex. I will see if I can make it happen.
I think it's trading one burden for another, because CDN-DP currently has a complication of calling
cdn_dp_get_port_lanes()/cdn_dp_enable_phy()in a loop rather than just enabling one instance.
Yep, I will give it a try.
Quoted 34 lines
Quoted 34 lines
Quoted 27 lines
Quoted 21 lines
Quoted 13 lines
Quoted 13 lines
BTW, one of the important things to do is to implement extcon-like notifications. I found
include/drm/bridge/aux-bridge.h, but if the aux-bridge is used, the bridge chain would look like this:PHY0 aux-bridge ---+
| ----> CDN-DP bridge
PHY1 aux-bridge ---+Quoted 8 lines
Quoted 4 lines
Oh, CDN-DP bridge has two previous aux-bridge!
Now, I try to use
drm_connector_oob_hotplug_event()to notify HPD state between PHY and CDN-DP controller.Does it actually work? The OOB HPD event will be repoted for the usb-c connector's fwnode, but the DP controller isn't connected to that node anyhow. If I'm not mistaken, the HPD signal will not reach DP driver in this case.
Quoted 6 lines
Yes. What you mentioned is the case in
drivers/usb/typec/altmodes/displayport.c. I have also added a new OOB event notify in the PHY driver in Patch 3, where the expected fwnode is used in the PHY. So now we have two OOB HPD events, one from altmodes/displayport.cand the other from PHY. Only the HPD from PHY is eventually passed to the DP driver.Quoted 4 lines
This way you will loose
IRQ_HPDpulse events from the DP. They are used by DPRX (aka DP Sink) to signal to DPTX (DP Source) that there was a change on the DPRX side and the DPTX should reread link params and maybe retrain the link.Sorry, I still don't quite understand your point. I think the entire notification path is as follows:
Quoted 7 lines
Quoted 3 lines
Type-C mux callback -> RK3399 USBDP PHY -> PHY calls
drm_connector_oob_hotplug_event()-> DP driverAre you concerned that the
IRQ_HPDevent is not being handled somewhere along the path? Is it that the Type-C mux callback didn't notify the PHY, or that after the PHY passed the event to the DP driver via the OOB event, the DP driver didn't handle it?The
IRQ_HPDis an event coming from DPRX, it is delivered as a part of the attention VDM, seeDP_STATUS_IRQ_HPD. It's being handled by the altmodedisplayport.cdriver and is then delivered as an OOB hotplug call. However, it's not a mux event, so it is not (and it should not) being broadcasted over thetypec_muxdevices.The way we were handling that is by having a chain of
drm_aux_bridgesfor all interim devices, ending up with adrm_dp_hpd_bridgeregistered by the TCPM. This way when the DPRX triggers theIRQ_HPDevent, it is being handled by thedisplayport.cand then delivered through that bridge to the DP driver.
I think the issue goes back to the beginning. The key is to reuse the logic in displayport.c, and the previous approach of directly setting the fwnode has already been rejected. Is it a good idea to register the aux hpd bridge in displayport.c? In this way, we don't need to register it with a bunch of PD drivers (such as fusb302), which seems like a more generic solution.
Signature · 3 lines
linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
Quoted 69 lines · Chaoyi Chen
Hi Dmitry,
Quoted 60 lines · Dmitry Baryshkov
Quoted 45 lines · Chaoyi Chen
Hi Dmitry,
On 8/2/2025 5:55 PM, Dmitry Baryshkov wrote:
[...]
Quoted 29 lines
Quoted 19 lines
Quoted 12 lines
Quoted 4 lines
BTW, one of the important things to do is to implement extcon-like notifications. I found
include/drm/bridge/aux-bridge.h, but if the aux-bridge is used, the bridge chain would look like this:Quoted 8 lines
PHY0 aux-bridge ---+
| ----> CDN-DP bridge
PHY1 aux-bridge ---+Oh, CDN-DP bridge has two previous aux-bridge!
Now, I try to use
drm_connector_oob_hotplug_event()to notify HPD state between PHY and CDN-DP controller.Quoted 7 lines
Does it actually work? The OOB HPD event will be repoted for the usb-c
connector's fwnode, but the DP controller isn't connected to that node
anyhow. If I'm not mistaken, the HPD signal will not reach DP driver in
this case.Quoted 10 lines
Yes. What you mentioned is the case in
drivers/usb/typec/altmodes/displayport.c. I have also added a new OOB event
notify in the PHY driver in Patch 3, where the expected fwnode is used in
the PHY. So now we have two OOB HPD events, one from altmodes/displayport.c
and the other from PHY. Only the HPD from PHY is eventually passed to the DP
driver.Quoted 5 lines
This way you will loose
IRQ_HPDpulse events from the DP. They are used by DPRX (aka DP Sink) to signal to DPTX (DP Source) that there was a change on the DPRX side and the DPTX should reread link params and maybe
retrain the link.Sorry, I still don't quite understand your point. I think the entire notification path is as follows:
Quoted 7 lines
Type-C mux callback -> RK3399 USBDP PHY -> PHY calls
drm_connector_oob_hotplug_event()-> DP driverAre you concerned that the
IRQ_HPDevent is not being handled somewhere along the path? Is it that the Type-C mux callback didn't notify the PHY, or that after the PHY passed the event to the DP driver via the OOB event, the DP driver didn't handle it?The
IRQ_HPDis an event coming from DPRX, it is delivered as a part of the attention VDM, seeDP_STATUS_IRQ_HPD. It's being handled by the altmodedisplayport.cdriver and is then delivered as an OOB hotplug call. However, it's not a mux event, so it is not (and it should not) being broadcasted over thetypec_muxdevices.Quoted 5 lines
The way we were handling that is by having a chain of
drm_aux_bridgesfor all interim devices, ending up with adrm_dp_hpd_bridgeregistered by the TCPM. This way when the DPRX triggers theIRQ_HPDevent, it is being handled by thedisplayport.cand then delivered through that bridge to the DP driver.
Quoted 5 lines
I think the issue goes back to the beginning. The key is to reuse the logic in
displayport.c, and the previous approach of directly setting the fwnode has already been rejected. Is it a good idea to register the aux hpd bridge indisplayport.c? In this way, we don't need to register it with a bunch of PD drivers (such as fusb302), which seems like a more generic solution.
displayport.c comes into play only when you actually attach a DP dongle, which is too late for bringing up the display pipeline. But your point is valid, it might be worth moving drm_dp_hpd registration to typec_port_register_altmode().
Signature · 2 lines
With best wishes Dmitry
Quoted 72 lines · Dmitry Baryshkov
Quoted 66 lines · Chaoyi Chen
Hi Dmitry,
Quoted 58 lines · Dmitry Baryshkov
Quoted 44 lines · Chaoyi Chen
Hi Dmitry,
On 8/2/2025 5:55 PM, Dmitry Baryshkov wrote:
[...]
Quoted 29 lines
Quoted 19 lines
Quoted 12 lines
Quoted 4 lines
BTW, one of the important things to do is to implement extcon-like notifications. I found
include/drm/bridge/aux-bridge.h, but if the aux-bridge is used, the bridge chain would look like this:Quoted 8 lines
PHY0 aux-bridge ---+
| ----> CDN-DP bridge
PHY1 aux-bridge ---+Oh, CDN-DP bridge has two previous aux-bridge!
Now, I try to use
drm_connector_oob_hotplug_event()to notify HPD state between PHY and CDN-DP controller.Quoted 7 lines
Does it actually work? The OOB HPD event will be repoted for the usb-c
connector's fwnode, but the DP controller isn't connected to that node
anyhow. If I'm not mistaken, the HPD signal will not reach DP driver in
this case.Quoted 10 lines
Yes. What you mentioned is the case in
drivers/usb/typec/altmodes/displayport.c. I have also added a new OOB event
notify in the PHY driver in Patch 3, where the expected fwnode is used in
the PHY. So now we have two OOB HPD events, one from altmodes/displayport.c
and the other from PHY. Only the HPD from PHY is eventually passed to the DP
driver.Quoted 5 lines
This way you will loose
IRQ_HPDpulse events from the DP. They are used by DPRX (aka DP Sink) to signal to DPTX (DP Source) that there was a change on the DPRX side and the DPTX should reread link params and maybe
retrain the link.Sorry, I still don't quite understand your point. I think the entire notification path is as follows:
Quoted 7 lines
Type-C mux callback -> RK3399 USBDP PHY -> PHY calls
drm_connector_oob_hotplug_event()-> DP driverAre you concerned that the
IRQ_HPDevent is not being handled somewhere along the path? Is it that the Type-C mux callback didn't notify the PHY, or that after the PHY passed the event to the DP driver via the OOB event, the DP driver didn't handle it?The
IRQ_HPDis an event coming from DPRX, it is delivered as a part of the attention VDM, seeDP_STATUS_IRQ_HPD. It's being handled by the altmodedisplayport.cdriver and is then delivered as an OOB hotplug call. However, it's not a mux event, so it is not (and it should not) being broadcasted over thetypec_muxdevices.Quoted 5 lines
The way we were handling that is by having a chain of
drm_aux_bridgesfor all interim devices, ending up with adrm_dp_hpd_bridgeregistered by the TCPM. This way when the DPRX triggers theIRQ_HPDevent, it is being handled by thedisplayport.cand then delivered through that bridge to the DP driver.Quoted 5 lines
I think the issue goes back to the beginning. The key is to reuse the logic in
displayport.c, and the previous approach of directly setting the fwnode has already been rejected. Is it a good idea to register the aux hpd bridge indisplayport.c? In this way, we don't need to register it with a bunch of PD drivers (such as fusb302), which seems like a more generic solution.
Quoted 4 lines
displayport.ccomes into play only when you actually attach a DP dongle, which is too late for bringing up the display pipeline. But your point is valid, it might be worth movingdrm_dp_hpdregistration totypec_port_register_altmode().
Very insightful, thank you! I will try to do this in v4 :)
kernel test robot
build botRe: [PATCH v3 2/5] phy: rockchip: phy-rockchip-typec: Add typec_mux/typec_switch support
In reply to Chaoyi Chenkernel test robot noticed the following build warnings:
Hi Chaoyi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on next-20250729]
[also build test WARNING on linus/master v6.16]
[cannot apply to robh/for-next rockchip/for-next krzk/for-next krzk-dt/for-next v6.16 v6.16-rc7 v6.16-rc6] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Chaoyi-Chen/dt-bindings-phy-rockchip-rk3399-typec-phy-Support-mode-switch/20250729-170255 base: next-20250729 patch link: https://lore.kernel.org/r/20250729090032.97-3-kernel%40airkyi.com patch subject: [PATCH v3 2/5] phy: rockchip: phy-rockchip-typec: Add typec_mux/typec_switch support config: loongarch-randconfig-002-20250730 (https://download.01.org/0day-ci/archive/20250806/[email protected]/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250806/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
vmlinux.o: warning: objtool: iov_iter_zero+0x1c4: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: copy_folio_from_iter_atomic+0x3e8: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: iov_iter_advance+0xbc: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: iov_iter_revert+0xd4: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: iov_iter_single_seg_count+0x78: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: iov_iter_is_aligned+0xe0: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: iov_iter_alignment+0xa8: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: iov_iter_npages+0xd8: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: iov_iter_extract_pages+0x1dc: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: rhashtable_jhash2+0x128: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: refcount_warn_saturate+0x50: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: string_unescape+0x2ac: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: string_escape_mem+0x3d4: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: kstrtobool+0xa0: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: vvar_fault.llvm.2652528131661753876+0x4c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: __devm_ioremap.llvm.2872827248248264962+0x78: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: zlib_inflate+0x174: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: find_poly_roots+0x5cc: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: HUF_compress1X_usingCTable_internal.llvm.16785660852261606571+0x118: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_cParam_getBounds+0x84: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_CCtx_setParameter+0x144: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_CCtxParams_setParameter+0xb0: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_CCtxParams_getParameter+0x8c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_CCtx_setCParams+0x184: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize+0x150: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_loadDictionaryContent+0x45c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_buildCTable+0x84: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_compressSuperBlock+0x180: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_fillDoubleHashTable+0x428: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_compressBlock_doubleFast_extDict+0x2a0: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_fillHashTable+0x484: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_compressBlock_fast_extDict+0x2f4: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_dedicatedDictSearch_lazy_loadDictionary+0x680: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_insertAndFindFirstIndex+0x240: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_insertBt1+0x88: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: HUF_readDTableX1_wksp+0x4d4: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: HUF_decompress1X2_usingDTable_internal+0x118: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: HUF_decompress1X1_usingDTable_internal+0x128: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: HUF_decompress4X2_usingDTable_internal+0x1014: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: HUF_decompress4X1_usingDTable_internal+0xeac: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: HUF_fillDTableX2ForWeight+0x8c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: BIT_initDStream+0x104: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: BIT_initDStream+0x104: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_getFrameHeader_advanced+0x30c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_nextInputType+0x44: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_decompressContinue+0x12c: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_dParam_getBounds+0x40: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_DCtx_setParameter+0x84: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_DCtx_getParameter+0x50: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_decompressStream+0x33c: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_decodeLiteralsBlock+0x108: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_buildSeqTable+0x80: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ZSTD_decompressSequencesLong+0x208: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_decompressSequencesSplitLitBuffer+0x1e4: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ZSTD_decompressSequences+0x20c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ERR_getErrorString+0xb0: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: FSE_decompress_wksp_bmi2+0x3bc: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: xz_dec_run+0x100: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: xz_dec_lzma2_run+0xec: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: bcj_apply+0x8c: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: xz_dec_bcj_reset+0x4c: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: ei_seq_show+0x50: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: stack_depot_save_flags+0x128: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: asn1_ber_decoder+0x1a4: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: msi_lib_init_dev_msi_info+0x90: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: rza1_irqc_set_type+0x5c: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: rzv2h_icu_set_type+0xe8: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: lpic_get_gsi_domain_id+0x44: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: complete_irq_moving+0xbc: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: liointc_set_type+0x68: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: pch_pic_set_type+0x60: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: mchp_eic_domain_alloc+0xc4: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: mchp_eic_irq_set_type+0x70: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: mhi_intvec_threaded_handler+0x130: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: mhi_process_ctrl_ev_ring+0x270: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: parse_xfer_event+0xf0: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: mhi_pm_st_worker+0x154: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: mhi_async_power_up+0x14c: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: phy_g12a_mipi_dphy_analog_power_on+0x8c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: brcm_sata_phy_init+0x60: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: brcm_pm_notifier+0x48: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: brcm_usb_phy_xlate+0x50: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: usb_init_xhci+0x1c0: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: cdns_torrent_phy_probe+0x824: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: cdns_torrent_phy_configure_multilink+0x8f4: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: cdns_sierra_get_optional+0xf4: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: mtk_phy_xlate+0xe0: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: mtk_phy_xlate+0xd8: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: mtk_phy_init+0x28c: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: mtk_phy_init+0xb4: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: phy_type_show+0x4c: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: u2_phy_params_write+0xd4: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: u2_phy_params_show+0x60: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: u3_phy_params_write+0xd4: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: u3_phy_params_show+0x58: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: mtk_xfi_tphy_set_mode+0x88: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: mtk_hdmi_pll_set_rate+0x5e8: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: rockchip_usb2phy_otg_sm_work+0xe0: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: rockchip_chg_detect_work+0x7c: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: rk3588_usb2phy_tuning+0x54: sibling call from callable instruction with modified stack frame
>> vmlinux.o: warning: objtool: tcphy_typec_mux_set+0x68: sibling call from callable instruction with modified stack frame
vmlinux.o: warning: objtool: omap_control_phy_power+0xe4: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: tusb1210_chg_det_work+0x60: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: wiz_phy_reset_deassert+0x90: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: xpsgtr_xlate+0x10c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: xpsgtr_lane_set_protocol+0x50: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: amd_gpio_dbg_show+0x144: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: amd_pinconf_get+0x8c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: amd_pinconf_set+0xdc: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: amd_gpio_irq_set_type+0x80: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: alt_gpio_irq_type+0x64: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: at91_pmx_set+0x230: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: at91_pinconf_dbg_show+0x33c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: aw9523_pconf_get+0xe0: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: aw9523_pconf_set+0x108: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: aw9523_pcfg_param_to_reg+0x54: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: cy8c95x0_writeable_register+0xa4: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: cy8c95x0_readable_register+0xa0: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: cy8c95x0_volatile_register+0x3c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: cy8c95x0_irq_set_type+0x70: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: cy8c95x0_pinconf_get+0x74: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: cy8c95x0_pinconf_set+0x110: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: eqbr_pinconf_get+0x18c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: eqbr_pinconf_set+0x14c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: funcs_utils+0x1a0: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: eqbr_gpio_set_irq_type+0x88: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: lpc18xx_pconf_get+0x1dc: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: lpc18xx_pconf_set+0x258: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: max77620_pinconf_get+0x60: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: max77620_pinconf_set+0x160: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: max77620_set_fps_param+0x7c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: pistachio_pinconf_get+0x5c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: pistachio_pinconf_set+0x124: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: pistachio_gpio_irq_set_type+0x60: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: pcs_pinconf_set+0x1a8: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: th1520_pinconf_get+0xcc: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: th1520_pinconf_set+0x11c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: owl_pin_config_get+0x7c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: owl_pin_config_set+0xcc: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: owl_group_config_get+0x12c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: owl_group_config_set+0x1e4: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: irq_set_type+0x68: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: bcm281xx_pinctrl_pin_config_set+0x354: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: bcm2835_gpio_irq_set_type+0x140: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: bcm2835_gpio_irq_config+0x60: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: bcm6362_pinctrl_set_mux+0xfc: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: bcm63268_pinctrl_set_mux+0xfc: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: iproc_gpio_irq_set_type+0x74: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: iproc_gpio_irq_set_type+0x7c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: iproc_pin_config_get+0xec: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: iproc_pin_config_set+0x174: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: nsp_gpio_irq_set_type+0xe8: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: nsp_pin_config_get+0x78: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: nsp_pin_config_set+0xc4: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: madera_pin_probe+0x90: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: madera_pin_conf_get+0xd8: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: madera_pin_conf_set+0xe4: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: mtk_pctrl_spec_pull_set_samereg+0x11c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: mtk_pconf_group_set+0xdc: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: mtk_pconf_group_set+0x158: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: mtk_pinconf_bias_set_combo+0x418: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: mtk_pinconf_get+0xfc: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: mtk_pinconf_get+0xd4: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: mtk_pinconf_set+0x130: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: mtk_pctrl_show_one_pin+0x180: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: airoha_pinconf_get+0x6c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: airoha_pinconf_set+0x100: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: airoha_irq_unmask+0xa8: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: npcm7xx_config_get+0xa0: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: npcm7xx_config_set+0xf0: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: npcmgpio_set_irq_type+0x6c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ma35_pinconf_get+0x84: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ma35_pinconf_set+0x1b8: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: ma35_irq_irqtype+0x60: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: msm_config_group_get+0xfc: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: msm_config_group_set+0xec: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: msm_config_reg+0x58: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: msm_gpio_irq_set_type+0x430: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: pm8xxx_pin_config_get+0x78: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: pm8xxx_pin_config_get+0xa0: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: pm8xxx_pin_config_set+0xc8: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: pm8xxx_pin_config_set+0xec: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: pm8xxx_mpp_probe+0x1b4: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: lpi_config_get+0x78: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: lpi_config_set+0x110: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: sh_pfc_config_mux+0x70: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: sh_pfc_pinconf_get+0x94: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: sh_pfc_pinconf_set+0xc4: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: sh_pfc_pinconf_validate+0x6c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: r8a77990_pin_to_pocctrl+0x48: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: r8a7794_pin_to_pocctrl+0x84: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: r8a77970_pin_to_pocctrl+0x48: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: r8a779h0_pin_to_pocctrl+0x4c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: rzg2l_pinctrl_pinconf_get+0x164: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: rzg2l_pinctrl_pinconf_set+0x338: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: rzv2h_hw_to_bias_param+0x3c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: rzn1_pinconf_get+0xa4: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: rzn1_pinconf_set+0xec: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: s3c64xx_gpio_irq_set_type+0x5c: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: s3c64xx_eint0_irq_set_type+0x68: sibling call from callable instruction with modified stack frame vmlinux.o: warning: objtool: sg2042_pconf_get+0xa4: sibling call from callable instruction with modified stack frame
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki