From patchwork Sun Jun 14 20:24:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Bakker X-Patchwork-Id: 1309078 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=live.ca Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49lQtW1jfbz9sSy for ; Mon, 15 Jun 2020 06:24:51 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727857AbgFNUYi (ORCPT ); Sun, 14 Jun 2020 16:24:38 -0400 Received: from mail-oln040092010071.outbound.protection.outlook.com ([40.92.10.71]:26239 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726905AbgFNUYh (ORCPT ); Sun, 14 Jun 2020 16:24:37 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FdzgyX+D42ePb4aWWojTPJEYbg90Ohc6RNrZJsa5z92QKdYXTWAHELzlMni7tbcbYrD25DR9SHuDK1NIQ2paUGGJH9yNwKZu17f+/Kig4HwW/qN+oTv3PEPhHxkE2mdM3s9TvTaIWvy030UxTuyzDUpXTTxnCVkvgy9VRdT1hxww0NtgeRQ8mI4q8Nu+Quv90JJY9KuCqvrmp7t9+tT15ReM9BPj1DRlpBce6LhNvtjyCTtDeZNv0xH8vZ1dPVGerdFjrVRO3MEA4HkPP6XD2VL8fYq7mn1R3GSkv2gEBCwysVzjOImrBx4JZuBUX+YilZkSZ6jVpWv9i0zuZxM/2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E9JpVb8HDdgcqZbpgEag/+JakOsfoHvg+7m2Yx0i+PY=; b=cekcfv3624ANlsaXY7CkEMiZ0MIpz0G5o2JceRL5tD14aV26nndFSoOGZy9wdaSnrloBeXWJchiX7211E0hirL0UjRbXGNrgjcdor6oq1toD8/PizlaQ07OOU8jWLXBwuzo41uNeNuyXoF/MnOgg5Uq/nw17RQlgbW4Vew0Cn0i48Vg+l3M2nSAaiuVwhojVOnXVtA2HewIDE2WyTKka717fa5D6lelbLAURUr4iq0m+1LZSln3w1Vss2seOnMEm4JZDfVNbzTz1oqaSLVmPjWMEQfs235AhUZraMC30OGcw1pPKLx58QIv170UaET9NRvsfEKSEqoaysEPLJuDhkw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from BN3NAM04FT037.eop-NAM04.prod.protection.outlook.com (10.152.92.59) by BN3NAM04HT116.eop-NAM04.prod.protection.outlook.com (10.152.93.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18; Sun, 14 Jun 2020 20:24:34 +0000 Received: from BN6PR04MB0660.namprd04.prod.outlook.com (2a01:111:e400:7e4e::4c) by BN3NAM04FT037.mail.protection.outlook.com (2a01:111:e400:7e4e::196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18 via Frontend Transport; Sun, 14 Jun 2020 20:24:34 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:78BFEF84A6F596F1C5B5510BA8F4604D3679A49A811E88309387BB4BB60024B6;UpperCasedChecksum:865594C9107B7BA0D54BF8DEFE6A5D00136E5E6194BE376F00481289EB99F7A1;SizeAsReceived:7837;Count:49 Received: from BN6PR04MB0660.namprd04.prod.outlook.com ([fe80::b9c3:9bff:541d:f383]) by BN6PR04MB0660.namprd04.prod.outlook.com ([fe80::b9c3:9bff:541d:f383%9]) with mapi id 15.20.3088.028; Sun, 14 Jun 2020 20:24:34 +0000 From: Jonathan Bakker To: krzk@kernel.org, sbkim73@samsung.com, s.nawrocki@samsung.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: Jonathan Bakker Subject: [PATCH 1/3] dt-bindings: sound: Document wm8994 endpoints Date: Sun, 14 Jun 2020 13:24:09 -0700 Message-ID: X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200614202411.27843-1-xc-racer2@live.ca> References: <20200614202411.27843-1-xc-racer2@live.ca> X-ClientProxiedBy: MWHPR2001CA0018.namprd20.prod.outlook.com (2603:10b6:301:15::28) To BN6PR04MB0660.namprd04.prod.outlook.com (2603:10b6:404:d9::21) X-Microsoft-Original-Message-ID: <20200614202411.27843-2-xc-racer2@live.ca> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from jon-hp-6570b.telus (2001:569:fb68:9c00:8067:f823:1e15:7520) by MWHPR2001CA0018.namprd20.prod.outlook.com (2603:10b6:301:15::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.21 via Frontend Transport; Sun, 14 Jun 2020 20:24:32 +0000 X-Mailer: git-send-email 2.20.1 X-Microsoft-Original-Message-ID: <20200614202411.27843-2-xc-racer2@live.ca> X-TMN: [e1yVr75bp/mrckUddMU5geJ85D0K50JNe5LUCtLwnqMG7ZmD0twNUWP923M6GIJg] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: dda2dd32-31e3-4343-abd0-08d810a0f39c X-MS-TrafficTypeDiagnostic: BN3NAM04HT116: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ftlHKz01+M8KWQdzIL5YG91NWwcZb+32UL2crzCnb9y4uLJsrUofI8saBnwujoHUYtBnIAnOfrYrmq5zQjrXyqG6bthXKTiRxBscHPVACK/s5D9D5rXkgjVMmEej1D/CuXjGLHYTgYisQMgHEZrl1K21ON/agHdR2Eii+XdpVWd1brgBFQ+MB9k89DxdHKB0K3li2WU0Fwmqltazxyn68g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:BN6PR04MB0660.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; X-MS-Exchange-AntiSpam-MessageData: HgyaJGq4Mw4MevomK8cio/8KTCHfFDAk+1DtG5pMpfHaoG0BKcKFiYql63XpgIFLq6KDmtlVKcdwFprH3SGGpWfBhLFDgc8IcxxxKrmchhSe4nUJBq4tJk2RFhoMJDgTVN6b9HSphOJTzxUnQW7a13chAInkv4YfUAsXT1Df2iup2lgKpeKRRxjIUsZUUWkV8/rBGBebKKdTnBzUT8E/eg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dda2dd32-31e3-4343-abd0-08d810a0f39c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2020 20:24:34.6785 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM04HT116 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The wm8994 exposes several inputs and outputs that can be used by machine drivers in their routing. Add them to the documention so they don't have been duplicated in any machine drivers bindings. Signed-off-by: Jonathan Bakker --- .../devicetree/bindings/sound/wm8994.txt | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/wm8994.txt b/Documentation/devicetree/bindings/sound/wm8994.txt index 367b58ce1bb9..8fa947509c10 100644 --- a/Documentation/devicetree/bindings/sound/wm8994.txt +++ b/Documentation/devicetree/bindings/sound/wm8994.txt @@ -68,6 +68,29 @@ Optional properties: - wlf,csnaddr-pd : If present enable the internal pull-down resistor on the CS/ADDR pin. +Pins on the device (for linking into audio routes): + + * IN1LN + * IN1LP + * IN2LN + * IN2LP:VXRN + * IN1RN + * IN1RP + * IN2RN + * IN2RP:VXRP + * SPKOUTLP + * SPKOUTLN + * SPKOUTRP + * SPKOUTRN + * HPOUT1L + * HPOUT1R + * HPOUT2P + * HPOUT2N + * LINEOUT1P + * LINEOUT1N + * LINEOUT2P + * LINEOUT2N + Example: wm8994: codec@1a { From patchwork Sun Jun 14 20:24:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Bakker X-Patchwork-Id: 1309077 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=live.ca Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49lQtV64rRz9sRf for ; Mon, 15 Jun 2020 06:24:50 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727879AbgFNUYl (ORCPT ); Sun, 14 Jun 2020 16:24:41 -0400 Received: from mail-oln040092010077.outbound.protection.outlook.com ([40.92.10.77]:5929 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726648AbgFNUYj (ORCPT ); Sun, 14 Jun 2020 16:24:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hAkIJ6BWdqaNuP9NooLcKd7pM7lay3nsRbAPUQD24nwZLMHjWPFk9y25ecVHguuwOYc9UUoOzmowqXkc8nd+fSrJSgd6fCCLo+DrSQ2h33oGz12kkUR3I1jcMlVnAxd3hYV7CbXZ4vim897PMTwZUeEwIiCQMWGZCHQ/wQUOr6tUhoguXVWRmRnqMvWofjCoOPbNNqF3exUw/zjwUaJAKTprCeAqd87c+4APMLXCKctf8s7JSKGAGztNuPUdpJnCErtllzb3JAWW8Dwd37Rwk43HHdO9oAxbJuC9HMessD3crNVw3T1uLIJPSBvWzSBT/04pBeOPvEyBjvH5H3h+pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XaJSE+s5yX2GVKSHfVHq1cf4cPg2lcWi05XyGQgu3BQ=; b=icrutlKuWGe5udmKFsp9gzmDf1C7EJ98nPwe4QWL3NvD86jUlWc9CHzHb1wgSvsFxFgtr0EzpfKxSvQG4+Ni3Ow2cWV5An4UCgEGBLRRkKfX43c7xTiiYfLSaYKcjoFOPFzE3+TpNMEoueK8bWZgx/ddMT2MPpFuT3G6odvFtHPGPAK19L21KSlkaGf6c7+wCm27Fktk+G/LipQsEekcvIJZTvYTt7O/aPmW1Eqmb40dRRB4DNg7YaEq2T2mSfhCC+tGarV/1zNYn+tLr5opzqGezGDprDVuOwFDofF/eWoMMYQvyz69rd3BuxmxSfKKEDF6Nbfb+GanGJovhqGX+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from BN3NAM04FT037.eop-NAM04.prod.protection.outlook.com (10.152.92.60) by BN3NAM04HT220.eop-NAM04.prod.protection.outlook.com (10.152.93.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18; Sun, 14 Jun 2020 20:24:36 +0000 Received: from BN6PR04MB0660.namprd04.prod.outlook.com (2a01:111:e400:7e4e::4c) by BN3NAM04FT037.mail.protection.outlook.com (2a01:111:e400:7e4e::196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18 via Frontend Transport; Sun, 14 Jun 2020 20:24:36 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:D141BCAA82DBBC1438D37EA86A075DDCA14519EAFA93C785F4C9FD51FB3D2F76;UpperCasedChecksum:AA57FA52895F6C8BF3BC5C5C9042F375BF8AF000BC30C90A0DD9D8734FA4C54B;SizeAsReceived:7866;Count:49 Received: from BN6PR04MB0660.namprd04.prod.outlook.com ([fe80::b9c3:9bff:541d:f383]) by BN6PR04MB0660.namprd04.prod.outlook.com ([fe80::b9c3:9bff:541d:f383%9]) with mapi id 15.20.3088.028; Sun, 14 Jun 2020 20:24:36 +0000 From: Jonathan Bakker To: krzk@kernel.org, sbkim73@samsung.com, s.nawrocki@samsung.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: Jonathan Bakker Subject: [PATCH 2/3] dt-bindings: sound: Add bindings for Samsung Aries audio complex Date: Sun, 14 Jun 2020 13:24:10 -0700 Message-ID: X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200614202411.27843-1-xc-racer2@live.ca> References: <20200614202411.27843-1-xc-racer2@live.ca> X-ClientProxiedBy: MWHPR2001CA0018.namprd20.prod.outlook.com (2603:10b6:301:15::28) To BN6PR04MB0660.namprd04.prod.outlook.com (2603:10b6:404:d9::21) X-Microsoft-Original-Message-ID: <20200614202411.27843-3-xc-racer2@live.ca> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from jon-hp-6570b.telus (2001:569:fb68:9c00:8067:f823:1e15:7520) by MWHPR2001CA0018.namprd20.prod.outlook.com (2603:10b6:301:15::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.21 via Frontend Transport; Sun, 14 Jun 2020 20:24:34 +0000 X-Mailer: git-send-email 2.20.1 X-Microsoft-Original-Message-ID: <20200614202411.27843-3-xc-racer2@live.ca> X-TMN: [fHoz5g2xrwMrlQnMZnSfcZ90/2thkAgTf5gNlwBnyHv3P9vt1m/kBEnpworuBIvg] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 27eaae79-14c4-4e9f-d091-08d810a0f4dc X-MS-TrafficTypeDiagnostic: BN3NAM04HT220: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8x+Jpo3B2PiZPl6M5XVT26qpeT5ts1FiRSj5xE2tlbI5hs26K+0twiGdxW/uRS2z/7DGhUGKIMPSL5jrkMXG8oafyiI+YzAUgLPwGZAa59w1L1JP5sDl/AWiSLAI03N5AC4p6cmAxTuetkkiKAsWpko7AwmzhypEuFTahKKUqG+EgC2opqtnEKbh8oUjIfuzHdVStqOm4B23ligIjnfNcNBOMyu0KAq/dB46kUrpx645VwUj2mBD/OaZGc2lkT+/ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:BN6PR04MB0660.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; X-MS-Exchange-AntiSpam-MessageData: Dj3dPNxn4Yj7V9+JD9A6ItGkYb26btSuPWbeaugdkpE5B7DnbrN3DFG4JFU7Sv9NF4OrhDPDWV+vn+/iHSyVnAjmG5ZEfK5pFq3wZe6mcfk+LOj2GCepcUQleGP77bAiZbtrGccI1c2s12pH/wzrUI5DzoSVsGKm4V4aMeBR+oC/93eLKI2cX5GwOuzig7ocutRwC8lkjcbrd6x3KGbXeA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 27eaae79-14c4-4e9f-d091-08d810a0f4dc X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2020 20:24:36.5447 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM04HT220 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The audio system on S5PV210 Aries boards have a wm8994 codec connected to the Samsung I2S0 DAI. Jack detection is done via GPIOs, an ADC, and an extcon device (fsa9480). There are two main variants, one with an FM radio and where the wm8994 is the master for the modem audio and the other without FM and the modem is the master. Signed-off-by: Jonathan Bakker --- .../bindings/sound/samsung,aries-wm8994.yaml | 147 ++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml diff --git a/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml b/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml new file mode 100644 index 000000000000..902a0b66628e --- /dev/null +++ b/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml @@ -0,0 +1,147 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/samsung,aries-wm8994.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Aries audio complex with WM8994 codec + +maintainers: + - Jonathan Bakker + +properties: + compatible: + oneOf: + - const: samsung,aries-wm8994 + description: With FM radio and modem master + + - const: samsung,fascinate4g-wm8994 + description: Without FM radio and modem slave + + model: + $ref: /schemas/types.yaml#/definitions/string + description: The user-visible name of this sound complex. + + cpu: + type: object + properties: + sound-dai: + minItems: 2 + maxItems: 2 + $ref: /schemas/types.yaml#/definitions/phandle-array + description: | + phandles to the I2S controller and bluetooth codec, + in that order + + codec: + type: object + properties: + sound-dai: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: phandle to the WM8994 CODEC + + samsung,audio-routing: + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + description: | + List of the connections between audio + components; each entry is a pair of strings, the first being the + connection's sink, the second being the connection's source; + valid names for sources and sinks are the WM8994's pins (as + documented in its binding), and the jacks on the board - + For samsung,aries-wm8994: HP, SPK, RCV, LINE, Main Mic, Headset Mic, + or FM In + For samsung,fascinate4g-wm8994: HP, SPK, RCV, LINE, Main Mic, + or HeadsetMic + + extcon: + description: Extcon phandle for dock detection + + main-micbias-supply: + description: Supply for the micbias on the main mic + + headset-micbias-supply: + description: Supply for the micbias on the headset mic + + earpath-sel-gpios: + description: GPIO for switching between tv-out and mic paths + + headset-detect-gpios: + description: GPIO for detection of headset insertion + + headset-key-gpios: + description: GPIO for detection of headset key press + + io-channels: + maxItems: 1 + description: IO channel to read micbias voltage for headset detection + + io-channel-names: + const: headset-detect + +required: + - compatible + - model + - cpu + - codec + - samsung,audio-routing + - extcon + - main-micbias-supply + - headset-micbias-supply + - earpath-sel-gpios + - headset-detect-gpios + - headset-key-gpios + +additionalProperties: false + +examples: + - | + #include + + sound { + compatible = "samsung,fascinate4g-wm8994"; + + model = "Fascinate4G"; + + extcon = <&fsa9480>; + + main-micbias-supply = <&main_micbias_reg>; + headset-micbias-supply = <&headset_micbias_reg>; + + earpath-sel-gpios = <&gpj2 6 GPIO_ACTIVE_HIGH>; + + io-channels = <&adc 3>; + io-channel-names = "headset-detect"; + headset-detect-gpios = <&gph0 6 GPIO_ACTIVE_HIGH>; + headset-key-gpios = <&gph3 6 GPIO_ACTIVE_HIGH>; + + samsung,audio-routing = + "HP", "HPOUT1L", + "HP", "HPOUT1R", + + "SPK", "SPKOUTLN", + "SPK", "SPKOUTLP", + + "RCV", "HPOUT2N", + "RCV", "HPOUT2P", + + "LINE", "LINEOUT2N", + "LINE", "LINEOUT2P", + + "IN1LP", "Main Mic", + "IN1LN", "Main Mic", + + "IN1RP", "Headset Mic", + "IN1RN", "Headset Mic"; + + pinctrl-names = "default"; + pinctrl-0 = <&headset_det &earpath_sel>; + + cpu { + sound-dai = <&i2s0>, <&bt_codec>; + }; + + codec { + sound-dai = <&wm8994>; + }; + }; +