Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp343525rdh; Thu, 23 Nov 2023 05:38:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRNj4KpwnjxRhrmJt7D4uTaVnRWqJAUavlaqqzQDV6Tr4kJ7HS/bTodCaSnqFE7uzuXmh3 X-Received: by 2002:a17:902:da8a:b0:1cf:5d53:182d with SMTP id j10-20020a170902da8a00b001cf5d53182dmr5808351plx.28.1700746723404; Thu, 23 Nov 2023 05:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700746723; cv=none; d=google.com; s=arc-20160816; b=QlxI9YWYeC43cXCsRqm9FDgA/08N5LsBEJsOnGmvwnt5wXvU1u0gRuQ5PZq8VbqBfG shhhz3l16wLNY6R34xaskMNNZhlTl4W38nnSSzE1rnIFBqKVtOBMTHiECA6FjDndryfe a42bGpuAkDrIRCddDhzq7dkOJo8CaSuDBpcv30zFgvJGh8Ez5fQ8woJ5rQxHYO3AtxQ5 4cVALAKML+lOso+6mp+KEK7l0XIXrtgCgQJADHbsidzuneKciHf0LIxgP3AsFFCImbki d1zjjVAXjaagOLXkLe9g2HkAm3JkiUTZ5UP0cFHZAZOfO7mFJh2aCmUImn+7ub8Pv+Vb nbOw== 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=hgmlQ364KKc/pZW7uYiiB09fl1iPX7or0WCqavMvypw=; fh=VNacRJXm2hxfHsmdEC850M1vAMQkiaofyBYmGAuXVDI=; b=onukVqE9xwtxL5akDC9lops3fgPr+wE8Do07LklvShTpdvoNECPNN+rJ8tfRbDZL0n ISOdEjt/w63glC+OmRsfcQnxydAaVrUST00kamqdzwYNdAgb7qLG9y5EMZdczi7niKyF Ei5Zfw/GkOrFscelTmpDot910nj/mNqMvGHMPDYNldvcv6Lnrf7ifoq7eTXdfrit99Tm WdvJBAb7CEGAiZHmVR6KZDPoiCoxlqHyZYTlvGbXV+Jyc9mDyhEidfs2XdX/Z9hN4+og miSMTVnczagri68cqRzSaMvTWCnMI7+Ci2QMduFB51/390mhyeJvOwYk9QoUqrPn+xID xc1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="iI/CzRx+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id u12-20020a170902e80c00b001cc1194e9d3si1193615plg.217.2023.11.23.05.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 05:38:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="iI/CzRx+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0A8FD801B99A; Thu, 23 Nov 2023 05:38:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345571AbjKWNiY (ORCPT + 99 others); Thu, 23 Nov 2023 08:38:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345567AbjKWNiO (ORCPT ); Thu, 23 Nov 2023 08:38:14 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 025DFD7E for ; Thu, 23 Nov 2023 05:38:21 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33F67C433C9; Thu, 23 Nov 2023 13:38:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700746700; bh=yp3tKEvY3IVCFEhD0Bxg/Hw6hTrEBgQxqiXCTK5PONg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iI/CzRx+LbYWI9WFQv0WzBDR0lAxkkzVvtOC7DAQgaylWVB0Kb9xobuPy+A/9V4ys 6EslE2vM1ydHw9XSW/FFipkTg5V7FHnrQ8hXY0FQmsfiw/DCnn+sxbq4jQDfh3NGQZ FfZIzYVSg6nfy8/MYy4wpZT/XpLDcGftkMMaI7NtZDw7O6uqShHYJi8m+B1H7QbZ/g 4EN6pgFy2ZjJ50Hb89pELrKVU9RH+xLr7c4AyeilrWYswiHLSHySDwRMk/b6RTClXO GF5KDC6eMbJ29r+vPueyY2a0DTT8oR3aKBDczeLj7/BRLSQCqj5w8upiJRaVbsIxN6 4M9pqlxxp0tLA== From: Michael Walle To: Chun-Kuang Hu , Philipp Zabel , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Matthias Brugger , AngeloGioacchino Del Regno , Jitao Shi , Xinlei Lee Cc: dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, Michael Walle Subject: [PATCH 4/4] drm/mediatek: support the DSI0 output on the MT8195 VDOSYS0 Date: Thu, 23 Nov 2023 14:37:49 +0100 Message-Id: <20231123133749.2030661-5-mwalle@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231123133749.2030661-1-mwalle@kernel.org> References: <20231123133749.2030661-1-mwalle@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 23 Nov 2023 05:38:41 -0800 (PST) With the latest dynamic selection of the output component, we can now support different outputs. Move current output component into the dynamic routes array and add the new DSI0 output. Signed-off-by: Michael Walle --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 2b0c35cacbc6..6fa88976376e 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -222,7 +222,11 @@ static const unsigned int mt8195_mtk_ddp_main[] = { DDP_COMPONENT_DITHER0, DDP_COMPONENT_DSC0, DDP_COMPONENT_MERGE0, - DDP_COMPONENT_DP_INTF0, +}; + +static const struct mtk_drm_route mt8195_mtk_ddp_main_routes[] = { + { 0, DDP_COMPONENT_DP_INTF0 }, + { 0, DDP_COMPONENT_DSI0 }, }; static const unsigned int mt8195_mtk_ddp_ext[] = { @@ -308,6 +312,8 @@ static const struct mtk_mmsys_driver_data mt8192_mmsys_driver_data = { static const struct mtk_mmsys_driver_data mt8195_vdosys0_driver_data = { .main_path = mt8195_mtk_ddp_main, .main_len = ARRAY_SIZE(mt8195_mtk_ddp_main), + .conn_routes = mt8195_mtk_ddp_main_routes, + .num_conn_routes = ARRAY_SIZE(mt8195_mtk_ddp_main_routes), .mmsys_dev_num = 2, }; -- 2.39.2