Message ID | 20230314115644.3775169-2-gerald.loacker@wolfvision.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1719704wrd; Tue, 14 Mar 2023 05:13:58 -0700 (PDT) X-Google-Smtp-Source: AK7set8yTzr7KGuKdS5CEcnQMoSN6Ua1GCVazR/vu4x5/PCcsQA+pY+hGcB9Yz1Ig4Isdc+/scik X-Received: by 2002:a62:524b:0:b0:623:cf8f:3902 with SMTP id g72-20020a62524b000000b00623cf8f3902mr6265672pfb.7.1678796038506; Tue, 14 Mar 2023 05:13:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1678796038; cv=pass; d=google.com; s=arc-20160816; b=sZzalNPr0zsAIM83Y7WtIrak5f0N1um14j+VMfrFW0Fk4bWthuQQwCp9vWF9ojJz4R 5SWI7jHed9lo8b7hEW1HpT76BKWkF3ZWjzXaHp0cp8aTgKEc+8RnRxJNH1T0oIUMLLR0 t0FO/yEjEWHkUK+9fulOsc1DllVyoHWfLsr9DcNDkgnaAIIgHYJz2wl7NU2XLDv+Vpuw /R4MYgqbruh63YUpvBG5oYodeXlRAf6EOFZtfxnj7kwPrQ6ZRbxlddmnBYuwtq0099t9 Pqo9b+Jsb/0gJXKvUWOy3SpG8ZgX2xzHYuEfbqmztJqYyM2+nVjH73bTODRygBLCtIKM UQ2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DvFJxDx2BTNMkCHs+byRKm/koycBe3mrq1Ljg5MsZPs=; b=LcS439np9ftcgh/7zegXz1/yekBIIa/9fJpWJiYvdlCQeKNB0D49IOIOda6dVvhTIO 6haIDAHfoHnLcl4lsFR5iWyfkgiigwr8Ar71BeMBae1AdciQ3bA4lEGZWWEK2SA6UHZw Aea+QcveYdVcYQbKXwIHqWxJEgb0AokVKdPS457kdNgboNIif2iw0kjIzz+xh3MoXJgO qxg054OIHsLUMz2HvX+AMNkZ3RiRNYmD13M23SrAF6iZkI919e7eJH3rN0+FEKjGcOJ8 HOdek3zJGCs72eUdYMmMDQ0iWp2Ipr9gRvw784jJTUxGn4HQNVbhW/+DDa0KTTUs5syz Y6eg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=QkNLGNLf; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 20-20020a630114000000b00502f4bf3401si2119670pgb.618.2023.03.14.05.13.43; Tue, 14 Mar 2023 05:13:58 -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=@wolfvision.net header.s=selector2 header.b=QkNLGNLf; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231602AbjCNL7R (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Tue, 14 Mar 2023 07:59:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231520AbjCNL7P (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Mar 2023 07:59:15 -0400 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on20613.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1b::613]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24FB25F23A; Tue, 14 Mar 2023 04:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ISsqbUO1W1C6apUrGZ0MqZdEdVk4VxD9x3tXAskZzkP5z5ZPbYA6MR66haRrjre6TUequZJPE15OAhhNg26o3aQ3zeGi3PuHFMIQkgiYli57bYyV4GCQUfoSmdDT/ylPXoDsvxiTb2lMGds78SZloQk3DRfwqp0NgDI/5wrQm1YHpF9SrxOAbIhakIEngK8wY3RTJ/yFtZFTFeoxscEnvMukJh4iQSD5sLyvEYoP6su2URRt4X4D4vtBh0IbyOjjiV65UodiY6QXiULr7Uydps+3ax4EAwSJAwgfr9vX3GsTUcVeEzert8jMCp/09bYoV0D7nJXdxvgZuj3biqTIaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DvFJxDx2BTNMkCHs+byRKm/koycBe3mrq1Ljg5MsZPs=; b=UaXC9FXRjOOHNgtYLP+PxkMfaDuu1lJc/lrjj6uPOizCIK548nKqtqymkrTccRosoh8Bn1WsqF7wxp1jC0NTChZToSe0c2HI6GpYzpKZWCH03pi/lSPczVj9KDtutTApDZ+U3s1+iOdSXd7SnU2QCx8qais/XZfIFu6mTnFdQ9OyKewClnJW2WKSKqOtVDO+ZFEufkmPVH6bMQGD8bhB0IWkRB85N4wzTaQgTElKnvnee1TT36af+ioIYMdqwOOCrAno1VD0KhRLJ0NVEpd9TdK8dVk0ZTZTyETlkT0htbIk14qKcijTb3EIpJ0+t/ECERblEn7h3kWbGhNVMomWqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DvFJxDx2BTNMkCHs+byRKm/koycBe3mrq1Ljg5MsZPs=; b=QkNLGNLfcXEtUnMSYOad7LLifAfeE8mi4ZsfoNSH7wJwiAd0maITI+GqEG4yz8j6WSgxorZs85/1AjhD6pqk0w71jX7SsBj7HgqgGW5qdlI1Q4vhaO0fl5OOm7CnGv4EwLL16heLTCPHZ5Cnm+8LV7aEfjIforVRwGpxAhIcsSE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VI1PR08MB4544.eurprd08.prod.outlook.com (2603:10a6:803:100::13) by AS8PR08MB6694.eurprd08.prod.outlook.com (2603:10a6:20b:39e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.26; Tue, 14 Mar 2023 11:57:05 +0000 Received: from VI1PR08MB4544.eurprd08.prod.outlook.com ([fe80::b094:4fd2:abe3:9f08]) by VI1PR08MB4544.eurprd08.prod.outlook.com ([fe80::b094:4fd2:abe3:9f08%4]) with mapi id 15.20.6178.024; Tue, 14 Mar 2023 11:57:05 +0000 From: Gerald Loacker <gerald.loacker@wolfvision.net> To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Thierry Reding <thierry.reding@gmail.com>, Sam Ravnborg <sam@ravnborg.org>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Maxime Ripard <mripard@kernel.org>, Michael Riesch <michael.riesch@wolfvision.net>, Gerald Loacker <gerald.loacker@wolfvision.net> Subject: [PATCH 1/7] drm/panel: sitronix-st7789v: propagate RGB666 format Date: Tue, 14 Mar 2023 12:56:38 +0100 Message-Id: <20230314115644.3775169-2-gerald.loacker@wolfvision.net> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314115644.3775169-1-gerald.loacker@wolfvision.net> References: <20230314115644.3775169-1-gerald.loacker@wolfvision.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1PR0802CA0032.eurprd08.prod.outlook.com (2603:10a6:800:a9::18) To VI1PR08MB4544.eurprd08.prod.outlook.com (2603:10a6:803:100::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR08MB4544:EE_|AS8PR08MB6694:EE_ X-MS-Office365-Filtering-Correlation-Id: 31685555-c8a7-4f3f-67e9-08db24833abd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AX5N7+QccJDVhbNcehViku/0jzcOIGGrgizZjZm9TxaXuaRrym2W6hZJH2GIwQo9FqFkAzTHipNxWNLqWn/uY/w1JxEC8Sn454GXvO3N3cNxsXVWaCppx3jexpLQ/lSAJkCEXReoJ3tOh1rlE8T1FevsLHRLW65ZR9Ot8UjsQxV017A3yNPx3v/lI5aokM7TFbV51/3etK8IxrxOauRpZ7TOKbu8kF+HAykEmUAKrH5WAwrQCLZXjYvswIbiWjkMuLM6GFRjNUVqN9uJ3Vo5luAkXRETKUYKS1q5xuhspDEaWu1xj3aM7SGY2zy2iTUU0clpuF+5ak/vAhLgKTqfjTpDcIuQ/jgRLfRhWWvSb0zXQbCiv/m2MtfOAlg9GZE0+A0QmgWSZKy6ZDggeEtMgITNTU5FlOPciulrMXKxDnikOZfQm3gK4YNRA/caLqHu4IqMzkWsl8I6ksCd2K89fvH5+tw1IxXM2Is1IL1OYWCTadqEtrKkjNSHMRG+wCuWjtdnP4ANnqFOfaO5RFC83AZ4JTfNnledsj67pdQZc1RpOVU7XFyNIN3zZ3lNrWY864cblAI4Mv4Db22jSJ9e59eUTAeZR+q99PMJ4I/RIGrLJ6iL1YGc1ibpj9y8cpVVtIkAOxtjeEDTBHWx/L6vxUhliirKGKth/N3G9NP9mv8m0Ze3N5J4zqkNxTUMoOL7Vdp6zZPqSdt9jBfDlncILA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB4544.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(39850400004)(366004)(346002)(376002)(136003)(396003)(451199018)(7416002)(86362001)(478600001)(5660300002)(8676002)(2616005)(6666004)(36756003)(6486002)(186003)(2906002)(52116002)(1076003)(26005)(6512007)(6506007)(107886003)(44832011)(41300700001)(38350700002)(4326008)(66556008)(66946007)(66476007)(38100700002)(8936002)(54906003)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SzawIuzz7bNI/tW4E6JfLXnoOVssoCrMTtAl01LV6Vshu4+g/0Qlmu8lFqU95EFXmpBu3YVztRcVnCCPZDDx0QlcB7P4yoyyfDo39UBmPJmjSOAr2YTDTj4+m4Io/Yg6NJKTcLp+doSHbDbQpVLAQQ3REvBtvjkr1XQx14sa7EZptLxCDeBLxzvs5y63TvACsG9zSawPxqmpM6v+ZfStl/aY1IzSKSQDLTi3Q2zkONi/FJ64QRh6HwPWheAZCojlIoY3gLg1kYTycOTFKJr6s0OJhpnAzT/3v1EGO1PY+DgXhsDNGWCVD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IipX5BBf8xjl/svevBW7LhoN/NXvYC5m5wPnVQWC9ZQoyr+6mipcBHPh64A7lap+rRAoklhPIB2boz9GBvKhkTDW9yEL/PLdVsO6gzfiGUPIyGhqeCtkBxhReOep8NxeHx+wCUeCFYHDzgW4jKxPMDMFKjF61oh3YDnvEeAVrdhraoQ+/DfyOGxMCSWJN+SX5w4LVDujyRECmoY5q3MslmIiB4Llaip8zHmwYUYJTxKYKjOM8uTISIzY= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 31685555-c8a7-4f3f-67e9-08db24833abd X-MS-Exchange-CrossTenant-AuthSource: VI1PR08MB4544.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2023 11:57:04.9426 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 73Q/fCiOW47iRgidFqKbaECPkAIDw5ybf9sJ1nRRWKfAp08FGqHjlVBWLEcidHFebEb6h7MjCkN+J69Q1gm7XgdRxP95MweEsKnRn93dWXM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6694 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760345234660154493?= X-GMAIL-MSGID: =?utf-8?q?1760345234660154493?= |
Series |
Add timing override to sitronix,st7789v
|
|
Commit Message
Gerald Loacker
March 14, 2023, 11:56 a.m. UTC
From: Michael Riesch <michael.riesch@wolfvision.net> The ST7789V display is operated in RGB666 (18-bit) mode. Propagate this format via the display info. Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net> Signed-off-by: Gerald Loacker <gerald.loacker@wolfvision.net> --- drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c index bbc4569cbcdc..9535437271d3 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c @@ -5,6 +5,7 @@ #include <linux/delay.h> #include <linux/gpio/consumer.h> +#include <linux/media-bus-format.h> #include <linux/module.h> #include <linux/regulator/consumer.h> #include <linux/spi/spi.h> @@ -171,6 +172,7 @@ static int st7789v_get_modes(struct drm_panel *panel, struct drm_connector *connector) { struct drm_display_mode *mode; + u32 bus_format = MEDIA_BUS_FMT_RGB666_1X18; mode = drm_mode_duplicate(connector->dev, &default_mode); if (!mode) { @@ -188,6 +190,9 @@ static int st7789v_get_modes(struct drm_panel *panel, connector->display_info.width_mm = 61; connector->display_info.height_mm = 103; + drm_display_info_set_bus_formats(&connector->display_info, &bus_format, + 1); + return 1; }