Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp277416rdb; Thu, 30 Nov 2023 04:47:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsIcHT9GfsEP00/s1sDZVMEVcR9SYBoknb8IKUnq0GoZkrQNqSjOkv1nX9pjbvhths7njt X-Received: by 2002:a05:6a20:8208:b0:187:c92b:f359 with SMTP id w8-20020a056a20820800b00187c92bf359mr15032233pzb.21.1701348455911; Thu, 30 Nov 2023 04:47:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701348455; cv=none; d=google.com; s=arc-20160816; b=Frad4fDVdvqdSIqYQGn07SCGpZaKWYPWYTqrkA633If7xGRBI+InuQFh1oZE1aiYsW FkGTBRGe4kOGpw6lAzDZ9XuwlF084IdroyQZeEuB+lOA2jiCptIVgYUAmZETu65ftE3w 5tOzMuU6seODpl5pNgCfQlUZA4fyxUstj2z8a5IvrT+kntQXdmUEAgtcmWKvw1+oRuHB hxUF0doiO1BF3EuqruRBYMwRaBuMLmSRGYgPUXQKAXw+B5KSizFn38nr0koT4IGr634b H8XQFaEej2o1xi1Oc3MwHRzQ6opOX8/uXLNNjD0xCTYTN1tTot1gOa+1fn4GG/WIDkxr aSWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:mime-version:dkim-signature; bh=/54fOqfx5bdcK6H7SBTfxWqnRzEz6mZ33LcOXEZDWog=; fh=8lCh1OTM0RmdzKHTWdEWhsPZmilZ9DlBZ7D+tDri/58=; b=OBNGG1gznF2t1o++vQiOTxScLb1OZ0ugLxvfVdCjqlfuUnNayMysN1LFJiSvBGR1MV A61B3KUNgoun6ND7SnPykiQDUH2pcX0JbwNSC81TDS5wJm7Gff/0gVeenkaGIGgXR6qV fmyi9p349ku1W4sZN6VRqbGCAyfFFQ5b+XSoODfbhmLv+H57pxO01mzU1SmO08L+As4P FL+URMLinNbRlAJZqUdRfxJ9/1hyrrkI5PMmqgqI/DEkx7Olf5y/3rt5biJBmJHzim98 +LSNYzFw7xpKVVdcCvyZThywuLlOeYl1QZenZTB89ftWaE1HGW+PMdv+A9YgCMhR/gTs qk6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dabbuH3m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e187-20020a6369c4000000b005be109a793csi1155579pgc.444.2023.11.30.04.47.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 04:47:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dabbuH3m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 7C4EF802294D; Thu, 30 Nov 2023 04:47:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345369AbjK3MrS (ORCPT + 99 others); Thu, 30 Nov 2023 07:47:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231970AbjK3MrR (ORCPT ); Thu, 30 Nov 2023 07:47:17 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0961D50 for ; Thu, 30 Nov 2023 04:47:23 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 523C8C433C8; Thu, 30 Nov 2023 12:47:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701348443; bh=ltZg2E6aTzAR6MTRF7EIVGqc75LpYNO0JU7AzaW5iyE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dabbuH3m0BMxxTaY01Bvmd8CjoKVWDsdJ3trvLLtZHMvWxtO98UkSGBXSaRG41gJr m/BQjiCuLYcL1m2FkM6QXjAOwrGUoYKN9NC36nO4WRBNrGUkZlSs12In95Lkx+xvoR dAjsNh2zPrxJeoQM/do0EwSMrtTvQLyUKT41KeUkFA3PPaVLnPQY7q7fbW3uCSQVln HgubtUFlcaheOCk9cI1Rm1VgNdi4pYYc4A9OWevdZw0N1HNpsL5QTtpNE6Baa9WrgN dS+TwakXM2RGDuD4HQ4exJ3lEKkfygHH/9o5/TotjzYfn0E8ynR9jTjx8V+FuXh0n7 cH9vn1bphEkIw== MIME-Version: 1.0 Date: Thu, 30 Nov 2023 13:47:17 +0100 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 Subject: Re: [PATCH 4/4] drm/mediatek: support the DSI0 output on the MT8195 VDOSYS0 In-Reply-To: <20231123133749.2030661-5-mwalle@kernel.org> References: <20231123133749.2030661-1-mwalle@kernel.org> <20231123133749.2030661-5-mwalle@kernel.org> Message-ID: <2d1bae2239626cb51977bf0803cec602@kernel.org> X-Sender: mwalle@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 30 Nov 2023 04:47:33 -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, Please disregard this patch (the others are ok). There must gone something wrong during my testing. DDP_COMPONENT_MERGE0 won't work with DDP_COMPONENT_DSI0. If anyone has more insights, I'm all ears. -michael > +}; > + > +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, > };