From: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
To: Marek Vasut <marex@nabladev.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Christian Bruel <christian.bruel@foss.st.com>,
<linux-usb@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>,
<linux-stm32@st-md-mailman.stormreply.com>,
Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Vinod Koul <vkoul@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Heikki Krogerus <heikki.krogerus@linux.intel.com>,
<linux-phy@lists.infradead.org>,
Thomas Bourgoin <thomas.bourgoin@foss.st.com>,
Mark Brown <broonie@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Rob Herring <robh@kernel.org>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Srinivas Kandagatla <srini@kernel.org>,
Pankaj Dev <pankaj.dev@st.com>
Subject: Re: [PATCH 08/16] arm64: dts: st: Add ucpd node on stm32mp251
Date: Wed, 26 Aug 2026 15:19:54 +0200 [thread overview]
Message-ID: <1cf02ebd-fa70-4d44-9deb-f39e4dd6c04f@foss.st.com> (raw)
In-Reply-To: <745a30e5-3fc3-406c-9263-1c1c8ca9135c@nabladev.com>
On 8/22/26 07:00, Marek Vasut wrote:
> On 8/21/26 6:23 PM, Fabrice Gasnier wrote:
>> Describe UCPD bindings and nvmem cells to access trim values.
>> This provides the PD and CC USB-C cable signaling functions.
>>
>> Co-developed-by: Christian Bruel <christian.bruel@foss.st.com>
>> Signed-off-by: Christian Bruel <christian.bruel@foss.st.com>
>> Co-developed-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com>
>> Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com>
>> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
>> ---
>> arch/arm64/boot/dts/st/stm32mp251.dtsi | 51 ++++++++++++++++++++++++
>> ++++++++++
>> 1 file changed, 51 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/
>> dts/st/stm32mp251.dtsi
>> index 9dc7a05fce99..be54dd56713b 100644
>> --- a/arch/arm64/boot/dts/st/stm32mp251.dtsi
>
> [...]
>
>> @@ -1818,10 +1839,40 @@ part-number-otp@24 {
>> reg = <0x24 0x4>;
>> };
>> + ucpd_trim_3a_cc1: trim_3a_cc1@1bd,1 {
>> + reg = <0x1bd 0x1>;
>> + bits = <1 4>;
>> + };
>> +
>> + ucpd_trim_3a_cc2: trim_3a_cc2@1bf,1 {
>> + reg = <0x1bf 0x1>;
>> + bits = <1 4>;
>> + };
>
> These two fuse fields ^ do not seem to match STM32MP25xx documentation ?
>
> RM0457 Rev 5
> Table 876. UCPD software trim data
> Page 5013
>
> Non-volatile memory location
> Name Address Bits
> 3A0_CC1[3:0] 0x5400 01E8 11:8
> 3A0_CC2[3:0] 0x5400 01E8 11:8
> ^^^^^^^ ^^^^ ^^^^
>
Hi Marek,
Yes, I've raised it internally (ST) so the documentation gets clarified.
Please look at "OTP mapping" section instead, Table 34.
e.g. OTP111
word/bits |
9 to 12 | USBTC_VIREF1_3A0[3:0] | USB Type C CC1 ref current trim (±6%)
in 3 A mode
25 to 28 | USBTC_VIREF2_3A0[3:0] | USB Type C CC2 ref current trim (±6%)
in 3 A mode
and OTP122
4 to 7 | USBTC_CCRPD1[3:0] | USB Type C CC1 5.1Kohm pull down trim
(±10%)
8 to 11 | USBTC_VIREF1_1A5[3:0] | USB Type C CC1 ref current trim (±6%)
in 1.5 A mode
12 to 15 | USBTC_CCRPD2[3:0] | USB Type C CC2 pull down trim (5.1 K
±10%)
16 to 19 | USBTC_VIREF2_1A5[3:0] | USB Type C CC2 ref current trim (±6%)
in 1.5 A mode
BR,
Fabrice
>> package-otp@1e8 {
>> reg = <0x1e8 0x1>;
>> bits = <0 3>;
>> };
> [...]
next prev parent reply other threads:[~2026-08-26 13:20 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-21 16:23 [PATCH 00/16] Add support for USB Type-C on STM32MP25 Fabrice Gasnier
2026-08-21 16:23 ` [PATCH 01/16] dt-bindings: usb: st,tcpp: Document TCPP USB-C PD protection chip Fabrice Gasnier
2026-08-21 16:23 ` [PATCH 02/16] usb: typec: tcpm: Add STM32 tcpp driver Fabrice Gasnier
2026-08-22 4:50 ` Marek Vasut
2026-08-21 16:23 ` [PATCH 03/16] dt-bindings: usb: st,stm32-ucpd: Document STM32 UCPD controller Fabrice Gasnier
2026-08-21 16:23 ` [PATCH 04/16] usb: typec: tcpm: Add STM32 UCPD driver Fabrice Gasnier
2026-08-24 14:38 ` Philipp Zabel
2026-08-21 16:23 ` [PATCH 05/16] dt-bindings: usb: add FUSB340 switch binding Fabrice Gasnier
2026-08-22 4:49 ` Marek Vasut
2026-08-25 13:09 ` Fabrice Gasnier
2026-08-21 16:23 ` [PATCH 06/16] usb: typec: add FUSB340 SuperSpeed switch driver Fabrice Gasnier
2026-08-21 16:23 ` [PATCH 07/16] dt-bindings: nvmem: st,stm32-romem: align patternProperties regex on nvmem-deprecated-cells.yaml Fabrice Gasnier
2026-08-27 12:51 ` Krzysztof Kozlowski
2026-08-21 16:23 ` [PATCH 08/16] arm64: dts: st: Add ucpd node on stm32mp251 Fabrice Gasnier
2026-08-22 5:00 ` Marek Vasut
2026-08-26 13:19 ` Fabrice Gasnier [this message]
2026-08-21 16:23 ` [PATCH 09/16] arm64: dts: st: add i2c1 pinctrl entries for stm32mp25 Fabrice Gasnier
2026-08-21 16:23 ` [PATCH 10/16] arm64: dts: st: add tcpp " Fabrice Gasnier
2026-08-21 16:23 ` [PATCH 11/16] dt-bindings: usb: dwc3: stm32: refer to dwc3-common Fabrice Gasnier
2026-08-27 12:44 ` Krzysztof Kozlowski
2026-08-21 16:23 ` [PATCH 12/16] dt-bindings: phy: stm32: adapt usb2phy as syscon child on stm32mp25 Fabrice Gasnier
2026-08-27 12:54 ` Krzysztof Kozlowski
2026-08-21 16:23 ` [PATCH 13/16] dt-bindings: arm: stm32mp2: allow child nodes since simple-mfd transition Fabrice Gasnier
2026-08-27 12:50 ` Krzysztof Kozlowski
2026-08-21 16:23 ` [PATCH 14/16] arm64: dts: st: enable usb on stm32mp257f-ev1 Fabrice Gasnier
2026-08-27 12:55 ` Krzysztof Kozlowski
2026-08-21 16:23 ` [PATCH 15/16] arm64: dts: st: enable usb on stm32mp257f-dk Fabrice Gasnier
2026-08-21 16:23 ` [PATCH 16/16] arm64: configs: enable usb and its dependencies used on stm32mp25 Fabrice Gasnier
2026-08-22 7:28 ` Krzysztof Kozlowski
2026-08-27 12:45 ` [PATCH 00/16] Add support for USB Type-C on STM32MP25 Krzysztof Kozlowski
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=1cf02ebd-fa70-4d44-9deb-f39e4dd6c04f@foss.st.com \
--to=fabrice.gasnier@foss.st.com \
--cc=alexandre.torgue@foss.st.com \
--cc=broonie@kernel.org \
--cc=christian.bruel@foss.st.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=linux-usb@vger.kernel.org \
--cc=marex@nabladev.com \
--cc=neil.armstrong@linaro.org \
--cc=p.zabel@pengutronix.de \
--cc=pankaj.dev@st.com \
--cc=robh@kernel.org \
--cc=srini@kernel.org \
--cc=thomas.bourgoin@foss.st.com \
--cc=vkoul@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