From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: devicetree <devicetree@vger.kernel.org>,
Chen-Yu Tsai <wens@csie.org>, Rob Herring <robh+dt@kernel.org>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 4/8] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-gt90h
Date: Tue, 23 Aug 2016 17:17:38 +0200 [thread overview]
Message-ID: <20160823151738.GM2598@lukather> (raw)
In-Reply-To: <a8de228d-2ba9-e23e-0c0c-e9a78dbe6e6a@redhat.com>
[-- Attachment #1.1: Type: text/plain, Size: 3354 bytes --]
On Tue, Aug 23, 2016 at 11:39:06AM +0200, Hans de Goede wrote:
> Hi,
>
> On 23-08-16 11:26, Maxime Ripard wrote:
> >On Mon, Aug 22, 2016 at 09:03:57PM +0200, Hans de Goede wrote:
> >>Hi,
> >>
> >>On 22-08-16 20:30, Maxime Ripard wrote:
> >>>On Mon, Aug 08, 2016 at 09:43:14PM +0200, Hans de Goede wrote:
> >>>>The gt90h tablet has a gsl3675 touchscreen, add a dt node describing it.
> >>>>
> >>>>Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> >>>>---
> >>>>arch/arm/boot/dts/sun8i-a23-gt90h-v4.dts | 8 ++++++++
> >>>>1 file changed, 8 insertions(+)
> >>>>
> >>>>diff --git a/arch/arm/boot/dts/sun8i-a23-gt90h-v4.dts b/arch/arm/boot/dts/sun8i-a23-gt90h-v4.dts
> >>>>index f27ebbb..da55b5a 100644
> >>>>--- a/arch/arm/boot/dts/sun8i-a23-gt90h-v4.dts
> >>>>+++ b/arch/arm/boot/dts/sun8i-a23-gt90h-v4.dts
> >>>>@@ -53,6 +53,14 @@
> >>>> status = "okay";
> >>>>};
> >>>>
> >>>>+&gsl1680 {
> >>>>+ compatible = "silead,gsl3675";
> >>>>+ touchscreen-fw-name = "silead/gsl3675-gt90h.fw";
> >>>
> >>>That's not documented anywhere, and looks really suspicious.
> >>
> >>Ugh, that should have been in:
> >>
> >>Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txt
> >>
> >>But somehow it is not (I believe it was there in earlier revisions of
> >>the patch), I'll send a patch to fix this.
> >>
> >>About it being suspicious, this is not really firmware it is a bunch
> >>of configuration data / lookup tables for the controller which tell
> >>it in which order the touchscreen horizontal / vertical sensor
> >>lines are connected to its sense pins, and what values to send
> >>for finger x% between line z and line z+1, which differs per
> >>tablet model, since not all tablets use the same digitizer.
> >
> >It's not really the firmware itself that I find suspicious, but more
> >the encoding of a path to a file in the DT,
>
> It is not a path it is a filename. We could drop the "silead/" prefix
> and put that in the driver instead to really make it a filename.
>
> >especially when you can
> >apparently derive it from other informations already found in the DT
> >(<vendor>/<compatible>-<board>.fw)
>
> That will not work, sometimes different boards use the same digitizer
> and thus the same firmware. Also in case of the q8 tablets, we need
> different firmware for different variants (this is to be dealt with
> by the q8-hardware-manager I'm working on), since although they
> all use the same digitizer they do not wire it up to the controllers
> pins the same in all models, so we need different firmware files
> corresponding to different wirings.
>
> TL;DR: There is no 1:1 mapping between board and the firmware filename.
The point still holds. It's exactly the same case than the broadcom
nvram filename discussion, and it raised the same issues.
> Also note that this is not the first driver to introduce a firmware
> filename in a dts binding, a quick grep shows at least:
>
> Documentation/devicetree/bindings/remoteproc/wkup_m3_rproc.txt
>
> Also does this, as well as several dt-bindings where board specific
> firmware gets embedded in the device tree itself.
Which has never been acked by any of the DT maintainers.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2016-08-23 15:17 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 19:43 [PATCH 1/8] ARM: dts: sun8i: Use sun8i-reference-design-tablet for gt90h dts Hans de Goede
[not found] ` <1470685398-14568-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-08 19:43 ` [PATCH 2/8] ARM: dts: sun8i: Add dt node for rtl8703as wifi chip on ga10h Hans de Goede
[not found] ` <1470685398-14568-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-16 2:43 ` Chen-Yu Tsai
[not found] ` <CAGb2v67=54_cW6Svt2ZNvtMXwOU7wvzj_V6MT0fGB9hAjX=8PA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-08-16 8:41 ` Hans de Goede
2016-08-08 19:43 ` [PATCH 3/8] ARM: dts: sun8i: reference-design-tablet: Add gsl1680 touchscreen node Hans de Goede
[not found] ` <1470685398-14568-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-16 2:45 ` Chen-Yu Tsai
2016-08-22 18:31 ` Maxime Ripard
2016-08-08 19:43 ` [PATCH 4/8] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-gt90h Hans de Goede
[not found] ` <1470685398-14568-4-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-16 2:47 ` Chen-Yu Tsai
[not found] ` <CAGb2v66_WAO-hm5jyeE9=J=hi8=03LH26Qev+xv1CsphH53=eQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-08-16 9:02 ` Hans de Goede
2016-08-22 18:30 ` Maxime Ripard
2016-08-22 19:03 ` Hans de Goede
2016-08-23 2:05 ` Icenowy Zheng
[not found] ` <cf0186a0-f4ea-173c-4f93-df8798941199-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-23 9:26 ` Maxime Ripard
2016-08-23 9:39 ` Hans de Goede
2016-08-23 15:17 ` Maxime Ripard [this message]
2016-08-23 15:59 ` Hans de Goede
[not found] ` <8541f3c3-c83b-bd20-42cf-03fdfb3a33d9-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-26 20:46 ` Maxime Ripard
2016-08-27 8:32 ` Hans de Goede
[not found] ` <913fab6d-a5a9-fe3f-80bd-f52b70974300-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-30 16:33 ` Maxime Ripard
2016-08-08 19:43 ` [PATCH 5/8] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-inet86dz Hans de Goede
[not found] ` <1470685398-14568-5-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-16 2:48 ` Chen-Yu Tsai
2016-08-08 19:43 ` [PATCH 6/8] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-polaroid-mid2407pxe03 Hans de Goede
[not found] ` <1470685398-14568-6-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-16 3:03 ` Chen-Yu Tsai
2016-08-08 19:43 ` [PATCH 7/8] ARM: dts: sun8i: Add touchscreen node for sun8i-a23-polaroid-mid2809pxe04 Hans de Goede
[not found] ` <1470685398-14568-7-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-16 2:49 ` Chen-Yu Tsai
2016-08-08 19:43 ` [PATCH 8/8] ARM: dts: sun8i: Add touchscreen node for sun8i-a33-ga10h Hans de Goede
[not found] ` <1470685398-14568-8-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-16 2:49 ` Chen-Yu Tsai
2016-08-16 2:40 ` [PATCH 1/8] ARM: dts: sun8i: Use sun8i-reference-design-tablet for gt90h dts Chen-Yu Tsai
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=20160823151738.GM2598@lukather \
--to=maxime.ripard@free-electrons.com \
--cc=devicetree@vger.kernel.org \
--cc=hdegoede@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=robh+dt@kernel.org \
--cc=wens@csie.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;
as well as URLs for NNTP newsgroup(s).