From: Heiko Stuebner <heiko@sntech.de>
To: lee.jones@linaro.org
Cc: chenjh@rock-chips.com, devicetree@vger.kernel.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
Heiko Stuebner <heiko@sntech.de>
Subject: [PATCH v9 RESEND 6/9] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC
Date: Mon, 21 Aug 2017 03:28:39 +0200 [thread overview]
Message-ID: <20170821012842.17875-7-heiko@sntech.de> (raw)
In-Reply-To: <20170821012842.17875-1-heiko@sntech.de>
From: Joseph Chen <chenjh@rock-chips.com>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
.../devicetree/bindings/pinctrl/pinctrl-rk805.txt | 63 ++++++++++++++++++++++
1 file changed, 63 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-rk805.txt
diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-rk805.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-rk805.txt
new file mode 100644
index 000000000000..eee3dc260934
--- /dev/null
+++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-rk805.txt
@@ -0,0 +1,63 @@
+Pincontrol driver for RK805 Power management IC.
+
+RK805 has 2 pins which can be configured as GPIO output only.
+
+Please refer file <devicetree/bindings/pinctrl/pinctrl-bindings.txt>
+for details of the common pinctrl bindings used by client devices,
+including the meaning of the phrase "pin configuration node".
+
+Optional Pinmux properties:
+--------------------------
+Following properties are required if default setting of pins are required
+at boot.
+- pinctrl-names: A pinctrl state named per <pinctrl-binding.txt>.
+- pinctrl[0...n]: Properties to contain the phandle for pinctrl states per
+ <pinctrl-binding.txt>.
+
+The pin configurations are defined as child of the pinctrl states node. Each
+sub-node have following properties:
+
+Required properties:
+------------------
+- #gpio-cells: Should be two. The first cell is the pin number and the
+ second is the GPIO flags.
+
+- gpio-controller: Marks the device node as a GPIO controller.
+
+- pins: List of pins. Valid values of pins properties are: gpio0, gpio1.
+
+First 2 properties must be added in the RK805 PMIC node, documented in
+Documentation/devicetree/bindings/mfd/rk808.txt
+
+Optional properties:
+-------------------
+Following are optional properties defined as pinmux DT binding document
+<pinctrl-bindings.txt>. Absence of properties will leave the configuration
+on default.
+ function,
+ output-low,
+ output-high.
+
+Valid values for function properties are: gpio.
+
+Theres is also not customised properties for any GPIO.
+
+Example:
+--------
+rk805: rk805@18 {
+ compatible = "rockchip,rk805";
+ ...
+ gpio-controller;
+ #gpio-cells = <2>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pmic_int_l>, <&rk805_default>;
+
+ rk805_default: pinmux {
+ gpio01 {
+ pins = "gpio0", "gpio1";
+ function = "gpio";
+ output-high;
+ };
+ };
+};
--
2.14.1
next prev parent reply other threads:[~2017-08-21 1:28 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-21 1:28 [PATCH v9 RESEND 0/9] mfd: rk808: Add RK805 support Heiko Stuebner
2017-08-21 1:28 ` [PATCH v9 RESEND 1/9] mfd: rk808: fix up the chip id get failed Heiko Stuebner
2017-08-21 8:14 ` Lee Jones
2017-08-21 1:28 ` [PATCH v9 RESEND 3/9] regulator: rk808: Add regulator driver for RK805 Heiko Stuebner
2017-08-21 8:15 ` Lee Jones
[not found] ` <20170821012842.17875-1-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2017-08-21 1:28 ` [PATCH v9 RESEND 2/9] mfd: rk808: add rk805 regs addr and ID Heiko Stuebner
2017-08-21 8:15 ` Lee Jones
2017-08-21 1:28 ` [PATCH v9 RESEND 4/9] mfd: dt-bindings: Add RK805 device tree bindings document Heiko Stuebner
2017-08-21 8:15 ` Lee Jones
2017-08-21 1:28 ` [PATCH v9 RESEND 5/9] mfd: rk808: Add RK805 support Heiko Stuebner
2017-08-21 8:16 ` Lee Jones
2017-08-21 1:28 ` [PATCH v9 RESEND 9/9] mfd: rk808: Add RK805 power key support Heiko Stuebner
2017-08-21 8:16 ` Lee Jones
2017-08-21 1:28 ` Heiko Stuebner [this message]
2017-08-21 8:16 ` [PATCH v9 RESEND 6/9] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC Lee Jones
2017-08-21 1:28 ` [PATCH v9 RESEND 7/9] pinctrl: Add pinctrl driver for the " Heiko Stuebner
[not found] ` <20170821012842.17875-8-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2017-08-21 8:16 ` Lee Jones
2017-08-21 1:28 ` [PATCH v9 RESEND 8/9] mfd: rk808: Add RK805 pinctrl support Heiko Stuebner
2017-08-21 8:16 ` Lee Jones
2017-08-21 8:25 ` [GIT PULL] Immutable branch between MFD, Pinctrl and Regulator due for the v4.14 merge window Lee Jones
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=20170821012842.17875-7-heiko@sntech.de \
--to=heiko@sntech.de \
--cc=chenjh@rock-chips.com \
--cc=devicetree@vger.kernel.org \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.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).