Lines Matching refs:mux
101 struct typec_mux *mux;
304 * if all 4 lane assignment for dp function, define rockchip,dp-lane-mux = <x x x x>;
308 * rockchip,dp-lane-mux ln0(tx/rx) ln1(tx) ln2(tx/rx) ln3(tx)
312 * if 2 lane for dp function, 2 lane for usb function, define rockchip,dp-lane-mux = <x x>;
316 * rockchip,dp-lane-mux ln0(tx/rx) ln1(tx) ln2(tx/rx) ln3(tx)
501 prop = of_find_property(np, "rockchip,dp-lane-mux", &len);
503 dev_dbg(udphy->dev, "failed to find dp lane mux, following dp alt mode\n");
511 dev_err(udphy->dev, "invalid number of lane mux\n");
515 ret = of_property_read_u32_array(np, "rockchip,dp-lane-mux", udphy->dp_lane_sel, num_lanes);
517 dev_err(udphy->dev, "get dp lane mux failed\n");
525 dev_err(udphy->dev, "lane mux between 0 and 3, exceeding the range\n");
533 dev_err(udphy->dev, "set repeat lane mux value\n");
847 static int usbdp_typec_mux_set(struct typec_mux *mux, struct typec_mux_state *state)
849 struct rockchip_udphy *udphy = typec_mux_get_drvdata(mux);
906 udphy->mux = typec_mux_register(udphy->dev, &mux_desc);
907 if (IS_ERR(udphy->mux)) {
908 dev_err(udphy->dev, "Error register typec mux: %ld\n", PTR_ERR(udphy->mux));
909 return PTR_ERR(udphy->mux);
919 typec_mux_unregister(udphy->mux);
1133 /* Step 3: configure lane mux */