From: "Miao.Zhu" <Miao.Zhu@synopsys.com>
To: robh@kernel.org
Cc: James.Li1@synopsys.com, Jianheng.Zhang@synopsys.com,
Martin.McKenny@synopsys.com, Miao.Zhu@synopsys.com,
andre.draszik@linaro.org, conor+dt@kernel.org,
dan.carpenter@linaro.org, devicetree@vger.kernel.org,
emanuele.ghidoli@toradex.com, gregkh@linuxfoundation.org,
heikki.krogerus@linux.intel.com, jun.li@nxp.com,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
m.felsch@pengutronix.de, rdbabiera@google.com,
u.kleine-koenig@baylibre.com, xu.yang_2@nxp.com,
Miao Zhu <Miao.Zhu@synopsys.com>
Subject: [PATCH v3 2/2] dt-bindings: usb: ptn5110: add TCPC properties
Date: Wed, 18 Dec 2024 06:22:14 +0100 [thread overview]
Message-ID: <20241218052214.1808006-1-miao@synopsys.com> (raw)
In-Reply-To: <173448855676.4113446.18228420092453259118.robh@kernel.org>
From: Miao Zhu <miao@synopsys.com>
The TCPCI driver has flags to configure its protperties but
no way to enable these flags yet. Add these flags into DT
so that the driver can be compatible with TCPCI Spec R2 V1.0.
Signed-off-by: Miao.Zhu <miao@synopsys.com>
---
V2 -> V3: Add description and type for new properties:
---
.../devicetree/bindings/usb/nxp,ptn5110.yaml | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/Documentation/devicetree/bindings/usb/nxp,ptn5110.yaml b/Documentation/devicetree/bindings/usb/nxp,ptn5110.yaml
index 65a8632..29d6aed 100644
--- a/Documentation/devicetree/bindings/usb/nxp,ptn5110.yaml
+++ b/Documentation/devicetree/bindings/usb/nxp,ptn5110.yaml
@@ -21,6 +21,28 @@ properties:
interrupts:
maxItems: 1
+ TX_BUF_BYTE_x_hidden:
+ description:
+ When set, TX_BUF_BYTE_x can only be accessed through
+ I2C_WRITE_BYTE_COUNT.
+ type: boolean
+
+ RX_BUF_BYTE_x_hidden:
+ description:
+ When set, RX_BUF_BYTE_x can only be accessed through
+ READABLE_BYTE_COUNT.
+ type: boolean
+
+ auto_discharge_disconnect:
+ description:
+ When set, TCPC autonomously discharges vbus on disconnect.
+ type: boolean
+
+ vbus_vsafe0v:
+ description:
+ When set, TCPC can detect whether vbus is at VSAFE0V.
+ type: boolean
+
connector:
type: object
$ref: /schemas/connector/usb-connector.yaml#
--
2.9.3
next prev parent reply other threads:[~2024-12-18 5:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-02 3:06 [PATCH] usb: typec: tcpm: tcpci: Make the driver be compatible with the TCPCI spec [Rev 2.0 Ver 1.0, October 2017] Miao Zhu
2024-12-02 5:43 ` Xu Yang
2024-12-18 1:07 ` [PATCH v2 0/2] usb: typec: tcpci: Make the driver be compatible with TCPCI Spec Miao.Zhu
2024-12-18 1:07 ` [PATCH v2 1/2] usb: typec: tcpm: tcpci: Make the driver be compatible with the TCPCI spec [Rev 2.0 Ver 1.0, October 2017] Miao.Zhu
2024-12-18 1:07 ` [PATCH v2 2/2] dt-bindings: usb: ptn5110: add TCPC properties Miao.Zhu
2024-12-18 2:22 ` Rob Herring (Arm)
2024-12-18 5:22 ` Miao.Zhu [this message]
2024-12-18 8:04 ` [PATCH v3 " Krzysztof Kozlowski
2024-12-18 9:04 ` Krzysztof Kozlowski
2024-12-18 5:28 ` Miao.Zhu
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=20241218052214.1808006-1-miao@synopsys.com \
--to=miao.zhu@synopsys.com \
--cc=James.Li1@synopsys.com \
--cc=Jianheng.Zhang@synopsys.com \
--cc=Martin.McKenny@synopsys.com \
--cc=andre.draszik@linaro.org \
--cc=conor+dt@kernel.org \
--cc=dan.carpenter@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=emanuele.ghidoli@toradex.com \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=jun.li@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=m.felsch@pengutronix.de \
--cc=rdbabiera@google.com \
--cc=robh@kernel.org \
--cc=u.kleine-koenig@baylibre.com \
--cc=xu.yang_2@nxp.com \
/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