Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2407528rdg; Mon, 16 Oct 2023 03:42:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeoqFy7N7j9ORimQV+2eT+lMknsXok3+iFJza6MG4wBy/kcLBV/5GJvn44fDx3sUbER0cp X-Received: by 2002:a05:6a20:3d8a:b0:174:327c:db1e with SMTP id s10-20020a056a203d8a00b00174327cdb1emr14232705pzi.26.1697452969185; Mon, 16 Oct 2023 03:42:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697452969; cv=none; d=google.com; s=arc-20160816; b=aFAi7M7r/vTZbE67yUpWuhFyjokh0anD1e/QNzLsSHikB1JJYG2RZ1MB3V8Z8CeLHe mw3Ag4ixkZQsibpRAv7irrF9bE6n2c+x+/D9zfNqTE/S9ou4WLM1a5zkZQOdW2WteZXv TPyj6Q5RK9Kdl5QFrmzS18iOhaccsc5umbbVFSIfvaBwdQI62EYuwm7GNoRQuYeGw/IT 271P/SmDv4SkSfye9+og6wSTUlTSBhUBfltSY1YlYes+LN0+nneHTpoolPDncg1VeQvS AXaa8GPZ36KotdEJRLHWzroPIX6Y9gEqhXt8QncpX4tNSRuMiets7BVtUUXK+lFKOKPx dytA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=zgkOJnOawwpjAbjIZp4Lc3rk4l55K1RyKg+GjJmZMqQ=; fh=73Phm+PvMjlnW3qFw9TmTi5k31/kOAM4jmvPkuXQFpg=; b=wH/aRzq5NqwPSMLHsm+t+JapO0Q9XrVIcoZUxyPvpgaZAcuIf8/lk/jcxwIzWxm2pl b4+I6CN4nm1PcOuIxtqZGWSo4Y5mQXelBtD+gdLDNwJKh+ummk3/GnSgc+oy4lzy9Kal i0u2FziHF484MrjY21jJ9W01LkNWUB4oEoa3ZzeOKaYBdqJnFuCQl7tuPLXUy42oCW+a fOslgxehljgEEoABSoKO4bcjD+HMvCq8GN/8keSiymwmXrTmm0cuqeKVI04FHZyREiRn 69pSTDp4aB/cBvQ7csB0TIyHswbpEtTII5gecHp1tZS45ERC/vI2Vl3vxOHsLV8rGwS8 2cvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ozz8NGRO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id pg15-20020a17090b1e0f00b00277630078f9si6597543pjb.12.2023.10.16.03.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 03:42:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ozz8NGRO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9B8F1805FD67; Mon, 16 Oct 2023 03:42:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233588AbjJPKmZ (ORCPT + 99 others); Mon, 16 Oct 2023 06:42:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232903AbjJPKkb (ORCPT ); Mon, 16 Oct 2023 06:40:31 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B851B4; Mon, 16 Oct 2023 03:40:29 -0700 (PDT) X-UUID: 654fdd106c1011eea33bb35ae8d461a2-20231016 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=zgkOJnOawwpjAbjIZp4Lc3rk4l55K1RyKg+GjJmZMqQ=; b=ozz8NGROnl6BL3UEh/XEWyaKAJf0a9UWHmHXkrMJlK+nUA7HBX9bWIfmdefOocDleTgyRJth3SbRmRmbSRGNaZJFs1GkhmXk1GyFZXfzl7xTw9XXpTVWiaJ9Mts0YQrW96DiqK2AB6k1jjVVaCzx1kqaTmiE24/kU4aIgUtlUwA=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.32,REQID:2ab9b055-12ea-42ec-8ce0-05bc3c961d24,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:5f78ec9,CLOUDID:1791fcbf-14cc-44ca-b657-2d2783296e72,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR: NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULN X-UUID: 654fdd106c1011eea33bb35ae8d461a2-20231016 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 823148627; Mon, 16 Oct 2023 18:40:17 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by MTKMBS14N2.mediatek.inc (172.21.101.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 16 Oct 2023 18:40:16 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 16 Oct 2023 18:40:16 +0800 From: Hsiao Chien Sung To: AngeloGioacchino Del Regno , "CK Hu" , Krzysztof Kozlowski , Matthias Brugger , Rob Herring CC: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Fei Shao , Sean Paul , Johnson Wang , "Nancy . Lin" , Moudy Ho , "Jason-JH . Lin" , Nathan Lu , "Hsiao Chien Sung" , Yongqiang Niu , Hans Verkuil , Mauro Carvalho Chehab , , , , , Subject: [PATCH v8 20/23] drm/mediatek: Remove the redundant driver data for DPI Date: Mon, 16 Oct 2023 18:40:07 +0800 Message-ID: <20231016104010.3270-21-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20231016104010.3270-1-shawn.sung@mediatek.com> References: <20231016104010.3270-1-shawn.sung@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--10.042700-8.000000 X-TMASE-MatchedRID: JqvUv0YB5EdF/TNFimjSuBIRh9wkXSlFuLwbhNl9B5Waecho1pk4sZsn GP/L/vukqf82uGal6CMnOAFYLaUTjQDNPxu11HXj4pdq9sdj8LXuSXYuvnu1YQ6QlBHhBZuwnLY ZeTdR6/nW423XW2hpe8WTKA6C26DEEXiXWg39uY6eAiCmPx4NwBnUJ0Ek6yhjxEHRux+uk8h+IC quNi0WJEAJUI51LZL6xHfdVsFjU29pvAeT5M6Jp1Djv3Ert5O8ftwZ3X11IV0= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--10.042700-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 228F4B23E4C0A2CB8DE72C3EB65FDB67E2FCE17A53409842098B068B3A57E0702000:8 X-MTK: N X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Mon, 16 Oct 2023 03:42:46 -0700 (PDT) DPI input is in 1T2P mode on both MT8195 and MT8188. Remove the redundant driver data to align the settings, or the screen will glitch. Fixes: 2847cd7e6403 ("drm/mediatek: Add mt8188 dpi compatibles and platform data") Reviewed-by: CK Hu Signed-off-by: Hsiao Chien Sung --- drivers/gpu/drm/mediatek/mtk_dpi.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 1bf6041dd88b..d633f1ca3e71 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -967,20 +967,6 @@ static const struct mtk_dpi_conf mt8186_conf = { .csc_enable_bit = CSC_ENABLE, }; -static const struct mtk_dpi_conf mt8188_dpintf_conf = { - .cal_factor = mt8195_dpintf_calculate_factor, - .max_clock_khz = 600000, - .output_fmts = mt8195_output_fmts, - .num_output_fmts = ARRAY_SIZE(mt8195_output_fmts), - .pixels_per_iter = 4, - .input_2pixel = false, - .dimension_mask = DPINTF_HPW_MASK, - .hvsize_mask = DPINTF_HSIZE_MASK, - .channel_swap_shift = DPINTF_CH_SWAP, - .yuv422_en_bit = DPINTF_YUV422_EN, - .csc_enable_bit = DPINTF_CSC_ENABLE, -}; - static const struct mtk_dpi_conf mt8192_conf = { .cal_factor = mt8183_calculate_factor, .reg_h_fre_con = 0xe0, @@ -1104,7 +1090,7 @@ static const struct of_device_id mtk_dpi_of_ids[] = { { .compatible = "mediatek,mt8173-dpi", .data = &mt8173_conf }, { .compatible = "mediatek,mt8183-dpi", .data = &mt8183_conf }, { .compatible = "mediatek,mt8186-dpi", .data = &mt8186_conf }, - { .compatible = "mediatek,mt8188-dp-intf", .data = &mt8188_dpintf_conf }, + { .compatible = "mediatek,mt8188-dp-intf", .data = &mt8195_dpintf_conf }, { .compatible = "mediatek,mt8192-dpi", .data = &mt8192_conf }, { .compatible = "mediatek,mt8195-dp-intf", .data = &mt8195_dpintf_conf }, { /* sentinel */ }, -- 2.18.0