From patchwork Fri Jun 7 15:22:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricard Wanderlof X-Patchwork-Id: 13690387 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b="qEhQiVIH" 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-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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?q?7cLNKrSZsLAxQZpPXo723CCeQKjB4bo?= =?utf-8?q?s+5JZJ0RpevWNSmQ9sCrSCgRRlMAqsFHpRWN7bNKuicGmaIQecoVq0ZiRDL5+GGCA?= =?utf-8?q?sZblNktGzDr8K18JoiFYfcCfrC/HkA9W54VFDtTlPpoCxWJ5EVIqIeuPndyXusQSD?= =?utf-8?q?OoustKlTqbPQRPTWpG/P2fhGBz+QXFAJjJLalBG9q/TXilvKf2D0/d4H1034FYJ8f?= =?utf-8?q?kr0jRsN+h4FcoNlCASZ5ASn5AW+JQyw39JRao5YmE7107uV8CywYEGhJz4sD3CTMQ?= =?utf-8?q?oCA79MvUe1sLgyFVrDhItVGrgPDKVuBSFrxTi0pJy+IZtIcw5lvSsJmIyePLy/n/R?= =?utf-8?q?PnTqH4B7lYAU2AMpL6LzUFRPZzVH8L5e+JhULASJ69T2eTpDbZfEHdM67rRn4uWJ+?= =?utf-8?q?36beIWEwgnMbH80Poiwfk9uQjFIBAwYcM+UhONVZfB2k6ycRySyHXNZJJheWT9q3J?= =?utf-8?q?cDEodbZUUAxVZbEexWmL+TrbFNsayqrTEkAoeDzOqLF6ciouj17n0J53VH+gLwrTw?= =?utf-8?q?hnEUmmw+lVCAG8k+Eb6bzRWaeghIRPuYPsm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;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 Reviewed-by: Krzysztof Kozlowski --- .../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