Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3862525rwr; Sat, 22 Apr 2023 13:51:09 -0700 (PDT) X-Google-Smtp-Source: AKy350Z9UxJdyR6hwEuz+9qT6sgblHHIqBT/rj/hYe+8C2jNL/HbIdaBogdFJfvAc65NNi54dxqr X-Received: by 2002:a17:902:d486:b0:1a9:6467:aa78 with SMTP id c6-20020a170902d48600b001a96467aa78mr2123729plg.4.1682196669109; Sat, 22 Apr 2023 13:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682196669; cv=none; d=google.com; s=arc-20160816; b=Chd2gSNy1Ok0MaCokM+qqMCRw7HXqw/fy1Q+vwmiVkHyhYaBTYF1rCstdDb4jv7CO1 whLF8fqhJHANkrBSQsPpMbg3eoRBTLFYTMyFfDW0VBhUGKzpfciAZ3/jrVe3+jFumIsl ylVhB+tujhQFA0kAckgifKmWzc//BO8xJIrNXqfwt49YdP7UCYMDAHltlBKuXi2Ho7MC qJyFxuY4+EwNd7MZ55Ek5nhh8BdOEZgcq0/hvO5F8IsfDS43ORUJ2ZXHjFZmQHDkiHxV OYbWV5gsuBs1ybT3rd3jPv86sMs2maK9Nl5ixv7oG53IVHRO5HHLTbsK3j4ziqCaxgXk 6pMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8BFM30E//DsmYWSuCOcixcndmyNxxM+AUm93RIThdZI=; b=Pd1QoZPqufN6YDWf8CKx8Qg9VgJcm753SVUiTpvCre7cKDdXxOJS4IlOA56TCESlPv bwX7A50m+lXGEfQIz3q/TBygoK5uE2eHddmPqxWlF9gsZf9eyZoe/b6pMxFU9B8IKbeH oJ8vn8bdij3hbdIVSZypV45BbtzE6xGQvg8f0TIileCYvub7I5ZLsE7HLAbUxb29tWBD K/I789LzcTIO0fIIOJQt2M8MyQW3vOfzRrAAf+RLXikX+fjBxMyilip+Scjf8QPIyj5X U2AZQfwdETNERc0SQ7RZi9FDiVJk8z4dptnnVGpRQ7zgC+bLCQRB76O9XDlFR17t/R7+ 8buA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ukQ3ghS2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020a170902ecc400b001a242dbbd27si8279478plh.513.2023.04.22.13.50.49; Sat, 22 Apr 2023 13:51:09 -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=@kernel.org header.s=k20201202 header.b=ukQ3ghS2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229803AbjDVUub (ORCPT + 99 others); Sat, 22 Apr 2023 16:50:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229729AbjDVUua (ORCPT ); Sat, 22 Apr 2023 16:50:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04B1C26AC; Sat, 22 Apr 2023 13:50:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 836A26141C; Sat, 22 Apr 2023 20:50:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADE25C433EF; Sat, 22 Apr 2023 20:50:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682196627; bh=bc966mPuHp6GXalMrFKC71SEtTQR845SWL1piWdHfRM=; h=From:To:Cc:Subject:Date:From; b=ukQ3ghS2bhWNPG+kTcJ4OQsFpLEBnGAsvMfE9Wv/HiOOCo3cDlLBxp4NxJLUFZfBD +ABayrKwFI4DaNErTFD2p49gvSGYkLQGFEFQI3L0XclQ5ZsegMTOdsDGXF1KnqmMp8 m/6A7IpyvoSBSOSwTBHYVz/kdL8iD6EUwBWvFrCwa0H2bIY12wKsfOyUWVgztVry3A BJhn/ElsydXFG/j9/vttsVVcPvwgdlVZic407vipfF/ZgL26NYQ05vyNvsHNElaALb Gl/ayClkk4cRwdvgRigGnQPUQgLU9dxnyLMH/z+jD7goCxgVV/H8WgY4MXBoHz0pVZ HLAof4xenMt0g== Received: by mercury (Postfix, from userid 1000) id 0939F1066CBD; Sat, 22 Apr 2023 22:50:25 +0200 (CEST) From: Sebastian Reichel To: Sebastian Reichel Cc: Gerald Loacker , Michael Riesch , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v2 00/13] Add Inanbo T28CP45TN89 panel support Date: Sat, 22 Apr 2023 22:49:59 +0200 Message-Id: <20230422205012.2464933-1-sre@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Hi, This adds panel support for Inanbo T28CP45TN89, which I found inside of a handheld thermal camera. The panel is based on the st7789v controller. All information is based on reverse engineering. Changes since PATCHv1: * https://lore.kernel.org/all/20230317232355.1554980-1-sre@kernel.org/ * Apply DT binding changes requested by Krzysztof Kozlowski and his Ack * I changed the driver patches to avoid code duplication and splitted the code a bit more -- Sebastian Sebastian Reichel (13): dt-bindings: vendor-prefixes: add Inanbo dt-bindings: display: st7789v: add Inanbo T28CP45TN89 drm/panel: sitronix-st7789v: add SPI ID table drm/panel: sitronix-st7789v: remove unused constants drm/panel: sitronix-st7789v: make reset GPIO optional drm/panel: sitronix-st7789v: simplify st7789v_spi_write drm/panel: sitronix-st7789v: improve error handling drm/panel: sitronix-st7789v: avoid hardcoding mode info drm/panel: sitronix-st7789v: avoid hardcoding panel size drm/panel: sitronix-st7789v: add media bus format drm/panel: sitronix-st7789v: avoid hardcoding invert mode drm/panel: sitronix-st7789v: avoid hardcoding polarity info drm/panel: sitronix-st7789v: add Inanbo T28CP45TN89 support .../display/panel/sitronix,st7789v.yaml | 5 +- .../devicetree/bindings/vendor-prefixes.yaml | 2 + .../gpu/drm/panel/panel-sitronix-st7789v.c | 148 ++++++++++++++---- 3 files changed, 120 insertions(+), 35 deletions(-) -- 2.39.2