From patchwork Wed May 29 16:33:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricard Wanderlof X-Patchwork-Id: 13679258 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2057.outbound.protection.outlook.com [40.107.103.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9DB0218411B; Wed, 29 May 2024 16:34:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.57 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717000442; cv=fail; b=adsg+f/3sTuAGz+DmeLkkfjlgTCyuZvY422hdkTdE/I8oWapyElqERcf100vk5TAPgQvPc6qKmxbRm5E1v/JHbCp/gp1m+qaeI1ssryNzbtYFIyF/spiBAL4+d7lP9AShoMr5cnlTr2YMefhKva+z+FKOPdAJtnTjpJmPSPY+Xc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717000442; c=relaxed/simple; bh=GBxKsVElGjIdAM/pQUWKp/DM+kCSr1OxPCFMtbZuqls=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=BNefm4j39q5z6o9IJQqsoGHMnWf9VdtGB8GysRAf7MDcEkvp5iFC6E1wP1rho8AP9pLevROm8r/Qcyh4vVbp8sgOHliHPp8tRThCHrV2A5uOBqqyjzP9H59qda36zYtFBGKPL0INJSfIR1IYBAgXgAm+PjJ4e6kVo0dJOCXjAPI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=axis.com; spf=pass smtp.mailfrom=axis.com; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b=KMQ6rfsB; arc=fail smtp.client-ip=40.107.103.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=axis.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b="KMQ6rfsB" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IH19/LzH8Rb3rMIzaSZafHTmMOLCp3J8n2b4GnCih02yZbwRXAzHPwLyI+qDMaC1f0vs9NcAxLcvE435eg83882w917TEJqePVacQVSMv1AI0z6bGeVrZ4dlyeZHnAfPx729/PJHEvNkaMw9zJfG5H0vkG75KG7enwOyVrExxzhgodyWFC/fbyJsDHRSQz2UrCxCCFGzKCHwX0CKG0zzWqraK1/N4Anpk4bFyAKfz2kuDyTVK6If5bdhzpJ/rSJV4hdJlo+kGPuTsmmlOIX7tS68tYRrnUiaRWJPzJWHWFAn5t/S+PuuZ+RU8vbdFtMHAw7Ab3JbIpF6gaSLhD6k5w== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=N0fdbr191pHjPPV9YhE1aBTVerz1WTywQr9eAwRwNRw=; b=UrczC8LKt+NfthHyWMwPh7X4Rtw9qVyKyyYJy9vFzw8pC5kotCbRU5kE89nfpmwE86FyywV7C2jhMY8YC7PYOAuASqoFvUE1T+YpH95SB/OED9GKITnAlYpU9JAquJprwwLD2muYHG5AK+8tX07XfxNakNt0PmqPpGMQUgtOUzZI4jGFgQh8JVa57iO6KG8R4K3Tr0kTSQM/u5aNQgQy/7OEJqVujFLMqvmkV6ktx3VgnmyN5ylL9j3kj/PhbrBF6lgRa6aQgUal6HEKlQJEP4Nfk3mlAsV404zyjPBS5qUC5BkSBJXMGBD7MP9Kn9yztxa7RWWdUoGPoZZusSZROg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=alsa-project.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N0fdbr191pHjPPV9YhE1aBTVerz1WTywQr9eAwRwNRw=; b=KMQ6rfsBDlfznvObfM0dMi8DBbDhv8rVioJ5ZIYirHy4Odj0rDxIbZzgk6XxlRTP2Ifi8lS6BhY9OHaQrHXDhRGkdAXPcaIxa3pQuPBl04lS2OONOjw32idoy3ExMMBUyC9enqeAxrJaXW/UB8IgVmNPp4Vs27dtKAVhkegP1Sk= Received: from AM0PR04CA0004.eurprd04.prod.outlook.com (2603:10a6:208:122::17) by PAVPR02MB9039.eurprd02.prod.outlook.com (2603:10a6:102:2fe::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.19; Wed, 29 May 2024 16:33:57 +0000 Received: from AM1PEPF000252E0.eurprd07.prod.outlook.com (2603:10a6:208:122:cafe::90) by AM0PR04CA0004.outlook.office365.com (2603:10a6:208:122::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30 via Frontend Transport; Wed, 29 May 2024 16:33:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by AM1PEPF000252E0.mail.protection.outlook.com (10.167.16.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Wed, 29 May 2024 16:33:56 +0000 Received: from se-mail02w.axis.com (10.20.40.8) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 29 May 2024 18:33:56 +0200 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 29 May 2024 18:33:56 +0200 Received: from pc49102-2217.se.axis.com (pc49102-2217.se.axis.com [10.88.7.5]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id 375E02313; Wed, 29 May 2024 18:33:56 +0200 (CEST) Received: by pc49102-2217.se.axis.com (Postfix, from userid 9470) id 32FD365EA245; Wed, 29 May 2024 18:33:56 +0200 (CEST) From: Ricard Wanderlof Date: Wed, 29 May 2024 18:33:44 +0200 Subject: [PATCH 1/2] ASoC: dt-bindings: tlv320adc3xxx: Add MICBIAS-as-GPO properties Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20240529-tlv320adc3xxx-micbias-gpo-v1-1-300d39cecc55@axis.com> References: <20240529-tlv320adc3xxx-micbias-gpo-v1-0-300d39cecc55@axis.com> In-Reply-To: <20240529-tlv320adc3xxx-micbias-gpo-v1-0-300d39cecc55@axis.com> To: Mark Brown , Liam Girdwood , Shenghao Ding , Kevin Lu , Baojun Xu , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ricard Wanderlof , Jaroslav Kysela , Takashi Iwai CC: , , , , "Ricard Wanderlof" , X-Mailer: b4 0.13.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM1PEPF000252E0:EE_|PAVPR02MB9039:EE_ X-MS-Office365-Filtering-Correlation-Id: c03cb0d0-57fa-439c-025c-08dc7ffd22cf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|82310400017|7416005|376005|1800799015|36860700004|921011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?6rHbAI/3OqRyyrLQut4Y6BPZY+6ce3P?= =?utf-8?q?YupQWbk5vquTb6Y/0aSkW7CXfIJNrLazaDGzFNikTI+yZNb1D+a4cTY5nfjRHaihF?= =?utf-8?q?2uPx+mJK1QAZqGZ2X6Fj963LLR8xWPLQotrOwnMZ68y9Yy8EeiIl+wArEOM6zCafd?= =?utf-8?q?GXGdjgWCskp0ftu4N4wIJ2meZB0eYdHTKNy+/lTyaUQHIKYMbQqX6JQh4R7gvxYIj?= =?utf-8?q?8ytxbIGpiIPYttUAq7KZ0dKTfkoULVuVv9RfPQHuoEpOWjPb72pmRT3/Wr1aELKaB?= =?utf-8?q?gP+MoVD8g17zbI0Rmh/N2x3Q2SMTFdmeeWQo8Xg3bYzwentKJ7asvnRYALsWeu4aZ?= =?utf-8?q?g3ZIfJVbIUjSNgcUIdfZ0MwKAhr8NKsOkzrB4MuJZSNhPT7XnvJtUdIF0M+bJ6BAB?= =?utf-8?q?bhGi/uKle2LQEe8xdyddInm8syqdGWl6x9I2dq4VM31cGRUdiyNzW0c8UzqtBglWH?= =?utf-8?q?m73KR1sO6IEWihngj47xjL84arFPGIpf664X4+XXC4qSu1oHKEvTo9ohBR4YktXhs?= =?utf-8?q?e/2MfiRqPEZMhdO2QF892VIZbWsNpe04GJff8TG2QyA1fpLCUjXplDmz5lcuhhx8S?= =?utf-8?q?0jMyhSHjPZm6N2oD6iIklYrSvZrvRT7gAKtiGflPbmb9gNGLYTxhmdEKErMKXWaf2?= =?utf-8?q?0+Zw1ydBhMYVCVeCqeEvXOEM06ExQZcQTx+9UBtoAB+Y41XB4oTbIYTPbtEDDHbY6?= =?utf-8?q?G9T4LvE+LPpaiIp2iIJ3MKkdgou5YBX+ESkG3t5iz5X8ZHK9/svsen1SZzNvBrmZx?= =?utf-8?q?ocGhg9gplYoCtREmtX7e8FB2FP6LAhc3yFonMfVlvG7i9kMFpuu/qzEZO8DcUGHlv?= =?utf-8?q?eZdEXQ0RCN8Qnk6lmaq8LyR8VFqmto9qVVJH3O3Pv2x1lkUpX5+PHHP+YNogSsfYT?= =?utf-8?q?HqQCbF+G1HqSZ+uEg1vw8OPAVAPeq476amOKzXmt4EYMMxF4HtsiBcVoirZi4pZdW?= =?utf-8?q?HuJCDbQGrlKed8b59jmkVFMrI6UYQVty7MMBMBTB4pp74jzP6yGfl4RShihnlx0KX?= =?utf-8?q?jxYAxl9Ov4+HXUjFpO2jJammMMXR56D2hC+ZPL/Z2tGOeFmbXZlPBA9sp1d5wbSfn?= =?utf-8?q?a1AL3lIuc2GbzdXTVYMnIk3nRIZ9+FUvwGfwTJMoqHp6AbImn4w4+WwblH9ChcjRT?= =?utf-8?q?tEl+hRxDroTkq9CixU389mceC6irnJnsTAxPMlDpFrBRByOlQeiN649KXVYx8RdCO?= =?utf-8?q?7D3BayAHntlTph7DuObRhkF+oI3q7yjfwZclUvBeoHSNGZ4kEMYRV/MxDBYn7KnTR?= =?utf-8?q?bqgQFceoy+i36TAvm6tIDRcDy9WLz60hImX/ZPt+kdJYUwAJw1+4jkayJ9qngNEcf?= =?utf-8?q?Q03jhn0CM4xB?= X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(82310400017)(7416005)(376005)(1800799015)(36860700004)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 16:33:56.6900 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c03cb0d0-57fa-439c-025c-08dc7ffd22cf X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AM1PEPF000252E0.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR02MB9039 Add properties for configuring the MICBIAS pins as general purpose outputs, with some limitations: The voltage on the pin when activated may be set using another property to 2.0 V, 2.5 V or AVDD. When deactivated the pin will float. Signed-off-by: Ricard Wanderlof --- .../devicetree/bindings/sound/ti,tlv320adc3xxx.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/ti,tlv320adc3xxx.yaml b/Documentation/devicetree/bindings/sound/ti,tlv320adc3xxx.yaml index ede14ca2c07a..4172aced1386 100644 --- a/Documentation/devicetree/bindings/sound/ti,tlv320adc3xxx.yaml +++ b/Documentation/devicetree/bindings/sound/ti,tlv320adc3xxx.yaml @@ -82,6 +82,26 @@ properties: Note that there is currently no support for reading the GPIO pins as inputs. + ti,micbias1-gpo: + type: boolean + description: | + When set, the MICBIAS1 pin may be controlled via the GPIO framework, + as pin number 3 on the device. + + In this mode, when the pin is activated, it will be set to the voltage + specified by the ti,micbias1-vg property. When deactivated, the pin will + float. + + ti,micbias2-gpo: + type: boolean + description: | + When set, the MICBIAS2 pin may be controlled via the GPIO framework, + as pin number 4 on the device. + + In this mode, when the pin is activated, it will be set to the voltage + specified by the ti,micbias1-vg property. When deactivated, the pin will + float. + ti,micbias1-vg: $ref: /schemas/types.yaml#/definitions/uint32 enum: