From patchwork Mon Nov 16 12:56:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Cerveny X-Patchwork-Id: 11908403 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E39E4C4742C for ; Mon, 16 Nov 2020 12:58:43 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7570E2222E for ; Mon, 16 Nov 2020 12:58:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="azcflAi0"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="vFdEuuim" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7570E2222E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=computer.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MsR0zaiF910cbT/0wGj5atiKsc7jgBWspu9veDjrXMw=; b=azcflAi0Cyx1PfkYLvPVM/9lK SN1Jl/9i4tjCE1lrP8ICOEdqFEzFy8L1LAwr3ziVrH+rcRwAg4umXkyeoiLl9ye9pU/5XWUx6taJ1 t82PBJM9IqFyHHP3NPsV3zVHUNeqlYw4IX/kxzU3EUtjCgmTierIC2U4m7xpKGFfXQQDHd/OorHcQ RVzLveKfbhDw/7OqzwrwtduQe4X/UHI7YsPSgKw/uP/x3X700jxWBLfeOWvuvBajTvE0BWL7W2GMk Q98GT0Ybnr2JFHAgOSQrcBJuBYeXBpVRhknL95aMx2o9GJ3ML1AiRCGmfBb114qGot/QvRLWBJJLu LdoCNL5aQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee4A-00040x-R2; Mon, 16 Nov 2020 12:57:06 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee45-0003zg-3b for linux-arm-kernel@merlin.infradead.org; Mon, 16 Nov 2020 12:57:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=a/zB1ls/YVq6dafgYedq2mpXVaQRz4DwqF10wuhEBn0=; b=vFdEuuimmZpyOzO1+hmt9OZRFQ TNLsLkS1LcvkE5frpfrr3JU671wYCWpuB9HnCQaaSkrBlm+iMHOTR/T7Kd79HhTYPfdcovVvYXzWS BBCdjsKkf08EKMdSYE66tCS02408CNZHaMD4VGt8sy8PpayDSmbETkMXM9eqjW6neBwl26FInvLEL BUaNRLkpi0pX9/2HYo8YFvSHIR7okFUR247SVxF65m2iCbUonooPjHnDDerw0Sg5Kx94gPewM9HCr deItk5CRmo8J1Ou5XLj+ml0cVQbWUq6KTr+s6xMmR0WB+c8fx9s8mgQT561YagydfXzp0Lt4WpMWy YnZy54UQ==; Received: from gw.c-home.cz ([89.24.150.100] helo=dmz.c-home.cz) by casper.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee41-0004ZY-Un for linux-arm-kernel@lists.infradead.org; Mon, 16 Nov 2020 12:57:00 +0000 Received: from ubuntu2004.c-home.cz (unifi.c-home.cz [192.168.1.227]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 0AGCuMlW021922; Mon, 16 Nov 2020 13:56:39 +0100 (CET) From: Martin Cerveny To: Maxime Ripard Subject: [PATCH v3 1/6] media: cedrus: Register all codecs as capability Date: Mon, 16 Nov 2020 13:56:12 +0100 Message-Id: <20201116125617.7597-2-m.cerveny@computer.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116125617.7597-1-m.cerveny@computer.org> References: <20201116125617.7597-1-m.cerveny@computer.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201116_125658_364490_EBF54802 X-CRM114-Status: GOOD ( 13.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Jernej Skrabec , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Rob Herring , Paul Kocialkowski , Chen-Yu Tsai , Mark Brown , Martin Cerveny , linux-media@vger.kernel.org, Lee Jones , linux-arm-kernel@lists.infradead.org, Icenowy Zheng Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org All codecs should have capabilities. For example "Allwinner V3s" does not support "MPEG2". Signed-off-by: Martin Cerveny --- drivers/staging/media/sunxi/cedrus/cedrus.c | 22 +++++++++++++++++-- drivers/staging/media/sunxi/cedrus/cedrus.h | 2 ++ .../staging/media/sunxi/cedrus/cedrus_video.c | 2 ++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/sunxi/cedrus/cedrus.c b/drivers/staging/media/sunxi/cedrus/cedrus.c index 9a102b7c1bb9..3487554fab68 100644 --- a/drivers/staging/media/sunxi/cedrus/cedrus.c +++ b/drivers/staging/media/sunxi/cedrus/cedrus.c @@ -486,47 +486,65 @@ static int cedrus_remove(struct platform_device *pdev) } static const struct cedrus_variant sun4i_a10_cedrus_variant = { + .capabilities = CEDRUS_CAPABILITY_MPEG2_DEC | + CEDRUS_CAPABILITY_H264_DEC, .mod_rate = 320000000, }; static const struct cedrus_variant sun5i_a13_cedrus_variant = { + .capabilities = CEDRUS_CAPABILITY_MPEG2_DEC | + CEDRUS_CAPABILITY_H264_DEC, .mod_rate = 320000000, }; static const struct cedrus_variant sun7i_a20_cedrus_variant = { + .capabilities = CEDRUS_CAPABILITY_MPEG2_DEC | + CEDRUS_CAPABILITY_H264_DEC, .mod_rate = 320000000, }; static const struct cedrus_variant sun8i_a33_cedrus_variant = { - .capabilities = CEDRUS_CAPABILITY_UNTILED, + .capabilities = CEDRUS_CAPABILITY_UNTILED | + CEDRUS_CAPABILITY_MPEG2_DEC | + CEDRUS_CAPABILITY_H264_DEC, .mod_rate = 320000000, }; static const struct cedrus_variant sun8i_h3_cedrus_variant = { .capabilities = CEDRUS_CAPABILITY_UNTILED | + CEDRUS_CAPABILITY_MPEG2_DEC | + CEDRUS_CAPABILITY_H264_DEC | CEDRUS_CAPABILITY_H265_DEC, .mod_rate = 402000000, }; static const struct cedrus_variant sun8i_r40_cedrus_variant = { - .capabilities = CEDRUS_CAPABILITY_UNTILED, + .capabilities = CEDRUS_CAPABILITY_UNTILED | + CEDRUS_CAPABILITY_MPEG2_DEC | + CEDRUS_CAPABILITY_H264_DEC, .mod_rate = 297000000, }; static const struct cedrus_variant sun50i_a64_cedrus_variant = { .capabilities = CEDRUS_CAPABILITY_UNTILED | + CEDRUS_CAPABILITY_MPEG2_DEC | + CEDRUS_CAPABILITY_H264_DEC | CEDRUS_CAPABILITY_H265_DEC, .mod_rate = 402000000, }; static const struct cedrus_variant sun50i_h5_cedrus_variant = { .capabilities = CEDRUS_CAPABILITY_UNTILED | + CEDRUS_CAPABILITY_MPEG2_DEC | + CEDRUS_CAPABILITY_H264_DEC | CEDRUS_CAPABILITY_H265_DEC, .mod_rate = 402000000, }; static const struct cedrus_variant sun50i_h6_cedrus_variant = { .capabilities = CEDRUS_CAPABILITY_UNTILED | + CEDRUS_CAPABILITY_MPEG2_DEC | + CEDRUS_CAPABILITY_H264_DEC | CEDRUS_CAPABILITY_H265_DEC, .quirks = CEDRUS_QUIRK_NO_DMA_OFFSET, .mod_rate = 600000000, diff --git a/drivers/staging/media/sunxi/cedrus/cedrus.h b/drivers/staging/media/sunxi/cedrus/cedrus.h index 93c843ae14bb..30cdb15d6800 100644 --- a/drivers/staging/media/sunxi/cedrus/cedrus.h +++ b/drivers/staging/media/sunxi/cedrus/cedrus.h @@ -28,6 +28,8 @@ #define CEDRUS_CAPABILITY_UNTILED BIT(0) #define CEDRUS_CAPABILITY_H265_DEC BIT(1) +#define CEDRUS_CAPABILITY_H264_DEC BIT(2) +#define CEDRUS_CAPABILITY_MPEG2_DEC BIT(3) #define CEDRUS_QUIRK_NO_DMA_OFFSET BIT(0) diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_video.c b/drivers/staging/media/sunxi/cedrus/cedrus_video.c index 911f607d9b09..bdca23fc214b 100644 --- a/drivers/staging/media/sunxi/cedrus/cedrus_video.c +++ b/drivers/staging/media/sunxi/cedrus/cedrus_video.c @@ -38,10 +38,12 @@ static struct cedrus_format cedrus_formats[] = { { .pixelformat = V4L2_PIX_FMT_MPEG2_SLICE, .directions = CEDRUS_DECODE_SRC, + .capabilities = CEDRUS_CAPABILITY_MPEG2_DEC, }, { .pixelformat = V4L2_PIX_FMT_H264_SLICE, .directions = CEDRUS_DECODE_SRC, + .capabilities = CEDRUS_CAPABILITY_H264_DEC, }, { .pixelformat = V4L2_PIX_FMT_HEVC_SLICE, From patchwork Mon Nov 16 12:56:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Cerveny X-Patchwork-Id: 11908395 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38082C4742C for ; Mon, 16 Nov 2020 12:57:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AE8232222E for ; Mon, 16 Nov 2020 12:57:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ojpcnt2m"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="wOPFr2pq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AE8232222E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=computer.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5cUcyJRYwBO81YaOHxG7fzX7mnGOi0VehRaIO8xLKY8=; b=ojpcnt2mt56w4Jmh0tGmJ7J1U Lz8gIf2/F8ogCF5Xia47tAXCqSIW6EL2voZklHV0zpGI2xjoOIITlwgIEg7hn7h0G0RKqab15Wd3a DetJ3GgBMSOMoOprji9c6cF+wCJxK6FRNXrKkYSujRqhnT6PFIcCnOE6Y7EG4MokrN5MBTTOBY0Q7 QGrz0wRVsFO7h/hrzJGWw1zbNOCvIgxapc+d2XvgxfD+NPBDfCyvHGWSEL/8ER9EROcFmwJjxE/e/ CAE0F90VAfcTL3TMDZhKQdOvX5f0NC3LljrnaLH5yAUR42kujWgkBgayYXnJlFjOBiP+ZoIwU1v3Y 2/nxBllpw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee4D-00041L-Bs; Mon, 16 Nov 2020 12:57:09 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee45-0003zo-Nz for linux-arm-kernel@merlin.infradead.org; Mon, 16 Nov 2020 12:57:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=GiFY5SgfiSRUWxwJoawsqWyar4x/te1vkI1tzrqeG4k=; b=wOPFr2pqmizWG0PpWZLbEo18K0 oofHW/UNsxfJlgc1W0xpO34hXtHFkTiIdqvG10935SZVOhiqPkBvHQTzSOJkwhMP/pu6Wotx/KWQz KH7+h+5W/lQytYhndgZ4MeO07EeRjzUZma1B+k8NShYyG8zBGG0SLnsAoBsnBmaWeG9HmBfsLku3U 7Lt8GeaZUOX6SGTntii4ouopC2NxYKYrcxqp8yDhcAVXGY6c8/36kv9oqpgjBX2VcXfDwgN72aIbT DQz2XHnwNgqvJhQgNMDvb49wRH6TseGkH9HVVWijBvEmAPT0vixSGCxMhKoLyUVC/ubWrdQOBJ/r1 y5XIlPEg==; Received: from gw.c-home.cz ([89.24.150.100] helo=dmz.c-home.cz) by casper.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee42-0004Zx-Ni for linux-arm-kernel@lists.infradead.org; Mon, 16 Nov 2020 12:57:00 +0000 Received: from ubuntu2004.c-home.cz (unifi.c-home.cz [192.168.1.227]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 0AGCuMlX021922; Mon, 16 Nov 2020 13:56:41 +0100 (CET) From: Martin Cerveny To: Maxime Ripard Subject: [PATCH v3 2/6] dt-bindings: sram: allwinner, sun4i-a10-system-control: Add V3s compatibles Date: Mon, 16 Nov 2020 13:56:13 +0100 Message-Id: <20201116125617.7597-3-m.cerveny@computer.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116125617.7597-1-m.cerveny@computer.org> References: <20201116125617.7597-1-m.cerveny@computer.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201116_125659_219387_28BB137C X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Jernej Skrabec , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Rob Herring , Paul Kocialkowski , Chen-Yu Tsai , Mark Brown , Martin Cerveny , linux-media@vger.kernel.org, Lee Jones , linux-arm-kernel@lists.infradead.org, Icenowy Zheng Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Allwinner V3s has system control similar to that in H3. Add compatibles for system control with SRAM C1 region. Signed-off-by: Martin Cerveny Reviewed-by: Rob Herring --- .../bindings/sram/allwinner,sun4i-a10-system-control.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml index b66a07e21d1e..bdd352b01434 100644 --- a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml +++ b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml @@ -92,6 +92,9 @@ patternProperties: - items: - const: allwinner,sun8i-h3-sram-c1 - const: allwinner,sun4i-a10-sram-c1 + - items: + - const: allwinner,sun8i-v3s-sram-c1 + - const: allwinner,sun4i-a10-sram-c1 - items: - const: allwinner,sun8i-r40-sram-c1 - const: allwinner,sun4i-a10-sram-c1 From patchwork Mon Nov 16 12:56:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Cerveny X-Patchwork-Id: 11908393 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7071EC4742C for ; Mon, 16 Nov 2020 12:57:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DCE8A2222E for ; Mon, 16 Nov 2020 12:57:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Ve28g2Sz"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="hjh4t89F" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DCE8A2222E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=computer.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=074k0NrXzkTdD9CrTC3zftCPC5mMsPlqizjFteM+bE0=; b=Ve28g2Sz5/frZqtoV9URLtD24 9gYXqzXUeswlxx9r1cSddZZMTpBtAeCxnzvcnPIfjFa2nmWXQZ13E4dYEbmoNQArjCl/G13fSOsTG PEjTtorpHgCZBIzYMje9pS4q0CYiXxV5cpWmATDNJm9UGzAKbrWqNsrY4xknawEfba2VkAvlcKvdC DQhpeT/blgARb8gKcdg8KZj7RRbxshBls01oZD3aAN668X7C9qUpc7KpfmNn4wAWxvA3x3d0OEToP hIHHGmQJzg3QETVLduABk9cSeQe1xnCDvMOYErSkfbajmLvND30SPrK4LeHhWOzm/uVh+gHFCWmWo GBQxmr+8A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee4L-000439-Fw; Mon, 16 Nov 2020 12:57:17 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee47-000409-I9 for linux-arm-kernel@merlin.infradead.org; Mon, 16 Nov 2020 12:57:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=BomnQAxtiF4gMgk6NAzKhjFUjZhaeVL0IKeT3Zvwuoc=; b=hjh4t89F8RooPh5MrujBn9VR2x Aztn5wMpBjb9L/OEC4K2eWDNTus/POAv2TOleQzmQBX2TvYQUgfxRdkrHJ8Q9rHUPMeL8p7RnY+T6 jn2S705gF2hKjuanAR/qMsy1tbJBtxn9WOMWkFx9P6W1sqsNflyjoyZWcRjiuY5MPDc+mCQmNqQS6 Knbiwe4MEzBZKjGw6XgUEfAizfSvz9xxgLl6Kg2LjakF5rZA48w0LvOkFLvaB3nchjOPJKIqAxjys n2THa08rbPDfIbOmAB7bSnxgancGIZQRcUTPP+ltkLmHYUXu0Qn0Ntjw6fqtmWdkbHlSEIrECxd32 9Jpc9cJA==; Received: from gw.c-home.cz ([89.24.150.100] helo=dmz.c-home.cz) by casper.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee44-0004aQ-Af for linux-arm-kernel@lists.infradead.org; Mon, 16 Nov 2020 12:57:02 +0000 Received: from ubuntu2004.c-home.cz (unifi.c-home.cz [192.168.1.227]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 0AGCuMlY021922; Mon, 16 Nov 2020 13:56:42 +0100 (CET) From: Martin Cerveny To: Maxime Ripard Subject: [PATCH v3 3/6] ARM: dts: sun8i: v3s: Add node for system control Date: Mon, 16 Nov 2020 13:56:14 +0100 Message-Id: <20201116125617.7597-4-m.cerveny@computer.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116125617.7597-1-m.cerveny@computer.org> References: <20201116125617.7597-1-m.cerveny@computer.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201116_125700_828999_78BBA02C X-CRM114-Status: GOOD ( 10.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Jernej Skrabec , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Rob Herring , Paul Kocialkowski , Chen-Yu Tsai , Mark Brown , Martin Cerveny , linux-media@vger.kernel.org, Lee Jones , linux-arm-kernel@lists.infradead.org, Icenowy Zheng Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Allwinner V3s has system control and SRAM C1 region similar to H3. Signed-off-by: Martin Cerveny --- arch/arm/boot/dts/sun8i-v3s.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index 0c7341676921..70193512c222 100644 --- a/arch/arm/boot/dts/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi @@ -161,6 +161,20 @@ syscon: system-control@1c00000 { #address-cells = <1>; #size-cells = <1>; ranges; + + sram_c: sram@1d00000 { + compatible = "mmio-sram"; + reg = <0x01d00000 0x80000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x01d00000 0x80000>; + + ve_sram: sram-section@0 { + compatible = "allwinner,sun8i-v3s-sram-c1", + "allwinner,sun4i-a10-sram-c1"; + reg = <0x000000 0x80000>; + }; + }; }; tcon0: lcd-controller@1c0c000 { From patchwork Mon Nov 16 12:56:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Cerveny X-Patchwork-Id: 11908401 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 686CDC5519F for ; Mon, 16 Nov 2020 12:58:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F327D2222E for ; Mon, 16 Nov 2020 12:58:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qydRz5K4"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Mi3LDPVc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F327D2222E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=computer.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wK6U8bwbBigAttfRFAQYxYbqJl3FRaIeP/94CkTRNZg=; b=qydRz5K4KqE3WAOY/FhpnT+cl 763gQMqB/xvdLO0mPYGQVoWRzQx0NKY41ZoTNi4CFI+blbbAFkBGhWYTTKeKWudk9EvPtHQM+EDgU i16rHuC2eDoqv22a6YtOytW/lgdnLmjyuPJrF26AozlpojvDtvHS2GP8E8J3pwv58tFgTQJ/jaOfX MeNWWS9F3vjKTtwtsYDJXcCcg43xcnH9vQbuc/DmIk+KzowWqGNSuEtDJH6r6JYGjqSeRszGoYiNf H/vNbmzMT3AyL39gd52RSg0iuWZtreecmbKdO9D9QbVVKPydOTwHrSvvHvwR8LusM9ggo2GLSRsU1 P2Aktejtw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee4H-00042D-7u; Mon, 16 Nov 2020 12:57:13 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee46-000401-RX for linux-arm-kernel@merlin.infradead.org; Mon, 16 Nov 2020 12:57:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=h97Bh++gcllQQ1OmUaxWRbawk69cJegMv3JRV8+ZHiE=; b=Mi3LDPVcyIS/HAjrZSX92gkvFR iU6YyGgpiEhfppUw9Nc5NRguGdtf6oxRVEhCtLZB2uBJwBC6Rqr8bSIBfN9VNvsVXOcu3MxiMqghw qQ8bRKBnkRZmTVQMPVz3TKfh8lLJBiU6xqQ9etFUBrFiBv96ju/vKKvagddCEHAiLcsEmoUPTiY7V n1IDXRXmhVMzBNwZcp7UKlPzK9ZHIMJ54ZvAm/wJm3ukpS0F4k3Qjx1ldkz0Csth30ejRN9VttGev QAMBksdqp1J/UT7O0r8GUI1YAS8Xey7SaVzj6qe7o8F+m7a7f4zT4AjkrS8OdKYJfLXr09CgUksI2 8ytsZTbQ==; Received: from gw.c-home.cz ([89.24.150.100] helo=dmz.c-home.cz) by casper.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee43-0004aD-Mf for linux-arm-kernel@lists.infradead.org; Mon, 16 Nov 2020 12:57:01 +0000 Received: from ubuntu2004.c-home.cz (unifi.c-home.cz [192.168.1.227]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 0AGCuMlZ021922; Mon, 16 Nov 2020 13:56:43 +0100 (CET) From: Martin Cerveny To: Maxime Ripard Subject: [PATCH v3 4/6] media: cedrus: Add support for V3s Date: Mon, 16 Nov 2020 13:56:15 +0100 Message-Id: <20201116125617.7597-5-m.cerveny@computer.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116125617.7597-1-m.cerveny@computer.org> References: <20201116125617.7597-1-m.cerveny@computer.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201116_125700_187197_98F6369F X-CRM114-Status: GOOD ( 12.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Jernej Skrabec , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Rob Herring , Paul Kocialkowski , Chen-Yu Tsai , Mark Brown , Martin Cerveny , linux-media@vger.kernel.org, Lee Jones , linux-arm-kernel@lists.infradead.org, Icenowy Zheng Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org V3s video engine runs at lower speed and support video decoder for H.264 and JPEG/MJPEG only. Signed-off-by: Martin Cerveny --- drivers/staging/media/sunxi/cedrus/cedrus.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/staging/media/sunxi/cedrus/cedrus.c b/drivers/staging/media/sunxi/cedrus/cedrus.c index 3487554fab68..ee4e21b29374 100644 --- a/drivers/staging/media/sunxi/cedrus/cedrus.c +++ b/drivers/staging/media/sunxi/cedrus/cedrus.c @@ -518,6 +518,12 @@ static const struct cedrus_variant sun8i_h3_cedrus_variant = { .mod_rate = 402000000, }; +static const struct cedrus_variant sun8i_v3s_cedrus_variant = { + .capabilities = CEDRUS_CAPABILITY_UNTILED | + CEDRUS_CAPABILITY_H264_DEC, + .mod_rate = 297000000, +}; + static const struct cedrus_variant sun8i_r40_cedrus_variant = { .capabilities = CEDRUS_CAPABILITY_UNTILED | CEDRUS_CAPABILITY_MPEG2_DEC | @@ -571,6 +577,10 @@ static const struct of_device_id cedrus_dt_match[] = { .compatible = "allwinner,sun8i-h3-video-engine", .data = &sun8i_h3_cedrus_variant, }, + { + .compatible = "allwinner,sun8i-v3s-video-engine", + .data = &sun8i_v3s_cedrus_variant, + }, { .compatible = "allwinner,sun8i-r40-video-engine", .data = &sun8i_r40_cedrus_variant, From patchwork Mon Nov 16 12:56:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Cerveny X-Patchwork-Id: 11908407 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EEADC4742C for ; Mon, 16 Nov 2020 12:59:02 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 168092222E for ; Mon, 16 Nov 2020 12:59:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="uQIWpuk1"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="HBot5zvb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 168092222E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=computer.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ukWGMYhCtg82e63zhh0PEDhoGuF0bQkEn7VE6oEhNg8=; b=uQIWpuk1kHfR+bbgdR96ngfM8 Pks20yjr1ywM+b3atwW+PH8qYmnhfDWxTxLWvDxLCO4hfJGrcFLokkGjtJ5d+O5x0Z+R3ybwyDxSj XERi1Ru7ZgnYKse4mN3oEVcL2hN0q6fyGsesgb0+IYD6R7oc1aGHnj9OIjUxfAzaPXyDt8h6z2r39 acmJ7+wT5mWSkNep6ANd5xm+ufA12D8+wiwPC0STBtAF5Aos8wwpA/Cvmr1HkT/SpP7H/VYSt5rSo F4G1HluB03QlmBJ1FF8lzCKTZf6pFseDyWHxAHrXL0AquJgwavMzDzBpad9qOavgCXbPeUEQItaiV Fbc3zTIaQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee4Q-00044N-VM; Mon, 16 Nov 2020 12:57:23 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee48-00040I-1f for linux-arm-kernel@merlin.infradead.org; Mon, 16 Nov 2020 12:57:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=SKIx3DVOangB1JOVdgeI7t72Qr27T9m+peePawTqFmU=; b=HBot5zvbryFUG8KwqJSeEqb7YD 8aiNfqrAe24EGoZJQb39RNIW/PYPhI/ywjenIKDNP4slVE1X5H4Fp+MQRWSJKG6fyaxzXsFjq0Foj 1AVTJrOmMt02EqdBXIdsaDYA66K3JA6UL4wXx4cmZ/fRLeoqsJHNwNVvejIB+kHq7tZNlrYzheWMT nyJBFnj3PkG1XK1AQdGCnlZo3esBi3B6/UQMX6c53uCibbxthDaZeF04uV2BW2oMZY8lrXlLe/wx/ YxYaYGWPH0dxxtAYD5XCLyWSR/arpB6qnaLBdHFZ78zhuqlXELFintU1g/0iaY49ySpXlIOaQvIhn O6QrVl3A==; Received: from gw.c-home.cz ([89.24.150.100] helo=dmz.c-home.cz) by casper.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee44-0004aR-Ac for linux-arm-kernel@lists.infradead.org; Mon, 16 Nov 2020 12:57:03 +0000 Received: from ubuntu2004.c-home.cz (unifi.c-home.cz [192.168.1.227]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 0AGCuMla021922; Mon, 16 Nov 2020 13:56:44 +0100 (CET) From: Martin Cerveny To: Maxime Ripard Subject: [PATCH v3 5/6] dt-bindings: media: cedrus: Add V3s compatible Date: Mon, 16 Nov 2020 13:56:16 +0100 Message-Id: <20201116125617.7597-6-m.cerveny@computer.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116125617.7597-1-m.cerveny@computer.org> References: <20201116125617.7597-1-m.cerveny@computer.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201116_125700_712203_8EDAD20D X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Jernej Skrabec , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Rob Herring , Paul Kocialkowski , Chen-Yu Tsai , Mark Brown , Martin Cerveny , linux-media@vger.kernel.org, Lee Jones , linux-arm-kernel@lists.infradead.org, Icenowy Zheng Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Allwinner V3s SoC contains video engine. Add compatible for it. Signed-off-by: Martin Cerveny Acked-by: Chen-Yu Tsai Acked-by: Rob Herring --- .../bindings/media/allwinner,sun4i-a10-video-engine.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml index 0d58bbcd24d3..2f7058f7760c 100644 --- a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml +++ b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml @@ -18,6 +18,7 @@ properties: - allwinner,sun7i-a20-video-engine - allwinner,sun8i-a33-video-engine - allwinner,sun8i-h3-video-engine + - allwinner,sun8i-v3s-video-engine - allwinner,sun8i-r40-video-engine - allwinner,sun50i-a64-video-engine - allwinner,sun50i-h5-video-engine From patchwork Mon Nov 16 12:56:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Cerveny X-Patchwork-Id: 11908399 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E78C2C5519F for ; Mon, 16 Nov 2020 12:58:07 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7A6402222E for ; Mon, 16 Nov 2020 12:58:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BpBf71Tl"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="BFzLG7gt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7A6402222E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=computer.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=iKNdTvCPxUNR1nuLjtZHA6MxjGlW3EAPwcfaYFF5+9c=; b=BpBf71TlsyoBhz7TvQW0T5uNf IiurGSpldSmD0L1dwPYtQVU7bXd4z63lsltLUlqGxOM7qL033T0JNZ+/Hz4E/ybtHWRGqfr/qK8d+ y6ATuYiW+Y/JQ/li7qpQYtQbsKaqf6ETGpiodgg9Nwa9u0EXELOWZ391NxzPCmXAHxtZBi76T3+gO OZqSptjF3VyFlyG87TeUv9aNWxaaXrRTOaPBnk54gg6CBdd2Dgpa0FwNQrSTq156G5COHhNpp8Ewq yeDr3hm6MqrHXo3ezXQXKwNecI8pxH87GQd1ZiEUQlv7fNFYjtZ7XH7OW6cdMzLG0SWEIq8WyafV5 jgzQEvwXQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee4c-00047M-K4; Mon, 16 Nov 2020 12:57:34 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee48-00040Q-Hi for linux-arm-kernel@merlin.infradead.org; Mon, 16 Nov 2020 12:57:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=8aZ6wJxDwLBNtUKv9jxqO8NTq/VP5R/sgjRVYgdpdVs=; b=BFzLG7gtzjenArPhrx5UQxpAbB 2W4pSac77yOhB4SIMYvMa1WSraGpR/Uhj/igumDNyB+r3sUhDizTfD3Rpgb2EFTJU/F7uizmAC4xu yzchc9FBtXa2dMc9mwydEW7XQ+ca5HZMU2dB1MaHLQvmJ3EqBNYcGBu7GtL/6CmAxCa+J0H0ldQ2H IaVLEkQk1EKAJVZFMHGoJTqPDVGf3GIno5lh+DGm2/Bry/hxvhYFWtWs+BN3YlaY2ijZGu2IZ0xgd IUz+tP0YjiNPXU79aDX92LGKaP70O//e0ycS3peEOZMOBlnP6qF6aDUY3w9c8lq2jcUsBsZ5urzZR btxlevZw==; Received: from gw.c-home.cz ([89.24.150.100] helo=dmz.c-home.cz) by casper.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kee45-0004aj-1y for linux-arm-kernel@lists.infradead.org; Mon, 16 Nov 2020 12:57:03 +0000 Received: from ubuntu2004.c-home.cz (unifi.c-home.cz [192.168.1.227]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 0AGCuMlb021922; Mon, 16 Nov 2020 13:56:46 +0100 (CET) From: Martin Cerveny To: Maxime Ripard Subject: [PATCH v3 6/6] ARM: dts: sun8i: v3s: Add video engine node Date: Mon, 16 Nov 2020 13:56:17 +0100 Message-Id: <20201116125617.7597-7-m.cerveny@computer.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116125617.7597-1-m.cerveny@computer.org> References: <20201116125617.7597-1-m.cerveny@computer.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201116_125701_513447_69BA50A4 X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Jernej Skrabec , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Rob Herring , Paul Kocialkowski , Chen-Yu Tsai , Mark Brown , Martin Cerveny , linux-media@vger.kernel.org, Lee Jones , linux-arm-kernel@lists.infradead.org, Icenowy Zheng Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Allwinner V3S SoC has a video engine. Add a node for it. Signed-off-by: Martin Cerveny Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-v3s.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s.dtsi b/arch/arm/boot/dts/sun8i-v3s.dtsi index 70193512c222..e8f304125e2d 100644 --- a/arch/arm/boot/dts/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/sun8i-v3s.dtsi @@ -211,6 +211,16 @@ tcon0_out: port@1 { }; }; + video-codec@1c0e000 { + compatible = "allwinner,sun8i-v3s-video-engine"; + reg = <0x01c0e000 0x1000>; + clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>, + <&ccu CLK_DRAM_VE>; + clock-names = "ahb", "mod", "ram"; + resets = <&ccu RST_BUS_VE>; + interrupts = ; + allwinner,sram = <&ve_sram 1>; + }; mmc0: mmc@1c0f000 { compatible = "allwinner,sun7i-a20-mmc";