From patchwork Tue Oct 28 11:26:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qais Yousef X-Patchwork-Id: 5175701 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 398CA9F318 for ; Tue, 28 Oct 2014 11:43:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4EF5820211 for ; Tue, 28 Oct 2014 11:43:09 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 21B2A2015D for ; Tue, 28 Oct 2014 11:43:08 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 04861260610; Tue, 28 Oct 2014 12:43:07 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 53E9226041F; Tue, 28 Oct 2014 12:41:40 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id CECAB260431; Tue, 28 Oct 2014 12:27:37 +0100 (CET) Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by alsa0.perex.cz (Postfix) with ESMTP id 227B6260411 for ; Tue, 28 Oct 2014 12:27:19 +0100 (CET) Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 4351BEA3B29D9; Tue, 28 Oct 2014 11:27:15 +0000 (GMT) Received: from KLMAIL02.kl.imgtec.org (10.40.60.222) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 28 Oct 2014 11:27:17 +0000 Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by klmail02.kl.imgtec.org (10.40.60.222) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 28 Oct 2014 11:27:16 +0000 Received: from qyousef-linux.le.imgtec.org (192.168.154.94) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 28 Oct 2014 11:27:16 +0000 From: Qais Yousef To: Date: Tue, 28 Oct 2014 11:26:20 +0000 Message-ID: <1414495589-8579-3-git-send-email-qais.yousef@imgtec.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1414495589-8579-1-git-send-email-qais.yousef@imgtec.com> References: <1414495589-8579-1-git-send-email-qais.yousef@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [192.168.154.94] X-Mailman-Approved-At: Tue, 28 Oct 2014 12:41:37 +0100 Cc: Mark Rutland , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Arnd Bergmann , Pawel Moll , Ian Campbell , Greg Kroah-Hartman , Qais Yousef , Rob Herring , Kumar Gala Subject: [alsa-devel] [PATCH 02/11] dt: bindings: add AXD Audio Processing IP binding document X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Add device tree support for AXD Audio Processing IP Signed-off-by: Qais Yousef Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Cc: --- Documentation/devicetree/bindings/axd.txt | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/axd.txt diff --git a/Documentation/devicetree/bindings/axd.txt b/Documentation/devicetree/bindings/axd.txt new file mode 100644 index 000000000000..694fc40613fb --- /dev/null +++ b/Documentation/devicetree/bindings/axd.txt @@ -0,0 +1,39 @@ +* AXD Audio Processing IP Binding * + +Required properties: +- compatible: "img,axd" +- clocks: phandle for the clock that drives AXD. +- interrupts: the GIC interrupt where AXD is connected or software interrupt + 1 (not recommended). + +Optional properties: +- gic-irq: it takes two non-zero values, the first one is the host hwirq and + the second one is axd's. Host's hwirq should match the value in + interrupts. + If not using GIC, then axd will revert to using software interrupt 1 + which is a fallback mechanism for systems without GIC. It is + recommended to use GIC whenever possible. Some systems will only work + with GIC so this property will not be optional then. +- vpe: VPE number on which axd should start. Must be provided if axd is + running as a single VPE along Linux on the same core. + It can't be VPE0. + The VPE must be offlined by Linux before axd is loaded. +- inbuf-size: size of shared input buffers area. by default it's 0x7800 bytes. +- outbuf-size: size of shared output buffers area. by default it's 0x3c000 bytes. + + +Example: + + axdclk: axdclk@400M { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <400000000>; + }; + + axd: axd@07800000 { + compatible = "img,axd"; + clocks = <&axdclk>; + interrupts = <36 IRQ_TYPE_EDGE_RISING> + gic-irq = <36 37>; + vpe = <1>; + };