Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1852496rdd; Thu, 11 Jan 2024 11:05:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjod8LvTv6M3F+iIhIVdD4DvfmASV+el+0ll1jRbX+KVSQqkjmQNTZqwl4MQdzeb4kUnbv X-Received: by 2002:a05:6402:22d2:b0:558:b9ee:7072 with SMTP id dm18-20020a05640222d200b00558b9ee7072mr83610edb.69.1704999932887; Thu, 11 Jan 2024 11:05:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704999932; cv=none; d=google.com; s=arc-20160816; b=Rz6LeorIrDpbtT/R+3ptPiUk0kFrAziR9e3/SPRQ0cPNC2UKmTXjBHXM3nko7OtiJo wAjntpkujmuncoyQbcBymO8o02FCWdZXliOaccjHfUmJRogTrLC5cNFWrnM6evNNC7WX w1LyMTu1QDIUx/CW2W5YI3tpVI9/q2hqT+c8B3C1xOiAgpkzxO/tricvj0lVidPa0ozy ggakSXNctfrHLWJByLv9ObAOpy6hX2SrZCfy3woFAP7Vq4KasK1Pr4x5ffvdB0cYfOA1 mgSyovK/yAyG611buWZWkpwSIE8xlR/tR2v0jJgVN2fwuKFjKNQl0xPAJAwyURf5dJpT FOhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=70TTwy7LzJ9GVDP1sBtk+/a7RwgjO7meqYg7DVI2Mn4=; fh=/0SwOq6w+g6TF1hFbvzoUFMZKdskvJu1istO3sEWw+I=; b=mDPvRNopzXuzbKG0Hqul4CGaAhK0YkdSxU0i5Ur993R+nFMj/CnhJMTMne3BPIjEV5 hz47y5/8QtFqhgW28Mapm/5RBRVZQkFa+XR/Abt2RGVM/DlhX4CUlVDXPaejaU5R06BI o4oiJKWNwrbB8AsVbzoFw7Ak68Rx/1NC5ky0mQuUHGOAsqUzWmImHM06EQ4Ny/1451F4 zfwZNUPloMr+Q3VN6Lk9deiU2ctq8kQjeDhUPbTdT/a0xpay+10r6gNtmpdv4h3JgMya 88Ag1YN021YGaRfxnfyx9oWjG3gbib3JK7Rab/O1tDC964PImwgzt4xp7CIAxeXjrCxl NNHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vbEVo1cf; spf=pass (google.com: domain of linux-kernel+bounces-23998-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23998-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s5-20020aa7c545000000b005571e377204si744862edr.509.2024.01.11.11.05.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 11:05:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23998-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vbEVo1cf; spf=pass (google.com: domain of linux-kernel+bounces-23998-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23998-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 72BF51F251D0 for ; Thu, 11 Jan 2024 19:05:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A03EA55764; Thu, 11 Jan 2024 19:05:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vbEVo1cf" Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) (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 6E2E954BD7 for ; Thu, 11 Jan 2024 19:05:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-5ebca94cf74so57130387b3.0 for ; Thu, 11 Jan 2024 11:05:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704999917; x=1705604717; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=70TTwy7LzJ9GVDP1sBtk+/a7RwgjO7meqYg7DVI2Mn4=; b=vbEVo1cfRNUWDL/9Z0uC33NP/KMt+x6vkpE3hiAg3gX7lxp7yUiQm0ywUOYVRQgdlB 17zhnqnx0dkk7Jcdlb/yhtNsISvpGIqMpnPxReOY69eBnjNaWPBdTm5sFlWCZKOsjSXV lgYAvDIl/S3DwqmNiXmJGMY74TKaWaNZzNV1Q4l/TFLIKPbSehhZYya0G1y0krAxXImM MCjZUOSM8y49tW84GeiKCTIMqF1VzFUua6VKZBymxFQo+XmYjEz4R6v/HkFqHf21RjcD YRzR+C6mSQgBYPtG5bZhZT/mgQ9U3s8oD7ECBn44e51CjHtD7Udyy30e+V4kTdRf95I5 YhYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704999917; x=1705604717; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=70TTwy7LzJ9GVDP1sBtk+/a7RwgjO7meqYg7DVI2Mn4=; b=opWTlaj4cTJncZy4g2nSIABOBuXzPcrby5ixWRwts3WQS+/UM1aELQEHFrgqOfHy6I 12g5B6OVgOxEJHBBIGWvUatUa+IyeKEJJk12fhaD7A8z4PP0qWQOPNh2/l9lWN8zGPa+ pAqRqG/kNkaFo2e5EmkJ0W5goi8KjQo/FrlnJzWXHYzNHUUElqWfl4gG9f2+TAhGtdT3 gY2ZbSEC4ahmEt56FvNaLvr0LcvHMt6IKnDhJI++AXprUZw+8m4rXOlpasb6x/LhL1fK 1bcLnI/eOqSodxLROEYI4p68pPJV3lWOiOVR4mBkPVb1/oBbCnlJI7CA4QcH/xQssuFx Ggiw== X-Gm-Message-State: AOJu0YwFdZYBla6SiR4i8P8pfOdurEgld6LhbrEPYve+A4zyc5fHVvH5 bm4r1pDt6iwXcXdQavRnWtJeLE0DO8AP6qIKMa4iMGcWIsVLIg== X-Received: by 2002:a0d:d5c3:0:b0:5f6:7816:f330 with SMTP id x186-20020a0dd5c3000000b005f67816f330mr264155ywd.94.1704999917362; Thu, 11 Jan 2024 11:05:17 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240110-fp4-panel-v2-0-8ad11174f65b@fairphone.com> <20240110-fp4-panel-v2-2-8ad11174f65b@fairphone.com> In-Reply-To: From: Linus Walleij Date: Thu, 11 Jan 2024 20:05:04 +0100 Message-ID: Subject: Re: [PATCH v2 2/4] drm/panel: Add driver for DJN HX83112A LCD panel To: Luca Weiss 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 , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. 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, 0x= ff, + 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. 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. Yours, Linus Walleij