[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1502273273-12728-1-git-send-email-chenjh@rock-chips.com>
Date: Wed, 9 Aug 2017 18:07:53 +0800
From: Joseph Chen <chenjh@...k-chips.com>
To: gnurou@...il.com, linus.walleij@...aro.org,
dmitry.torokhov@...il.com
Cc: huangtao@...k-chips.com, devicetree@...r.kernel.org,
linux-gpio@...r.kernel.org, broonie@...nel.org,
zhangqing@...k-chips.com, linux-kernel@...r.kernel.org,
robh+dt@...nel.org, lgirdwood@...il.com,
linux-rockchip@...ts.infradead.org, wdc@...k-chips.com,
tony.xie@...k-chips.com, linux-input@...r.kernel.org,
mark.rutland@....com, w.egorov@...tec.de,
Joseph Chen <chenjh@...k-chips.com>
Subject: [PATCH v9 12/12] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC
Signed-off-by: Joseph Chen <chenjh@...k-chips.com>
Acked-by: Linus Walleij <linus.walleij@...aro.org>
---
.../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 0000000..eee3dc2
--- /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;
+ };
+ };
+};
--
1.9.1
Powered by blists - more mailing lists