From patchwork Mon Jul 31 14:31:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 12887 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2085544vqg; Mon, 31 Jul 2023 08:20:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlEglZ8m/gJuzW4YKxI0n3IBS2HMN+/DT7mYZ+Ef9pl1A6FawBRD9ECldr930WqgoScl0lLH X-Received: by 2002:a17:902:7797:b0:1b1:ae33:30de with SMTP id o23-20020a170902779700b001b1ae3330demr7954205pll.13.1690816805132; Mon, 31 Jul 2023 08:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690816805; cv=none; d=google.com; s=arc-20160816; b=Va9W2skW31mhIIpk9TpuSvgpJyp214vh9oZQg8NjhjZ12TKzUu2oQdZGzV5aSKT6kr h5lihuJZyhbdjVsTV/tR4CYMFZsyYXR/dnOWXhiZzX5zjwRsgaBpyJg1xqIgFI0nuFpD pZPNo4e6zdALyL8diW9OqRMR6CfSaeyj1j5NHdxSkCHM/ZdwVd3GCx8faWwIHJIWV8H2 rvF58lFmBszFd672i0jKWbQsjtin0b6Oredh4hYtjeLV3dykjLIZxbLeXem34XJ7K7pg 93C6WHwz7vSSEq2K+4VltEdKbl91fJI29DYlYZRRUAIrMfA83daVBsQ4Zus42GedC9LP HDLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=C2IHwKYnLNDMWdLQxEd/SU6Gdll+SBIjNHACmkW+1QA=; fh=y1FkPiC1EP4+SKwHKnJr6fs2SplXb7iHcv53cdjqlBA=; b=IhHXBCp3aNPAbtkgYCwVsxLeSYfGUq0UrhdrIVG8J+43pKQEUQ+V3dXXqbNjbV3dqV eUhp++f8owvrRgC1VYVVdfqOlTBdD6mffUC+VZp8QTt24HjwKy2jpJrXT8h+ui8L8Hai Sb4qGF6r3wotoOWCGe2UytyfjgGOejf74+AJKfnW8MWD1fP5/c0Ped6Zs9vbzJTNmZPA WD2DANX+AsgEpq+fAs8ZarybVFcUdBIu/l0+lCE74s/YBBu+eQzjDbLkyCwcJqJxlF0R RRHgEpDiyXaRtQH99+r70Upj1H44ybfccxIcrGdnDZm4AKWHKa53yNtCgKUMeBr7Et4h 8F8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=1Qf5eCcJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k8-20020a170902c40800b001b9c7300823si7740703plk.221.2023.07.31.08.19.51; Mon, 31 Jul 2023 08:20:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=1Qf5eCcJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231401AbjGaOb7 (ORCPT + 99 others); Mon, 31 Jul 2023 10:31:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbjGaOb4 (ORCPT ); Mon, 31 Jul 2023 10:31:56 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55F99D3 for ; Mon, 31 Jul 2023 07:31:54 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-3178dd771ceso3200308f8f.2 for ; Mon, 31 Jul 2023 07:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690813913; x=1691418713; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=C2IHwKYnLNDMWdLQxEd/SU6Gdll+SBIjNHACmkW+1QA=; b=1Qf5eCcJY8sevNEC/HX5WLYyVc+EFCLz9jXCySaH7tyM+geGe1kMnUSZ+/E4BYlCXh W3edA2AXUuC5BKOj8XrvmeNHJ7WP9ifEwtiPu9Tp52dWyoTMnISkGQ2qmyD9p1xONMr5 4Bk0RYDmiJ15bYd4a/yLPTy3t6ButwFW8Nbvo7Jfz2/DmxwFcxSZws9UYQOZwlg7Vh+2 Q7hOkVEUUL/dc8XEUfKogGjybD4/mRfnbWugqUafRzXXZPCgu13+WLkgjrSpg6zwrC9k DosdBrNSqNpCpIF9hP6S4tkKVcWLAxPo1+Rb9h/BoUFYP5nABGsShjPI9gJuopM3lz8s UPEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690813913; x=1691418713; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=C2IHwKYnLNDMWdLQxEd/SU6Gdll+SBIjNHACmkW+1QA=; b=GRBvi7s7x4OJgzvFqikZ14BlXXjHFFg09igTdyw/HFc/43loDyVI/AqHOATCtOEDEw gYGzCOK/9bPtc72jFRBN8Xl41cIZp4FMoCeD9xj3HgikjhkB6Ad4og+Bpy/7lESEtEZ5 MsFWKjH1RVyz2m1MEeh22Aq0zhFVmcEV2+J3Um5cagacQQdZ4p8vE9eImOqx9+xAfoae oy72B3Np99HVMDyPMerAhbHtNHHEaYrR0n5GxgP1RRTtSYhIKZijv3jUohmSzyZWtfPV 62sVMhiD5XIiy4BrmBN08DOaQgGb+doktIy6fjrBxmS0JiJoS2xPckGADMCoOC9yxQwD ttDQ== X-Gm-Message-State: ABy/qLaD6xwFLhOAmgvGxHiwQf5H31LR5jthafLNfeBH3z3WX+ujnVQq D7F99UHk6WZDdF/DL//wKEPoRA== X-Received: by 2002:a5d:53d1:0:b0:317:3b13:94c3 with SMTP id a17-20020a5d53d1000000b003173b1394c3mr3768wrw.41.1690813912679; Mon, 31 Jul 2023 07:31:52 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id i8-20020adfefc8000000b0030ada01ca78sm13301675wrp.10.2023.07.31.07.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 07:31:52 -0700 (PDT) From: Alexandre Mergnat Subject: [PATCH v3 0/3] Add startek-kd070fhfid015 display support Date: Mon, 31 Jul 2023 16:31:44 +0200 Message-Id: <20230711-startek_display-v3-0-dc847e6b359b@baylibre.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIANDFx2QC/4WNXQuCMBhG/4rsuoWbuGlX/Y+I2MdrvrSmbDYS8 b83vQyiy/PAc85CIgSESE7FQgIkjDj4DNWhIKZX/g4UbWbCS16VkjEaJxUmeNwsxtGpmbZ1Y7m oO6GVIvmlVQSqg/Kmzz//ci6PY4AO33vmcs3cY5yGMO/VxLb1dyAxWlImqpZJDbZq6rNWs0Md4 GiGJ9l0if9R8KxopDZSWzAC2i/Fuq4f9McorwkBAAA= To: Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Matthias Brugger Cc: AngeloGioacchino Del Regno , Guillaume La Roque , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexandre Mergnat , Conor Dooley X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2339; i=amergnat@baylibre.com; h=from:subject:message-id; bh=i6hwF/bJpJiGLlOquFWKnen03Rk1zyVrmixDTCRPG84=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkx8XXu3CXuIBVE4+ylx3SVjuGG6Y/iHPbGE8oiaZd ttt09YuJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZMfF1wAKCRArRkmdfjHURUCED/ 0dUeD68t5MIIs++03ZpXnCgWOUMbzXPT9Qjuw7VUV4cixKxnp8cjGoF+e8V3RWOTx8y2WuUqcP6kDm PFEWU7yRd6D/vbNIvB07ueoF0Hk2rRRZWHCaGXNAr3KGI2Kb3NIPzQp0m4uk/f32vIUQDX2olHT+hK gRxi6aQVqHPSnvz09aqghcOuLC9z8dF0YAUtdfb4INILqTOfgKT9CEdlwXfpttt02fdofnXtf5u9P1 Je1C5yRBe4MDTZuIJDCu5Z5tSqIzkBlIcjLcFVJO3U5KhoCHkMKF+CGOWnIBL4JVjSzPh7QnZ9vdtp Pg6ECNV1fg+ny4AD3JzSQHthyIISd9VTeyMCvY2VHiKMUvEQJqzHsWgME+vK7NOTQ7967dPW1AGha0 eSxSrzBgmKHdgR7sfeeOboqGNQsNiJ57dgZB9zJiuuNxbmsC0mVICdjJlM4Ht6x5UhahUBgjeztMe+ Lk92bEnejpMUa2tOyHX0SMwOSnM5RoA3Dhor9S2ZyQI8fzUm8BBfQBTsEkU2d9T+f7WBt/pXFIpXfM iYRQ/XeLFDBnTxq3yOqj3nkoseI/VY3aG1xzndpOrdb9u73Uc3y1XLOZ/Ir+GeRC/DAWJ/01ez1xAW 3syFP+w29gsfhsIBwI384Whi0a4UkpYKGxbOBKLib9NvaYcUkk0rAz7pPL3Q== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772949922169068420 X-GMAIL-MSGID: 1772949922169068420 Add the support of the Startek KD070FHFID015 panel. It's a 7-inch TFT LCD display with a resolution of 1024 x 600 pixels. I use this display plugged to my mt8365-evk board. This serie come from a bigger one [1]. Then I addressed the previous comments for the related commits here. [1]: https://lore.kernel.org/all/20230220-display-v1-0-45cbc68e188b@baylibre.com/ Signed-off-by: Alexandre Mergnat --- Changes in v3: - Remove spurious line. - Remove useless ops (enable and disable). - Remove brightness value init because it is set right after using mipi_dsi_dcs_get_display_brightness(...). - Link to v2: https://lore.kernel.org/r/20230711-startek_display-v2-0-87bc7bdec6e9@baylibre.com Changes in v2: - Replace "dcdc-gpio" by "enable-gpio" because this pin enable the Power IC supply. Also, this property come from panel-common. - Remove height-mm and width-mm since they are useless here. - Re-order elements in the stk_panel structure for readability. - Link to v1: https://lore.kernel.org/r/20230711-startek_display-v1-0-163917bed385@baylibre.com Changes in v1: - Fix typos in the driver. - Merge 2 regulators in one bulk variable in the driver. - Remove backlight enable/disable from the driver because it's already managed by the backlight core. - Move hardcoded values from function to the generic structure in the driver. - Remove unnecessary function (stk_panel_del). - Replace some functions by macro to increase the readability. - Link to parent serie: [1] --- Alexandre Mergnat (2): dt-bindings: display: panel: add startek kd070fhfid015 support arm64: defconfig: enable STARTEK KD070FHFID015 panel Guillaume La Roque (1): drm/panel: Support for startek-kd070fhfid015 MIPI-DSI panel .../display/panel/startek,kd070fhfid015.yaml | 69 ++++ arch/arm64/configs/defconfig | 1 + drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-startek-kd070fhfid015.c | 412 +++++++++++++++++++++ 5 files changed, 494 insertions(+) --- base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 change-id: 20230711-startek_display-958d265f6baa Best regards,