From patchwork Mon Nov 14 05:46:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aakarsh Jain X-Patchwork-Id: 13041884 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18C36C433FE for ; Mon, 14 Nov 2022 05:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sfDGXOt8PBtTaWEzsFYh6HKKjJF3zUhtyp0xNkUD9do=; b=cuygrvd0PTOcxK 7WDiVFOmAavGX/vY6IbMHNVdbL2YsaWDCOu2nSJcOWGWczfCZxbzedzVc7nv558lkwAYYC0+O0ytt JWdSeNSoEmvqW9h6pS/jpytrcuNrp19d0rC5f7Vdxqa29Yo0VcB0AuqTnhBGABPVAJgPEM7CPdcXj PgVMPp1MrVxmw3a1SeddcVozbgmmC2C2La+0ZV2dXp0WRLL8yRodAM5vRz2q1IO1xHSLbQ5dX01AC 1YDrvGxPjsn2anzR6It/j58B0iaevLi2DI0/p68bzFI3bDNHumGSn7YFnIc9YHcuWtzqmdVrO/1Dq qn8MJTWXn1+4iFkhVy1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouSHX-00G6zy-4l; Mon, 14 Nov 2022 05:45:19 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouSHA-00G6sc-AY for linux-arm-kernel@lists.infradead.org; Mon, 14 Nov 2022 05:44:58 +0000 Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20221114054445epoutp038a1bc7b0c09a5dab2e895887bcf41ca1~nXTje7MEK0178101781epoutp03- for ; Mon, 14 Nov 2022 05:44:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20221114054445epoutp038a1bc7b0c09a5dab2e895887bcf41ca1~nXTje7MEK0178101781epoutp03- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1668404685; bh=FtNonu142mw8UcQV9QErqFMq965U9ZP4d9RK4tcsloo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MDu4plkHyCIZPPTYZkdT5ddOctlJiLUViWlVa7CmUtOsQUc4rwd9zlIBcqZmvC/ZP /7rmC+DH7mzdzpXV3llpF+VyXjShEdKvVzi4uTpPthGk4KTlF36fG2ODmKZ2RKzXGy zGP50/PO4jZcyzoPYN50TqnmfmX3iwZx/SQ3oxB4= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20221114054445epcas5p46aa8409dcef1b4898e8b33912f2d9568~nXTixnji52232022320epcas5p4R; Mon, 14 Nov 2022 05:44:45 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.179]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4N9dYH6G7xz4x9Q2; Mon, 14 Nov 2022 05:44:35 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 9F.8D.56352.3C5D1736; Mon, 14 Nov 2022 14:44:35 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20221114054049epcas5p3f3a5ce63fd3f1ce55197d1eaaa87e90b~nXQHLTpj92436624366epcas5p33; Mon, 14 Nov 2022 05:40:49 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221114054049epsmtrp222c3d51a3c31bedc746783817efae4c9~nXQHJ0FjF2028920289epsmtrp2P; Mon, 14 Nov 2022 05:40:49 +0000 (GMT) X-AuditID: b6c32a4b-5f7fe7000001dc20-32-6371d5c39f6b Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id EE.CA.14392.1E4D1736; Mon, 14 Nov 2022 14:40:49 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221114054045epsmtip2bd24a5e26dbc224815ddda1c116614a0~nXQDWTUEE1854818548epsmtip2f; Mon, 14 Nov 2022 05:40:44 +0000 (GMT) From: Aakarsh Jain To: linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: m.szyprowski@samsung.com, andrzej.hajda@intel.com, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, ezequiel@vanguardiasur.com.ar, jernej.skrabec@gmail.com, benjamin.gaignard@collabora.com, krzysztof.kozlowski+dt@linaro.org, stanimir.varbanov@linaro.org, dillon.minfei@gmail.com, david.plowman@raspberrypi.com, mark.rutland@arm.com, robh+dt@kernel.org, krzk+dt@kernel.org, andi@etezian.org, alim.akhtar@samsung.com, aswani.reddy@samsung.com, pankaj.dubey@samsung.com, smitha.t@samsung.com, aakarsh.jain@samsung.com Subject: [Patch v4 2/3] media: s5p-mfc: Add variant data for MFC v7 hardware for Exynos 3250 SoC Date: Mon, 14 Nov 2022 11:16:54 +0530 Message-Id: <20221114054655.68090-3-aakarsh.jain@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221114054655.68090-1-aakarsh.jain@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VTaVBbVRSe+95LXoIN8wwwXNmkb6QCM1BiQ3rRghY7zJuhjmB1XPoDYngF hpDELLU4Lo2yj4XSqeyCJYQKlMWwRQQaAkJF0bYi2CHBFmoLOmXYpBSYqSEB/fedc77vfOee ey8PF9q4Prx0hZZVK6RymutGdA+FBIcN/faeLOJ6swj9aa7goNs13Vxk2LiPoT8MqwSydnSR qHOiCkeXRy0cVDv8Mwf1DM4S6Jt5R/VGhZ1A92tbAVqonOGiovk7ODLNTXLQr73VXPR5excH tQzbSWScuoGhBtM2huq61kiU0z9MIntfN0DZucPYS5C5UnMFMGZ7PWCm6ldw5ttKO8kY+hYw xtRUwGVsk31cpqP+Eybn+02CKepsAkzh8BSXWTUFMGP/rJIJgncyjqSx0hRWHcgqZMqUdEVq NB1/IunlpEhJhChMFIUO04EKaSYbTR87nhAWly53rIAOPC2V6xypBKlGQx+MOaJW6rRsYJpS o42mWVWKXCVWhWukmRqdIjVcwWqfF0VEPBfpICZnpN20jZOqfvczXXUd2Fmw+EQh4PMgJYZf b/1IFAI3npD6DsDN5b9JV7ACYGteA+4K1gFsNkzje5K2bP2upB/A8vqr2E5BSOVgsN0SWgh4 PC4VBsd75DtpT0oP4Fy+doePUyUEnC6adzbyoN6Ftse9Ti1BBcHN5nPkDhZQ0fDSTw+By+xp 2NxucfL5VAy0Vc06J4JUHh/eXKvCXKRj8N5g/67AA/412km6sA9cXeznurAMztUt7J5ADtv6 LhIu/CK0TFQTO0PjVAhs6z3oSvvDL8Zane1xyh2e27q7ayWA5po9fABW2zY4LuwHh5qNuyMw cMW4yHEtqATAlssmcB4EVP5v8RUATeApVqXJTGU1kapDCvb9/25Npsw0AeczD403g9nbS+FW gPGAF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9ZLzczcxguNNS3MH4/ZVH/QOMTJxMB5ilOBgVhLhnSeTnyzEm5JYWZVa lB9fVJqTWnyIUZqDRUmc90LXyXghgfTEktTs1NSC1CKYLBMHp1QD064dOW7RNZfOmbZo/5Go ro7beizJ67bYoTtXQ59/kxQ6fujGW3uum0fmegkurz8snsehY1jSGLx0tUTU9WYj04r2v79v 7pes2sIhUHDa6YXhrRndT05uSjp8oWvrp9kc/odmzbuoI7QoXqXV6JtVvfTVLxdV94jO5E/r PTotfvnJl6HbdTkymFRsE78wvbdIC9WpjVdO3VK4T/NvVERE2LznkzU/nd137Jha3DLrtRZ7 ik8cuCCisEYwOnCS4M2lEy9Ev5PiX3fk79mVz2YViB3pevTmmdSu3xYbs7fMkLtosjLKdnOt 0tHT7F3vuq0ap17dq2zYwJKr8MPf+plMjBXjqmbrDcGtaZ9y1jO4OyixFGckGmoxFxUnAgCn wIwdJgMAAA== X-CMS-MailID: 20221114054049epcas5p3f3a5ce63fd3f1ce55197d1eaaa87e90b X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221114054049epcas5p3f3a5ce63fd3f1ce55197d1eaaa87e90b References: <20221114054655.68090-1-aakarsh.jain@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221113_214456_717595_36DB6A30 X-CRM114-Status: GOOD ( 16.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org commit "5441e9dafdfc6dc40fa" which adds mfc v7 support for Exynos3250 and use the same compatible string as used by Exynos5240 but both the IPs are a bit different in terms of IP clock. Lets add variant driver data based on the new compatible string "samsung,exynos3250-mfc" for Exynos3250 SoC. Suggested-by: Alim Akhtar Fixes: 5441e9dafdfc ("[media] s5p-mfc: Core support for MFC v7") Signed-off-by: Aakarsh Jain --- .../media/platform/samsung/s5p-mfc/s5p_mfc.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c index fca5c6405eec..007c7dbee037 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c @@ -1576,8 +1576,18 @@ static struct s5p_mfc_variant mfc_drvdata_v7 = { .port_num = MFC_NUM_PORTS_V7, .buf_size = &buf_size_v7, .fw_name[0] = "s5p-mfc-v7.fw", - .clk_names = {"mfc", "sclk_mfc"}, - .num_clocks = 2, + .clk_names = {"mfc"}, + .num_clocks = 1, +}; + +static struct s5p_mfc_variant mfc_drvdata_v7_3250 = { + .version = MFC_VERSION_V7, + .version_bit = MFC_V7_BIT, + .port_num = MFC_NUM_PORTS_V7, + .buf_size = &buf_size_v7, + .fw_name[0] = "s5p-mfc-v7.fw", + .clk_names = {"mfc", "sclk_mfc"}, + .num_clocks = 2, }; static struct s5p_mfc_buf_size_v6 mfc_buf_size_v8 = { @@ -1647,6 +1657,9 @@ static const struct of_device_id exynos_mfc_match[] = { }, { .compatible = "samsung,mfc-v7", .data = &mfc_drvdata_v7, + }, { + .compatible = "samsung,exynos3250-mfc", + .data = &mfc_drvdata_v7_3250, }, { .compatible = "samsung,mfc-v8", .data = &mfc_drvdata_v8,