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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 783B2C6FD1C for ; Tue, 14 Mar 2023 11:59:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231583AbjCNL7T (ORCPT ); Tue, 14 Mar 2023 07:59:19 -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 ); 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 To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Maxime Ripard , Michael Riesch , Gerald Loacker 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: =?us-ascii?Q?SzawIuzz7bNI/tW4E6JfLXnoOVssoCrMTtAl01LV6Vshu4+g/0Qlmu8lFqU9?= =?us-ascii?Q?5EFXmpBu3YVztRcVnCCPZDDx0QlcB7P4yoyyfDo39UBmPJmjSOAr2YTDTj4+?= =?us-ascii?Q?m4Io/Yg6NJKTcLp+doSHbDbQpVLAQQ3REvBtvjk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UolzP9pg+6cAoK+u0DH5nwPrziIQoj6Y+acxPOmttrDnF/K?= =?us-ascii?Q?uHw7R6LZWG4rRHMqceL3uy45I4bBFtl4An6Syj6q2xcJSxzlaSEtDqWc7UpH?= =?us-ascii?Q?aOp2YGeXirZxVys8U3u9d2vqake2bcKM31REyNgrOuaoB4ixqfoSAnfWo65W?= =?us-ascii?Q?Nx+Xu3aVMAvNIn/Jdfad427M+Ltj4UWPdN7fl6XwEoA8XAunNGDbJNcPCIX3?= =?us-ascii?Q?Uzm/qr7OpCJl2InAWlxVmLB9RNMR1yLrtciaAIK12qBvfjOzojduskjrHhWL?= =?us-ascii?Q?12SyuHnSAQE1QxPv7a+8Fcv3xu/zr5kDSh6VczY1s5SnCd1drWk3GjiVFX8W?= =?us-ascii?Q?Ws+IPVc2pN04tn+IipX5BBf8xjl/svevBW7LhoN/NXvYC5m5wPnVQWC9ZQoy?= =?us-ascii?Q?r+6mipcBHPh64A7lap+rRAoklhPIB2boz9GBvKhkTDW9yEL/PLdVsO6gzfiG?= =?us-ascii?Q?UPIyGhqeCtkBxhReOep8NxeHx+wCUeCFYHDzgW4jKxPMDMFKjF61oh3YDnvE?= =?us-ascii?Q?eAVrdhraoQ+/DfyOGxMCSWJN+SX5w4LVDujyRECmoY5q3MslmIiB4Llaip8z?= =?us-ascii?Q?HmwYUYJTxKYKjOM8uTISIzY=3D?= 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Riesch The ST7789V display is operated in RGB666 (18-bit) mode. Propagate this format via the display info. Signed-off-by: Michael Riesch Signed-off-by: Gerald Loacker --- 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 #include +#include #include #include #include @@ -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; } -- 2.37.2