Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2187746rdd; Fri, 12 Jan 2024 01:57:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWiB00DDNB811Zc0CpDTFi7CIIo+T9lv7hubjHs3A9EcOnN7JKg16YaFsLQyT+QqQ/aSyI X-Received: by 2002:a05:6358:4d83:b0:172:ae2a:2256 with SMTP id cc3-20020a0563584d8300b00172ae2a2256mr1168534rwb.27.1705053434310; Fri, 12 Jan 2024 01:57:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705053434; cv=none; d=google.com; s=arc-20160816; b=s0J6rIuCUGa26AtxNTSLAytZKkMyzoMaQLPZpChKS8oM+ejSCpCu1QQdzl3mAIuUfy EBX9vC57G9LnusJB06JwMuQc7F9yjlSKYqSXUnq7qQeRQeAj+feLViI8TclQPleKB/rt reLewIh5AdUYrNNj4tOT7NIVOQPdB3BSTWZfrpnSIxGjveg9A8BCR9rrGt+IM3ewUYFY aKK0ySITe60AO/n148X+Cp6P7FWKwo6WkwaCdu2W+Ue7758CHgczfoqj7Vl/LaAjYF6q aF204poEelFnjz9ACshxR59jpECBgf1Nusj+EoSOqVABVzuAfhhUkrgEdgY2cnMrbU7n u74g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=SxSzWpKfczz+YOe8IKOk04XHDhgamK2R3VgeQW2Kc2k=; fh=UxT1jbmOAcd+JA2zQk9moWe8Yu4lcG1Cerb0ubhmsXE=; b=SqLe3AbmSkudTjgjpK+6lNQMlfJ1YE/fU89Z76GCl4msjX+NB2cRbTFoOpV2D6A3+v JiNgs3Fz0thVPdtyhE/OS5O6dQAbPs7YUIm0Fok859+bk4uxknyk1/OtcYtWBnbvymfx Vhw63wds7q+z3kcPlhqJsdyFy4TEUjnK012CdT+v9Y3TrdbOMsE1poPNq8egLQq+9Fx0 90Tzv+wFi0Gj65VyWxSJM93AxU478E9rig8tChxWYMIvX16+XitEcrW26QhfKwHtIF5X hNzl7jVerjqTA44TDyK5sj0qBQMeIwG1fwLspbNvw0BWpFG83Jn+pqZaAXB14E2NGSIG gvOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@fairphone.com header.s=fair header.b=ok5R+uLD; spf=pass (google.com: domain of linux-kernel+bounces-24526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f10-20020a170902860a00b001d4bac05053si2859817plo.308.2024.01.12.01.57.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:57:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@fairphone.com header.s=fair header.b=ok5R+uLD; spf=pass (google.com: domain of linux-kernel+bounces-24526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E84B1B26F0E for ; Fri, 12 Jan 2024 09:54:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 569775D8F5; Fri, 12 Jan 2024 09:52:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="ok5R+uLD" Received: from mail-ed1-f65.google.com (mail-ed1-f65.google.com [209.85.208.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0A7760EC7 for ; Fri, 12 Jan 2024 09:52:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Received: by mail-ed1-f65.google.com with SMTP id 4fb4d7f45d1cf-5574feb7958so7303815a12.3 for ; Fri, 12 Jan 2024 01:52:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1705053120; x=1705657920; darn=vger.kernel.org; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HlNYofu3r8i2ZCiashKW8Im9PXJC4O/VU7zX1cqDADg=; b=ok5R+uLD6ZTnei0DVPWInfSJ85n49ghZCKD3glCaQMa+f//WmrikyFRrLtuYKf724v x4F8ajGuLYjagd++ZzM2jU808PNxVdVE1yty5NEh/d+JJzE13S7JgptnV7E8Z2SyETg8 Y4LnyvFBnsrx9bVwEEYjN385B0e7TSkxuje0S6nd6YtFjGEmNPSrPEoU+/DmCM3fwtns Y0f6jBK8kUxRgn7pCTYWaGdiGszKtB6MCGhhTA8M0dlYRYrcBRM9eExzqPN2+Ru9p2s2 nb9Cdo3LKOc/b4KjCYy+9rpcCxE6Xv8vwwyDeMdK5XfCEpaSNmWS4+knq+gun2J4XWYu h7jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705053120; x=1705657920; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=HlNYofu3r8i2ZCiashKW8Im9PXJC4O/VU7zX1cqDADg=; b=Spe+TI++BUnPni0ApjMFb+OgHyHUL181913z2oCTmW58qsaX664IoHbKDQruNzMpOj HmFFOSmoaLWyV8JLueHZ0vXMMVvmmBUGFXZXJEDjpdv4npMEsy6KqbxXhoAtGRsfbD+A CdRrEdJ7L4VfiITvG791J5ccg64QcZ8F94UE0cyf1GZx55grF7ahZ1fdOGHcUU1PU3Zh isFuhE5yu+9Ef0zK0nZUbj0Zupo4CP1XuDHetZ/Xzr+WrNYFX2ncSpZ18xnd6eYZjFzi iPCVtrskFYh02Gs+iuL9rI0GTK/Y2OloFz0fKxi7Zm9bFWGL1ofuwPCwZUKEQmySRveX JvFg== X-Gm-Message-State: AOJu0YxhfcNdZpBriXkGnyOm5FD54YdfW/aEKqKu1I4AvCoC7JR2LaUi UNJzUw5hhhQYSxwgzQwdUZjufnghxDbNvQ== X-Received: by 2002:a05:6402:1d1c:b0:557:aa16:1e44 with SMTP id dg28-20020a0564021d1c00b00557aa161e44mr489041edb.79.1705053119939; Fri, 12 Jan 2024 01:51:59 -0800 (PST) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id eg7-20020a056402288700b0055515b40464sm1616621edb.81.2024.01.12.01.51.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Jan 2024 01:51:59 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 12 Jan 2024 10:51:59 +0100 Message-Id: Subject: Re: [PATCH v2 2/4] drm/panel: Add driver for DJN HX83112A LCD panel From: "Luca Weiss" To: , "Linus Walleij" Cc: "Jessica Zhang" , "Sam Ravnborg" , "David Airlie" , "Daniel Vetter" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Bjorn Andersson" , "Konrad Dybcio" , "Andy Gross" , , , , , <~postmarketos/upstreaming@lists.sr.ht>, X-Mailer: aerc 0.15.2 References: <20240110-fp4-panel-v2-0-8ad11174f65b@fairphone.com> <20240110-fp4-panel-v2-2-8ad11174f65b@fairphone.com> In-Reply-To: On Fri Jan 12, 2024 at 10:14 AM CET, Neil Armstrong wrote: > On 12/01/2024 10:00, Luca Weiss wrote: > > On Thu Jan 11, 2024 at 8:05 PM CET, Linus Walleij wrote: > >> On Thu, Jan 11, 2024 at 4:28=E2=80=AFPM Luca Weiss wrote: > >> > >>> In some internal documentation it says "LCD Driver IC" "HX83112A" and= I > >>> don't see any reference to Truly 5P65 anywhere. > >> > >> In the Android directory I pointed to I see this file: > >> HX83112_Android_Driver/Truly_5p65_module_fw/UpdateFW.bat > >> > >> (Notice the 5p65 fw dir is *inside* the HX82112 dir) > >> > >> And in that file: > >> adb push TRULY_5P65_1080_2160_HX83112A_D01C01.bin > >> /system/etc/firmware/Himax_firmware.bin > >> > >> Clearly indicating that they are pushing a Truly 5P65 firmware into > >> the Himax display firmware directory. > >> > >> To be fair, that is the driver for the touchscreen part of HX83112A, > >> but ... Truly is a well known manufacturer of display controllers? > >> > >> But... given that you have a @fairphone.com mal address and > >> a working relationship with them, can't you just ask? > >> > >>> On their website they have this sentence: > >> > >> All OEMs want to look like everything is their own product. It is > >> business as usual. > >=20 > > I can't tell you anything there that I don't know, sorry. > >=20 > >> > >> Further on the same note since I guess you have a datasheet) > >> please bring in #defines for the commands (the first byte in the > >> write sequences, for examples: > >> > >> + mipi_dsi_dcs_write_seq(dsi, 0xbd, 0x02); > >> + mipi_dsi_dcs_write_seq(dsi, 0xd8, > >> + 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa= a, 0xff, > >> + 0xff, 0xff, 0xff, 0xff); > >> + mipi_dsi_dcs_write_seq(dsi, 0xbd, 0x03); > >> > >> Clearly 0xbd is HX83112_CMD_SETREGBANK? > >> (This is easily spotted from the similar structure in the > >> existing panel-himax-hx8394.c.) So please add #defines > >> for all commands you know, especially if you have a datasheet > >> because we reviewers don't have them and "it's just magic > >> bytes" isn't very compelling. It adds a lot to understanding. > >=20 > > Right, the register names seem to match more or less the ones from that > > driver, plus some new ones and some differently named ones. Will send a > > v3 with that. > >=20 > >> > >> I strongly suspect other Himax displays such as HX8394 to > >> be using a Truly controller as well, hence the similarities. > >> > >> In a datasheet for their TFT800480-84-V1-E display controller > >> Truly kept the init sequence name of void LCD_INIT_HX8290(void) > >> for example. > >=20 > > In that datasheet (assuming I'm looking at the same one?) it says > > "Driver IC" "HX8290-A[...]" so there the display driver is manufactured > > by Himax and not Truly to my understanding. Truly is assembling togethe= r > > Driver + all the other parts that go into an LCD. > >=20 > > For the panel used on Fairphone 4 that part is done by the company DJN. > > Looking at the discussion, this seems to confirm the Display+Touch IC is = HX83112A, > and Truly is the panel manufacturer and all assembled by DJN, so IMHO the= initial driver is right. > > Perhaps the compatible should be djn,hx83112a-truly-5p65 to reflect that = ? Since there's zero indication Truly is involved in this panel in my documentation - much less the number 5P65 - I'm not going to add that. One other number I'm certain of is from DJN's side the model number of this panel is 9A-3R063-1102B, which I assume is the specific combination of components + frame and everything for Fairphone 4 device. That one you can also find in this document (Ctrl-F for DJN) https://www.fairphone.com/wp-content/uploads/2022/09/FP4_Information-for-re= pairers-and-recyclers.pdf . or on this picture: https://guide-images.cdn.ifixit.com/igi/HgTquQPABg1mAMHD.huge So something like djn,9a-3r063-1102b would also be somewhat valid I guess? So in short this panel is the model 9A-3R063-1102B from DJN, which uses a Himax HX83112A driver IC. And there's also AU Optronics listed as =E7=8E=BB=E7=92=83=E5=8E=82=E5=AE= =B6 ("glass manufacturer"?) fwiw, though the display also uses Corning Gorilla Glass 5 so not sure who's supplying what. Regards Luca > > Neil > > >=20 > > Regards > > Luca > >=20 > >> > >> Yours, > >> Linus Walleij > >=20