From: ShuFan Lee <leechu729@gmail.com>
To: greg@kroah.com, heikki.krogerus@linux.intel.com,
linux@roeck-us.net, robh+dt@kernel.org, mark.rutland@arm.com
Cc: shufan_lee@richtek.com, cy_huang@richtek.com, jun.li@nxp.com,
mats.dev.list@gmail.com, linux-kernel@vger.kernel.org,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org
Subject: [PATCH v4 2/2] dt-bindings: usb: rt1711h device tree binding document
Date: Tue, 20 Mar 2018 17:15:04 +0800 [thread overview]
Message-ID: <1521537304-7531-3-git-send-email-leechu729@gmail.com> (raw)
In-Reply-To: <1521537304-7531-1-git-send-email-leechu729@gmail.com>
From: ShuFan Lee <shufan_lee@richtek.com>
Add device tree binding document for Richtek RT1711H Type-C chip driver
Signed-off-by: ShuFan Lee <shufan_lee@richtek.com>
---
.../devicetree/bindings/usb/richtek,rt1711h.txt | 30 ++++++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 Documentation/devicetree/bindings/usb/richtek,rt1711h.txt
changelogs between v2 & v3
- add dt-bindings for rt1711h typec driver
diff --git a/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt b/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt
new file mode 100644
index 000000000000..7da4dac78ea7
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt
@@ -0,0 +1,30 @@
+Richtek RT1711H TypeC PD Controller.
+
+Required properties:
+ - compatible : Must be "richtek,rt1711h".
+ - reg : Must be 0x4e, it's slave address of RT1711H.
+
+Recommended properties :
+ - interrupt-parent : the phandle for the interrupt controller that
+ provides interrupts for this device.
+ - interrupts : <a b> where a is the interrupt number and b represents an
+ encoding of the sense and level information for the interrupt.
+
+Optional properties :
+ - rt,intr-gpios : IRQ GPIO pin that's connected to RT1711H interrupt.
+ if interrupt-parent & interrupts are not defined, use this property instead.
+
+Example :
+rt1711h@4e {
+ compatible = "richtek,rt1711h";
+ reg = <0x4e>;
+ interrupt-parent = <&gpio26>;
+ interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+};
+
+Example using rt,intr-gpios :
+rt1711h@4e {
+ compatible = "richtek,rt1711h";
+ reg = <0x4e>;
+ rt,intr-gpios = <&gpio26 0 0x0>;
+};
--
1.9.1
next prev parent reply other threads:[~2018-03-20 9:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-20 9:15 [PATCH v4 0/2] staging: typec: rt1711h typec driver and dt-bindings ShuFan Lee
2018-03-20 9:15 ` [PATCH v4 1/2] staging: typec: rt1711h typec chip driver ShuFan Lee
2018-03-20 9:15 ` ShuFan Lee [this message]
2018-03-26 22:23 ` [PATCH v4 2/2] dt-bindings: usb: rt1711h device tree binding document Rob Herring
2018-03-27 14:30 ` 李書帆
2018-03-29 3:09 ` Rob Herring
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=1521537304-7531-3-git-send-email-leechu729@gmail.com \
--to=leechu729@gmail.com \
--cc=cy_huang@richtek.com \
--cc=devicetree@vger.kernel.org \
--cc=greg@kroah.com \
--cc=heikki.krogerus@linux.intel.com \
--cc=jun.li@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mark.rutland@arm.com \
--cc=mats.dev.list@gmail.com \
--cc=robh+dt@kernel.org \
--cc=shufan_lee@richtek.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;
as well as URLs for NNTP newsgroup(s).