From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,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 13F0FC43441 for ; Thu, 15 Nov 2018 14:50:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D9BD0223DD for ; Thu, 15 Nov 2018 14:50:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D9BD0223DD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388538AbeKPA6r (ORCPT ); Thu, 15 Nov 2018 19:58:47 -0500 Received: from mail.bootlin.com ([62.4.15.54]:42823 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387833AbeKPA6q (ORCPT ); Thu, 15 Nov 2018 19:58:46 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id E477420DB0; Thu, 15 Nov 2018 15:50:36 +0100 (CET) Received: from localhost.localdomain (aaubervilliers-681-1-13-146.w90-88.abo.wanadoo.fr [90.88.134.146]) by mail.bootlin.com (Postfix) with ESMTPSA id 8D54E20714; Thu, 15 Nov 2018 15:50:26 +0100 (CET) From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org Cc: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Paul Kocialkowski , Greg Kroah-Hartman , linux-sunxi@googlegroups.com, Hans Verkuil , Sakari Ailus , Thomas Petazzoni Subject: [PATCH 00/15] Cedrus support for the Allwinner H5 and A64 platforms Date: Thu, 15 Nov 2018 15:49:58 +0100 Message-Id: <20181115145013.3378-1-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for the Allwinner H5 and A64 platforms to the cedrus stateless video codec driver, with minor fixes to H3 support. It requires changes to the SRAM driver bindings and driver, to properly support the H5 and the A64 C1 SRAM section. Because a H5-specific system-control node is introduced, the dummy syscon node that was shared between the H3 and H5 is removed in favor of each platform-specific node. A few fixes are included to ensure that the EMAC clock configuration register is still accessible through the sunxi SRAM driver (instead of the dummy syscon node, that was there for this purpose) on the H3 and H5. Some minor cosmetic fixes are also included regarding the video-codec addresses in the device-tree. Paul Kocialkowski (15): ARM: dts: sun8i-a33: Remove heading 0 in video-codec unit address ARM: dts: sun8i-h3: Remove heading 0 in video-codec unit address ARM: dts: sun8i-h3: Fix the system-control register range soc: sunxi: sram: Enable EMAC clock access for H3 variant dt-bindings: sram: sunxi: Add bindings for the H5 with SRAM C1 soc: sunxi: sram: Add support for the H5 SoC system control arm64: dts: allwinner: h5: Add system-control node with SRAM C1 ARM/arm64: sunxi: Move H3/H5 syscon label over to soc-specific nodes dt-bindings: sram: sunxi: Add compatible for the A64 SRAM C1 arm64: dts: allwinner: a64: Add support for the SRAM C1 section dt-bindings: media: cedrus: Add compatibles for the A64 and H5 media: cedrus: Add device-tree compatible and variant for H5 support media: cedrus: Add device-tree compatible and variant for A64 support arm64: dts: allwinner: h5: Add Video Engine and reserved memory node arm64: dts: allwinner: a64: Add Video Engine and reserved memory node .../devicetree/bindings/media/cedrus.txt | 2 + .../devicetree/bindings/sram/sunxi-sram.txt | 5 ++ arch/arm/boot/dts/sun8i-a33.dtsi | 2 +- arch/arm/boot/dts/sun8i-h3.dtsi | 6 +-- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 6 --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 39 +++++++++++++++ arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 47 +++++++++++++++++++ drivers/soc/sunxi/sunxi_sram.c | 10 +++- drivers/staging/media/sunxi/cedrus/cedrus.c | 16 +++++++ 9 files changed, 122 insertions(+), 11 deletions(-) -- 2.19.1