From patchwork Tue Nov 8 16:20:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9417897 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 A8C096022E for ; Tue, 8 Nov 2016 18:34:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A5A328118 for ; Tue, 8 Nov 2016 18:34:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B855289E9; Tue, 8 Nov 2016 18:34:08 +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 AB99B28118 for ; Tue, 8 Nov 2016 18:34:04 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id EA866266A7A; Tue, 8 Nov 2016 19:34:02 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id EE36626648D; Tue, 8 Nov 2016 19:31:37 +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 F070C2668B2; Tue, 8 Nov 2016 17:21:48 +0100 (CET) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10107.outbound.protection.outlook.com [40.107.1.107]) by alsa0.perex.cz (Postfix) with ESMTP id 127DF26648D for ; Tue, 8 Nov 2016 17:21:43 +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=Se3eIbsvv/jMh10fIuGQHddfYd8qJ0TL0crObboP4BhoVCHpjpjBa68kb5uV/C/qYRKVOCn5gV4KJVMHlBwlJexTPT+gzg14Qy+MZCx5DHIfUEgtTxhx4hX5TgEU/fh05m0suBwoO4UCXgJTEQxqoBCfLHR3sS4df40ak8+3QQc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from localhost.localdomain (217.210.101.82) by HE1PR0201MB2314.eurprd02.prod.outlook.com (10.168.145.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.707.6; Tue, 8 Nov 2016 16:21:39 +0000 From: Peter Rosin To: Date: Tue, 8 Nov 2016 17:20:56 +0100 Message-ID: <1478622057-12426-2-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1478622057-12426-1-git-send-email-peda@axentia.se> References: <1478622057-12426-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: DB5PR08CA0037.eurprd08.prod.outlook.com (10.163.102.175) To HE1PR0201MB2314.eurprd02.prod.outlook.com (10.168.145.149) X-MS-Office365-Filtering-Correlation-Id: 531658af-4f29-466f-9d62-08d407f352d6 X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2314; 2:Mg+Hc99b2YMS9sjpF/HUOZ5P7l57FjOGhErG7RQfrpvGskTtYuAXC0T0U0npZBfQkr0mdWssAcqfTnd4nUhqj/0csxMrnrHvZ0685mAr/0xEERO5cJ1f0xexHhUOgLelABNHLGVW3oSsgMRRWWmMLoas9QIgilrn+HLSflBYQYejy1F/LwbdhvHTgOwwQClOLBhE0yHicc6wpRskW/LBBA==; 3:dA2N9V12YflqQY+u/hYYD9llj84sYzgHV/HI4wRPoaEvYvcBRZHuSj1wp8BRY1Q94DeoN0YGXX0TuZ3r4lRkXd0TyC1E0SknUMelqehxU2VnE22qrbRjnF5NsXqht2mgnAxNgQuMUxepApr7Al/Vlg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0201MB2314; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2314; 25:nitZ7O96XKhJA2G11fkvbbdNwyZbDbQobrsesbXITxwCfFWWb1LN4xcUNnOIDF/qzqRWPZb1K4wsr8WBxPOKkcazCIE9RzxZu83QSsa8MUjHP2TU8eMWMcJkBTDfZCT4WvdQrcqHQUkLHx9rqmyTAal+2PKXHp1Jt55rCyQJDyIJ5OKFIJCM3LgliDr40A9oq36P/HqwUoZzWA7KzMoeEu/IpIMvgw0cvIThkX9ok+wAzAJC/A/IDe2dFzgvYbwubGhtEX+6PGmLOYuYCWACzRTlUqEvcsqSU8SoGaM7ou5siZAWJ1qv895r7+WIwUkYdFi22pVdhSHu6zeQLAHorUjiMCrmXrcmITAZ2OxhiTs+3osR3Gz+Of1mYM2Jltd6E+Ym81LULAYoiyKgzB7a2AnXTzc9msJOrwZtdLM48bBuILqGu0RWB51iZDgOZTsMUVMT2pPInYm1pVHQA1CJsB3eUNBmA90AuBiV4OJIx+lewbrtCrYsa2I/pplautqbwKPtx5dt+l7mp05bSauN7QkK3DZtciITiLToX9fhLS7siWmL0hX7QgfBrPAwJca4EPuPqAjhh9URTAB3YB3W1Tztp+qOirR0HmSbT9LXcC43k2uRm0gNNB8NyfOVzlTfIVPOUxUdpCM3LvX/pCvRRxGqcJFJGS6z8JpjxG84D7KatY44uHD5Dx4IGRG7HlEj+Ahy2IOQ8SWSh2VsiW3I0TY+YiHTBX9FDeivrQb6LY4= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2314; 31:FqRpT2n2XlqGUdFOs42qQlx+4pzWOLtq/q0LMugvz0YFho2Edhpr5aDjvx5GuPr3sbb2qq14VWjttTWVoW2ztcR0W1Yuh7D6bcZoTI2iuASqv5BeUduN1lxg+LTfXdFTRXQ+Hs+42BD/oYZwHNB7PvRmJeTnmceg8RrbpZV3BsNufUTFpuBmkL5pbs6KKgv9BjiI8QhuJuZbTj7uunb+S3K3vTWAzaQJ7EgK7UEOtRP4vwk4S9CbjvsM2URMrsrVvB/wcMmfgJLaySe1sw++2g==; 4:++wgn0v79Esns9pjVGaHjNW/Ir7tgOZJ0xCoMvcfOcbB37IgIyIbb2znWUNUQvxAX6ThRFXjqt72jOtU0DSi9z4dxlAffVYmxEuMzRkagsbAuKhH+P49z005Ffyl+LwczjT8O0nRtcZ27TIeJ91+kF2fUz0t95k/Nq140lL0GH/FT8lWTYFG1skrx+HO770RVMqpxavY642QtxaMkJbRNN7llVDowsP1MTgEhwgL94LEmJPr1g7cVoHac824iX1zq3pbcmZ3yjjKbSF972kc/vit2XL6tu9G6zQddK4sGt3arjLYSg4MF6zrROJ2AZHtpGMQVtbsS9QobcgK2xM/O8fU6g69GNKrspAUdLr0Pl44ij6h75FUdkSuIDEsnKdW+lR32ASXMVk13lLEQxZ1O+4aPCH3xhOPNBRS3Vi6jt8olHyuG/AIS3R1NL4q0sCI 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)(6042046)(6043046); SRVR:HE1PR0201MB2314; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0201MB2314; X-Forefront-PRVS: 01208B1E18 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(6116002)(76176999)(3846002)(5660300001)(7846002)(81166006)(50466002)(7736002)(101416001)(81156014)(33646002)(586003)(189998001)(50226002)(86362001)(97736004)(68736007)(47776003)(36756003)(6916009)(105586002)(4326007)(66066001)(2950100002)(6666003)(48376002)(50986999)(110136003)(5003940100001)(92566002)(8676002)(229853001)(77096005)(2906002)(42186005)(305945005)(106356001)(2351001)(74482002)(142933001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0201MB2314; 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; HE1PR0201MB2314; 23:FajP5qEA6m91NU0eEUIVbBiaXiv0w7J64L0uy3j?= =?us-ascii?Q?4bzr6FnJRBxAwBmgHO4bq59Ka360tQmSrlUXx1VI+yFwTHJR/gYbTbgtH4vc?= =?us-ascii?Q?h61+JXGAfWC7KyJTOTmhvac4lrxNs+8Z3FagUZxzKmn/SopjYwpK7/DYEHY9?= =?us-ascii?Q?b30QJ3o7ku7ZMSw2iNcrfXFxTLxID41CT3qMUSwvbqPsq3K304+671kD/GaS?= =?us-ascii?Q?jMLxJV+/NNtSTcAgx/0K56KRrKNf2mjfgsm0etqtTbwJXrnt6zhyoTxEGoaU?= =?us-ascii?Q?0Ss0SIGYacw7lfjoTbzTA5p0Mz+DbjtSS3s06PDwBJ1Wq0Bzj7tgfJbHxen+?= =?us-ascii?Q?+4LMz+SmTVjTA2A9XKv/3elpjtdeewX45ryaKWyYKMIKyLWg9Rf1iyohKqfO?= =?us-ascii?Q?BZ29paR7xA7cIJFPOsrA+BRu/oHRGh07cP/6t6/wL/7V9J9qxwlWsu+AydJc?= =?us-ascii?Q?6zB/Y3kcNynKC0JpawEBbSUwYrD8Y0NNRneUA1sIG9X68+xT8eBejaOnKrp5?= =?us-ascii?Q?3fX7It84X2OUFX2HywuBkCxnRWsSuDHs828XZDXDFYlCyoQXmuhkz5CMzT1I?= =?us-ascii?Q?rchBCJUOMoRwj1r0cR/38hrLHVlEv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7y8p/vRmHbETuGOyVqilN3vfH5tD/esuV9QUOnoynrASGBnujJVRXMF7AsuYMIXPuPM39oRKxr3jhEr9Q+xtgxGHwB6IQhKQ/KVQQc++BYo8HYeVo773hIeEiNslzQN66Ysc=; 24:oqWqNXCA5TpV2vUBf8KuLS9Y6+0Ixltu6J2vp5P92OSGpol0eVWRthnUjlRRhsKBSgnFtVZ67/r5bF7fOhYKIn840Y1o/HDaghglizKm5j4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2314; 7:VbEQfajZ8zDJ4J/6QKo5cVGCycxl6ZcE6aE1ISRvoHkX1Ha1vuKQUchILdaCvGHba8N4CS3GU5pJx8AlEhvWaiWMAIN4RUxoWn2tnkR6CyjAZASLKP6rqnwZs6HluvEc1leLEZuObOpyHenY4YacOvEhPaRIlTHzpLvrTxep0PxgsgSKITIeMbZimlcdptBIP/XZe2hLhY9T6UFcOtZma2EC2z1duzeJZRLM9Xl2jSkixK7DfQfb+OfXXbMeMqmVRW/YXpvif6LvuoNZUOQsUnMDrlckxI0I/miNTtarqcJlwc69U+fBFa06qnj3NzOzJfiCe9qadwAzNGItJ1azvNVhWa5K3SAATQPhxCWu6Lg= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2016 16:21:39.7732 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0201MB2314 Cc: Mark Rutland , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Takashi Iwai , Liam Girdwood , Rob Herring , Mark Brown , Peter Rosin Subject: [alsa-devel] [PATCH 1/2] dt-bindings: sound: 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