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: 49982 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1770014wrn; Sun, 29 Jan 2023 06:46:13 -0800 (PST) X-Google-Smtp-Source: AK7set9pAY+x1dSmhzDKg0wMU592XFi1gyU4BDMOeczfGvQbr44d3SD0La4zJjYmI5E1pg2TZwzf X-Received: by 2002:a17:902:c943:b0:196:4652:7cff with SMTP id i3-20020a170902c94300b0019646527cffmr13378938pla.11.1675003573007; Sun, 29 Jan 2023 06:46:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675003572; cv=none; d=google.com; s=arc-20160816; b=bmqH4A1vbL09e57Evu5USJJEnyxjtXeaD63grfV+zvXZneiRuXLdwYBMBxaEwgh8mc a1ghqp5w5PPpZu8nTizLncWjILZjqBuM6o8zl3i7uE9PjDggWOc9UIjLmZk5t+qQ/4ur +/5bGNZ9CiSp/vcDoK64oOZ8LFKUzoe2fSe+FagB4Z8JY4R17Vm3l5pZDyhEiS+cMBJh UpsuPmlLmdSj/5qWjoMR6ylajXXXTcgcuwCxLIWQjxjwxLppjXhEJ22BiiEbHyUkayRY WmsKNwgmNX5B9sDgo6ffoQW7hhytTIM+xmGUXuiW54aGm+F46HzEYvm5ACyL4VP3x0Hw Ftyg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dqhRzedXTjAYBhupeTXHmy5HkP7oFM6wXur1/uCGklY=; b=GwigqqPa5UuRXZ5qolFUFTXMdJaSSQuAzOAcYU+dPwYrhZjrxB4/Fff6O+iOclb3J1 A6N4hQX0MsHHk/JryweWUIzJsI5H95zO8ouK+4JAUYU24BlKPVr65EuWpUoqsxdmS6ZW h/P9YIsqCAzS83etAeDs/5wDUocepRsmeqFGdnxVg0oMo5zJ6RBbRGPYqC4AFDOBUvFX S8cF3pF46ZbwQABh64xsEkVKS5yEfCl6eb1x5d1v5vgeiZCh+nGkmEDBoQ6gBfTqXTUQ tcJJgNGIDZQ+YbGH0M0MKNRHmxAn4aDrDA6NrIU6aNLWxSJzfCz/4MmMPjOHsetxifkL mUVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bMAnX4NH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a170902bd4a00b00196799d9504si2080388plx.161.2023.01.29.06.46.01; Sun, 29 Jan 2023 06:46:12 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=bMAnX4NH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234912AbjA2Ob7 (ORCPT + 99 others); Sun, 29 Jan 2023 09:31:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbjA2Ob6 (ORCPT ); Sun, 29 Jan 2023 09:31:58 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D836A5DF; Sun, 29 Jan 2023 06:31:57 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id mf7so6509962ejc.6; Sun, 29 Jan 2023 06:31:57 -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=EYA3+m0ipTbolftWRTMFTsOThYoN7krqndvBtvWvjbn28wfeBQtrLhQ1Wf9IYiGOXH Rf3ep0+CPIdzEHpY8mgt+AXdnhubTF5IMG5V8iKmnwAIdTxfrOruZcHyKPzVQEERRccQ nJNbLx43xMphPCaLfO1ltcypk37b6o4WwD4j+qDo0ZM3cGTwd2s4ctkY5T/IKgPwbpLM Vak53aWCs9L8fGj0NTGAohmHUlxv7Z+zmjCaEIEkzO4aSXeLWqLXDmOCSi1GjkTbnH0l zSZg+n/Avg9INhsfFTYgZRJ2TyeRESlhmihBlSzWYaAbgrQuSP3AKLMfZT7UKSBqAdOe gOmw== X-Gm-Message-State: AO0yUKU8fRY9pGLWlm9lWljG8aSpnleSDMIXeZn8PrLomATKftdun7Sr YZN75rdLdJbddHp7ANi5Zhw= 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756368546321331371?= X-GMAIL-MSGID: =?utf-8?q?1756368546321331371?= 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: 49981 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1769943wrn; Sun, 29 Jan 2023 06:46:00 -0800 (PST) X-Google-Smtp-Source: AK7set/Db9yEGMs0REMto63hx8eCWeNmiCiGFgJk56sDN3R6fJgt0mmx4nGI/tG1tPHDF+BtLWlC X-Received: by 2002:a05:6a20:4d96:b0:bc:801b:9c98 with SMTP id gj22-20020a056a204d9600b000bc801b9c98mr5251640pzb.30.1675003559791; Sun, 29 Jan 2023 06:45:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675003559; cv=none; d=google.com; s=arc-20160816; b=FhKKODu76qSTJpl+TTkhMXK+a4Glj5xgajyupJk7/zlPQoP0MOk8UOPAbI4DY0lW9G p5o8UaxX7nek5U9LOp+qD7KnmWzCvbysNUX12S6mdOS6nb1ikVzoybCBsQPrjWEUOjvl tE2zbo7l6gDZY75KifQ9MDuKsc3r0AfZ7BbKoaTDF78qG2zOQvvA/wx+YzxOLxIQh8oY llfqaNBaNp79U38T2fcnkpxoVJSXM8XZ681/shfkJ44bXySzRMtRzJocEjF8Z8mHv6B2 cQ3yDSg0uYAlh8QDVpJEEemgzr8CdubDsiRVSRhGbjLdIObZ2OSL4UPjgSZpWIVlD1Wu TAmA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=h9M5VRC01DAZPfI0s5I19MARMALNHk/O6/g2Mh8se6M=; b=NPVFJitB93LksA6VKOoOozGUkR483wqwdwR5zgbGuMBKoU/PfrogY6C/op7ndUHaCX 51eAqZA/1ILRVoMnpe+c5iHgEPmsrZLpI4QK1MjkmkZH/NiH6UG1nSzGC3oLDTsjbKp4 GnJTC6IU/uP9XD9ddGhmw4fDl4ElZbky4c9jz2o98peyv9ZT1sPywmVOhVkjO3O4osOz F54f/4aS6HJMbxIKqJZK64JnQZpaUg2W86xO0grY1wU+f/srL80CVsnCLVPinnSbL6Jk FEPZxFP3teVv6zEsJQlO59N/VfyGXVqLcDw99/JZKze+bS5SDBnrmGVN203RYmo++9OR WuXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GKQChDCG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a636f0e000000b004da76ee0608si9578262pgc.310.2023.01.29.06.45.46; Sun, 29 Jan 2023 06:45:59 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=GKQChDCG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234963AbjA2OcB (ORCPT + 99 others); Sun, 29 Jan 2023 09:32:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234906AbjA2Ob7 (ORCPT ); Sun, 29 Jan 2023 09:31:59 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A0C6166FF for ; Sun, 29 Jan 2023 06:31:58 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id kt14so25284323ejc.3 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=IjyAQJeGPMvwADuykgTBz3laKr7QKsK24gtbV1n1igOcKjrZCyVSRCmbEvfU6Wr7Sf vXLeADmEaJN7UxFwZoHp+0nxn1O/wV2Jt73Sn3UDVKCv2V93GLzuHDR2Ly5EwZy8ReQ1 1gHXsvsBXof+SBmjyIJ4a/1prp5hCB24rVe5s/yr3XLo5zu9DgEj/03gQKQL5E1Z6Vno knguWJEQtuSASm9v9anjKG41z+pgclPd8ku9nV90Z9qpfwlYQCSAgIEqQQ3lPLZ4d6RX KByx2TgNYCYT6B1xELDWU9sErLSijkapki15qgQ8WxS668hkkGbODQ51jtrGPGqbCnMF MAaw== X-Gm-Message-State: AFqh2kq82uWTE29dpZ7l9gIom9s6Ll4ILa807okjGbq6PUBC1qO1XCZl RbMCgbwIEnieYpsEehrkuUU= 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756368532557080523?= X-GMAIL-MSGID: =?utf-8?q?1756368532557080523?= 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: 49984 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1770518wrn; Sun, 29 Jan 2023 06:48:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXsy1j98GvcV3C7Cpujb1ceomZXmHf8rZoOZ9gI1b2ZTTHM521qKTJid+q/f+Kx2TYrNztct X-Received: by 2002:a17:907:ca85:b0:7c1:1e5a:ed10 with SMTP id ul5-20020a170907ca8500b007c11e5aed10mr56019411ejc.8.1675003683417; Sun, 29 Jan 2023 06:48:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675003683; cv=none; d=google.com; s=arc-20160816; b=qmhxN5yOjozl2wuQhOcCoeGfomQ9EC083OIbIwDLfTG4xNk5WD0srThoZp7C9aM5UM 4MThnK24+r60kR6qUkYBlfJlQl2hxQTzPKzsNYH3qLVjvu4+vr2H8wU87dacncAc04we qlpvi4qxe90jCLkR+SMjuLcuG0iPgyggOHrr43KSgaT485AabvfNw9eNeHsWOljIvP5S xsdcCPRTETtXWZoO3Mz/Jd7fICoVys8pIxSt/P2dxJNkhtpk+e3pc0RI98+DYSr4X90t BpTNhhDkBR5UgYoLLrMcQG5x2B4tP+kWkJQEJHKPZrAZiDXFS4xLQ6kPe5ZAN+dlvQgu e8ug== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SIsYvjDlZhXseIBbB+cVw5ndep5LtZPlaWmi5dbOsTU=; b=wgqAmFbdY2qumtZuTKTE8h0uROWz2LR2v1oVYRC+0LsKiBkRCRRXAabQrzDx4+/Nl0 Qoy81W2gN+IUUDDzZ0B/s0ZWsi+6o7s4YUxZnUqGvr9DEyQKQtP1tsHQuvHiCTc1nSbx /UeRXI+nRL1bgjVB5KJ5VBG90Uycl5QyFPHR7W7dlN4hiZuCYqELLt/wTKLxNpi98dtQ ak6HQGPd3UzZVElTOLvocuuTAsfPfKM4NhpTipxRgz9zpISy8nnqrRNx/DSQ3zpoaFiD BU227Gw2KuT0UHBAyF2+IokKFqXAjF3OPh9XJGwE+M9/zcQdbDV2SHJgrzvIawjeJWRl Uwkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MG0zYJDE; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn19-20020a1709070d1300b0087777bb4127si15963016ejc.172.2023.01.29.06.47.39; Sun, 29 Jan 2023 06:48:03 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=MG0zYJDE; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234906AbjA2OcE (ORCPT + 99 others); Sun, 29 Jan 2023 09:32:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234930AbjA2OcA (ORCPT ); Sun, 29 Jan 2023 09:32:00 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F6E7A5DF; Sun, 29 Jan 2023 06:31:59 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id mc11so2755321ejb.10; 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=eNZ/LPmy6Syn9HfFVfk18QKFSYvwkMcqaERiZO7XwFXfzZh5Xz0wNuAudieDZBuIQ6 7NiTt4BrRZp1C1COF5eLqQCIlpjgfvzlowH2X9IqE2zMWh0gnLuY1uPitWenfO44B1Pz 72nZU3gIAVT4C9vdwXnArva6ND1zcOJ+qjOpO+6/PIbCRbPS3kWNUxV4r/d7qtkMpv/r K1OqBmaiXk+ChYDkKHL+A3HY4MfB9A/kMTuwT81oN5HuJzdsC62gycCJ5ftoxhca6NRb A0gF1lWsY6ZyzK6Nr8zYjDJ2UNGjoU1lOHyX3vKkrU6kNPAc8J8rolIBt4mFA8nc3PWJ KVXA== X-Gm-Message-State: AO0yUKXCWCB+00PJ54V3h4DYqWPAqKh4Gq7KAPBXGoM0bkXHg299flOq HihDs7DcBC4nB/Vlgox8ou0= 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756368662709714038?= X-GMAIL-MSGID: =?utf-8?q?1756368662709714038?= 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 {