From patchwork Sun Jan 29 14:31:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Matuszczyk X-Patchwork-Id: 13120139 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3DA10C636D0 for ; Sun, 29 Jan 2023 14:32:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yHu3yu17zwmeYzJbXzApBiHPYZSJWFqsPMRhXnkpXz0=; b=DUXOlJijML/xfl ORf0YfAIU/LgN19oY98NO1WnSUqYk5Upn629BqTiAXkairHXvm3xuCTZGfPxtXAKoMsjTm1mvB+DJ xQTEvt704kO3p2y9R1YCqDtrElC4FKKOv0zx/SNPxII7k7pHDNpjVcaEmOnr/fJ1kIMv4EqcukHW5 rQlvpgxdAyWKaerbKUc9d8xAmr4U4rx8T6P0M7WAZ3Z7/+FnVZsJn+xBJ7jKW4Mx4rUP7+lL+4rL8 Ied0O5YuymmwLIbXSRsHZQcIBoByxQ8HhcBjOCl0WWeCdl+xDXZUT+Cm3wSFxqb+Yt5ltJvcWBCdd UQuy1g4c7/Usk+hZQnZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pM8iv-001Zmq-U5; Sun, 29 Jan 2023 14:32:02 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pM8is-001Zkk-2p for linux-rockchip@lists.infradead.org; Sun, 29 Jan 2023 14:31:59 +0000 Received: by mail-ej1-x62a.google.com with SMTP id mc11so2755177ejb.10 for ; Sun, 29 Jan 2023 06:31:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dqhRzedXTjAYBhupeTXHmy5HkP7oFM6wXur1/uCGklY=; b=bMAnX4NH2gBVWNMBfP5T8Ig0AvaeOIcfVbfjU9ga7Yfd7svUSS0vKBh8RC6QF70zWc pk8+ktReuJWrI1K8aSy2tHuXIujU0RCm6gYbpL6tO7UlmXKrMQ9ocgrGYtFjWC7rKXoK 0n3MdHHfPH+TRwyO0RE3K4dOkI7At7MnSUZlt5QbTznbJ6HcjAr2rcYDcvuB3VB39DzF gApmu09u5PWt0XdEoKam87WxQdMlxLPDoJnZbyWapFMxEQxstqLK7e5z9sKxMwyGoYDd xXFdYIOXFK3wvxHqrACp5LKicZ0ye/amSkf2Pnzi7uyYgaitH+cECyZ9MGJByU/pvZnw /I9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dqhRzedXTjAYBhupeTXHmy5HkP7oFM6wXur1/uCGklY=; b=QUDZ9qiHL2dY4umJbAQOM0En3i7kIjyq/Zm1PLQVB3uUNxmt5FnwQC8YEeLrLHKhAl TltjJFeP7prR2PK4jX1wsMK5fMLKLJN6ZX9WUUBe/oJmonxyUx7EuvK3lJFCr1Ns2LPn pESFy/lpVWWc42OrcL8rfe946/ixo2fcqoTurLC9UyLATLygZYmjpR0mcmjq0/FHnBOo NAScNmH4UJBhX07Koy4uYkDtV8ndx3EGwrhpi9Jje7WQeMShbmKB9DUu3MvBpBrBS0B2 Cdbu2RnhcsEzw9mKFwwZSwBcUpE8lDroKKUee9naJmbiAmdPnggDRHrNnBv2PW20mZUW eEIQ== X-Gm-Message-State: AO0yUKXPY7absRTKrBkKyDK0Y/vaLm3tl8G7aryttR0pwpR2rMiq0qXl TwhR5p2U9kYw5oKBVC1cjlCtxwzQfJfMVA== X-Google-Smtp-Source: AK7set9uBH1IEdS5caA0NsadN0JraxcoEyiaqZTtiJt25gcTfJD2f4f+/jMxjc2QNlzyRT4puPTrhg== X-Received: by 2002:a17:906:eb8b:b0:878:7f6e:38a7 with SMTP id mh11-20020a170906eb8b00b008787f6e38a7mr12114060ejb.44.1675002715769; Sun, 29 Jan 2023 06:31:55 -0800 (PST) Received: from localhost.localdomain (83.6.123.74.ipv4.supernova.orange.pl. [83.6.123.74]) by smtp.gmail.com with ESMTPSA id jr23-20020a170906515700b0086f4b8f9e42sm5410128ejc.65.2023.01.29.06.31.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Jan 2023 06:31:55 -0800 (PST) From: Maya Matuszczyk To: Heiko Stuebner , Jagan Teki , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski Cc: linux-rockchip@lists.infradead.org, dri-devel@lists.freedesktop.org, Maya Matuszczyk , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: display: panel: sitronix,st7701: Add another panel Date: Sun, 29 Jan 2023 15:31:39 +0100 Message-Id: <20230129143141.173413-2-maccraft123mc@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230129143141.173413-1-maccraft123mc@gmail.com> References: <20230129143141.173413-1-maccraft123mc@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230129_063158_209011_0C827C45 X-CRM114-Status: UNSURE ( 8.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add compatible for 854x480 Elida KD50T048A panel, found in Odroid Go Super and Odroid Go Ultra Signed-off-by: Maya Matuszczyk --- .../devicetree/bindings/display/panel/sitronix,st7701.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml index 34d5e20c6cb3..dbc92c4e26ed 100644 --- a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml +++ b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml @@ -29,6 +29,7 @@ properties: - enum: - densitron,dmt028vghmcmi-1a - techstar,ts8550b + - elida,kd50t048a - const: sitronix,st7701 reg: From patchwork Sun Jan 29 14:31:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Matuszczyk X-Patchwork-Id: 13120142 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C0880C61DA4 for ; Sun, 29 Jan 2023 14:32:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LWpV/n3V9BzSRz0bSYLazuMnh3qSViNOmLwZA9rU6Y0=; b=jEBdi6CepBZPsv iWInSKh03BPzdAhjYEBi/ppS7LgaOZGBto5sRKxudBAI+L35QNyMY/7Ht8BW4w9xxQUKcerNukERy AS5sCRPEfQhWR4f0xukSC0RSCcoTNFOHqkbWE0dRUdr6rrm07wKZGwzvD2SOBcIqeAjFy6MvbqP3l VzXkyGC5TBDFxGGA2ZznMOIWamhe5MAfC8ikKEtwGOagAC/p2YJZlxKjAAIE62rl2JbYi7DmbbJty V2j5EBq9pxUIhlGlNH+r3DqwqeKXvYjTiTMoShpYNlrBXrsPB4BmanO7jxPiIb/L7nBiuy3nDqZgL PRbAr1f6C+KeeXx3C29g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pM8iw-001ZnH-Du; Sun, 29 Jan 2023 14:32:02 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pM8it-001Zl3-7x for linux-rockchip@lists.infradead.org; Sun, 29 Jan 2023 14:32:00 +0000 Received: by mail-ej1-x62b.google.com with SMTP id qw12so9332766ejc.2 for ; Sun, 29 Jan 2023 06:31:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=h9M5VRC01DAZPfI0s5I19MARMALNHk/O6/g2Mh8se6M=; b=GKQChDCG1pQ4JmYgLSffeC1uoGL4U/xz8U52slDhuyBih17z6meCRttz97n5TaAPeV MBc2PIEEe3APf7vLjCjWZcnS6OZQFKUsLpv0h5DQjhbIha1jGH4QBPxbZqXbdH6AUWGR yrZlb/uhY1jcEKwm53imUfH0dvjLFJrEVhToRBzg4FDBcQI4LQsEutHfinSRUeCeNZ9E EpwxKQwIssyMZQIoxFhbGhX3SG7Qlue1DICVGuN7D9Jpb2buKQ1I9lqvXAMmxHNKmHch CBkNJP6OhG6dAANgj0tOzWWNReQ4P3EQ9gcwc3dBfoMfMqUjzopQuJWzQuASniTEGMnC oaoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h9M5VRC01DAZPfI0s5I19MARMALNHk/O6/g2Mh8se6M=; b=FSRuUnlKf+UFJtEVeyKf+e8feZi7cGL9U5tr1qJVcbHlyzGeJ+z5GtN2swxahId3dK XHoGU9P18fTwgPQ4rvz3STJBLKYkUxhPyVLIb5nD09LATQK3GTEd7LTvJD5xV2Y17ef/ /ngqL8cp+XjA/mxCqxjneuDeiY23JrMDsoBL5aidIwczFpQzvLAueyv+uTIlcWGHQ3bi egzQAWI0BM6qaXqNLk0f00qRfJ8HB0cvCVJdfVR8KElfSb19pxLoEXw+2KvO8i8xadmQ 5ibYFkyA8ltkdto3tP+xfusFL2Asj5VZBSxSubFA9Tg4YEc6qCR/sG/b21Yut2axmvP+ IEbg== X-Gm-Message-State: AFqh2kqXWbTVb0JyD9brpUNYUSqQFtcu/BnceprCthLqeogv1I1Q+lfS 1PCXso+DvQ+Y0xlXOo4Vp50= X-Google-Smtp-Source: AMrXdXtlyTNhPlfvt+/MGH/iawBnMLip4b4VU687JDFjn1/LEWjQzZm+Ija2I/myfa/DFDViWhiNxQ== X-Received: by 2002:a17:906:57da:b0:872:5222:9024 with SMTP id u26-20020a17090657da00b0087252229024mr45172389ejr.67.1675002716932; Sun, 29 Jan 2023 06:31:56 -0800 (PST) Received: from localhost.localdomain (83.6.123.74.ipv4.supernova.orange.pl. [83.6.123.74]) by smtp.gmail.com with ESMTPSA id jr23-20020a170906515700b0086f4b8f9e42sm5410128ejc.65.2023.01.29.06.31.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Jan 2023 06:31:56 -0800 (PST) From: Maya Matuszczyk To: Heiko Stuebner , Jagan Teki , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter Cc: linux-rockchip@lists.infradead.org, dri-devel@lists.freedesktop.org, Maya Matuszczyk , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] drm: panel: Add Elida KD50T048A to Sitronix ST7701 driver Date: Sun, 29 Jan 2023 15:31:40 +0100 Message-Id: <20230129143141.173413-3-maccraft123mc@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230129143141.173413-1-maccraft123mc@gmail.com> References: <20230129143141.173413-1-maccraft123mc@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230129_063159_306120_48251213 X-CRM114-Status: GOOD ( 13.22 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add KD50T048A MIPI-DSI panel, which is based on ST7701 chip. Not sure what else to add to this commit message. Signed-off-by: Maya Matuszczyk --- drivers/gpu/drm/panel/panel-sitronix-st7701.c | 125 ++++++++++++++++++ 1 file changed, 125 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7701.c b/drivers/gpu/drm/panel/panel-sitronix-st7701.c index 0b8cf65172ff..660c3f435008 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7701.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7701.c @@ -397,6 +397,31 @@ static void dmt028vghmcmi_1a_gip_sequence(struct st7701 *st7701) ST7701_DSI(st7701, 0x3A, 0x70); } +static void kd50t048a_gip_sequence(struct st7701 *st7701) +{ + /** + * ST7701_SPEC_V1.2 is unable to provide enough information above this + * specific command sequence, so grab the same from vendor BSP driver. + */ + ST7701_DSI(st7701, 0xE0, 0x00, 0x00, 0x02); + ST7701_DSI(st7701, 0xE1, 0x08, 0x00, 0x0A, 0x00, 0x07, 0x00, 0x09, + 0x00, 0x00, 0x33, 0x33); + ST7701_DSI(st7701, 0xE2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00); + ST7701_DSI(st7701, 0xE3, 0x00, 0x00, 0x33, 0x33); + ST7701_DSI(st7701, 0xE4, 0x44, 0x44); + ST7701_DSI(st7701, 0xE5, 0x0E, 0x60, 0xA0, 0xA0, 0x10, 0x60, 0xA0, + 0xA0, 0x0A, 0x60, 0xA0, 0xA0, 0x0C, 0x60, 0xA0, 0xA0); + ST7701_DSI(st7701, 0xE6, 0x00, 0x00, 0x33, 0x33); + ST7701_DSI(st7701, 0xE7, 0x44, 0x44); + ST7701_DSI(st7701, 0xE8, 0x0D, 0x60, 0xA0, 0xA0, 0x0F, 0x60, 0xA0, + 0xA0, 0x09, 0x60, 0xA0, 0xA0, 0x0B, 0x60, 0xA0, 0xA0); + ST7701_DSI(st7701, 0xEB, 0x02, 0x01, 0xE4, 0xE4, 0x44, 0x00, 0x40); + ST7701_DSI(st7701, 0xEC, 0x02, 0x01); + ST7701_DSI(st7701, 0xED, 0xAB, 0x89, 0x76, 0x54, 0x01, 0xFF, 0xFF, + 0xFF, 0xFF, 0xFF, 0xFF, 0x10, 0x45, 0x67, 0x98, 0xBA); +} + static int st7701_prepare(struct drm_panel *panel) { struct st7701 *st7701 = panel_to_st7701(panel); @@ -700,6 +725,105 @@ static const struct st7701_panel_desc dmt028vghmcmi_1a_desc = { .gip_sequence = dmt028vghmcmi_1a_gip_sequence, }; +static const struct drm_display_mode kd50t048a_mode = { + .clock = 27500, + + .hdisplay = 480, + .hsync_start = 480 + 2, + .hsync_end = 480 + 2 + 10, + .htotal = 480 + 2 + 10 + 2, + + .vdisplay = 854, // was: 854 12 2 60 + .vsync_start = 854 + 2, + .vsync_end = 854 + 2 + 2, + .vtotal = 854 + 2 + 2 + 17, + + .width_mm = 69, + .height_mm = 139, + + .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, +}; + +static const struct st7701_panel_desc kd50t048a_desc = { + .mode = &kd50t048a_mode, + .lanes = 2, + .format = MIPI_DSI_FMT_RGB888, + .panel_sleep_delay = 0, + + .pv_gamma = { + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC0_MASK, 0), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC4_MASK, 0xd), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC8_MASK, 0x14), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC16_MASK, 0xd), + + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC24_MASK, 0x10), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC52_MASK, 0x5), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC80_MASK, 0x2), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC108_MASK, 0x8), + + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC147_MASK, 0x8), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC175_MASK, 0x1e), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC203_MASK, 0x5), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC231_MASK, 0x13), + + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC239_MASK, 0x11), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 2) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC247_MASK, 0x23), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC251_MASK, 0x29), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC255_MASK, 0x18) + }, + .nv_gamma = { + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC0_MASK, 0), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC4_MASK, 0xc), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC8_MASK, 0x14), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC16_MASK, 0xc), + + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC24_MASK, 0x10), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC52_MASK, 0x5), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC80_MASK, 0x3), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC108_MASK, 0x8), + + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC147_MASK, 0x7), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC175_MASK, 0x20), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC203_MASK, 0x5), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC231_MASK, 0x13), + + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC239_MASK, 0x11), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 2) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC247_MASK, 0x24), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC251_MASK, 0x29), + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | + CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_VC255_MASK, 0x18) + }, + .nlinv = 1, + .vop_uv = 4887500, + .vcom_uv = 937500, + .vgh_mv = 15000, + .vgl_mv = -9510, + .avdd_mv = 6600, + .avcl_mv = -4400, + .gamma_op_bias = OP_BIAS_MIDDLE, + .input_op_bias = OP_BIAS_MIN, + .output_op_bias = OP_BIAS_MIN, + .t2d_ns = 1600, + .t3d_ns = 10400, + .eot_en = true, + .gip_sequence = kd50t048a_gip_sequence, +}; + static int st7701_dsi_probe(struct mipi_dsi_device *dsi) { const struct st7701_panel_desc *desc; @@ -776,6 +900,7 @@ static void st7701_dsi_remove(struct mipi_dsi_device *dsi) static const struct of_device_id st7701_of_match[] = { { .compatible = "densitron,dmt028vghmcmi-1a", .data = &dmt028vghmcmi_1a_desc }, { .compatible = "techstar,ts8550b", .data = &ts8550b_desc }, + { .compatible = "elida,kd50t048a", .data = &kd50t048a_desc }, { } }; MODULE_DEVICE_TABLE(of, st7701_of_match); From patchwork Sun Jan 29 14:31:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Matuszczyk X-Patchwork-Id: 13120141 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 20450C61D97 for ; Sun, 29 Jan 2023 14:32:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/I79GRX5XN1IO9lOSu2WXSO4N1ZwJ9or8hSXqVH5Ogc=; b=Kgr6HEaIp7I6Wn i3r48TydN8EGMbJlJoE04uNdmlQwALXTnWofi/CK4JBIPzzj9DoMWOSKLohYV1ezMdYmjof06wpqk +jqwNR3BLHHxgZDcZob/31lq54+ZWCJgF8UE3KcJG52oP6SabrU2zEZEJ9RIQfJMkGKjJ3ar3Dbqc 0w8HSYAsu1Qja+aMCgav+G825UkT1TdUk0vZFW+akxEtgc5lHq0aOZO511FINdT8IHEQEGJfKe6Pm y5gNagoEPHQlqyjlftPZpijcDPXTsgoUWQmg3UF3HtGVz5u8pdJiAVGglAjdkytulRpg+/wOGwAx4 uN7Zrqnl2s4FvywMGcAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pM8iz-001ZoY-2E; Sun, 29 Jan 2023 14:32:05 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pM8it-001ZlP-RH; Sun, 29 Jan 2023 14:32:01 +0000 Received: by mail-ej1-x629.google.com with SMTP id me3so25233769ejb.7; Sun, 29 Jan 2023 06:31:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SIsYvjDlZhXseIBbB+cVw5ndep5LtZPlaWmi5dbOsTU=; b=MG0zYJDEuwdAIPlKTrUz/tAIjgDecO7da5aOjlPCt7ezTnZ3WgOceJliclMU9Pazqn L5dGHo3y0fEB15rgAiisrsMFa+3jXGtLedc0ONf9sBkC0778amcL2vHCDKkUxC4jdhMT L0rdAhvn8wVieQsB1oAkRsDJ3Nm+CF1BtUuyHf7VPOdNSRzLqHzgv/SclP4Frd+cOG6i X2ENBpIDZWQgCSXsc7QISY2Rh49PaEbED3Zf2tNTKbt5TzReV7RmffSXlgodgbATqjEb MHDIrbXq6HkYyWVfAE2XkUFSTeoREPo5WWPDuDI6ENlcV3w93U76jE0ms0yYIo2l/e8u a3Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SIsYvjDlZhXseIBbB+cVw5ndep5LtZPlaWmi5dbOsTU=; b=HGnMNOSAiSv7VXU7egKsJ7Cx7VVJWpINrhGxQO3BhNj4UN9nBpDm71Ktr4+FkVOzpP CBGMcOABcTvGac21KrzJbreqJtDDwMjIbzhWGdymljLP+o5MAhhtmjfM0mlvGjeboTOe sRxXTuYykaUanc5A6kS2QFXGXjmlKpMKvP4m0X133B2/FirJ8DCTWNPog6ySdsDz3i62 FRywiueOUiVfUVgXuog5UDLf90XGqDLjO+eYh1DRE9i1R71qA7So+he7FBhD1pDLma3h kQeyS5/Dpn7S6tcno4oO7t+aqA31o2Su6+4xplI8KdEYHJl6Jp/z/TuOYdU7jgqkZOl5 tpvg== X-Gm-Message-State: AO0yUKW2S5mSW2gdRQprf8O9+f3QLJtuK7LNhrzjt8R6DEBkzBlAQJL6 fI/z63PpTS/Q9yYUYSjvWQk= X-Google-Smtp-Source: AK7set9Opdxx1Q5nZgj4I7SG11bJhP2LKEKpWGGYInJD7QBsb0eZzG8RWYkwDjUBL0J/cY+nvl432Q== X-Received: by 2002:a17:907:6e90:b0:887:915d:7502 with SMTP id sh16-20020a1709076e9000b00887915d7502mr2229039ejc.31.1675002717970; Sun, 29 Jan 2023 06:31:57 -0800 (PST) Received: from localhost.localdomain (83.6.123.74.ipv4.supernova.orange.pl. [83.6.123.74]) by smtp.gmail.com with ESMTPSA id jr23-20020a170906515700b0086f4b8f9e42sm5410128ejc.65.2023.01.29.06.31.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Jan 2023 06:31:57 -0800 (PST) From: Maya Matuszczyk To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski Cc: linux-rockchip@lists.infradead.org, dri-devel@lists.freedesktop.org, Maya Matuszczyk , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: rockchip: Add display support to Odroid Go Super Date: Sun, 29 Jan 2023 15:31:41 +0100 Message-Id: <20230129143141.173413-4-maccraft123mc@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230129143141.173413-1-maccraft123mc@gmail.com> References: <20230129143141.173413-1-maccraft123mc@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230129_063159_999042_752AFDC5 X-CRM114-Status: GOOD ( 11.58 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Note that orientation property in ST7701 driver is currently missing, And that ST7701 panel driver uses different regulator names compared to driver for Elida KD35T133 driver. Signed-off-by: Maya Matuszczyk --- arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts b/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts index 842efbaf1a6a..1b9769ccfdeb 100644 --- a/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts +++ b/arch/arm64/boot/dts/rockchip/rk3326-odroid-go3.dts @@ -142,7 +142,9 @@ button-sw22 { }; &internal_display { - status = "disabled"; + compatible = "elida,kd50t048a", "sitronix,st7701"; + reset-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; + VCC-supply = <&vcc_lcd>; }; &rk817_charger {