Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp765203lqb; Wed, 29 May 2024 09:49:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4FUpXPrDdCfUNJWqt7wKVyCQzRn3X1/SklViup7JTMUmjh45/+KaSz04uYE68mP5+TJcV6htPk+jt2dt4qU3gknb0UENiy3TodqrD2A== X-Google-Smtp-Source: AGHT+IGuvQOY2gFfgKlQFRMxzZPGKFoPDOoRuoONlzbrzLjKnhiPzHo7UwSz3srEmFj0OcnFHZC1 X-Received: by 2002:a17:902:e544:b0:1f4:aac7:ffff with SMTP id d9443c01a7336-1f4aac8035fmr89730725ad.20.1717001391758; Wed, 29 May 2024 09:49:51 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f486838363si68842695ad.593.2024.05.29.09.49.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 09:49:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194479-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b=KvQBm+m3; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-194479-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194479-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8A375B2817B for ; Wed, 29 May 2024 16:38:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52BA919DF43; Wed, 29 May 2024 16:34:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b="KvQBm+m3" Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2060.outbound.protection.outlook.com [40.107.20.60]) (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 308AE18411E; Wed, 29 May 2024 16:34:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.60 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717000443; cv=fail; b=iLucLW9Pp9bJFUgJOsJIWYMAHyPQvhkfdiAtxfZEiN5cXN2kiLkyqqCuxNSaM6Wx1+RCH8sj+ruzusE9rKBh/wpjOkK5yyNLbrkx3EBnGmHskghGG2/UG3QAivOcJ8hp4M1FpzUfvWWRkndxiMovU64UmQFGMNJlX02HRWpkm9E= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717000443; c=relaxed/simple; bh=3EDTejQBK8ZSb8KFoFK8hFhKx09BsYjN+k8vp/f4ouE=; h=From:Subject:Date:Message-ID:MIME-Version:Content-Type:To:CC; b=PxE+P4kmI5Cb772Xjb4rvs3bNdWOylncGo99M5G7ARsSZzowiCqS8j5mPe116SYi1/ZF7sr0V0mGqp5uprsrORWFQlWNB1iPQKXY0JZV+rvE2nIn9X6Wl9fo4feKZZOL+JNAyGauux6KCG/iOHaQ4Ub5SrAJIZPyig5mDitcZRo= 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=KvQBm+m3; arc=fail smtp.client-ip=40.107.20.60 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pjm4ZdWVUu5zIAlE47DW3uOnzkDKgCI6b62nRA3JiYGDkOb93tsWgndtGQLNLVEZj9dcXjRrVRIFMI9xmMAU8h1QWvjX8YGY1OuVMcdpEmpoCk+fTBtYqbq1LsF9J2HOW6Y8Qr0fgy6KveGnTwxgcSvx67gmrDzt59hjFXEKz0POIoxApMXsd5+HkligGRffRgqPMMonJ9fkb7VrcgwoBbUWxQ9Jyfamdq3k+SbAgq4Q8lf6lAJvHPQ3Tcrbxre8BbVAUQCMSHi6VJM8c1BQkQu4R2STUHC3Wi25QLQJpq1qpY70KMfPq+Xzs8X7tv01LfwHV+hMT37jcJMJSVqkFg== 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=d4dwp47QF2kvHWQZYXvYXXkdSImV0logEUIG5VxBoM8=; b=AvY3r7QT2yGloBY81Lhb5FqeVL2CJcfFXnsfvEfZvXH1qLXsfwbbo1O30DHGFSCPSRRdTJMKPTOhbG5mHxSkAYI1ewKMIan1+PY81B9CqfSDRwQHJrW8wofaMu0BywkZtZ/ktNzrNKYnj2gECqfgx3D2MGT7EG9tLrVkV4BdyJlHoJBwEtE8D+8uU8cS0RpcJsqNTkaBhIQ+ro56QgNqL2RaieXlEkwym7oy1/Uf900YG/G3O+aYiLInRJQN3RGCnDZWHmG43e9olV3ZxZgCgCqWh3IFbG/Gq8wuBtn7k/11USoqhVI+Bu4naB21tR/V/tu2Dy8ALmEhIsBMixhfHQ== 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=d4dwp47QF2kvHWQZYXvYXXkdSImV0logEUIG5VxBoM8=; b=KvQBm+m3G5yjZJEWfwUSca9mVeUErOpTNOU3PfD2CS71E9P92f0rUa/3s+icDkFIB+1Fh7th9e+AnkuWEOFlSB8Zyur6CtRvuiQ3HElFl38BS0FqL769xIPBjp/yR761q2T06fl9tDD221lHfF7nQaefxZo5RD663mhGAdbrnVs= Received: from AM0PR04CA0023.eurprd04.prod.outlook.com (2603:10a6:208:122::36) by DU2PR02MB10159.eurprd02.prod.outlook.com (2603:10a6:10:491::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.29; Wed, 29 May 2024 16:33:57 +0000 Received: from AM1PEPF000252E0.eurprd07.prod.outlook.com (2603:10a6:208:122:cafe::e3) by AM0PR04CA0023.outlook.office365.com (2603:10a6:208:122::36) 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:57 +0000 Received: from SE-MAILARCH01W.axis.com (10.20.40.15) 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-mail02w.axis.com (10.20.40.8) by SE-MAILARCH01W.axis.com (10.20.40.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; 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 353C5583; Wed, 29 May 2024 18:33:56 +0200 (CEST) Received: by pc49102-2217.se.axis.com (Postfix, from userid 9470) id 30965666EA08; Wed, 29 May 2024 18:33:56 +0200 (CEST) From: Ricard Wanderlof Subject: [PATCH 0/2] tlv320adc3xxx: Allow MICBIAS pins to be used as GPOs Date: Wed, 29 May 2024 18:33:43 +0200 Message-ID: <20240529-tlv320adc3xxx-micbias-gpo-v1-0-300d39cecc55@axis.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAOdYV2YC/x3MywqAIBBA0V+JWTdgaiH9SrTwMdVALzRCiP49a XkW9z6QKDIl6KsHIt2c+NgLmroCv9h9JuRQDFJILVpp8FpvJYUNXuWccWPv2CaczwOdcTo03ug uKCj9GWni/L+H8X0/Oes+NmsAAAA= 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_|DU2PR02MB10159:EE_ X-MS-Office365-Filtering-Correlation-Id: 12169276-c0dc-4f41-365f-08dc7ffd2365 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|376005|82310400017|1800799015|7416005|921011; X-Microsoft-Antispam-Message-Info: =?utf-8?B?RWJTQnlWTTVBZmFiZVhZWmRMSzJYUGJ2Vmo5YVROY2E1YnNzYmNvakJpK0tp?= =?utf-8?B?dC9jMkZ5MFVVZjh0NXFtbVVsNFVISUFSWUNEZFgra3dBTVNTTmx3aU5hb1or?= =?utf-8?B?RTRib0F0NU1qQnkzQWl3ZUx5NXhRVThnWEJqdXUrVVFCV3hNeG02dnlzMXh3?= =?utf-8?B?bVVPeWhGNVpCV2NxSDBGV3VqN0VrRlVLc3lMS2UxUVlUaEJiblhzRzUyTGdj?= =?utf-8?B?NmNDUUhMTldWRURncGdJQmxaYitFWW1iMnlWamxzaTkvbzhhOXc4UjUwVCtW?= =?utf-8?B?c1Z3L2RYRWpVUm1reDFSeWVpUFJrczJpNVMwT3FINmhoNU02Uk9idVhaY1Vn?= =?utf-8?B?U3RWZ1JxaWJzbjN0cm5wZlg5M1MxRWdIZ2MxZExQdUFSbG1HT2oxM2x0Ukcw?= =?utf-8?B?M1hMZHQ5TzlnQk9GaXlkL1JUNHVKK2FkK2FVTWRyRkRIZlpuc0VsMUtuaHBM?= =?utf-8?B?TnNNZktNK2dJZlFZalEv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= =?utf-8?B?enRHNTNMOW5rZTI1QVlwUGV6RVhPVHFqS09ONFp3NDM2NUtlVUJHMVlsQ1pu?= =?utf-8?B?QnVnNTlFdlVxRjFCbURXd0ZaMlJmMW5tNDNMRkc3blcyQ2xyS2FiZDNRSDVG?= =?utf-8?B?aGpQL1lySUpjOGJKWmRUN2U4a2Nhbm5iSzNOZFpCaWNwRUloNVova2dZL015?= =?utf-8?B?SlRaR1Q3ZzBvWERlVEJrYzF3TmRUT2ZjV3dWbloyWTl1MXlFa1lESEhpeVV6?= =?utf-8?B?UTByS0J4ZElJSTUwZGprWmluYjlGY0p6aVNVZWxzZkQyZkdFRDEyWmpwdmRz?= =?utf-8?B?bmNhMkIwZTZLZ1k1d1ZRMTYzVmtVNXdUM3N5dS9GU1BPRWkzeHdJQW9TVEhO?= =?utf-8?B?cnhvbks1YlloTHNmYTc4bzRpV3E2ZWVwbEcxbFVYbmd3ZXp6L2dpWmZ4aFZT?= =?utf-8?B?Nk1WUWJ4bDJXZlRLNDE2Zz09?= 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)(36860700004)(376005)(82310400017)(1800799015)(7416005)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 16:33:57.6744 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 12169276-c0dc-4f41-365f-08dc7ffd2365 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: DU2PR02MB10159 In some cases, depending on system design, the MICBIAS pins on the chip are not needed as such, but a couple of extra GPIO pins would be useful. This patch allows the MICBIAS pins to be configured in the device tree as general purpose output pins, controlled via the GPIO framework. Owing to their originally intended purpose there are some limitations: when the MICBIAS pins are deactivated, they will float, so will likely need a pulldown in many applications. When activated, they will assume the voltage specified by the micbias1-vg and micbias2-vg properties, respectively, meaning that the resulting output voltage will be 2.0 V, 2.5 V or AVDD . Signed-off-by: Ricard Wanderlof --- Ricard Wanderlof (2): ASoC: dt-bindings: tlv320adc3xxx: Add MICBIAS-as-GPO properties tlv320adc3xxx: Add support for using MICBIAS pins as GPO .../bindings/sound/ti,tlv320adc3xxx.yaml | 20 ++++ sound/soc/codecs/tlv320adc3xxx.c | 105 ++++++++++++++++----- 2 files changed, 104 insertions(+), 21 deletions(-) --- base-commit: 47d09270d7776e46858a161f94b735640b2fb056 change-id: 20240528-tlv320adc3xxx-micbias-gpo-b8b4d1c846d3 Best regards, -- -- Ricard Wolf Wanderlof ricardw(at)axis.com Axis Communications AB, Lund, Sweden www.axis.com Phone +46 46 272 2016 Fax +46 46 13 61 30