From patchwork Tue Nov 15 18:38:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9430711 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B275460469 for ; Tue, 15 Nov 2016 23:56:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E58328C8E for ; Tue, 15 Nov 2016 23:56:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9147B28C91; Tue, 15 Nov 2016 23:56:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7923028C8E for ; Tue, 15 Nov 2016 23:56:04 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C7CF8267326; Wed, 16 Nov 2016 00:56:03 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 235A3267320; Wed, 16 Nov 2016 00:53:45 +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 D436E2668F0; Tue, 15 Nov 2016 19:38:59 +0100 (CET) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50123.outbound.protection.outlook.com [40.107.5.123]) by alsa0.perex.cz (Postfix) with ESMTP id EF34026663B for ; Tue, 15 Nov 2016 19:38:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentiatech.onmicrosoft.com; s=selector1-axentia-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DzR9EpCIVRNSEbQYa1cTM/dKDIxN5cBoggrWRTktHAM=; b=X+oML1ucaurXzJWYSxQFj/t/lTJeIT2ip8dmO/reV1CwIm+pZsJJ/UYg1M3XL/sfrOi8r+w0MuT6jwwUblwAq67JrQ5jqgJzrVjCi/fXz1tbpCrQDFQj2qjfQBd+xjS0gtIIbNkfP/OA2uJB0+rg/vozzFk8stiT9lbSlxHp9pc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from localhost.localdomain (217.210.101.82) by AM5PR0201MB2308.eurprd02.prod.outlook.com (10.169.243.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.721.10; Tue, 15 Nov 2016 18:38:50 +0000 From: Peter Rosin To: Date: Tue, 15 Nov 2016 19:38:14 +0100 Message-ID: <1479235095-13441-3-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1479235095-13441-1-git-send-email-peda@axentia.se> References: <1479235095-13441-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: DB4PR01CA0059.eurprd01.prod.exchangelabs.com (10.242.152.49) To AM5PR0201MB2308.eurprd02.prod.outlook.com (10.169.243.7) X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2308; 2:9NVx00w0ne+cnWX9SE9w3RP5SbJupaKSs3gd3mDHNVixcixRxT+2RzD3oOQcG2PJSRT5nVIWozxU8XcHrNS0R9SfD97HVjrx/zucrC0t/5k3rcIGnDCu63x02lho7xyupiTIxo7klNfdTmpKODuu+x9xBDc8S9aiyLbiscjEjpU=; 3:2/nt6uSuZUzp2A7yxk3Ery4enGfz/6an+kfnCfb1fy2UlJ+L4esA7zeBTFWf/T90XFPzONgnXYMAAV3OuqD7mBwW6TgtQmbCcHDPEFKfHghJvxuDxSkiVMGziJvNYuh7Zq5BLnEQZ/fdzcdcDepr5wuV0ntsgzTCqikTnsqxio0= X-MS-Office365-Filtering-Correlation-Id: 86494d99-4473-454a-77fb-08d40d86a566 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM5PR0201MB2308; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2308; 25:1/xXoMQubnsmLEH4TjRsu4PU2/yZ0U9JVvbCIWthXhWR9ZVaJWBSd+Tz8VuPEoEiw2P17sOCYlEPYxiouK/QU14KhFsED16q2MrhMdUlLUqCajKN6Fh0VVQ4LnIHT3+MNbeN7/sjlEITlZ/GQZxARC1sSH5L8ixLryHYXX1NH2gu9F4KVPyPji8WY9iJ8YqHaoraPFM5rKLhxTdAL3wOAIE5QYFAlCN9CNbC/h/7p3Zsq+DyWScAhlOwNABbbZCm/H8ujkhLCZoQRcMTiTmH+/FGb/aWauSeFADOhLExY7FJL//ShcuU6QTJlKVRMXzwfDgeuBIUebhyaqeKz52CH4mNnvq+LCGKgjvMhghWbuIOWFGDKfxdbNu6oGd4r8sG3m8U54oXWTn0OWGbF+2Ej3pizsAY0JDGmC6yzElojbAp+zOrPA52mc39eiWFiLsTTMeXMmp+QNBAZuYAYglKCFrEaPiu9or05U/8jdFUvZMToPuhblYA280QA7OAapOiA+j7h+kDVObMiz0FLFRADEGW4xuu2PhhpMFR/ChmXiAQ77wVDkK5hnlknqFQSZ0z4jKMVcrEtF+EqZ1ch/mOhISY9hy9s5YmcYB03B+/Y3yxvnC19K3ENBRZFQrZ3GX9uwD3Fs9LmaPYqE3J0FGdXxjrnar/UFzmIde+iJ51X4AcQzeOQbuY0oW1U09IJ91Qsu0Al0Nf/rEwz3Pki5ImRsU11kMlbYSl6hGmWLdIR4U= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2308; 31:hHx7gdB1S0HZIoU0Z22VGDyP/SoHDCApOc0BROnRDaG63rovJLEy6qKKmvbB1WiCdaEpyph+M2vQs5CP4zonqZFHUWms+n2dWSYl8jWXCoyZ2BHBtnrhbjKojY0tNqmVNv0KLrpk6taNyhaSqsoPvR9lWUehvCJHbfYSzGU96HBVhg+Iy7IputbcRHLlX6ORXS++uAwIZsR0yhKqZKXuSh0KOl0F1NSMUNilIUAwMAqtWE1CB6b2cQy5AyQ14q2FLyAsd+LP8YmhzLsKtF1D8A==; 4:Z1OdydH9cFL0ktbvzrZjVOjXUh5t6sNbXYswNgcFUDsGCluPFK4qsYfkg+fjcJ6o6rTSyXOGitaAw3fI7f+2kRB/Dd3kRrYf8q8pKdn5niRBSoeVIA8tqy9hw5bf9uxX+8WT+OPO1QCdYP22yrYAsrq0kkq6uQ/bvIux5JF9lEHQc3u2qRJEB6mO1wgTJ7ivpgo9ueiYzI4ha/LXzenJ90fyQS6zCIgasc21AVOYb6U2GEBz+KmzS904+Jq/hD+ETcgOalQWzUztqCTfjrY9EbqlzKd2kqaKZklugZMVeQ7wRGzLYZoAZ9mOIUMBUfQN26+pz2h/95eIG6dPziuKMyxljjlJpWbN4b4ann5VmoYLfQbPnGhjgQmVVExPBrqPW/Scmman1etiZL8YtCCo61F046D66rXhr7vT3xBxe10lXOZ93dTj2gvWX4TluyUT X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6060326)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6061324)(6043046); SRVR:AM5PR0201MB2308; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0201MB2308; X-Forefront-PRVS: 012792EC17 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6069001)(6009001)(7916002)(199003)(189002)(81166006)(81156014)(7416002)(8676002)(42186005)(68736007)(2906002)(50226002)(305945005)(50466002)(110136003)(7846002)(47776003)(7736002)(2950100002)(86362001)(5660300001)(66066001)(5003940100001)(6916009)(6666003)(48376002)(76176999)(33646002)(50986999)(189998001)(6116002)(101416001)(3846002)(36756003)(2351001)(106356001)(77096005)(97736004)(105586002)(4326007)(92566002)(74482002)(142933001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0201MB2308; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0201MB2308; 23:q+/6zMb0tCmCPB4jxvx7PujyXrL71kyIwM+lBEw?= =?us-ascii?Q?sp1I9wCyzeRDW0NB0/9xc4mQTSrhZOyzr13tQ1UV2eyBXGeOj65Q6cbuWXVC?= =?us-ascii?Q?hERJbOAFnH66/1UQdzKPIIZFfBzqcCMQGo0BBca59bgGy1GrpYGJtMRRCZL7?= =?us-ascii?Q?Ek3Z3UrhwEyQRO4AARAcLhWiplJp2RVeIlp7shmviyC1khoOSseB1LGUBznY?= =?us-ascii?Q?mw4wQR462Xj6+GmYT516NQ2awT4Rns7rnlL/kSVLoCLBowYk/WcUw7eey86g?= =?us-ascii?Q?UsseqF0rtZ6MO0iJstQx7Rw0tTMNLpfiVVg/xhYEeMDp40CO65tsQSma5doZ?= =?us-ascii?Q?l523l+B54/UtDI43iMsstb7xziWzLBqxahyuEPl7/fJFILhLg0tB/A8i444u?= =?us-ascii?Q?TRrFYiDqvb56JWrvnXXXgt1ktWNqslGZjSbB+nu953kRIqvusL/nNQPohB2M?= =?us-ascii?Q?Ix29EGZJy93pTnTe2SnGix9nDCbq9iLa+eALTP5WYsCtOvqaX/1P1bs3Fp8z?= =?us-ascii?Q?iwdgUdohGKKK6z2Wfnb4iIcy6W4bEgyu9QXz9+98/kVn9V7pkQMbtCDz50w+?= =?us-ascii?Q?rt5cuG8r0o8Lw05EphKxl3p/LM3y0GCCvnia6E6g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VjHgY3H8aABRGtxVEe1Y9PQW4Q8hG1ywTCPoLwdWu/3h0dB/nGlIk3q79MrMK3Igumujtf3g3pth5kC4g==; 24:EN2srcjbzVUPVU/Nb0LbZ+x/l4awyTncOEVM4mauyHwvznwcykNtWk7aC+OlnA5HGXy5YzEpbKi4T79V4rosx2wzfZm8TSQ+LfxAZ7r6qSI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2308; 7:JxuUVWg+kVtgKbgSCnQRZlnUtgs6IjsDCLMHnNHkdkJioXr9trO59mq3QTkCGIPwLHieSbastAnVju9csoTBaFdF1JX8b0PeDvLtlG8/5VkTWGsMkwIS4ykFtSNm7WS8WRnTUUiAVxOmCboLoqSkq7W1UY/Da0ZaUVou0qUGqy9nRvgUsj8XrkonhNgShbBp3UZ/goqVp0NjF2JwnxOMcXKmYTRSSrdfV4lZJmXLTZxrz3/tN0IiRxD7k4TxMYlooznAicRxlS4LjHZyz7qnCyU4yCbzPbLwK26lvOAs/fLrIH2GjItbz7wAHMyZ1VOk9boOQlDYbeiAAqcNIC/+8zewRdrctZN+Mrw7Daxma9s= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2016 18:38:50.2894 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0201MB2308 Cc: Mark Rutland , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Takashi Iwai , Nicolas Ferre , Liam Girdwood , Rob Herring , Mark Brown , Peter Rosin Subject: [alsa-devel] [PATCH v4 2/3] ASoC: tse850: document axentia, tse850-pcm5142 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The TSE-850 is an FM Transmitter Station Equipment, designed to generate baseband signals for FM, mainly the DARC subcarrier, but other signals are also possible. Acked-by: Rob Herring Signed-off-by: Peter Rosin --- .../bindings/sound/axentia,tse850-pcm5142.txt | 88 ++++++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 94 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/axentia,tse850-pcm5142.txt diff --git a/Documentation/devicetree/bindings/sound/axentia,tse850-pcm5142.txt b/Documentation/devicetree/bindings/sound/axentia,tse850-pcm5142.txt new file mode 100644 index 000000000000..5b9b38f578bb --- /dev/null +++ b/Documentation/devicetree/bindings/sound/axentia,tse850-pcm5142.txt @@ -0,0 +1,88 @@ +Devicetree bindings for the Axentia TSE-850 audio complex + +Required properties: + - compatible: "axentia,tse850-pcm5142" + - axentia,ssc-controller: The phandle of the atmel SSC controller used as + cpu dai. + - axentia,audio-codec: The phandle of the PCM5142 codec. + - axentia,add-gpios: gpio specifier that controls the mixer. + - axentia,loop1-gpios: gpio specifier that controls loop relays on channel 1. + - axentia,loop2-gpios: gpio specifier that controls loop relays on channel 2. + - axentia,ana-supply: Regulator that supplies the output amplifier. Must + support voltages in the 2V - 20V range, in 1V steps. + +The schematics explaining the gpios are as follows: + + loop1 relays + IN1 +---o +------------+ o---+ OUT1 + \ / + + + + | / | + +--o +--. | + | add | | + | V | + | .---. | + DAC +----------->|Sum|---+ + | '---' | + | | + + + + + IN2 +---o--+------------+--o---+ OUT2 + loop2 relays + +The 'loop1' gpio pin controlls two relays, which are either in loop position, +meaning that input and output are directly connected, or they are in mixer +position, meaning that the signal is passed through the 'Sum' mixer. Similarly +for 'loop2'. + +In the above, the 'loop1' relays are inactive, thus feeding IN1 to the mixer +(if 'add' is active) and feeding the mixer output to OUT1. The 'loop2' relays +are active, short-cutting the TSE-850 from channel 2. IN1, IN2, OUT1 and OUT2 +are TSE-850 connectors and DAC is the PCB name of the (filtered) output from +the PCM5142 codec. + +Example: + + &i2c { + codec: pcm5142@4c { + compatible = "ti,pcm5142"; + + reg = <0x4c>; + + AVDD-supply = <®_3v3>; + DVDD-supply = <®_3v3>; + CPVDD-supply = <®_3v3>; + + clocks = <&sck>; + + pll-in = <3>; + pll-out = <6>; + }; + }; + + ana: ana-reg { + compatible = "pwm-regulator"; + + regulator-name = "ANA"; + + pwms = <&pwm0 2 1000 PWM_POLARITY_INVERTED>; + pwm-dutycycle-unit = <1000>; + pwm-dutycycle-range = <100 1000>; + + regulator-min-microvolt = <2000000>; + regulator-max-microvolt = <20000000>; + regulator-ramp-delay = <1000>; + }; + + sound { + compatible = "axentia,tse850-pcm5142"; + + axentia,ssc-controller = <&ssc0>; + axentia,audio-codec = <&codec>; + + axentia,add-gpios = <&pioA 8 GPIO_ACTIVE_LOW>; + axentia,loop1-gpios = <&pioA 10 GPIO_ACTIVE_LOW>; + axentia,loop2-gpios = <&pioA 11 GPIO_ACTIVE_LOW>; + + axentia,ana-supply = <&ana>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 851b89b9edcb..e6bf00e53bf3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2318,6 +2318,12 @@ F: include/uapi/linux/ax25.h F: include/net/ax25.h F: net/ax25/ +AXENTIA ASOC DRIVERS +M: Peter Rosin +L: alsa-devel@alsa-project.org (moderated for non-subscribers) +S: Maintained +F: Documentation/devicetree/bindings/sound/axentia,* + AZ6007 DVB DRIVER M: Mauro Carvalho Chehab M: Mauro Carvalho Chehab