Linux IIO development
 help / color / mirror / Atom feed
From: William Breathitt Gray <vilhelm.gray@gmail.com>
To: Jason Kridner <jkridner@beagleboard.org>
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] counter: ti-eqep: Enable for TDA4VM/J721E
Date: Sat, 4 Dec 2021 10:46:17 +0900	[thread overview]
Message-ID: <YarIaXSfewK/nCZs@shinobu> (raw)
In-Reply-To: <20211130193346.678544-1-jkridner@beagleboard.org>

[-- Attachment #1: Type: text/plain, Size: 2823 bytes --]

On Tue, Nov 30, 2021 at 02:33:46PM -0500, Jason Kridner wrote:
> Counter TI-EQEP was tested on TDA4VM/J721E SoC.
> 
> Overlay used for testing EQEP0 and EQEP1:
> 
>     &cbass_main {
> 	#address-cells = <2>;
> 	#size-cells = <2>;
> 
> 	eqep0: qep@3200000 {
> 		compatible = "ti,am3352-eqep";
> 		reg = <0 0x3200000 0 0x100>;
> 		power-domains = <&k3_pds 94 TI_SCI_PD_EXCLUSIVE>;
> 		clocks = <&k3_clks 94 0>;
> 		clock-names = "eqep0-ficlk";
> 		interrupts = <GIC_SPI 322 IRQ_TYPE_EDGE_RISING>;
> 		interrupt-names = "eqep0";
> 		symlink = "bone/eQEP0"; /* A - P9_42, B - P9_27 */
> 
> 		count_mode = <0>;
> 		swap_input = <0>;
> 		invert_qa = <1>;
> 		invert_qb = <1>;
> 		invert_qi = <0>;
> 		invert_qs = <0>;
> 	};
> 
> 	eqep1: qep@3210000 {
> 		compatible = "ti,am3352-eqep";
> 		reg = <0 0x3210000 0 0x100>;
> 		power-domains = <&k3_pds 95 TI_SCI_PD_EXCLUSIVE>;
> 		clocks = <&k3_clks 95 0>;
> 		clock-names = "eqep1-ficlk";
> 		interrupts = <GIC_SPI 323 IRQ_TYPE_EDGE_RISING>;
> 		interrupt-names = "eqep1";
> 		symlink = "bone/eQEP1"; /* A - P8_35, B - P8_33 */
> 
> 		count_mode = <0>;
> 		swap_input = <0>;
> 		invert_qa = <1>;
> 		invert_qb = <1>;
> 		invert_qi = <0>;
> 		invert_qs = <0>;
> 	};
> 
> 	eqep2: qep@3220000 {
> 		status = "disabled";
> 		compatible = "ti,am3352-eqep";
> 		reg = <0 0x3220000 0 0x100>;
> 		power-domains = <&k3_pds 96 TI_SCI_PD_EXCLUSIVE>;
> 		clocks = <&k3_clks 96 0>;
> 		clock-names = "eqep2-ficlk";
> 		interrupts = <GIC_SPI 324 IRQ_TYPE_EDGE_RISING>;
> 		interrupt-names = "eqep2";
> 
> 		count_mode = <0>;
> 		swap_input = <0>;
> 		invert_qa = <1>;
> 		invert_qb = <1>;
> 		invert_qi = <0>;
> 		invert_qs = <0>;
> 	};
>     };
> 
> Signed-off-by: Jason Kridner <jkridner@beagleboard.org>

Hello Jason,

The change in this patch is a simple architecture enablement so I don't
have a problem with it given that it's been tested. However, I would
like the commit message simplified as Nishanth recommends before we
merge this patch, so please resubmit it to clean that up. Regardless,
for the code change itself I'll give my ack.

Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com>

> ---
>  drivers/counter/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/counter/Kconfig b/drivers/counter/Kconfig
> index 2de53ab0dd25..453490059c88 100644
> --- a/drivers/counter/Kconfig
> +++ b/drivers/counter/Kconfig
> @@ -51,7 +51,7 @@ config STM32_LPTIMER_CNT
>  
>  config TI_EQEP
>  	tristate "TI eQEP counter driver"
> -	depends on (SOC_AM33XX || COMPILE_TEST)
> +	depends on (SOC_AM33XX || ARCH_K3 || COMPILE_TEST)
>  	select REGMAP_MMIO
>  	help
>  	  Select this option to enable the Texas Instruments Enhanced Quadrature
> -- 
> 2.30.2
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      parent reply	other threads:[~2021-12-04  1:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-30 19:33 [PATCH] counter: ti-eqep: Enable for TDA4VM/J721E Jason Kridner
2021-11-30 21:16 ` Nishanth Menon
2021-12-04 16:34   ` Jonathan Cameron
2021-12-04  1:46 ` William Breathitt Gray [this message]

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=YarIaXSfewK/nCZs@shinobu \
    --to=vilhelm.gray@gmail.com \
    --cc=jkridner@beagleboard.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.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