Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4835417pxb; Tue, 28 Sep 2021 05:18:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybspcfqNWe8XL2Cv3MvBKArhPBJ5XcUVGUlWEXau3R1w+4ws+Tx4kX3nbIXq5T21EopQNp X-Received: by 2002:a17:906:8396:: with SMTP id p22mr6153715ejx.140.1632831530136; Tue, 28 Sep 2021 05:18:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632831530; cv=none; d=google.com; s=arc-20160816; b=j85BHsY4Lhk1pueRvSMlYipLEEV/JA9+/l5kvTtCfQXqVgJyQ/8xpc61/uG/OtFMGh WDyRQhpNZ0bC6ZLGIXHIEqeJ3aLZFDw5bs77opGBNf5Bk2nnLbR8e/pGH+bCx7lUXGyy WzGNFy9ajf8J2tbgQOwDnh14Cme+ladkquizE8OgUG9uX5K5x7kFTCXJbWFgieIbZgCN aTu06C4EKqaH8+20lLQydDFHVpqnwoqlppF+bh6k1yoD1E6FVRXc7Hj/FXq/Z/lKTp81 IRtEo+9NVdRLG99ZmJwACc0XPYGrHdWeojKTLfxFvjrjKiTT82LUsB9VG0/aEMD7vqLT 3ddw== 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:to:from; bh=1q1Opo/R8cnjXtTg9Fosn6sQW/ENkc1PT+0TKx/WhAM=; b=P0N7cMK9pguYUidcH1p7XWtW0PT90aHDDIoRmQ3tUaPvyVyc2WpWx44Tw0OtoAuiun qEMTJ8dw0jR/jjMKIzjoR0BbmySJu7Jk0cmC/ZEuG0LNdO6AU0kGyZCBaRJQkKki7iJ/ SYJ0XgBqewyYCYXyoFbtDULmSMO4aYLN3gsvVvDZWIJIxlvPZbDiKz0InACGfW1wvQ6H dePqxOLwtho/sbiGCNY6ViEv4GxLEtqgRxBlK8Qv+SdEIZsXNCEfUl/Lh8hE0Z7WNPHh fBGPI5pRoo46OqH1KXVjxA1Z07mK4tbQIoZE9wgdj/qyFH7k6kvQm6lTfHCEGLBuZt4p 9Cfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si21593314eda.228.2021.09.28.05.18.23; Tue, 28 Sep 2021 05:18:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240518AbhI1MST (ORCPT + 99 others); Tue, 28 Sep 2021 08:18:19 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:46348 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240496AbhI1MSL (ORCPT ); Tue, 28 Sep 2021 08:18:11 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 3CBA4FB03; Tue, 28 Sep 2021 14:16:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1mhmRqoTju2K; Tue, 28 Sep 2021 14:16:24 +0200 (CEST) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Marek Vasut , Stefan Agner , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Thierry Reding , Sam Ravnborg , Ondrej Jirman , Lucas Stach , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 4/5] drm/panel: mantix: Add media bus format Date: Tue, 28 Sep 2021 14:16:11 +0200 Message-Id: <91f413a0fa8d0a3b1805cc1fa27b46ede49545d7.1632828477.git.agx@sigxcpu.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This allows the DSI bridge to detect the correct bus format. We currently only support MEDIA_BUS_FMT_RGB888_1X24. Signed-off-by: Guido Günther --- drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c index f0e9bce23c41..d6bcf1045255 100644 --- a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c +++ b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -232,6 +233,10 @@ static const struct drm_display_mode default_mode_ys = { .height_mm = 130, }; +static const u32 mantix_bus_formats[] = { + MEDIA_BUS_FMT_RGB888_1X24, +}; + static int mantix_get_modes(struct drm_panel *panel, struct drm_connector *connector) { @@ -253,6 +258,10 @@ static int mantix_get_modes(struct drm_panel *panel, connector->display_info.height_mm = mode->height_mm; drm_mode_probed_add(connector, mode); + drm_display_info_set_bus_formats(&connector->display_info, + mantix_bus_formats, + ARRAY_SIZE(mantix_bus_formats)); + return 1; } -- 2.33.0