From patchwork Thu Feb 29 14:48:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SmFzb24tSkggTGluICjmnpfnnb/npaUp?= X-Patchwork-Id: 208399 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp447792dyb; Thu, 29 Feb 2024 06:49:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUrESAao3uk9O5W0sWZQxNky/hERSkePVVs6tSjILLX+O30wnpl7wVNa4zZGaHd0ydV1Ts47PLRRchB0XTcrOyFCwDjkw== X-Google-Smtp-Source: AGHT+IEG1dj899nINJoXiuQURKR3x1ND4VdM18NGxq4ELc8zPQ49l0VCrsHRSWeQAQPV6AuanR+k X-Received: by 2002:a17:902:d501:b0:1db:d184:c458 with SMTP id b1-20020a170902d50100b001dbd184c458mr2568307plg.44.1709218194245; Thu, 29 Feb 2024 06:49:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709218194; cv=pass; d=google.com; s=arc-20160816; b=016ppaMhLbB8EAVDqvnWHwH43RD5r0cljHHwxpBKRR2u5H5sDExgKOx7c9vVrOz3jG 97fuGdfYd6gO/73fIWuJn2ZsehT6isdsLVWGo/4oab3fTQeA1BrCbFjebOGwCSyT+1Eb XdjM+1Xys47AeHAB7N9Zg8XCgRbk3M4OWnQirojfPYKIPRUj2D69H8pKqr8SqGEwYwgl ObxEMMbzGQqeB8hcvgVQ4hUIp/K5agQOiIrADfPKMiQ5FhrrvQqBS3cL55D0Oxesowqx 4M+cY+wf/GdMcZ2zJO2AOJvnnWAq0Cv7o16fGHcDI/eE/AYw7pEbPcma9uV7eTOmHDaV OEMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xDG8l2SWrThETTz0X8GaI7q6C/OjXyr+z9ITCFXfGU8=; fh=R656t2Juo3+35oIIiKW0xH8vRDW3betM8fKUI0ADTfc=; b=zD340Hdu11VGZToQqSY8OUIMOl51lV+4uv7/MdMzBV3OyiCj5uPYBL19JLzeGwQBrP nTix5e2ZCFeRazkKQu1+VVw+iwtNeDDM2+GgNZfBpekFNrIkg8PQHBuGe3A/VpmwWSNR lv9eaIuDyHpHQiQT/izvp0kFCr/B1p0xHGeT787UaUG9JwYOHePbN65QewA0rJI29JV/ o0SmUEjK234cOQ5O40cxc/vnTAe2P4DyoKwpvVlGgWXCfpPXd66iaEX6Tx6A640YbQ8v AZhkZvarv31kMUl+Rljbe3SdwhH9WmS/2QPY4mtFU97jmN97AZ99JWj6yqeEM3+eOYlA DMkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=t9X5t50N; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-86868-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86868-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id me7-20020a170902fc4700b001dcd2fb74acsi1494918plb.5.2024.02.29.06.49.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 06:49:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86868-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=t9X5t50N; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-86868-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86868-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 14BA3285D7E for ; Thu, 29 Feb 2024 14:49:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB0D7137750; Thu, 29 Feb 2024 14:48:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="t9X5t50N" Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5816A13774E; Thu, 29 Feb 2024 14:48:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709218137; cv=none; b=H2lVD4M3dtMeH/fsc17T8qLbvWjYCou3dnI8m6HuBTANRjkxZxH9r/Eb5uL5/oLmjk63+Eq05YDrEFuklnsVLOTZFxMg31pKZ7Ukp73QHMGjKHRkCd8xJdFbzJ2APwavfi1Scatej4+wvtHJPLcrk46T6W7cL93k9W6nI/Tosm4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709218137; c=relaxed/simple; bh=8qxm2EUd1GBdaNHFwmqaPZlDwV9oEoF87vIIJhfsHvU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GTiAHLSdoUbDz7RnF2s18e72IfQxUThdfmjtMElKHYpkaA/hvhDF9I3zm3qyimh6ZlM4veF9kYAVfhexi2vIIje+UC78VAbbnDfwe5Q2bhFdFBo1kKINUbolR1yt5yPrN5BWQ1RG/AXw15V6KEUc4JR9KBH4d/MY+AJcP4PZtx4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=t9X5t50N; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: a5a7ecbad71111ee935d6952f98a51a9-20240229 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=xDG8l2SWrThETTz0X8GaI7q6C/OjXyr+z9ITCFXfGU8=; b=t9X5t50NSLtuxE4JHRmOkY/JVkkTRaIs261nzQTHyRAHL+rzUNSPb2gmVJUb7V3BTtpUOk16YSdwBRXnaOoCXxM0+K3Fvi7sL7inYY0gUHiQ4Jf33QmK9/WdZOjv9wJAqFdHBxC9lMM4eX/cUYYZ8RGJtPSByLlqlKltBiSBE+c=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:1c624b77-03af-409c-a419-a959695f69ca,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:6f543d0,CLOUDID:c617f580-4f93-4875-95e7-8c66ea833d57,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT: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 X-UUID: a5a7ecbad71111ee935d6952f98a51a9-20240229 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1419325452; Thu, 29 Feb 2024 22:48:48 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 29 Feb 2024 22:48:46 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 29 Feb 2024 22:48:46 +0800 From: Jason-JH.Lin To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Chun-Kuang Hu CC: , , , , , , , Jason-ch Chen , Johnson Wang , "Jason-JH . Lin" , Singo Chang , "Nancy Lin" , Shawn Sung , , Fei Shao Subject: [PATCH v2 3/3] drm/mediatek: Add gamma support for MT8195 Date: Thu, 29 Feb 2024 22:48:44 +0800 Message-ID: <20240229144844.1688-4-jason-jh.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240229144844.1688-1-jason-jh.lin@mediatek.com> References: <20240229144844.1688-1-jason-jh.lin@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--5.629100-8.000000 X-TMASE-MatchedRID: 9EQCYzKTMIqGeTbGWdRz1q+dYEguu4aV6SXuwUgGH0iph3WXFw7gPvKC 81FnsF5IThbvLLI8RvPxY0WGgfScA49oUcx9VMLgFEUknJ/kEl7dB/CxWTRRu92KvEVWmYr1BOK CpVgJA9x4D937VKhYB4w3t2bVuZQpkVlgDMhSSLYI5Nn50T/hXg== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.629100-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 5EC83FE603B7E51A97315C15E93E9AAB287B3C02EFBFBA32B9D31BD516A6F8A72000:8 X-MTK: N X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792245177074346467 X-GMAIL-MSGID: 1792245177074346467 Since MT8195 compatible is in the single enum group, we have to add its compatible into mediatek-drm component binding table to ensure that it can be bound as a ddp_comp. Signed-off-by: Jason-JH.Lin Reviewed-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 14a1e0157cc4..93303bff8f34 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -707,6 +707,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[] = { .data = (void *)MTK_DISP_GAMMA, }, { .compatible = "mediatek,mt8183-disp-gamma", .data = (void *)MTK_DISP_GAMMA, }, + { .compatible = "mediatek,mt8195-disp-gamma", + .data = (void *)MTK_DISP_GAMMA, }, { .compatible = "mediatek,mt8195-disp-merge", .data = (void *)MTK_DISP_MERGE }, { .compatible = "mediatek,mt2701-disp-mutex",