Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2164799rdd; Fri, 12 Jan 2024 01:00:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcM3yOxs0eOgUeIo+uSz/bGx6thVjnh7c9HjPeO6HH1HTCRlZTOB6qOvLjXkyC1Sd2WN0u X-Received: by 2002:a05:6102:3bd1:b0:467:c2fb:5f0e with SMTP id a17-20020a0561023bd100b00467c2fb5f0emr911094vsv.64.1705050029374; Fri, 12 Jan 2024 01:00:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705050029; cv=none; d=google.com; s=arc-20160816; b=sinNWhgWVuD7pCBLofF5nB/un8/C1zbauu55sZEUg3fPZ2a76lm6Tt8GKkDsPpTp+t 7u9IHYmMSyy0Cq3dDmD/kz96wrw2qoEjI+SUWvSZElMX8xXwR8MWUS+/d2thEknrujhR cEmSykLAL5S6rdRjp77m12tMeWuFeKGtnuV/s0O/MX+bdQuVo0RXyd2OM3W6GGrxrRBn yu8/wKa2+cG7ZDNTD4RitcE954nqOL1uNeKtvb4nbR66WxRVekIqPmzdK6go823Uuh68 UjeCCI0ynkmAcC+hfCi+NJisDos2FcUUyEERlxD+A4zfO+ZhK346aUlKK7nCymSnPF8Y uxrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=9SkiM1CyhiqOdeyM++a6lT4rbKePEx/F9YY5NzKazuE=; fh=9XYRIPSln4m4Uv35JNxVgV/+Fw73az26gBVMdilb0UA=; b=TzO7gKSXA6yw0i0+l4NGIYuny3JkSOCSELh67tTobrNIw5lAC8juberOQUhYJglxj/ LwG+nSni5AxyQNyqlAFQbHRQ7AX8UuXeksbf5V+iLthOAgWk5S/uyL7/JyngMpBFKIOS Q9bwfe2U0PA/cz6atHiMT8k5xjMJciyNWfx8D3rF1ga/cwBfqXMpbeONZj6whOCXz9hI mq857CJRpVu4ylUy9dObFgwECwQjuZduCl9p6LgJzfcAGTzO0ywZQhxnB79oT9mzwCDC oXA3R9tCFOcsiRlroX3VCmplYGc7d9+zMfLqhF035aWV2gZNZpcqWHtdYmj/hPn1Y4D3 B8OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=HO4cMldz; spf=pass (google.com: domain of linux-kernel+bounces-24441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c8-20020a05622a058800b00429bc6db99dsi2483862qtb.215.2024.01.12.01.00.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:00:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=HO4cMldz; spf=pass (google.com: domain of linux-kernel+bounces-24441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 269591C24F32 for ; Fri, 12 Jan 2024 09:00:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A4B55577F; Fri, 12 Jan 2024 09:00:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="HO4cMldz" 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 1C10154BC8 for ; Fri, 12 Jan 2024 09:00:19 +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-5574feb7958so7236284a12.3 for ; Fri, 12 Jan 2024 01:00:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1705050018; x=1705654818; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9SkiM1CyhiqOdeyM++a6lT4rbKePEx/F9YY5NzKazuE=; b=HO4cMldzwLhwY7Oms8X7gJSko/PvJ4uHJdPKmtax1Jjav3mLLFbpii/sscAzPnEuKf SxrSCAJgKZxNvWyBYvuZlvp7hldHlp9bjk0b8CZZmCbjsddlY0tu/qgs5sLrmlK7Ykra DNUzHWjemDfbcUraqpRr3EXuMOC3jwIJRF3nuTGySMB5/ETg7U3JwTjXLoSbfzeKAso1 EQJH9gVgZTTXF6mafvs9ahBeXu9MFUQ9w7BEprftFUTGHr92iY+BmX/xTrzLfmlnfnDr AmebHBYnJgEw8mFLRJOHk1jR6572g3U+z01gL7Uqm+ZiT/5LQIEERvehH7VhvmX+6rcI Sp9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705050018; x=1705654818; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=9SkiM1CyhiqOdeyM++a6lT4rbKePEx/F9YY5NzKazuE=; b=wCEl7QQxrh4B62bHTebOyHQDjEm5Dpj7Xu+mDjOF0WVeCNldwPA5MQXZEaDXYbyOXz NRCJirTqye0v3Mb7YHlgDqNV0pRqqtt0glcxT1pcwa551YRXDY9fKbRmVXChTfsnidha lyimuvNqFjGH/Zn717WS0QJLPJVQsJFLcW07sJyb70vRVtZCrDHXKXRr6ADeBsbRDaKU ZWwToUh0vqvPu+fFQ8eRy6l3ILVOBwmQheMxmx5/ZMhKLOkcrpNA/oavH/vwYFDqr5KW EVX8PGNGpbRe8UWvAbsocsGV7iTAVxJldLuUKWQ69XpKwisd4nFsbPtrpJTuNeZbsljN XIcA== X-Gm-Message-State: AOJu0Yzt2tLIyjXFVZdtYe8z4/nTlxv/mrB/Td3L4IPawlt3QHF7ZI3l dotVTKg1vh8I2Hlo70V9vqiKKZ3K69tnIQ== X-Received: by 2002:a50:fa94:0:b0:54c:60f0:7511 with SMTP id w20-20020a50fa94000000b0054c60f07511mr480176edr.35.1705050018310; Fri, 12 Jan 2024 01:00:18 -0800 (PST) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id j14-20020a50ed0e000000b005550192159bsm1555191eds.62.2024.01.12.01.00.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Jan 2024 01:00:17 -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:00:17 +0100 Message-Id: Cc: "Neil Armstrong" , "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>, Subject: Re: [PATCH v2 2/4] drm/panel: Add driver for DJN HX83112A LCD panel From: "Luca Weiss" To: "Linus Walleij" 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 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. I can't tell you anything there that I don't know, sorry. > > 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, 0xaa, = 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. 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. > > 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. 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 together Driver + all the other parts that go into an LCD. For the panel used on Fairphone 4 that part is done by the company DJN. Regards Luca > > Yours, > Linus Walleij