Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4611381rwb; Mon, 31 Jul 2023 09:22:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlEvXEPQhA3CtX+AWHhhiSHuml/y9734pfMa2WxJ36ycTclX4+MYzIxqvZkjTN1O8tw6OZSB X-Received: by 2002:a05:6512:2351:b0:4fe:a5c:efa3 with SMTP id p17-20020a056512235100b004fe0a5cefa3mr240523lfu.62.1690820523424; Mon, 31 Jul 2023 09:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690820523; cv=none; d=google.com; s=arc-20160816; b=ttzb3CDPOLYdCn0w4IcrDbKHHS/SyOPheTGoZaIkfRkvXu4fjyNkZEeDi2s4KH6WJ2 wRFaSYbUY4MLIf9RXpD8ze5Atm1atOaZM+DAzNrmk4+XqGTVSJKQF0S+tER2VWVTOteM 6fJO9wAy4KbC5VDhRIjsLsHp/0SnJIVics5JJAorbxl3z2Gb0V0gy144nMA4yjstX3tS UqLhWeSPnT7Gf46ZSAbmlP8+VDLwsQTTpYpuRQ6h2LZ1AtR87fmVCqP4+Wvru2+IADW5 xY6KwD4aeLg7UEIJ20bkoXyiqf/0dwXORWQR7wAhvPNEMziZQ/NVcqCeOcQjv3AT35iZ SzHg== 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=esXDvcVLB1Pf5VLrBlTbNKHd0wmacNaCg5M9D8JHIXg=; fh=y1FkPiC1EP4+SKwHKnJr6fs2SplXb7iHcv53cdjqlBA=; b=EI2bec0slv3YqfuEVqr/blSKGfVmSeBDvW4lf9Y20rkQXzwwwtBul8D3YAsU8M7iHZ ojayuvV8V8lKA6X7jrWe8cy5XGwdQ1TwOcIRGTa+0+IC+VTcjVaI2ZOLToqWi+k2tSjj Sh79J/Cr5ZR/4SWIV9BXHaVzMOgXsQg9TmONXtowDUj3gZnJs8ta1McsPUbLG4g+OcSS vf1ipbKrDyrvcTHDB92jO+BoIwVBRG+roXjrgzGY2QU/5psoKXrjEraSSLI3SzXxe7a+ vLppwcFmmOf4+yAlJLxJb0eVYJKmrH0if5wnsjhmZF7PIoImPVN3LiCloPyzid+39lIe YlMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=Ul1Vhubc; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a056402054500b005222dc01347si6731413edx.73.2023.07.31.09.21.38; Mon, 31 Jul 2023 09:22:03 -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=Ul1Vhubc; 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 S232943AbjGaPJK (ORCPT + 99 others); Mon, 31 Jul 2023 11:09:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232918AbjGaPJH (ORCPT ); Mon, 31 Jul 2023 11:09:07 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A80E1735 for ; Mon, 31 Jul 2023 08:09:01 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3fbc244d384so42999005e9.0 for ; Mon, 31 Jul 2023 08:09:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690816139; x=1691420939; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=esXDvcVLB1Pf5VLrBlTbNKHd0wmacNaCg5M9D8JHIXg=; b=Ul1VhubchGAHP/sFOGTfFM5Cs01QEoSc2hxBfocNaQLKeMi6vmpWi5Ls2AQlO5DbPu f45KcMj+W35gFZw9hcSrdgp/a2ukiqdIHtkuqOcrYOXAPUTYOokxOFlxYIqNEeLOePtP DItiPfYd1u8EFEr+E6QxK2ccKu77j/mykseeIvLY240fPFDyV3ZqJOepmh6Cg8WHilxe Wyd05CCGyHZ7gQsgIxWTHB3hz6R+PhfQnC/9J2HslrDungsvwJ4b5aLA+nAdkg95XBih IdYplcFAKkO+hiTJVU/IEf6cL6r8dfef22FdLU7nnL5laqSV/zvioIIj4K2G1GIT/K8s D6ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690816139; x=1691420939; 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=esXDvcVLB1Pf5VLrBlTbNKHd0wmacNaCg5M9D8JHIXg=; b=P7VCO6E5JwtJFWWOIuoxNnjRXpS1BseJZOyNFkF/mKgYty/qhUR3C1wCjtxHSWJg/E AL2DUp2KqLs3QOxKVQ98GMXIPUONfUfQ6XR4dL6poS5Vww/b4Od81MkPVFxaXz4LQOfx pzC9gs88l3VsunIwyobJ7cHjNpHE9zak7quMZDe2733RE2+Xkg2yDfW8CfA5RE9WOGK8 02QFsx+o7DTgOvWqVRscjg+9RTByc1sL8/BDcvqa5cr5aftQFIXnehuQM4DpGVSBnZDt HhduHCOGxkfmaiQLJLUWGGBNYngDVYRFqGY8C71vb6GMTG4JpbD6bH24UIE1O0ffLn1o v5jQ== X-Gm-Message-State: ABy/qLYJDTQSRlDfxyHE2eq7GJZwk1m5ZjQEcsHdcsvy8oeTZ8R7MCFW wWl1uTcNM7XCJKaw4qJyMUvA7g== X-Received: by 2002:a1c:e907:0:b0:3fe:2011:a7ce with SMTP id q7-20020a1ce907000000b003fe2011a7cemr192373wmc.6.1690816139157; Mon, 31 Jul 2023 08:08:59 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id u22-20020a05600c211600b003fbcdba1a63sm11728791wml.12.2023.07.31.08.08.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 08:08:58 -0700 (PDT) From: Alexandre Mergnat Subject: [PATCH v4 0/3] Add startek-kd070fhfid015 display support Date: Mon, 31 Jul 2023 17:08:55 +0200 Message-Id: <20230711-startek_display-v4-0-fb1d53bfdef6@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAIfOx2QC/4XNQQ6CMBQE0KuQrq2hLbTgynsYY/rbjzQikBaJh HB3C0ujYTmTzJuZBPQOAzklM/E4uuC6NobskBBT6/aO1NmYCU+5SBVjNAzaD/i4WRf6Rk+0zAv LZV5J0JrEFeiAFLxuTR137atpYtl7rNx7u7lcY65dGDo/ba8jW9v/ByOjKWVSlEwBWlHkZ9BT4 8Dj0XRPsnIj3yF4JAoFRoFFI7H8QYgdQkTCmiJTKEHkJXwRy7J8AOj4w9lMAQAA 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=2540; i=amergnat@baylibre.com; h=from:subject:message-id; bh=AQlAVkclcYLnMjIde28GbBAVGLrAvdO2Dy3THAfin5w=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkx86JjgKkcVGhs1Zc1ZPOre5Rcpx3jjZWywQnHhmc 42Dw3yqJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZMfOiQAKCRArRkmdfjHURQqtEA CPHfJW5LsP1hJ6i0nqwoZmNDi4vIVW3qtXbyUgcQZ+vGMhIVneUankn76smthBPIgVQCApeodiicXQ 3oJtb/RUsDd3flJo9hFa0KNS9QCno5UGYdIEKMfo4n37xJpjMn5U/tceKsYrFwx67RLPDHy4XoYNVp DIYO+AIa4juT5sLiFgFNAv4sHXvJf1NWNsAn1JYK0rIrUUh5eksirU1K1CO/j9NQxrgqltY9vZ2dgK oV5LgHyr3w0gNIT9CU/3pVp6AC0Xz+n1ZVWFN63OorjW+kw4kKbcZFrA91ZLt7nUqw6oPT9uX0kco4 t9BNZH2NgTh054Wv+3bRq0NRItSyLJoCUo3oTRSn7YYH8Coa7e817M10gz/740JveWZAzUa4Y6fpnW n1iJkfIASyUChDbTtTeswUWFVwUU8wQ1e6j9Npzaq6DgkJvHwTRX2b9QdO4X2Qkku/OKqUad3WFrWS Nj7MK+GY2XwdWODOIAwPhceHFI1+yTT5ufR2PXUI5Nsb8manwDqaELwEuFKDhpT1ZhDuTz8ddu+vlr aXw1YySJ/+WsnsVuJnKcG3GIAy9NSAZinNzN5zMHbmBUQKCfZQp46c5PImR27Z1uFH28QPYYKB/lfA hMQY+S9PXcQc765c6ZU1KRkvbJFtEoLxocIPFY8jE07hQ+3p+jtLwxwotfMA== 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_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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 v4: - Remove useless function: stk_panel_shutdown. - Align parenthesis for readability. - Link to v3: https://lore.kernel.org/r/20230711-startek_display-v3-0-dc847e6b359b@baylibre.com 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 | 406 +++++++++++++++++++++ 5 files changed, 488 insertions(+) --- base-commit: 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 change-id: 20230711-startek_display-958d265f6baa Best regards, -- Alexandre Mergnat