From patchwork Wed Aug 14 17:44:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 819439 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 374A6C52D7D for ; Thu, 15 Aug 2024 08:31:13 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3C3342C33; Thu, 15 Aug 2024 10:31:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3C3342C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1723710671; bh=GqaWexS7SWUGAnzHdIhhxSCT9142w4YLwvHgzZyGxGY=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=jv8y8P2rdsUx4XqB9hYHt7bnBr50Rfu/6HjDNta7dkxN9GoPkfiUdJUC2iaIuBEv1 h++tUdKf6A/yM02jZFGbxo8qtekyQO1ro9ymb2FCsDgpN3+KhSSUANn2/CeUpnYpsy i7dXj+WwWbzC3i7/51w/LbudE+ER/ryRFdpcWC9o= Received: by alsa1.perex.cz (Postfix, from userid 50401) id B827AF80654; Thu, 15 Aug 2024 10:28:14 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 7683CF80659; Thu, 15 Aug 2024 10:28:08 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2E07CF80423; Wed, 14 Aug 2024 19:44:45 +0200 (CEST) Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazlp170110001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id CCDE6F800B0 for ; Wed, 14 Aug 2024 19:44:40 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CCDE6F800B0 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector1 header.b=KKUpQXrC ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=h4AqUWVw6EHw959nlExmEjFCIEa590im2LZqq5fGWYYSB0rA369w05ldw+GaOhBmLbP0LV4pkrPQPFpunwDNv8iBp9hnTEJ/8NrghAaGY+JguQvna+CHkPMDxzYw8mJU6O4Mwf26aCqMNBsA4qnvNamIPYW/1sHuSO2DcqWskyK3Y9MJdR3kZqWaGSWDL6DqKB+IuwBtcPez/xrJ61eo87uodjiYTsvSobUezSPgAu8OCdKqWo1RKS0ghpaxelYqzaimdhVRYup0XP2TUuraDIkEPS3EVQ9ba7cttByW0UOdVkHeb5M+Gibg2Bd3Okgw19giwFF8uX9OyK6g8/yGCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PiUsNwHuUoROiSHft7XhTa06uCab4CsxMFHW2J7MGnQ=; b=u+HTUmm/uDSvZm+b2g1Shkul2UQ3ETrvbVAxPsUYwutIVnmRVT73L5pLSkqLf+Pe1hYNMvg74BUIVKk4B9NJSTSbx3Hgt0O+JsPbPT7rXYSCULgLyxmMe/aCwQWnhP7zsS9qYU9RgmzTI9OKUtav3ECyV7K37rNmL4vP3UuHrLxnj7f43YOMI+APcHRA3ewgktBtawLMqjP0jnLHefoH9Jx03CAGIDg9wf998UV92WWvabLkB7Oux1+ukFgzj53/Lp8RSOXsFQwvoZdYghISiSYttq+qyNDrTyjgrgAmTO23JdnBiZ5vgZEEOARVzBGeag93b5B8w8kc2dbonrOvSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PiUsNwHuUoROiSHft7XhTa06uCab4CsxMFHW2J7MGnQ=; b=KKUpQXrCbktnqyCJM6moXPJvugykpNwKfzCNL38x2fP43Fc3E0O0OlEKNwRWcut16uB/0ze9kzO73dr/QQqGmyf8u+g8aCNWgRjsIko8GCi9AFxCR/nVmYDcEsaTvqeC26SeTLye7JqX/MufxYQtC6oT+sf7/y5m6af0NlAdGXlNu8DmkW0RbWM+LxNE8EaJHH3IFHwPw0BuskkCkJ6snQ5IJ9ktByAH6sMvCbJ2Pw0WUawrapKvIYaLVAEhNLikMvP/aiMItImszbB4hlks1ALOFN9aevHJY/tME7nRJV4KaEJezIUVEIdMqKa2Bp8uXVjAtw8+W8IrjCuocD1hrw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by GV1PR04MB10606.eurprd04.prod.outlook.com (2603:10a6:150:207::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.22; Wed, 14 Aug 2024 17:44:38 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%3]) with mapi id 15.20.7875.016; Wed, 14 Aug 2024 17:44:38 +0000 From: Frank Li To: Shenghao Ding , Kevin Lu , Baojun Xu , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , alsa-devel@alsa-project.org (moderated list:TEXAS INSTRUMENTS AUDIO (ASoC/HDA) DRIVERS), linux-sound@vger.kernel.org (open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH 1/1] ASoC: dt-bindings: convert tlv320aic31xx.txt to yaml Date: Wed, 14 Aug 2024 13:44:20 -0400 Message-Id: <20240814174422.4026100-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR13CA0035.namprd13.prod.outlook.com (2603:10b6:a03:2c2::10) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|GV1PR04MB10606:EE_ X-MS-Office365-Filtering-Correlation-Id: b6888d02-eff4-4e8b-0004-08dcbc88c4bb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|52116014|7416014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: 9pQPWzCLzAyUC8RjVbMIjrvbMqTdXvjcz5PjGWA+D86+JWAnXbUzkUGWOsnTiUbjd4ssC63b2I79oUxG5vKJwKLIu4s+ALt6/yehSf0K3TV2gBEGtk1Edp4KKcIslK+X2mPxwiTrd6yPpayBBRGCJFEZXcemyDOny6hEa1QJzo/w83CAg6BQLfoHDstN+zIkBPTf+bQbYS1BZEnGaDuNVOdzZCgCFi9Tyb3b2WqEPYMk5w5J0QVwVIf8IDiQZ6FUgr0lNj3TW+qrR+9+WevldLmuAPM8tsnSCUpEerASlRsXdre7wDIhzXicpllzzPo4+VduOJ3vliTIiX8bwekP4B0zxsrI1g9dNmIUUlLDzlwApb4SrXr+hWjFYVEMngeLPcSFqeSuKwM5phgkRPPA1i7YrjuqJ59+7luQl5zG6+1lzrfNUKwV+T3O5Lnn78HDoESqLZGXw3aqvS9LL6n7+jcQHaY/xISiNUlvDbaBFm1Dstd5O154Nr1llADoYbhLGRA+b+Q88HF+IcgB4Cf/62cG89CuaWNyiW9u1UhWRfV6ImNnw7HOx1bDPAwdSCMXDtzUSvI8vAEE4lG/CdbKsSRh3139gQdAZfBYVR6MGYRsZFYXotKiMHJJHZHTKnxU8G+w4G6Qeks36vF+gjFAi6K+X18YDVtT/e9gi3k4ag4+tgW110Qvbiv/ogj4aVnvyrqz1iLAH/uWsrUmDWToiWdPEqaqMS/kJfr6/G4jtM7RYg20Np4uV0tHgov8CXqYm/ERq7HgPr4N2kFykdafrUDx4TjNLIzFg1PlVClUImWc+vy0BWcnbF5PY/irdivISo8NjWioRhy4eH5LdGKsdDFyY3tcpiJDAggbJUEZmVO1/pCeh5yZryjL69fUApshKQCDwUBCw2ExDXcdB7QrirnZVPUrJBbJVTvvUX8eq3GKVWZR5vjoAaago9sJrnTKlu382pizVue3r8axiriSrpqivnrliNxhfs2zyYyfxFBcUir4xNWOv2KcHzW49bfKnH5EvFBfL9fQ7GIJrQcKBvRdkxHCCL002a9wv2dtz8KoTrg/0jdNl8CHod0HH7z4WTwZQDbNRr44IcI8oa/pS2OoAt/uAHqNUkqOMs7zTsVB09gvz1GnwiiRpDMDE2YWQIpgikJlyKKzUTFbmj4NvCcYigZVviYrD+KCbW0UGut7IxSGxOKRRHJ4CbJy3T8zIvZU6BkDwH8UQBv1LgrxtVHX/143I26rmWnM8TlLR3qK6dGkoNvpGbbLbUmuyvdVA91z8vb9UQLThjpjrfjPf7VouyZflEai/TuT6WBJ58w3KI3Qe/10cjbxQjSGn4mjOcR2Cqe/N41byvMi1QUFtUZBR8zts4fglOGlX4EbN/w= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9642.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(52116014)(7416014)(1800799024)(366016)(38350700014)(921020); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mZKXs2uRLpu22lLFxKy617dAphoWT7T0NpeD27sh+145uB548AcgSzhdAOhGnZLaG73Sy7uBnDYEnNthUtUYo6okvKRaEpvXEGrNNjFCNwiSywTIoFMJTD4sjowyv6e7YC8p7JX9RGHX5dbQyReWs0DHPHVKyvcUjqUQGzobFS6tywLGs3LeZOwIRpmPz39cHTBJXud7LSEuRjJdUIZhVTs/2nP6FU8Tdytul1/U6LLNsqNH+1s0UVsoMyuFkfJGeRlQXIIS6zDq6D2+wuqYT+vZVIF70jz3lo/74/nYvXSm9er1RQtB4PdrsyDAUMVbC2ee7I1HdeW7eNbVlBEq21U80iw1PcDIOgq8GUdUyInZoJLBi1/nqKbtAs1FZJsxcMQJP0eWgYz3Vkm4onpSXfJ6uqZUQLIELA718qhlcdoFMjXFGgNcm0AvLO96JE+draZIfGF3gzBSejT21xWrZmS5yXyZPgZbZKiMq3+gLVijYHqNbsVoBzD3pepWdapzA8PAsSYg0WlX22qDCkE20w0MfuVaJ9se6+oBJ/JklwrS6rO1pw2Rg3FZbuoEZzgOG1NlN7AazofN8CwV3C+Krn7IMgZZVtHeZNuby/A0Oub6VuJRXaNEKk6ktdg6oX5XX11UTDbdAkQEBntgaeqUR4djWwJnl41V9+c9vuwYvHOPdDmQxMhPbymNmUUBBDR59aqzwXuMJFeF6IcmpMJqSz8BT98uSVPLvJI2KfvL6lCVP3PBwZh8XC6dkPJHcozpA+mqkwqiMZ0NlS0Am6QxiuNYWUI7jMHvurk62Gd28mTnmUUMWoY5GWnjovPmHHpHlLADaAYE5NEbMeXZc1E020qmEnaHqZcNHlHFmisGhR32GRO7fa/A7lFidpQ+povKyXbTgyUMoeTHkjYm/KZFeqRPKp5LU10a3m2AwzHGuFjNgjMqgKMVEBUlgTJwERJlvcYfmhponKRhR9xHINNz9xGfxJxKgIkv/Jyn94UdRRNguEHA7ShAvNJfF3qGW4cFrMmOI+/n2ArlDdXIMAxTUTEP2XqSwkQ0OJ/7By4ntgfpwehYJSwgvrOzs7vZVM8Vwkpi+HnZKdgt+zP1a1i/K6Zcn000pcJlnNEzzXnntMXgUBCEXywAhjSaF3iHoGYts+EuHhQfWZmhSYXdqAYU0fk8fFo4ai0hcEmzuxfCXwADsrFse+sEIq72kLMYK5cy2++PmbSTmRTVgh93iLAXzE2XR+yXqgqypEWZF7Q2mqOz7bl6D8O4DuP+DTtE5o07AUtlYv9FKimSxlX4SONnB1L5wiawugacx5pvJPbjZLGjOcpzevgt7dY5j8oGyePyNJlX1WW6djbrBaZkEL3Mq2SdD8rg2bZ2OFSTdQ0V/xYTV9BxlAF2fnKn4rcL/Ngqq2uuCvTVVwAytn9oxQFvUIlmwHQ/RrP2YF4MDSBbd0eCTRrJxkHMW6Lwqt8hOi61G4Ucq31WUtRSNy2fyR3aL09A6bFBFZGsvmBhgqKfReAcrYa8srexXwdTXUSsCVKyS0jO+esrRdd95cYYvGE6Yyfa7ln/PcF9047u+K3zd20= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6888d02-eff4-4e8b-0004-08dcbc88c4bb X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Aug 2024 17:44:38.3429 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /FvgPSMr4cxLp3mQCTz/TPcYWWgOBucYjgtwdBIUjJ72Fqx4NGpRWUGsSw2xR3b7j83Vuuih1Z4MAF5Rk+dxAQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10606 X-MailFrom: frank.li@nxp.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: C5LOBLJRAUYTABGWOWJB4AIN5WYDSCNK X-Message-ID-Hash: C5LOBLJRAUYTABGWOWJB4AIN5WYDSCNK X-Mailman-Approved-At: Thu, 15 Aug 2024 08:27:57 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Convert binding doc tlv320aic31xx.txt to yaml format. Additional change: - add i2c node in example. - replace MICBIAS_OFF with MICBIAS_2_0v in example because MICBIAS_OFF have been defined in header file. - add ref to dai-common.yaml. - add #sound-dai-cells. Fix below warning: arch/arm64/boot/dts/freescale/imx8mq-zii-ultra-rmb3.dtb: /soc@0/bus@30800000/i2c@30a30000/codec@18: failed to match any schema with compatible: ['ti,tlv320dac3100'] Signed-off-by: Frank Li Reviewed-by: Rob Herring (Arm) --- .../bindings/sound/ti,tlv320dac3100.yaml | 127 ++++++++++++++++++ .../bindings/sound/tlv320aic31xx.txt | 77 ----------- 2 files changed, 127 insertions(+), 77 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/ti,tlv320dac3100.yaml delete mode 100644 Documentation/devicetree/bindings/sound/tlv320aic31xx.txt diff --git a/Documentation/devicetree/bindings/sound/ti,tlv320dac3100.yaml b/Documentation/devicetree/bindings/sound/ti,tlv320dac3100.yaml new file mode 100644 index 0000000000000..85e937e34962d --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,tlv320dac3100.yaml @@ -0,0 +1,127 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,tlv320dac3100.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments - tlv320aic31xx Codec module + +maintainers: + - Shenghao Ding + +description: | + CODEC output pins: + * HPL + * HPR + * SPL, devices with stereo speaker amp + * SPR, devices with stereo speaker amp + * SPK, devices with mono speaker amp + * MICBIAS + + CODEC input pins: + * MIC1LP, devices with ADC + * MIC1RP, devices with ADC + * MIC1LM, devices with ADC + * AIN1, devices without ADC + * AIN2, devices without ADC + + The pins can be used in referring sound node's audio-routing property. + +properties: + compatible: + enum: + - ti,tlv320aic310x # - Generic TLV320AIC31xx with mono speaker amp + - ti,tlv320aic311x # - Generic TLV320AIC31xx with stereo speaker amp + - ti,tlv320aic3100 # - TLV320AIC3100 (mono speaker amp, no MiniDSP) + - ti,tlv320aic3110 # - TLV320AIC3110 (stereo speaker amp, no MiniDSP) + - ti,tlv320aic3120 # - TLV320AIC3120 (mono speaker amp, MiniDSP) + - ti,tlv320aic3111 # - TLV320AIC3111 (stereo speaker amp, MiniDSP) + - ti,tlv320dac3100 # - TLV320DAC3100 (no ADC, mono speaker amp, no MiniDSP) + - ti,tlv320dac3101 # - TLV320DAC3101 (no ADC, stereo speaker amp, no MiniDSP) + + reg: + maxItems: 1 + + '#sound-dai-cells': + const: 0 + + HPVDD-supply: true + + SPRVDD-supply: true + + SPLVDD-supply: true + + AVDD-supply: true + + IOVDD-supply: true + + DVDD-supply: true + + reset-gpios: + description: GPIO specification for the active low RESET input. + + ai31xx-micbias-vg: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 1 + enum: [1, 2, 3] + description: | + MicBias Voltage setting + 1 or MICBIAS_2_0V - MICBIAS output is powered to 2.0V + 2 or MICBIAS_2_5V - MICBIAS output is powered to 2.5V + 3 or MICBIAS_AVDD - MICBIAS output is connected to AVDD + + ai31xx-ocmv: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3] + description: | + output common-mode voltage setting + 0 - 1.35V, + 1 - 1.5V, + 2 - 1.65V, + 3 - 1.8V + + gpio-reset: + description: gpio pin number used for codec reset + deprecated: true + + +required: + - compatible + - reg + - HPVDD-supply + - SPRVDD-supply + - SPLVDD-supply + - AVDD-supply + - IOVDD-supply + - DVDD-supply + +allOf: + - $ref: dai-common.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sound@18 { + compatible = "ti,tlv320aic311x"; + reg = <0x18>; + + ai31xx-micbias-vg = ; + reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; + + HPVDD-supply = <®ulator>; + SPRVDD-supply = <®ulator>; + SPLVDD-supply = <®ulator>; + AVDD-supply = <®ulator>; + IOVDD-supply = <®ulator>; + DVDD-supply = <®ulator>; + }; + }; + diff --git a/Documentation/devicetree/bindings/sound/tlv320aic31xx.txt b/Documentation/devicetree/bindings/sound/tlv320aic31xx.txt deleted file mode 100644 index bbad98d5b9862..0000000000000 --- a/Documentation/devicetree/bindings/sound/tlv320aic31xx.txt +++ /dev/null @@ -1,77 +0,0 @@ -Texas Instruments - tlv320aic31xx Codec module - -The tlv320aic31xx serial control bus communicates through I2C protocols - -Required properties: - -- compatible - "string" - One of: - "ti,tlv320aic310x" - Generic TLV320AIC31xx with mono speaker amp - "ti,tlv320aic311x" - Generic TLV320AIC31xx with stereo speaker amp - "ti,tlv320aic3100" - TLV320AIC3100 (mono speaker amp, no MiniDSP) - "ti,tlv320aic3110" - TLV320AIC3110 (stereo speaker amp, no MiniDSP) - "ti,tlv320aic3120" - TLV320AIC3120 (mono speaker amp, MiniDSP) - "ti,tlv320aic3111" - TLV320AIC3111 (stereo speaker amp, MiniDSP) - "ti,tlv320dac3100" - TLV320DAC3100 (no ADC, mono speaker amp, no MiniDSP) - "ti,tlv320dac3101" - TLV320DAC3101 (no ADC, stereo speaker amp, no MiniDSP) - -- reg - - I2C slave address -- HPVDD-supply, SPRVDD-supply, SPLVDD-supply, AVDD-supply, IOVDD-supply, - DVDD-supply : power supplies for the device as covered in - Documentation/devicetree/bindings/regulator/regulator.txt - - -Optional properties: - -- reset-gpios - GPIO specification for the active low RESET input. -- ai31xx-micbias-vg - MicBias Voltage setting - 1 or MICBIAS_2_0V - MICBIAS output is powered to 2.0V - 2 or MICBIAS_2_5V - MICBIAS output is powered to 2.5V - 3 or MICBIAS_AVDD - MICBIAS output is connected to AVDD - If this node is not mentioned or if the value is unknown, then - micbias is set to 2.0V. -- ai31xx-ocmv - output common-mode voltage setting - 0 - 1.35V, - 1 - 1.5V, - 2 - 1.65V, - 3 - 1.8V - -Deprecated properties: - -- gpio-reset - gpio pin number used for codec reset - -CODEC output pins: - * HPL - * HPR - * SPL, devices with stereo speaker amp - * SPR, devices with stereo speaker amp - * SPK, devices with mono speaker amp - * MICBIAS - -CODEC input pins: - * MIC1LP, devices with ADC - * MIC1RP, devices with ADC - * MIC1LM, devices with ADC - * AIN1, devices without ADC - * AIN2, devices without ADC - -The pins can be used in referring sound node's audio-routing property. - -Example: -#include -#include - -tlv320aic31xx: tlv320aic31xx@18 { - compatible = "ti,tlv320aic311x"; - reg = <0x18>; - - ai31xx-micbias-vg = ; - - reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; - - HPVDD-supply = <®ulator>; - SPRVDD-supply = <®ulator>; - SPLVDD-supply = <®ulator>; - AVDD-supply = <®ulator>; - IOVDD-supply = <®ulator>; - DVDD-supply = <®ulator>; -};