From patchwork Thu Mar 13 10:38:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: rjying X-Patchwork-Id: 3824801 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 2F2899F1CD for ; Thu, 13 Mar 2014 10:41:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 57B5D2020A for ; Thu, 13 Mar 2014 10:41:15 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 944C92021F for ; Thu, 13 Mar 2014 10:41:10 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id A09492651EC; Thu, 13 Mar 2014 11:41:09 +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.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 3BBD6265208; Thu, 13 Mar 2014 11:40:20 +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 E230226520A; Thu, 13 Mar 2014 11:40:18 +0100 (CET) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by alsa0.perex.cz (Postfix) with ESMTP id 5E9BF265173 for ; Thu, 13 Mar 2014 11:39:52 +0100 (CET) Received: by mail-pa0-f50.google.com with SMTP id kq14so938668pab.9 for ; Thu, 13 Mar 2014 03:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nz6dTAHfRwNzB8xoiYqH0wIqhGnjHj8Q40GRQrD83a0=; b=sUv9R04iAuv1FMsRL2TB87up6mmH+Hhzxclmkv2e7edwfTWYirhmAAnvSdP5wbhlDp wKzsIvFJt9ecID6iBNtg/nllvG62J6p0MaoNSHVpBxvThp8II4MZt594f9WihNIsOlWP j31NwPMNhgGGOIoT4SBsYTuEoGUXl+wWJvSg3Ns7sDa+4WE2hCDNsJhFDcERUuodixHZ ZGZv0blfLdFkOMufYushiOvKjxcclMFyTabdTEKgzfqy2jcN2ZQe5dVysT/5ijWtcxbH cFyrjr7QPhRNY4x3nhNiIYqI5/a4sKSCKWDwAFs/+iJyBDnTMUP3ORBpkoDz6wr2vfFB JWtA== X-Received: by 10.68.193.130 with SMTP id ho2mr1262182pbc.141.1394707191491; Thu, 13 Mar 2014 03:39:51 -0700 (PDT) Received: from localhost.localdomain ([101.83.196.204]) by mx.google.com with ESMTPSA id om6sm5646222pbc.43.2014.03.13.03.39.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Mar 2014 03:39:50 -0700 (PDT) From: RongJun Ying To: Liam Girdwood , Mark Brown , rjying@gmail.com Date: Thu, 13 Mar 2014 18:38:31 +0800 Message-Id: <1394707111-9539-3-git-send-email-rongjun.ying@csr.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1394707111-9539-1-git-send-email-rongjun.ying@csr.com> References: <1394707111-9539-1-git-send-email-rongjun.ying@csr.com> Cc: Takashi Iwai , Rongjun Ying , alsa-devel@alsa-project.org, workgroup.linux@csr.com Subject: [alsa-devel] [PATCH 2/2] Documentation: Describe the SiRF audio hub Device Tree bindings 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rongjun Ying Signed-off-by: Rongjun Ying --- .../devicetree/bindings/sound/sirf-audio-hub.txt | 52 ++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/sirf-audio-hub.txt diff --git a/Documentation/devicetree/bindings/sound/sirf-audio-hub.txt b/Documentation/devicetree/bindings/sound/sirf-audio-hub.txt new file mode 100644 index 0000000..4f148a1 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/sirf-audio-hub.txt @@ -0,0 +1,52 @@ +SiRF audio hub + +The audio hub is the consist of an internal audio codec, internal +audio port and i2s controller. There are sharing same register +address space. + +Required properties: +- compatible: Must be "sirf,audio-hub" +- reg : The register address of the device +- #address-cells: Must be 1 +- #size-cells: Must be 1 + +Nodes: +Internal audio codec: +- compatible : "sirf,atlas6-audio-codec" or "sirf,prima2-audio-codec" +- clocks: A phandle reference to the SiRF internal audio codec clock + +Internal audio port: +- compatible: "sirf,audio-port" + +I2S controller: +- compatible: "sirf,prima2-i2s" +- clocks: A phandle reference to the SiRF I2S controller clock + +Example: +sirf_audio_hub: audio_hub@b0040000 { + compatible = "sirf,audio-hub"; + reg = <0xb0040000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; + + audiocodec: audiocodec { + compatible = "sirf,atlas6-audio-codec"; + interrupts = <35>; + clocks = <&clks 27>; + }; + + audioport: audioport { + compatible = "sirf,audio-port"; + dmas = <&dmac1 3>, <&dmac1 8>; + dma-names = "rx", "tx"; + }; + + i2s: i2s { + compatible = "sirf,prima2-i2s"; + dmas = <&dmac1 6>, <&dmac1 12>; + dma-names = "rx", "tx"; + clocks = <&clks 27>; + pinctrl-names = "default"; + pinctrl-0 = <&i2s_pins_a>; + }; +};