From patchwork Thu Feb 25 22:51:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 12105147 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=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 D60AFC433E0 for ; Thu, 25 Feb 2021 22:54:39 +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 7D22464F28 for ; Thu, 25 Feb 2021 22:54:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7D22464F28 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=renesas.com 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: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:In-Reply-To:References:List-Owner; bh=uU4tpaJXRvM61GJNA4XwrGQFrDHsFznjEeThcqdw96E=; b=vwl8fYtKu45wS/hIXPYwAo8086 gHVkivYn0iAgJVO3uTpjlCxFyhzcX+5ziLSKNnfxuIJLHtEa455aoaze968LoHksiK5ftWAqiWWno /JahhoyiUGFR6tn5laceRGo5e8whX3ws5eJQcXiiG+F5sEFgN1G3jeUNcmkoKqmyPkA30IqoqFBqB 23bMGvDj9J+UH2Pms48zDKnjSjtBf0znckVr2e4SEStWxdCLO4Qy0KcgUZhbSgK/IQmpv7fHWLfos dE1C1HXnDaearbUDAQFs9yTQTeMCmSX2rdn/vo+O4HBUBU00gRixc+jFMIHM1DTB9/2AFdjrWFwOC 6Lv9U8Kg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lFPV4-0001MI-QP; Thu, 25 Feb 2021 22:52:50 +0000 Received: from relmlor2.renesas.com ([210.160.252.172] helo=relmlie6.idc.renesas.com) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lFPV1-0001Ls-RO for linux-arm-kernel@lists.infradead.org; Thu, 25 Feb 2021 22:52:49 +0000 X-IronPort-AV: E=Sophos;i="5.81,207,1610377200"; d="scan'208";a="73172325" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 26 Feb 2021 07:52:42 +0900 Received: from devel.example.org?044ree.adwin.renesas.com (unknown [10.226.36.120]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 0DCB64002643; Fri, 26 Feb 2021 07:52:38 +0900 (JST) From: Fabrizio Castro To: Rob Herring , Arnd Bergmann , Laurent Pinchart , Geert Uytterhoeven Subject: [PATCH 0/7] Add FFT Support for R-Car Gen3 devices Date: Thu, 25 Feb 2021 22:51:40 +0000 Message-Id: <20210225225147.29920-1-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210225_175248_070060_F5D08F1C X-CRM114-Status: GOOD ( 12.42 ) 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: devicetree@vger.kernel.org, Chris Paterson , Phil Edworthy , Catalin Marinas , Greg Kroah-Hartman , Peter Erben , linux-kernel@vger.kernel.org, Fabrizio Castro , Prabhakar Mahadev Lad , linux-renesas-soc@vger.kernel.org, Dirk Behme , linux-api@vger.kernel.org, Will Deacon , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The DAB hardware accelerator found on R-Car E3 (a.k.a. r8a77990) and R-Car M3-N (a.k.a. r8a77965) devices is a hardware accelerator for software DAB demodulators. It consists of one FFT (Fast Fourier Transform) module and one decoder module, compatible with DAB specification (ETSI EN 300 401 and ETSI TS 102 563). The decoder module can perform FIC decoding and MSC decoding processing from de-puncture to final decoded result. This series adds FFT support only for R-Car E3 and R-Car M3-N, FIC and MSC support will be added later on. Thanks, Fab Fabrizio Castro (7): clk: renesas: r8a77990: Add DAB clock clk: renesas: r8a77965: Add DAB clock dt-bindings: misc: Add binding for R-Car DAB misc: Add driver for DAB IP found on Renesas R-Car devices arm64: dts: renesas: r8a77990: Add DAB support arm64: dts: renesas: r8a77965: Add DAB support arm64: configs: Add R-Car DAB support .../devicetree/bindings/misc/renesas,dab.yaml | 75 ++++++++ MAINTAINERS | 7 + arch/arm64/boot/dts/renesas/r8a77965.dtsi | 12 ++ arch/arm64/boot/dts/renesas/r8a77990.dtsi | 12 ++ arch/arm64/configs/defconfig | 1 + drivers/clk/renesas/r8a77965-cpg-mssr.c | 1 + drivers/clk/renesas/r8a77990-cpg-mssr.c | 1 + drivers/misc/Kconfig | 1 + drivers/misc/Makefile | 1 + drivers/misc/rcar_dab/Kconfig | 11 ++ drivers/misc/rcar_dab/Makefile | 8 + drivers/misc/rcar_dab/rcar_dev.c | 176 ++++++++++++++++++ drivers/misc/rcar_dab/rcar_dev.h | 116 ++++++++++++ drivers/misc/rcar_dab/rcar_fft.c | 160 ++++++++++++++++ include/uapi/linux/rcar_dab.h | 35 ++++ 15 files changed, 617 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/renesas,dab.yaml create mode 100644 drivers/misc/rcar_dab/Kconfig create mode 100644 drivers/misc/rcar_dab/Makefile create mode 100644 drivers/misc/rcar_dab/rcar_dev.c create mode 100644 drivers/misc/rcar_dab/rcar_dev.h create mode 100644 drivers/misc/rcar_dab/rcar_fft.c create mode 100644 include/uapi/linux/rcar_dab.h