Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1716057

[PATCH v9 RESEND 6/9] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC

From Heiko Stuebner <heiko@sntech.de>
Newsgroups linux.kernel
Subject [PATCH v9 RESEND 6/9] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC
Date 2017-08-21 03:30 +0200
Message-ID <ugJHs-66r-15@gated-at.bofh.it> (permalink)
References <ugJHs-66r-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v9 RESEND 0/9] mfd: rk808: Add RK805 support Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:30 +0200
  [PATCH v9 RESEND 8/9] mfd: rk808: Add RK805 pinctrl support Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:30 +0200
  [PATCH v9 RESEND 1/9] mfd: rk808: fix up the chip id get failed Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:30 +0200
  [PATCH v9 RESEND 6/9] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:30 +0200
    Re: [PATCH v9 RESEND 6/9] pinctrl: dt-bindings: add bindings for  Rockchip RK805 PMIC Lee Jones <lee.jones@linaro.org> - 2017-08-21 10:20 +0200
  [PATCH v9 RESEND 3/9] regulator: rk808: Add regulator driver for RK805 Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:30 +0200
  [PATCH v9 RESEND 2/9] mfd: rk808: add rk805 regs addr and ID Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:40 +0200
  [PATCH v9 RESEND 9/9] mfd: rk808: Add RK805 power key support Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:40 +0200
    Re: [PATCH v9 RESEND 9/9] mfd: rk808: Add RK805 power key support Lee Jones <lee.jones@linaro.org> - 2017-08-21 10:20 +0200
  [PATCH v9 RESEND 7/9] pinctrl: Add pinctrl driver for the RK805 PMIC Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:40 +0200
    Re: [PATCH v9 RESEND 7/9] pinctrl: Add pinctrl driver for the RK805  PMIC Lee Jones <lee.jones@linaro.org> - 2017-08-21 10:20 +0200
  [PATCH v9 RESEND 4/9] mfd: dt-bindings: Add RK805 device tree bindings document Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:40 +0200
    Re: [PATCH v9 RESEND 4/9] mfd: dt-bindings: Add RK805 device tree  bindings document Lee Jones <lee.jones@linaro.org> - 2017-08-21 10:20 +0200
  [PATCH v9 RESEND 5/9] mfd: rk808: Add RK805 support Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:40 +0200
    Re: [PATCH v9 RESEND 5/9] mfd: rk808: Add RK805 support Lee Jones <lee.jones@linaro.org> - 2017-08-21 10:20 +0200
  [GIT PULL] Immutable branch between MFD, Pinctrl and Regulator due  for the v4.14 merge window Lee Jones <lee.jones@linaro.org> - 2017-08-21 10:30 +0200

csiph-web