From patchwork Wed Nov 9 22:40:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9420499 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 E33B3601C0 for ; Thu, 10 Nov 2016 01:32:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D43E7288B8 for ; Thu, 10 Nov 2016 01:32:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C917D2938C; Thu, 10 Nov 2016 01:32:54 +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 872D12936C for ; Thu, 10 Nov 2016 01:32:52 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id D397926725C; Thu, 10 Nov 2016 02:32:51 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 496DF267236; Thu, 10 Nov 2016 02:30:23 +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 52ACA2666F1; Wed, 9 Nov 2016 23:41:55 +0100 (CET) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0114.outbound.protection.outlook.com [104.47.2.114]) by alsa0.perex.cz (Postfix) with ESMTP id AD64D2666D2 for ; Wed, 9 Nov 2016 23:41:47 +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=j7KONwHajajVWFUDUvMf1XWI5/vTfTUIi/uY78pFlGA=; b=AzBvleOHYR1skQrRe1RGG9kNem1HJmFm5erYSOOyLTv+cuSqOuBjmCTqMBLOT4lFje6yLsEIDMseViLydkhbnYgCioKsTUb2BGqTgUwbOFtGgsJXz5J/94lA5jpwf1OijshZQNZJ8Wvq93U2o9XMRpViyHccDbbAtwOFGXCgYiM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from localhost.localdomain (217.210.101.82) by VI1PR0201MB2319.eurprd02.prod.outlook.com (10.168.63.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.707.6; Wed, 9 Nov 2016 22:41:44 +0000 From: Peter Rosin To: Date: Wed, 9 Nov 2016 23:40:57 +0100 Message-ID: <1478731258-26084-3-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1478731258-26084-1-git-send-email-peda@axentia.se> References: <1478731258-26084-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: DB4PR01CA0034.eurprd01.prod.exchangelabs.com (10.242.152.24) To VI1PR0201MB2319.eurprd02.prod.outlook.com (10.168.63.21) X-MS-Office365-Filtering-Correlation-Id: c82c9980-3a92-494b-999c-08d408f195ea X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2319; 2:xb24o9mcOxOrsTGybaarsZG/ZqgxTbx6QD44fc2lxvf5qGv5F1E8NjIalS5eo8kfv51pB+Qdvrx8ULSeLrS6C86LB3jAbjV94zdnIqV7dMyhWdvwgnX5KHa1ct8/vd/OgD0MuM1JvJYWR99EGu00P1vUQhJ6U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X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2319; 31:jbfuL7PjY4f9LvE02uiv3tKrf+juPsydHL9nMy4smvi74x4a0qC+Km0KAiZSqAcvEzVlDk3wi7XF1xmEMmG6a5FxxnKPF3sC8/9rbo0x3WZ4CKQWEpIoe5YgNXUiOpz1CRedmZyF5ZW383981Y//KV6r41Ca1gDp9p3p6jae50lDXIuEx2upRpL+gVHiHDK5vRo5CDF/KK/uDMSW9l1T/4CDRZ2zsOO+bAUqfm4nS3305ejXhTWxuDbhmH7YD28Y; 4:ufGBDiZqZoaFv/McffT8dbpyvEmhhXQjBdRf6/6os4M/o3aAuruOJgjFXtD594QBBr+fi5M45FmvDW9B+V8mfs6dPgB/IU2730xGy+LodaZ8QgJkAl7ZvWBMHK/nWXwF9/MDWf3DxX3fMxZML9VUl7yv00k1jByh4i5vUmta91kyKCY1U65Q32xuBXw+ba2Dy17YJNwo9+AYmF4kiAPzmJJjIjiKGJgFyFYUbJ6tuz43sqjQ23eC+pG+8em4oQbvCMCTObz7jWxZEdA3/3uAIz53DxOnfP3difmwy3WT5WGXE+slpq6GQHe7Nro5qygqTpW/dh/MFp6viY72uYPafZ//Dhr9nju8tUm+fyzD0nCjqAAc6WUWAMfaK9EUd2+pbXSUM1VVyuaXMn/RePrdwkUtB6lIXIuDn3NusMxPamCnz97wD+MQ7CpFpQxlRPZd X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6043046)(6042046); SRVR:VI1PR0201MB2319; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0201MB2319; X-Forefront-PRVS: 0121F24F22 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6069001)(6009001)(7916002)(189002)(199003)(42186005)(76176999)(50986999)(5003940100001)(2906002)(68736007)(47776003)(5660300001)(106356001)(305945005)(66066001)(77096005)(7846002)(7736002)(105586002)(2351001)(189998001)(74482002)(86362001)(101416001)(33646002)(97736004)(50466002)(36756003)(92566002)(50226002)(6666003)(8676002)(586003)(4326007)(81156014)(48376002)(2950100002)(81166006)(110136003)(6916009)(7416002)(3846002)(6116002)(142933001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0201MB2319; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; VI1PR0201MB2319; 23:I7vs8uJ8/tICDSu6NJyLPh8fg2YQoNlIJ3cPDP/?= =?us-ascii?Q?sfb8RkQMTntisv9Mu3mgHUOEiOwnBbZD6VF2HWpb9QflyWsnJAnTn+KHf4cH?= =?us-ascii?Q?lwOuYxiFGg4bUheAVNOVWsgh3ksHFtKUpm3XC54qKqP3/bXWa8+N0Gy9qB4j?= =?us-ascii?Q?6nqInEIybFQHzofkrkd9lTKJSz5ax9mW2KhSqE8dcPV+1PKmre3C6M3ObHCr?= =?us-ascii?Q?wy/00mGcheBaVBNx7NKW9uqKoeXSXFo56bfryCzZYlvIznG57kdK54DUSfYq?= =?us-ascii?Q?9kETHADoaV0OGLyOMy8bqn24w8xMrI86nLmnkzvqCdK3j6ECK1mtbWDCp7+D?= =?us-ascii?Q?/WH4VlKiD3o8nS1W0i9yMaMpsH9+OeRHWghploYrHCJ++2PjU7alauF7BpZk?= =?us-ascii?Q?EAPY3iyLXmqzhKa9uYZG8+pv9Buss68dbaB7QCx+NKxiXV3jhN42YuR+H+Y7?= =?us-ascii?Q?BFZe9uQP8+iHB9dG4UkNQdQWMYyJWXhjERhzRZyhLxbOb0MhHtJNtn76g7A+?= =?us-ascii?Q?gSfKwGaW8+6AgAs0mtDPk2BwEmLJNySQJFhjIAFyCiJGbsTz4Idsk8F9/Vsc?= =?us-ascii?Q?Dc2wTYvdc3WFEwHb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MojJ5C3kaHXpQYzlG3qVEl3wVLjpS1X4fiCJpGdWiYP4amXYr1+bH0ZppD9/8zTnZNQxZxWnSU/g1n8PB6vPw5QRNKIDrql/PhtrCgick7Kpqvdt8Zy6H5+3T9+98/lL4zENauA==; 24:XAwLchAB2fyaU9VAGQXrcCAN04w8nMnea87at0d7njjerPfdNuGECTXJ3ZCdy/CGyZJ7rbzmvmP6j36rdkR7Y8rIG5VmGK2cQmUNSMuZ074= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2319; 7:AL/1vbMnMHSTOz9kOIGLRd3otSItTBLXV3VO3m2ZLrSlFN+mQlw6/nj+3PrfDAslYNh/+ACf+D9IuXFDkglp8X5lH3/HYY53412vM/3BaamdJsyzyoe2p5Tb3F0KEnyyOxJBC4L/LBEfbDD5qWQM2e3UQK1DLdRjJDt/48w+8HOavaEXDQqsgBEZLmFxUa/d8WeC5KPC14kUYessFDtJaCZ/QBvTWW+8YhxlJcxsx0f5V5+FtfZGrpB4urYBoEZCAZXuETzP52cPNjTihAa2hEj7+ANkUs4pjUcgCFDKiPicPUjV26prIJq+QmxylbmszU5plGYiofNyBsCw96SiNw4a/PAVVw5OzuEQSBDWUNY= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2016 22:41:44.5314 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2319 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 v2 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. 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..0c2d44fda17e --- /dev/null +++ b/Documentation/devicetree/bindings/sound/axentia,tse850-pcm5142.txt @@ -0,0 +1,88 @@ +ASoC driver for the Axentia TSE-850 with a PCM5142 codec + +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 539b20baf791..4f2ebf3ab51a 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