[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231204020303.2287338-1-dmitry.baryshkov@linaro.org>
Date: Mon, 4 Dec 2023 04:02:59 +0200
From: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
To: "Rob Herring" <robh+dt@...nel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@...aro.org>,
"Conor Dooley" <conor+dt@...nel.org>,
"Andy Gross" <agross@...nel.org>,
"Bjorn Andersson" <andersson@...nel.org>,
"Konrad Dybcio" <konrad.dybcio@...aro.org>,
"Hans de Goede" <hdegoede@...hat.com>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
"Mark Gross" <markgross@...nel.org>,
"Heikki Krogerus" <heikki.krogerus@...ux.intel.com>,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-msm@...r.kernel.org, platform-driver-x86@...r.kernel.org,
linux-usb@...r.kernel.org
Subject: [PATCH v4 0/3] dt-bindings: connector: usb: provide bindings for altmodes
In some cases we need a way to specify USB-C AltModes that can be
supportd on the particular USB-C connector. For example, x86 INT33FE
driver does this by populating fwnode properties internally. For the
Qualcomm Robotics RB5 platform (and several similar devices which use
Qualcomm PMIC TCPM) we have to put this information to the DT.
Provide the DT bindings for this kind of information and while we are at
it, change svid property to be 16-bit unsigned integer instead of a
simple u32.
NOTE: usage of u16 is not compatible with the recenty extended
qcom/qrb5165-rb5.dts DT file, but it is more logical since SVID is
16 bits wide.
Changes since v3:
- Added enum to constraint atmode SVID (Rob)
- Moved additionaPropperties to come beore the property definitions
(Rob)
Changes since v2:
- Inlined altmode definitions instead of having them under $defs (Rob)
- Explicity list permitted AltMode names (currenty only displayport is
allowed) (Rob)
Changes since v1:
- Added type:object and fixed 'description' string in the altmodes-list
definition.
Dmitry Baryshkov (3):
dt-bindings: connector: usb: add altmodes description
usb: typec: change altmode SVID to u16 entry
arm64: dts: qcom: qrb5165-rb5: use u16 for DP altmode svid
.../bindings/connector/usb-connector.yaml | 33 +++++++++++++++++++
arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 2 +-
drivers/platform/x86/intel/chtwc_int33fe.c | 2 +-
drivers/usb/typec/class.c | 5 +--
4 files changed, 38 insertions(+), 4 deletions(-)
--
2.42.0
Powered by blists - more mailing lists