All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joseph Chen <chenjh@rock-chips.com>
To: gnurou@gmail.com, linus.walleij@linaro.org,
	dmitry.torokhov@gmail.com, lee.jones@linaro.org
Cc: linux-kernel@vger.kernel.org, huangtao@rock-chips.com,
	devicetree@vger.kernel.org, linux-gpio@vger.kernel.org,
	broonie@kernel.org, zhangqing@rock-chips.com, robh+dt@kernel.org,
	lgirdwood@gmail.com, linux-rockchip@lists.infradead.org,
	wdc@rock-chips.com, tony.xie@rock-chips.com,
	linux-input@vger.kernel.org, mark.rutland@arm.com,
	w.egorov@phytec.de, linux-clk@vger.kernel.org,
	a.zummo@towertech.it, alexandre.belloni@free-electrons.com,
	rtc-linux@googlegroups.com, Joseph Chen <chenjh@rock-chips.com>
Subject: [RESEND v9 12/12] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC
Date: Wed, 16 Aug 2017 10:02:25 +0800	[thread overview]
Message-ID: <1502848945-8574-1-git-send-email-chenjh@rock-chips.com> (raw)
In-Reply-To: <1502848628-27757-1-git-send-email-chenjh@rock-chips.com>

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Acked-by: Linus Walleij <linus.walleij@linaro.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



WARNING: multiple messages have this Message-ID (diff)
From: Joseph Chen <chenjh@rock-chips.com>
To: gnurou@gmail.com, linus.walleij@linaro.org,
	dmitry.torokhov@gmail.com, lee.jones@linaro.org
Cc: linux-kernel@vger.kernel.org, huangtao@rock-chips.com,
	devicetree@vger.kernel.org, linux-gpio@vger.kernel.org,
	broonie@kernel.org, zhangqing@rock-chips.com, robh+dt@kernel.org,
	lgirdwood@gmail.com, linux-rockchip@lists.infradead.org,
	wdc@rock-chips.com, tony.xie@rock-chips.com,
	linux-input@vger.kernel.org, mark.rutland@arm.com,
	w.egorov@phytec.de, linux-clk@vger.kernel.org,
	a.zummo@towertech.it, alexandre.belloni@free-electrons.com,
	rtc-linux@googlegroups.com, Joseph Chen <chenjh@rock-chips.com>
Subject: [rtc-linux] [RESEND v9 12/12] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC
Date: Wed, 16 Aug 2017 10:02:25 +0800	[thread overview]
Message-ID: <1502848945-8574-1-git-send-email-chenjh@rock-chips.com> (raw)
In-Reply-To: <1502848628-27757-1-git-send-email-chenjh@rock-chips.com>

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Acked-by: Linus Walleij <linus.walleij@linaro.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


-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  parent reply	other threads:[~2017-08-16  2:02 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-16  1:56 [RESEND v9 00/12] rk808: Add RK805 support Joseph Chen
2017-08-16  1:56 ` [rtc-linux] " Joseph Chen
2017-08-16  1:56 ` [RESEND v9 01/12] mfd: rk808: fix up the chip id get failed Joseph Chen
2017-08-16  1:56   ` [rtc-linux] " Joseph Chen
2017-08-16  1:56 ` [RESEND v9 03/12] regulator: rk808: Add regulator driver for RK805 Joseph Chen
2017-08-16  1:56   ` [rtc-linux] " Joseph Chen
2017-08-16  1:57 ` [RESEND v9 04/12] mfd: rk808: Add RK805 support Joseph Chen
2017-08-16  1:57   ` [rtc-linux] " Joseph Chen
2017-08-16  2:00 ` [RESEND v9 05/12] clk: Kconfig: Name RK805 in Kconfig for COMMON_CLK_RK808 Joseph Chen
2017-08-16  2:00   ` [rtc-linux] " Joseph Chen
     [not found]   ` <1502848803-22954-1-git-send-email-chenjh-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2017-08-31 23:20     ` Stephen Boyd
2017-08-31 23:20       ` [rtc-linux] " Stephen Boyd
2017-08-31 23:20       ` Stephen Boyd
     [not found] ` <1502848628-27757-1-git-send-email-chenjh-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2017-08-16  1:56   ` [RESEND v9 02/12] mfd: rk808: add rk805 regs addr and ID Joseph Chen
2017-08-16  1:56     ` [rtc-linux] " Joseph Chen
2017-08-16  1:56     ` Joseph Chen
2017-08-16  2:00   ` [RESEND v9 06/12] rtc: Kconfig: Name RK805 in Kconfig for RTC_DRV_RK808 Joseph Chen
2017-08-16  2:00     ` Joseph Chen
2017-08-24  9:17     ` Alexandre Belloni
2017-08-24  9:17       ` [rtc-linux] " Alexandre Belloni
2017-08-16  2:00 ` [RESEND v9 07/12] mfd: dt-bindings: Add RK805 device tree bindings document Joseph Chen
2017-08-16  2:00   ` [rtc-linux] " Joseph Chen
2017-08-16  2:01 ` [RESEND v9 08/12] pinctrl: Add pinctrl driver for the RK805 PMIC Joseph Chen
2017-08-16  2:01   ` [rtc-linux] " Joseph Chen
2017-08-16  2:01 ` [RESEND v9 09/12] Input: Add power key driver for Rockchip " Joseph Chen
2017-08-16  2:01   ` [rtc-linux] " Joseph Chen
     [not found]   ` <1502848894-29511-1-git-send-email-chenjh-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2017-08-16 18:34     ` Dmitry Torokhov
2017-08-16 18:34       ` [rtc-linux] " Dmitry Torokhov
2017-08-16 18:34       ` Dmitry Torokhov
2017-08-16  2:01 ` [RESEND v9 10/12] mfd: rk808: Add RK805 pinctrl support Joseph Chen
2017-08-16  2:01   ` [rtc-linux] " Joseph Chen
2017-08-16  2:02 ` [RESEND v9 11/12] mfd: rk808: Add RK805 power key support Joseph Chen
2017-08-16  2:02   ` [rtc-linux] " Joseph Chen
2017-08-16  2:02 ` Joseph Chen [this message]
2017-08-16  2:02   ` [rtc-linux] [RESEND v9 12/12] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC Joseph Chen
2017-08-17 21:46   ` Rob Herring
2017-08-17 21:46     ` [rtc-linux] " 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=1502848945-8574-1-git-send-email-chenjh@rock-chips.com \
    --to=chenjh@rock-chips.com \
    --cc=a.zummo@towertech.it \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=gnurou@gmail.com \
    --cc=huangtao@rock-chips.com \
    --cc=lee.jones@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=rtc-linux@googlegroups.com \
    --cc=tony.xie@rock-chips.com \
    --cc=w.egorov@phytec.de \
    --cc=wdc@rock-chips.com \
    --cc=zhangqing@rock-chips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.