From: Wesley Cheng <wcheng@codeaurora.org>
To: Rob Herring <robh@kernel.org>
Cc: lgirdwood@gmail.com, mark.rutland@arm.com, agross@kernel.org,
broonie@kernel.org, heikki.krogerus@linux.intel.com,
gregkh@linuxfoundation.org, bjorn.andersson@linaro.org,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
jackp@codeaurora.org, rdunlap@infradead.org,
bryan.odonoghue@linaro.org
Subject: Re: [PATCH v5 2/6] dt-bindings: usb: Add Qualcomm PMIC type C controller dt-binding
Date: Thu, 9 Jul 2020 20:08:45 -0700 [thread overview]
Message-ID: <bef7638a-3f1d-2c92-a7a0-c7a17d2f63c0@codeaurora.org> (raw)
In-Reply-To: <20200709224626.GA1021653@bogus>
On 7/9/2020 3:46 PM, Rob Herring wrote:
>
> Why is all the connector schema duplicated here? You only need things
> that are further constrained like 'compatible'.
>
Hi Rob,
Most of the properties in this dt-binding are going to be constrained by
the definitions/values specified by usb-connector. I can add individual
references to each property, such as compatible, power-role, data-role
and ports, if that is the recommended approach.
>
> 'remote-endpoint' in not an array.
>
Agreed, I have removed the maxItems parameter.
>
> So USB-SS data can come from 'type C mux' or 'role switch node'? That
> seems odd.
>
This was one of the interpretations, which might work with the current
usb-connector model. From the previous block diagram I shared, we can
see that the SS path has two potential "endpoints," one to the mux and
another to the USB controller on the SOC.
Another design consideration is when the device supports the "Audio
Adapter Accessory Mode." The audio accessory is mentioned in the type C
spec as an adapter which will utilize the USB D+/- lines for audio
output. So now, you could potentially have something like below:
_______ _______
______|FUSB302| |SOC |
| |Type C | | |
| |Cntrl |__I2C_______ | |
| |_______| | |
___ | | |
| |______ CC1/2 _________| | |
| | _______ | |
| | ____*|Charger| | |
| | | |HW | | |
| | | |_______| | |
| | | ________ | |
| |______ HS DP/DM _______|____*|MAX20328|_HS D+/D-__ | |
| | |________|__Audio Out_| |
| | ________ | |
| |______ SS RX/TX1 __________**|FUSB304 |_SS RX/TX**_| |
| |______ SS RX/TX2 ____________|USB Mux | |_______|
| | |________|
| |
|___|
With this kind of device, it would make sense to have multiple endpoints
per path, which can be represented like the following:
connector {
compatible = "usb-c-connector";
...
ports {
port@0 {
...
//Charger endpoint*
usb_con_hs_chg: endpoint@0 {
reg = <0>;
remote-endpoint = <&max77865_usbc_hs>;
};
//Audio accessory adapter mux*
usb_con_hs_audio: endpoint@1 {
reg = <1>;
remote-endpoint = <&analog_audio>;
};
};
port@1 {
...
//USB3 lane mux**
usb3_data_ss: endpoint@0 {
reg = <0>;
remote-endpoint = <&qmp_ss_mux>;
};
//USB3 SOC controller**
usb3_role: endpoint@1 {
reg = <1>;
remote-endpoint = <&dwc3_drd_switch>;
};
};
};
};
Thanks
Wesley Cheng
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2020-07-10 3:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-03 1:50 [PATCH v5 0/6] Introduce PMIC based USB type C detection Wesley Cheng
2020-07-03 1:50 ` [PATCH v5 1/6] usb: typec: Add QCOM PMIC typec detection driver Wesley Cheng
2020-07-03 1:50 ` [PATCH v5 2/6] dt-bindings: usb: Add Qualcomm PMIC type C controller dt-binding Wesley Cheng
2020-07-09 22:46 ` Rob Herring
2020-07-10 3:08 ` Wesley Cheng [this message]
2020-07-03 1:50 ` [PATCH v5 3/6] arm64: boot: dts: qcom: pm8150b: Add node for USB type C block Wesley Cheng
2020-07-03 1:51 ` [PATCH v5 4/6] regulator: Add support for QCOM PMIC VBUS booster Wesley Cheng
2020-07-03 12:52 ` Mark Brown
2020-07-03 1:51 ` [PATCH v5 5/6] dt-bindings: regulator: Add dt-binding for QCOM PMIC VBUS output regulator Wesley Cheng
2020-07-03 1:51 ` [PATCH v5 6/6] arm64: boot: dts: qcom: pm8150b: Add DTS node for PMIC VBUS booster Wesley Cheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bef7638a-3f1d-2c92-a7a0-c7a17d2f63c0@codeaurora.org \
--to=wcheng@codeaurora.org \
--cc=agross@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=broonie@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=jackp@codeaurora.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=rdunlap@infradead.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).