Re: [PATCH v3 2/5] phy: core: Define TBT phy_mode
Vinod Koul <[email protected]>
| Newsgroups | org.infradead.lists.linux-phy,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <ansHeYjQASWGiAfT@vaman> |
On 30-07-26, 16:19, Konrad Dybcio wrote: > From: Konrad Dybcio <[email protected]> > > There exist OS-accessible USB4 and Thunderbolt PHYs that need specific > configuration. Define a new phy_mode for them. > > Currently, USB4 and TBT3 are defined as submodes, because they're quite > distinct, most visibly in the electrical/analog aspects (slightly > different frequencies, timings, etc.). This results in a need to make > the PHY aware of the actual mode needed (at least in the Qualcomm > implementation, but I believe that'll be a general need). > > Newer versions of TBT are basically supersets of USB4 with higher > host-side requirements, so these are not defined. This can always be > changed as necessary. > > Reviewed-by: Dmitry Baryshkov <[email protected]> > Signed-off-by: Konrad Dybcio <[email protected]> > --- > include/linux/phy/phy-tbt.h | 14 ++++++++++++++ can the file be phy-thunderbolt.h please. > include/linux/phy/phy.h | 2 ++ > 2 files changed, 16 insertions(+) > > diff --git a/include/linux/phy/phy-tbt.h b/include/linux/phy/phy-tbt.h > new file mode 100644 > index 000000000000..5f48059814e1 > --- /dev/null > +++ b/include/linux/phy/phy-tbt.h > @@ -0,0 +1,14 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. > + */ > + > +#ifndef __PHY_TBT_H_ > +#define __PHY_TBT_H_ > + > +enum tbt_phy_submode { > + PHY_SUBMODE_TBT3, > + PHY_SUBMODE_USB4, > +}; tbt here is just fine > + > +#endif > diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h > index ea47975e288a..26a91c070f8c 100644 > --- a/include/linux/phy/phy.h > +++ b/include/linux/phy/phy.h > @@ -20,6 +20,7 @@ > #include <linux/phy/phy-hdmi.h> > #include <linux/phy/phy-lvds.h> > #include <linux/phy/phy-mipi-dphy.h> > +#include <linux/phy/phy-tbt.h> > > struct phy; > > @@ -45,6 +46,7 @@ enum phy_mode { > PHY_MODE_LVDS, > PHY_MODE_DP, > PHY_MODE_HDMI, > + PHY_MODE_TBT, > }; > > enum phy_media { > > -- > 2.55.0 -- ~Vinod -- linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy