From: Vignesh Raghavendra <vigneshr@ti.com>
To: Nishanth Menon <nm@ti.com>, Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Rob Herring <robh+dt@kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
Tero Kristo <kristo@kernel.org>
Subject: Re: [PATCH V2] arm64: dts: ti: k3-pinctrl: Introduce debounce select mux macros
Date: Fri, 21 Jul 2023 09:09:03 +0530 [thread overview]
Message-ID: <ec6b8d6d-6191-d760-10b2-29518010f4b4@ti.com> (raw)
In-Reply-To: <20230619131620.3286650-1-nm@ti.com>
On 19/06/23 18:46, Nishanth Menon wrote:
> Introduce the debounce select mux macros to allow folks to setup
> debounce configuration for pins. Each configuration selected maps
> to a specific timing register as documented in appropriate Technical
> Reference Manual (example:[1]).
>
> [1] AM625x TRM (section 6.1.2.2): https://www.ti.com/lit/pdf/spruiv7
>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
> Changes since V1:
> - I have'nt picked up Krystoff's ack since the file modified is now different.
> - Changes now applied to k3-pinctrl.h instead of the ABI header that is
> now set up to be deleted in v6.5-rc1.
>
> V1: https://lore.kernel.org/linux-devicetree/20230308084309.396192-1-nm@ti.com/
>
> arch/arm64/boot/dts/ti/k3-pinctrl.h | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
> diff --git a/arch/arm64/boot/dts/ti/k3-pinctrl.h b/arch/arm64/boot/dts/ti/k3-pinctrl.h
> index c97548a3f42d..6004e0967ec5 100644
> --- a/arch/arm64/boot/dts/ti/k3-pinctrl.h
> +++ b/arch/arm64/boot/dts/ti/k3-pinctrl.h
> @@ -11,6 +11,7 @@
> #define PULLUDEN_SHIFT (16)
> #define PULLTYPESEL_SHIFT (17)
> #define RXACTIVE_SHIFT (18)
> +#define DEBOUNCE_SHIFT (11)
>
> #define PULL_DISABLE (1 << PULLUDEN_SHIFT)
> #define PULL_ENABLE (0 << PULLUDEN_SHIFT)
> @@ -29,6 +30,14 @@
> #define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP)
> #define PIN_INPUT_PULLDOWN (INPUT_EN | PULL_DOWN)
>
> +#define PIN_DEBOUNCE_DISABLE (0 << DEBOUNCE_SHIFT)
> +#define PIN_DEBOUNCE_CONF1 (1 << DEBOUNCE_SHIFT)
> +#define PIN_DEBOUNCE_CONF2 (2 << DEBOUNCE_SHIFT)
> +#define PIN_DEBOUNCE_CONF3 (3 << DEBOUNCE_SHIFT)
> +#define PIN_DEBOUNCE_CONF4 (4 << DEBOUNCE_SHIFT)
> +#define PIN_DEBOUNCE_CONF5 (5 << DEBOUNCE_SHIFT)
> +#define PIN_DEBOUNCE_CONF6 (6 << DEBOUNCE_SHIFT)
> +
> #define AM62AX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
> #define AM62AX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
>
--
Regards
Vignesh
next prev parent reply other threads:[~2023-07-21 3:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-19 13:16 Nishanth Menon
2023-07-21 3:39 ` Vignesh Raghavendra [this message]
2023-08-02 5:03 ` Nishanth Menon
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=ec6b8d6d-6191-d760-10b2-29518010f4b4@ti.com \
--to=vigneshr@ti.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kristo@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nm@ti.com \
--cc=robh+dt@kernel.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
all inboxes | Powered by JetHome®