From patchwork Thu Feb 25 22:51:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 12105155 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=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, 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 3F5B3C433E0 for ; Thu, 25 Feb 2021 22:54:45 +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 D95FE64F29 for ; Thu, 25 Feb 2021 22:54:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D95FE64F29 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: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=qJyhIy9fMsypIcJU0bWVmSy2oHhWqU7JdK3k4iHAeSw=; b=tfDLxH3zhiiAoJF/0OQQGSh0K Mr++MuisdJOnSpE1bJQ5KBBhLU5ZTctjB9zYjYH3UodAfthhfWhyrQu/x6rBZGSSj0BSvW8sfF8UX gmxcuVpXe1OZ23OUlCTYDc4HRu0ZMw3a+BcomnnTg6ghSpTfzNl1hx2Jtovn2F7uwIx3nqgIzTiXn lYWi7w8u2UtM07YPzJGF/JetlNcVpCh5p7Dk/7+ZqDrNSQI6jRQJ0htcdGxHfzNcyvImAc1TM2rjR dRKMrh+4Ey28T57YENmS2HbYVCTakGoEm48SREZF8EO16yRaJV/u6qzgOnvhX58J2ya/g1pMUQgg9 lkEpSSFQQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lFPVS-0001Ok-9R; Thu, 25 Feb 2021 22:53:14 +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 1lFPVM-0001O0-PP for linux-arm-kernel@lists.infradead.org; Thu, 25 Feb 2021 22:53:12 +0000 X-IronPort-AV: E=Sophos;i="5.81,207,1610377200"; d="scan'208";a="73172359" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 26 Feb 2021 07:53:07 +0900 Received: from devel.example.org?044ree.adwin.renesas.com (unknown [10.226.36.120]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 3F666400C73A; Fri, 26 Feb 2021 07:53:04 +0900 (JST) From: Fabrizio Castro To: Rob Herring , Arnd Bergmann , Laurent Pinchart , Geert Uytterhoeven Subject: [PATCH 3/7] dt-bindings: misc: Add binding for R-Car DAB Date: Thu, 25 Feb 2021 22:51:43 +0000 Message-Id: <20210225225147.29920-4-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210225225147.29920-1-fabrizio.castro.jz@renesas.com> References: <20210225225147.29920-1-fabrizio.castro.jz@renesas.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210225_175309_040044_7CCA3C8D X-CRM114-Status: GOOD ( 14.31 ) 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 Document bindings for R-Car DAB hardware accelerator, currently found on the r8a77990 SoC (a.k.a. R-Car E3) and on the r8a77965 SoC (a.k.a. R-Car M3-N). Signed-off-by: Fabrizio Castro Reviewed-by: Laurent Pinchart --- .../devicetree/bindings/misc/renesas,dab.yaml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/renesas,dab.yaml diff --git a/Documentation/devicetree/bindings/misc/renesas,dab.yaml b/Documentation/devicetree/bindings/misc/renesas,dab.yaml new file mode 100644 index 000000000000..e9494add13d7 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/renesas,dab.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2021 Renesas Electronics Corporation +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/misc/renesas,dab.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas R-Car DAB Hardware Accelerator + +maintainers: + - Fabrizio Castro + +description: + The DAB hardware accelerator found on some R-Car 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. + +properties: + compatible: + items: + - enum: + - renesas,dab-r8a77965 # R-Car M3-N + - renesas,dab-r8a77990 # R-Car E3 + - const: renesas,rcar-gen3-dab # Generic fallback for R-Car Gen3 devices + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: dab + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - power-domains + - resets + +additionalProperties: false + +examples: + # R8A77990 (R-Car E3) + - | + #include + #include + #include + + dab: dab@e6730000 { + compatible = "renesas,dab-r8a77990", + "renesas,rcar-gen3-dab"; + reg = <0xe6730000 0x120>; + interrupts = ; + clocks = <&cpg CPG_MOD 1016>; + clock-names = "dab"; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + resets = <&cpg 1016>; + status = "disabled"; + };