From: Rob Herring <robh@kernel.org>
To: Steve Longerbeam <slongerbeam@gmail.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Mark Rutland <mark.rutland@arm.com>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
NXP Linux Team <linux-imx@nxp.com>,
"open list:CLOCKSOURCE,
CLOCKEVENT DRIVERS" <linux-kernel@vger.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
"moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 2/2] dt-bindings: timer: imx: gpt: Add pin group bindings for input capture
Date: Sun, 27 Oct 2019 16:21:21 -0500 [thread overview]
Message-ID: <20191027212121.GA3049@bogus> (raw)
In-Reply-To: <20191016010544.14561-3-slongerbeam@gmail.com>
On Tue, Oct 15, 2019 at 06:05:44PM -0700, Steve Longerbeam wrote:
> Add pin group bindings to support input capture function of the i.MX
> GPT.
>
> Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
> ---
> .../devicetree/bindings/timer/fsl,imxgpt.txt | 28 +++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/timer/fsl,imxgpt.txt b/Documentation/devicetree/bindings/timer/fsl,imxgpt.txt
> index 5d8fd5b52598..32797b7b0d02 100644
> --- a/Documentation/devicetree/bindings/timer/fsl,imxgpt.txt
> +++ b/Documentation/devicetree/bindings/timer/fsl,imxgpt.txt
> @@ -33,6 +33,13 @@ Required properties:
> an entry for each entry in clock-names.
> - clock-names : must include "ipg" entry first, then "per" entry.
>
> +Optional properties:
> +
> +- pinctrl-0: For the i.MX GPT to support the Input Capture function,
> + the input capture channel pin groups must be listed here.
> +- pinctrl-names: must be "default".
> +
> +
> Example:
>
> gpt1: timer@10003000 {
> @@ -43,3 +50,24 @@ gpt1: timer@10003000 {
> <&clks IMX27_CLK_PER1_GATE>;
> clock-names = "ipg", "per";
> };
> +
> +
> +Example with input capture channel 0 support:
> +
> +pinctrl_gpt_input_capture0: gptinputcapture0grp {
> + fsl,pins = <
> + MX6QDL_PAD_SD1_DAT0__GPT_CAPTURE1 0x1b0b0
> + >;
> +};
> +
> +gpt: gpt@2098000 {
timer@...
I don't really think this merits another example though.
> + compatible = "fsl,imx6q-gpt", "fsl,imx31-gpt";
> + reg = <0x02098000 0x4000>;
> + interrupts = <0 55 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clks IMX6QDL_CLK_GPT_IPG>,
> + <&clks IMX6QDL_CLK_GPT_IPG_PER>,
> + <&clks IMX6QDL_CLK_GPT_3M>;
> + clock-names = "ipg", "per", "osc_per";
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_gpt_input_capture0>;
> +};
> --
> 2.17.1
>
next parent reply other threads:[~2019-10-27 21:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20191016010544.14561-1-slongerbeam@gmail.com>
[not found] ` <20191016010544.14561-3-slongerbeam@gmail.com>
2019-10-27 21:21 ` Rob Herring [this message]
2019-10-28 23:59 ` [PATCH 2/2] dt-bindings: timer: imx: gpt: Add pin group bindings for input capture Steve Longerbeam
2019-10-29 19:58 ` Rob Herring
2019-11-03 20:20 ` Steve Longerbeam
2019-11-04 20:09 ` Rob Herring
2019-11-04 22:36 ` Steve Longerbeam
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=20191027212121.GA3049@bogus \
--to=robh@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=slongerbeam@gmail.com \
--cc=tglx@linutronix.de \
/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).