From patchwork Fri Nov 11 11:29:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9423667 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 13252601C0 for ; Fri, 11 Nov 2016 21:09:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03E5229B9B for ; Fri, 11 Nov 2016 21:09:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBA1229BA6; Fri, 11 Nov 2016 21:09:28 +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 DCA6029B9B for ; Fri, 11 Nov 2016 21:09:27 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8EB892675A2; Fri, 11 Nov 2016 22:09:26 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 6545F266A89; Fri, 11 Nov 2016 22:07:01 +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 0B4B92659AA; Fri, 11 Nov 2016 12:30:09 +0100 (CET) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0114.outbound.protection.outlook.com [104.47.1.114]) by alsa0.perex.cz (Postfix) with ESMTP id 2CAF62606F8 for ; Fri, 11 Nov 2016 12:30:03 +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=jDwvhkfrKbGSfteolUt8SqZdnE1Bp31lyLvX5Rpq5MpEZ/Qj7YNpRYxwjkdsA+X11S/OH9qH21M8JUbLyObtgdR0XAPj+bShpjYz+rLdcf//qK9eEESGUb32KbWeKW898eObQLVTy5hJ46JUU9vw8F28KX9+JYetlYrJzKVBkDI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from localhost.localdomain (217.210.101.82) by AM5PR0201MB2305.eurprd02.prod.outlook.com (10.169.242.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.707.6; Fri, 11 Nov 2016 11:29:59 +0000 From: Peter Rosin To: Date: Fri, 11 Nov 2016 12:29:11 +0100 Message-ID: <1478863752-10569-3-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1478863752-10569-1-git-send-email-peda@axentia.se> References: <1478863752-10569-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: DB5PR08CA0008.eurprd08.prod.outlook.com (10.163.102.146) To AM5PR0201MB2305.eurprd02.prod.outlook.com (10.169.242.149) X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2305; 2:Ni8xt1PwOQHrrajSSy3ICTcHeb6Pw7ABG3pxiu7IsinsmGX6q80kBWeNwlVNhG9rKVeS8qrpnH64FhxsFYPThO4B2MjFzLkxsx5KIJdfPsSF5XzbvG288RDGIUt+hAE3g6B8sS/QJViE3MYG5V6eFWDS3oH6UsFEbx+0bD8HdRg=; 3:OAyxWWc/oTffjIm+W5QPk/q0hRJlgkFJ9WlFiC1f49oN8MQ4SdyvoNVCOQa9O2fYIgkU8jj1chh6tdIpduu0cSxCjqJfCKSLJaOnMyFB9UkWOvxBnNs4UT9AxI64NltYA4kO2hiWpeKye+I1ulif2zXuh9g4ipnKBSuOVJB4mXM= X-MS-Office365-Filtering-Correlation-Id: e692848d-e7a8-4b3d-7a3d-08d40a2612cf X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM5PR0201MB2305; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2305; 25:h2vW2jSWtwxbhCczxSMicKNZxKNVMt19zW31bbJj5WGhupCA+R3UGmwlSX6mnSO2oaxClPbRKHbn0eAkDAJpMWFip2Hie4xXVgOyufiI7zskQ4u/jxIaFyWEpECna7OPq23iK44XBCb/w3OkNtxBnkceNpMNpIPEpkSmqb3Vpqg835Wgm4qLGjSAyEXqImcmN6eAW6/xRreUZTv4mIq6XgBdnc5hUOJQHTK46mfV2Yl8jsUQpT958r3ggjDVAZP7k49Cfi6+RQ7B/wFYydY2VhbHEl7x3uWEFF3sMinYXa9Hont/gZCX1oWvjDUX+fDNAkuqWcDuzzLiV7V16ig1JzJA5kmxYlJAtitqjTq96bzRk0D+rCYRgfDDpx76Df6PpwTfeY1zSam4CanBMfHSor0S1lLQjWw7MgQ5XIdLhAl8eOsA7YIjpbztjfmOl29xhzI1bqza5v4UqPHSZ10l16cPQpA0xLim1LNIudCjACjiZwSABN/Zd+An/LisrU781hQv1aqP3nYhEJdpo+xjfWF63xx+GUtcCRR+xi7ObketxSpyAB4tHfMxpNQ5q2MfYCMnqAQFL+QG9wuur5uB0LV46fYKGvkPvvYF2OXAXqpxwD+FVZhpQtaSgAHjG+I2XoK4dsdn8755zqm9/MCBc25krRMwphUVQh774SAQMI096uksBYMTEy72tzW7pBIe/SljL35fIph1QQ5OcluuDCHhTsI8O6ggrqr7cepnF18= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2305; 31:pQNoDd235C5Tf8T7OAWK1RxAQ1EBSii632kGIMgJw69uHO5QmthUFF8k5slhUWfn7o6hFiDD7KJjEsncqg77/ldeHe1a9fsIEusPxoFw77LyvHh4EaTt0WWL+XW/Jh9mmLN1R1VQdWEqeAnKaPdqJRHEaEpeF8Lvdud7oGCHXD3VGZOvZTm388/uVoHH3DUO5xdRqZgb+rznrol2CU2mMnG9ir5oiHKvY03OwhqZTsobMAN4wlBzpIQEAfrSEHMIe5rCJigN0g8vfr4hBNxnmg==; 4:1f84cVnNjGqrx2rFfTebk19Z1v/QS9ovRsEzoHnw1M/F2FxDVyAqR04IRdhaPJ4LA0kYHVUb0UnjFtxfRDUwZ7wDJV1/Egpzw+u89BZtKNh3JVEB5BPJJNg+GGhBHpCQs+bcF8E8GdgCuPdIOjJC0k4hPo8cFTzxwgaDEmPbpX02pus1yt+XTro1tbA5McCqKAzL+xY02i6XwWB016X9fM7TOyzEfNrgGxgea7gRX4qyoQmmkl2N5zjl0rSQaVgrvNn+VE9HRX4BuFK+eTg2OoiaP2ajBR8TFqC2OvF9wcUOvEm2R3Uk8t7zDesxowejonRj4gC6H4UKhXUX7eKtm4DNeadyLR+OvZUNd33ZyEI50Ux8Ph1WocChD/jWHzMTVuCRIgHlle0czUN/uECoXjql5wjxbcR1J19Qi3giI2Rgiw0+YMKMlPmupN80QIYQ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6060305)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6061300)(6043046); SRVR:AM5PR0201MB2305; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0201MB2305; X-Forefront-PRVS: 012349AD1C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(101416001)(7416002)(8676002)(6116002)(106356001)(36756003)(6916009)(66066001)(5660300001)(68736007)(47776003)(2351001)(50226002)(3846002)(76176999)(50986999)(97736004)(586003)(77096005)(189998001)(74482002)(42186005)(2906002)(4326007)(92566002)(81166006)(81156014)(7846002)(5003940100001)(305945005)(6666003)(110136003)(50466002)(2950100002)(105586002)(7736002)(33646002)(86362001)(48376002)(142933001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0201MB2305; 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; AM5PR0201MB2305; 23:df+K6AJjJUum7Il48ZpbaS16zbaFwr7Q0nr6qh3?= =?us-ascii?Q?VMpm385DTlqqAKpd7x7ULNCWlw6DzYITGssi0aW5ZVHmuNnEBOxQnUpHU+gv?= =?us-ascii?Q?w9eDGNbAb/1i6gHckeHRZdz5xwA2NqCkTiLR8c/uhbQUjKMSI5vSeEHDo5PU?= =?us-ascii?Q?BKMZ7mDCy9hIQB9+MfNUtWLSKV//QCz6zLb3kC8kW8HQlLAJ/nfr4YSSkW6B?= =?us-ascii?Q?g1tEP8UDCNz4RMv9yHA0+LpyIkvXg0L+1zVU7auWDLaf7mao6sq/hxwmu6vL?= =?us-ascii?Q?J89hs26o5im/gHWfrFOVvqV1KHSjBbsxvX1AAxom6IN8bS/W23SMdoUNz/Ow?= =?us-ascii?Q?A0oJnBTxmz0ftjAxthX4PExGcNpEFPpl8B18YDUHX7jj8dOx6TeFAPM0ZNwk?= =?us-ascii?Q?0qiG7erZBKwkE7oZtEivdCs2QHvR/PIMH/Y6EijXunt93jR6gJvcJ4YezBUz?= =?us-ascii?Q?TXfen6zDrYgRtCZRWODIyhZymCLXuI5ZjsHZFq7WhhMoklvJ0BBTk3s4lw1V?= =?us-ascii?Q?nEPLubnD2dcNeoM7tAaBuMRSAAY92TBwz/iQRYAQQDdPmfpem4GGKSVcRrq/?= =?us-ascii?Q?7ANoAYzOBxZBIyJbIsqcBHLXMN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oFgI5YitpGnPhHONwm5UBO5NtDoW+LyKKkDtP9w4D/fL8Vf5ZHiybI/gJSmMKdZsiH0Astr5xgxTajVnSNk2rc0T07uEKU/FMB5Xos+GuZeECW3tYcDrQFPqYu79lqWAfusWD0/Q7nNdJ4/XRZaB1qkZOwEE=; 24:22YiBU6kCgXGuqI0sBlQaReCUIDbE2/eFIPPIBXBAIr+rpa5TIqTL5K6Y5ZEo9YOR95dF90TrrXFiA3fGIhQuRQFLoKrXEj44IT0ohUAAe4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2305; 7:vji21EVLKZqel9xu6f+PkibbGXmxDIZw1c9GQK8+wY5OTfKYSPRRs53akMuZ4jF/7I3cyr2rKuX+CRolGtBrDhzMFqAtK2uN9bM+7l9I5P/oPIot1Ji3bSDn/mhDoJ2w9rXw1Qjaa7OEHPQo2/Z1uIsQP0vGLDWkyS1SUDJ0ctu3JVejci3iP8XKTOgasZlHp6VbR+gay+jkXS1ipawMpnk3TbN+ogpnUrSFas5+aJEt7Cg/qsSRWZzPdqX2GAGsa3MTlv1zQtZs8ZYz8iSQ3vjxoEmXOoCedkOM7N0Y4l3lt5qb7+ZBT6PBvlYLxrFCTis8g45VE7iCLBIgYgY0wMKsVDwBQJb0TC6/oWVk62g= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2016 11:29:59.1572 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0201MB2305 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 v3 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 Acked-by: Rob Herring --- .../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