public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Anatolij Gustschin <agust@denx.de>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: pdm360ng and touchscreen set up
Date: Thu, 04 Jul 2024 23:10:09 +1000	[thread overview]
Message-ID: <87r0c9i9qm.fsf@mail.lhotse> (raw)
In-Reply-To: <ZoNHLjmSvCN12vU5@google.com>

Dmitry Torokhov <dmitry.torokhov@gmail.com> writes:
> Hi Anatolij, Michael,
>
> I hope you can shed some light for me: why does pdm360ng have very
> elaborate set up for the "pendown" GPIO of the touchscreen? Can we
> simply fix the DTS in arch/powerpc/boot/dts/pdm360ng.dts and specify
> correct pendown GPIO there, as well as correct interrupt trigger,
> and remove most of arch/powerpc/platforms/512x/pdm360ng.c ?

Sorry, I don't know anything about this platform.

It looks like it's some sort of embedded display device? It's pretty old
and hasn't seen much activity for ~10 years.

> Something like this:
>
> diff --git a/arch/powerpc/boot/dts/pdm360ng.dts b/arch/powerpc/boot/dts/pdm360ng.dts
> index 67c3b9db75d7..5651bd9d9db3 100644
> --- a/arch/powerpc/boot/dts/pdm360ng.dts
> +++ b/arch/powerpc/boot/dts/pdm360ng.dts
> @@ -176,11 +176,12 @@ psc@11900 {
>  
>  			/* ADS7845 touch screen controller */
>  			ts@0 {
> -				compatible = "ti,ads7846";
> +				compatible = "ti,ads7845";
>  				reg = <0x0>;
>  				spi-max-frequency = <3000000>;
>  				/* pen irq is GPIO25 */
> -				interrupts = <78 0x8>;
> +				interrupts = <78 IRQ_TYPE_LEVEL_LOW>;
> +				pendown-gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
>  			};
>  		};
>  
>
>
> The reason I'm asking is that I want to remove support for platform
> data in ads7846 driver and pdm360ng is one of the last 3 users of it in
> the kernel.

I think go ahead with the change, and if anyone is still using this
device they can speak up if there's any problems.

cheers

      reply	other threads:[~2024-07-04 13:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-02  0:17 pdm360ng and touchscreen set up Dmitry Torokhov
2024-07-04 13:10 ` Michael Ellerman [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=87r0c9i9qm.fsf@mail.lhotse \
    --to=mpe@ellerman.id.au \
    --cc=agust@denx.de \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.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