Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1115261lqt; Fri, 7 Jun 2024 08:22:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUaKNe8mHKbL6upKqpt4EjolaL29lNiAN8pufeFFfweMKzVraz88tSPmbPuh26bHRqbm5xGDeHheifomXXtbmSlIj7u0j6DrhU5ircgg== X-Google-Smtp-Source: AGHT+IHweByeMDP1B5qkP703r/sY04KW0Wy/5Jk4j3IG0P5HFS+Xon3DcORNgcsBxeqpvOdKCmPy X-Received: by 2002:a05:620a:2995:b0:78e:db73:913b with SMTP id af79cd13be357-7953c31b871mr300552985a.28.1717773767112; Fri, 07 Jun 2024 08:22:47 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-440547b25f0si1222511cf.147.2024.06.07.08.22.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 08:22:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206379-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b=qEhQiVIH; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-206379-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206379-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C718C1C23C72 for ; Fri, 7 Jun 2024 15:22:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 488AC1991D5; Fri, 7 Jun 2024 15:22:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b="qEhQiVIH" Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2045.outbound.protection.outlook.com [40.107.247.45]) (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 49DB118732F; Fri, 7 Jun 2024 15:22:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.45 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717773744; cv=fail; b=GmKfiyHMRUPpVQKdiWpNUwUyKUyTkch/QzXUB34aH5gYewg42yKSHzGsQl6BTdQUfkhLULaVZ80adHLacDFjprNcgyT7DCix/u1svcEctSZ6UzW7gI1hvry/QD5tvISSEDa2QNt4yvdjTYYBqM3y575gtBWDRJThVal+mfmFXKE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717773744; c=relaxed/simple; bh=PoBbEyhaFxLC78gBUQwE8bFvnM5RB6hFEAjwIX6Dz4o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=X2ByEeuow/2BQJvaCe1qIjnfMZ5b6qH3aDm2i8/xbICgxuarKsKInsdWCuzRtPpqT4V4dbBgALNXyyd4aULOldajfY/7+xpxRrN8kFdLAkUBHlZhDC8b/cla0b7SfUE447FUuAxsrZAQvte+pvqyfdPluYF9np4EAlQCy2M89VQ= 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=qEhQiVIH; arc=fail smtp.client-ip=40.107.247.45 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=C5N2KGSGu/XUvgj/DWSdt83yXyb6LqDL9S+g7m4UxG0OkI9hCkdmlFFpqEDU/yIldfEz6r08ptvbtbXEOZkYNVQeIqyguPR/X1eHHk4ryvwtrspJ9jIOTz0bUpQUaXusx48TsMwxd8jmRiw9s7BPY2Q1BHyJhwQtnzfLCSxQPzycgfT+hrcr/LE7PtBEHuRVSnK8pXxZGxjtXIdXV3dGjUXYx3s3890hCR3lb2Ra2a8iLi1DyMGOEfPVDTRJfZAI3aSloIeZ3HvT4cGZm68aoeIMUwaoUbC8Uw0JYIIXGQzwsT3UR2YkTJAQKvd+02BlZkVQfsdkH6vXPnVWyXE4tQ== 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=q7PWeh6WCakgE+Fy8XUxlEUsg0m0AHqI4L91GShTGJc=; b=bUdipaA4eke2rogS/bzT4TFLLN2AgV5A+32otHOYrneApz4gEPzlcc/vD7OK/+gwEm+Kz7oNP3IS01n9/3Il1zA2blS6Hinc86O4lbZgiJDiXyeucXRIIVyIRQLJ0/nToUp47xJP3NaIpuFZ4sy360nzjTZ6M1fvMWzke9eIq8Owrrl8eaqeN3FKhYWedvZsNa8U4EJ+C9FKhIJosjsC8wMFQg51dM6uMSPbXZqxbi43UKOAF/DairDgGlxR19+k1fntwSob/mla5nqfreBJ/Usv77CDyRAzoGVD6AH5nhE1WKHXZWxjh2gmuHaglshuCjJfRxEyMP6qfS5YigiY7A== 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=q7PWeh6WCakgE+Fy8XUxlEUsg0m0AHqI4L91GShTGJc=; b=qEhQiVIHdnLHCkpkF0sft0kGvNUeADNgVhHYy0dld8SXAYX9qpBU+rSopQoY4xTCLja3ZxGgl1hmdX2ddvOd5ENNFCPmEeaivZwX3TcbAiLyi/nmzE2B5d8S2RFjU+1In0IVF1ckl/8a+2keIo34IpgA/tydBWy3z23O2MmZcpc= Received: from DB7PR03CA0087.eurprd03.prod.outlook.com (2603:10a6:10:72::28) by GV1PR02MB11108.eurprd02.prod.outlook.com (2603:10a6:150:210::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.34; Fri, 7 Jun 2024 15:22:17 +0000 Received: from DB5PEPF00014B99.eurprd02.prod.outlook.com (2603:10a6:10:72:cafe::4f) by DB7PR03CA0087.outlook.office365.com (2603:10a6:10:72::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7656.21 via Frontend Transport; Fri, 7 Jun 2024 15:22:17 +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 DB5PEPF00014B99.mail.protection.outlook.com (10.167.8.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Fri, 7 Jun 2024 15:22:17 +0000 Received: from SE-MAILARCH01W.axis.com (10.20.40.15) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 7 Jun 2024 17:22:15 +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.2507.39; Fri, 7 Jun 2024 17:22:14 +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; Fri, 7 Jun 2024 17:22:14 +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 DF73B3495; Fri, 7 Jun 2024 17:22:14 +0200 (CEST) Received: by pc49102-2217.se.axis.com (Postfix, from userid 9470) id C32326476FDB; Fri, 7 Jun 2024 17:22:14 +0200 (CEST) From: Ricard Wanderlof Date: Fri, 7 Jun 2024 17:22:04 +0200 Subject: [PATCH v3 1/2] ASoC: dt-bindings: tlv320adc3xxx: Add MICBIAS-as-GPO properties 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 Message-ID: <20240607-tlv320adc3xxx-micbias-gpo-v3-1-59dbec8b98f4@axis.com> References: <20240607-tlv320adc3xxx-micbias-gpo-v3-0-59dbec8b98f4@axis.com> In-Reply-To: <20240607-tlv320adc3xxx-micbias-gpo-v3-0-59dbec8b98f4@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: DB5PEPF00014B99:EE_|GV1PR02MB11108:EE_ X-MS-Office365-Filtering-Correlation-Id: 4871573a-56d8-457f-2bf3-08dc87059ddb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|82310400017|1800799015|376005|7416005|36860700004|921011; X-Microsoft-Antispam-Message-Info: =?utf-8?B?N2NMTktyU1pzTEF4UVpwUFhvNzIzQ0NlUUtqQjRib3MrNUpaSjBScGV2V05T?= =?utf-8?B?bVE5c0NyU0NnUlJsTUFxc0ZIcFJXTjdiTkt1aWNHbWFJUWVjb1ZxMFppUkRM?= =?utf-8?B?NStHR0NBc1pibE5rdEd6RHI4SzE4Sm9pRllmY0NmckMvSGtBOVc1NFZGRHRU?= =?utf-8?B?bFBwb0N4V0o1RVZJcUlldVBuZHlYdXNRU0RPb3VzdEtsVHFiUFFSUFRXcEcv?= =?utf-8?B?UDJmaEdCeitRWEZBSmpKTGFsQkc5cS9UWGlsdktmMkQwL2Q0SDEwMzRGWUo4?= =?utf-8?B?ZmtyMGpSc04raDRGY29ObENBU1o1QVNuNUFXK0pReXczOUpSYW81WW1FNzEw?= =?utf-8?B?N3VWOEN5d1lFR2hKejRzRDNDVE1Rb0NBNzlNdlVlMXNMZ3lGVnJEaEl0Vkdy?= =?utf-8?B?Z1BES1Z1QlNGcnhUaTBwSnkrSVp0SWN3NWx2U3NKbUl5ZVBMeS9uL1JQblRx?= =?utf-8?B?SDRCN2xZQVUyQU1wTDZMelVGUlBaelZIOEw1ZStKaFVMQVNKNjlUMmVUcERi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VUJqSUlLWkZv?= =?utf-8?B?YkM4SDhPUEt0V2JNeGZXMDRieGVnUGJFM1lrODBYbDB5dFBKV2h0VzFNNjcz?= =?utf-8?B?SnJKRkFIYjZCeDNIZGpPSjdWY0dnVWNsRllEZXBCYmZuL292dU94R3FGZkt0?= =?utf-8?B?UnN3ejlHZkVocW05ZFFSeEdCdmhHMlpLQ2ZHbS8veTBadkhpRUZLV0gxYVdl?= =?utf-8?B?MmZBTUN0RktKQTQwSVVsbnZZRGxQRGNHaDVqUkVVOFFadDM0MjcrR2c4Rk5S?= =?utf-8?B?RnFxeHY3b0RCMW0zN01EdXpuWVNNaWNJNWdiQVJCM2pqUzJJRkxEVytPd3Ex?= =?utf-8?B?RUM4aE16NlRXOHBKd2dFeWlSaHlTek5reDBRQ2VlV0I3dGJsd0t5bjluUVdo?= =?utf-8?B?S2lhc2RkQUROTUhrSW9DTVIwYU1jMjlXNVJyREhFc0JIdmxPV01IcjlYdml4?= =?utf-8?B?TDVqR3V6UERQeE42dkFKOUZVc3diaHI1eUIzWFY4ZzhQSDVCYjhpeVRScm40?= =?utf-8?Q?K8rZtYmJe4w=3D?= 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)(1800799015)(376005)(7416005)(36860700004)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2024 15:22:17.1959 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4871573a-56d8-457f-2bf3-08dc87059ddb 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: DB5PEPF00014B99.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR02MB11108 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 --- .../bindings/sound/ti,tlv320adc3xxx.yaml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/ti,tlv320adc3xxx.yaml b/Documentation/devicetree/bindings/sound/ti,tlv320adc3xxx.yaml index ede14ca2c07a..1a6c6877b2f7 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,micbias2-vg property. When deactivated, the pin will + float. + ti,micbias1-vg: $ref: /schemas/types.yaml#/definitions/uint32 enum: @@ -104,6 +124,10 @@ properties: description: | Mic bias voltage output on MICBIAS2 pin +dependencies: + ti,micbias1-gpo: ['ti,micbias1-vg'] + ti,micbias2-gpo: ['ti,micbias2-vg'] + required: - compatible - reg -- 2.30.2