From patchwork Fri Jul 27 12:45:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 10314 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8FF3123E23 for ; Fri, 27 Jul 2012 12:46:12 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 4922BA19130 for ; Fri, 27 Jul 2012 12:46:12 +0000 (UTC) Received: by ggnf1 with SMTP id f1so3108301ggn.11 for ; Fri, 27 Jul 2012 05:46:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=LWzMSUFlXf2BWNCxG1zegtUPZBOoYNVvVTebBvSTJUs=; b=dLtMpnrzYPEm7e8/VR5hE7a4+1o8s3SBiSFFlTlI7yS7U0WTZ8oKuu5fd/n1taK1GN FVKm2cWRsXVoQMF5ddjoJ/V5bk92/zMmd9oAD630dRV/1RZkP7dDRYFxMJD5g5UkAnN9 Vlxim15hgBfMTD8uFz9WBL61deltXH5sFowo4aPY6ooXhlPUmIxKt1+bKaHMR6ZiyGa6 kuvssGO/6tgqaoCFQVx5Rrg5Vaa4OxztEsHl3QuNA/hLzbHNWZqBYhzwf7Qt3Tk/TrJk M+WYg0v9Mb8eH0LAAAy6pa2NVWLXjAJNQWSftG/x/kKy1a0XIDlYa4UaatcZK6sHYqgC 5LEQ== Received: by 10.50.182.229 with SMTP id eh5mr4508195igc.38.1343393171455; Fri, 27 Jul 2012 05:46:11 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.43.93.3 with SMTP id bs3csp29832icc; Fri, 27 Jul 2012 05:46:10 -0700 (PDT) Received: by 10.180.83.234 with SMTP id t10mr7251372wiy.0.1343393170052; Fri, 27 Jul 2012 05:46:10 -0700 (PDT) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id a15si2611191wec.158.2012.07.27.05.46.09 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jul 2012 05:46:10 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-we0-f178.google.com with SMTP id u7so2422258wey.37 for ; Fri, 27 Jul 2012 05:46:09 -0700 (PDT) Received: by 10.180.83.106 with SMTP id p10mr21890232wiy.21.1343393169455; Fri, 27 Jul 2012 05:46:09 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id dc3sm12342025wib.7.2012.07.27.05.46.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jul 2012 05:46:08 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: STEricsson_nomadik_linux@list.st.com, linus.walleij@stericsson.com, arnd@arndb.de, olalilja@yahoo.se, ola.o.lilja@stericsson.com, alsa-devel@alsa-project.org, lrg@ti.com, broonie@opensource.wolfsonmicro.com, Lee Jones Subject: [PATCH 01/18] Documentation: Describe the ux500 realated audio related DT nodes Date: Fri, 27 Jul 2012 13:45:45 +0100 Message-Id: <1343393162-11938-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1343393162-11938-1-git-send-email-lee.jones@linaro.org> References: <1343393162-11938-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQl5I3yps+DPsZvb5doZFcc9YJoMEKgKTq+0FhWhFIj9f4zahaq2sqPo4ieVDeWISSBsZlGo Also explains the related AB8500 CODEC configuration properties. Signed-off-by: Lee Jones --- Documentation/devicetree/bindings/sound/ux500.txt | 62 +++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/ux500.txt diff --git a/Documentation/devicetree/bindings/sound/ux500.txt b/Documentation/devicetree/bindings/sound/ux500.txt new file mode 100644 index 0000000..af1c902 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ux500.txt @@ -0,0 +1,62 @@ +* ux500 Audio Driver and ab8500 Audio CODEC + +Required properties: + - compatible: + - Machine Driver : "stericsson,snd-soc-mop500" + - CPU-side DAI : "stericsson,ux500-msp-i2s" + - DMA (platform) : "stericsson,ux500-pcm" + - Audio CODEC : "stericsson,ab8500-codec" + +Optional properties: + - reg : Physical base address and length of the device's registers. + - interrupts : The interrupt outputs from the device. + - interrupt-parent : The parent interrupt controller. + - -supply : Phandle to the regulator supply + +Non-standard properties: + - Machine Driver: + - stericsson,platform-pcm-dma : Phandle to the DMA (platform) node + - stericsson,cpu-dai : Phandle to the CPU-side DAI + - stericsson,audio-codec : Phandle to the Audio CODEC + - CPU-side DAI: + - stericcson,use-pinctrl : Indicates whether an MSP port has pinctrl support + - Audio CODEC: + - stericsson,amic[1|2]-type-single-ended : Single-ended Analoge Mic (default: differential) + - stericsson,amic1a-bias-vamic2 : Analoge Mic wishes to use a non-standard Vamic + - stericsson,amic1b-bias-vamic2 : Analoge Mic wishes to use a non-standard Vamic + - stericsson,amic2-bias-vamic1 : Analoge Mic wishes to use a non-standard Vamic + - stericsson,earpeice-cmv : Earpeice voltage (only: 950 | 1100 | 1270 | 1580) + +Example: + + sound { + compatible = "stericsson,snd-soc-mop500"; + + stericsson,platform-pcm-dma = <&pcm>; + stericsson,cpu-dai = <&msp1 &msp3>; + stericsson,audio-codec = <&codec>; + }; + + pcm: ux500-pcm { + compatible = "stericsson,ux500-pcm"; + }; + + msp1: msp@80124000 { + compatible = "stericsson,ux500-msp-i2s"; + reg = <0x80124000 0x1000>; + interrupts = <0 62 0x4>; + v-ape-supply = <&db8500_vape_reg>; + stericcson,use-pinctrl; + }; + + msp3: msp@80125000 { + compatible = "stericsson,ux500-msp-i2s"; + reg = <0x80125000 0x1000>; + interrupts = <0 62 0x4>; + v-ape-supply = <&db8500_vape_reg>; + }; + + codec: ab8500-codec { + compatible = "stericsson,ab8500-codec"; + stericsson,earpeice-cmv = <950>; /* Units in mV. */ + };