Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp851813lqp; Thu, 23 May 2024 01:44:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgjqdW9xacTzk3+KmzaN0Lgjesmxjv0ahhbpcU3n4ulIgwZj0oTlHe45byVDru75jTXdF/0p+HYKWMP6c5IWGgywzMrImHhskVNH3ESQ== X-Google-Smtp-Source: AGHT+IGV2MjA6KsmOao3pzoyEBx8QMMopsu+yXE5Iny39DEFKH64hnG9u9KuD4kZ23+aa2JKLWuP X-Received: by 2002:a05:6870:7a9:b0:24c:1d49:df03 with SMTP id 586e51a60fabf-24c68f69833mr4675681fac.39.1716453874688; Thu, 23 May 2024 01:44:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716453874; cv=pass; d=google.com; s=arc-20160816; b=PewB/5KKUfEViBeVCBqea7m9ahG36n4sxmmbiHN06dBV9bEJPPJC8d1AdyANWX+KRD YNlLdDkSQ7tzxTMf1vxzMthdvyJ2YNBMsMa7R3Nubj89zDQoO3BYhJb8omGdWS/OvvFn sBUZhOPCdzX6EPZawvFxThyKauGn5GpuPkTqg4gAIL58h9DzicY6z1Wf+Kj6ViS4u7LH +OQHw8PJroYfZcGR5kzqqpvIeSLFHzfmw9WEpDupehsQImJM2Nru+kmtP3BKa6Mb7jqN XpuhnnG3cQxXX0JgScCiVJMnvfedBqapbukZZ9k6372uSTzcuh/M27tDPKK2Xa5E9dh7 DtDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=8bNfBdFp5mZ2kI3ADKPWjh4YaxvbI3ApUdRoUcOWyZQ=; fh=LQnq1jPpgp4nvnn/azyFZnouj0hWWF+vf6unWXjXF98=; b=VV8fBm07T7AwzUpP59mqIa0QtY7S5cQowqpnbRAFjT+ZFSYSU4bthDS/Gm8rjgRHth I39AoG19kefMZxeW6R5XuI8r4Fb/fIDm3Qg0driLT+jHhSivDa3/Wqt6YbCBt5iGTwKy 0F993U+7BxEh8lbmkJ1Ewrozp2BxKpl2nJRfNQPQTuZUaSZ9nnQZ4vx72IHNIbE4DUAb DeMgzRCC/gwaLe3qZg1ASSapCtxX/0i+zo5xUw5/H37akabrkiWvPo+Fs9ZUU7c8ejAk bOdKOeyxzgsCRKHgkfmfXPft1SeM8lG46uJ/1AiWVaPtAD9HxD3SA2EhUTalrYJseToa A6Iw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=2f8mCTzG; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-187190-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187190-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a72698si4372938b3a.10.2024.05.23.01.44.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:44:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187190-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=2f8mCTzG; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-187190-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187190-linux.lists.archive=gmail.com@vger.kernel.org" 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 390EBB21C0A for ; Thu, 23 May 2024 08:43:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 364CD13D61D; Thu, 23 May 2024 08:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="2f8mCTzG" Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE78E13D276 for ; Thu, 23 May 2024 08:42:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716453771; cv=none; b=O56IQgWyV8Fa4cJ0ub8ZuDKXEVp8jDM+9Pizr7MlujoZxMY9rHllsYeFoGJB4YvZUExLhATU4ceFkwN6DZixJ0HXWVxtfzztB6c/uCaqLCbdLXJxCtdOY9I7pJHXjFsbTqikblf/vXFTtCBjZyAdmzto3OfkgihNTV5+Di9UMpI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716453771; c=relaxed/simple; bh=SWDpxVosRWcwhcp5w5dGFmY/1KI8cAMYk3ck/hCfKf0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qVCwdV3nW9JacEXNmDGvml45IcBJxvwUaPeAtaL1BXNE2T2DC79BLxpOLS1LcCutLT/ugavWDh9Mo/xgEnIINORKMfqbYrdVsYl917TOt6MduMxNH05pvScIHV5SG9Oxr2YY5Nnz8UfuVA2Zw2UIx1Uo0XJ0B8Vfb3SKY9cXm/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=2f8mCTzG; arc=none smtp.client-ip=209.85.208.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2e538a264f7so82004801fa.0 for ; Thu, 23 May 2024 01:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716453766; x=1717058566; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8bNfBdFp5mZ2kI3ADKPWjh4YaxvbI3ApUdRoUcOWyZQ=; b=2f8mCTzG2V2xo4yQAFP3mQXlXoyx/b9+OhTk8VZ/74tXNsJuAFUn0x0S4+6XKXXqMC bwNdTMWvuRsKCMQ5a0oiVs3/ZAqOshRdz/4J+oU6NsBSi7I8xxMoXc95kzEW9Mkxbbs3 tLB8AQ8NMFTijnt8aqXapxMqB6II+rBNFLdjYgXE06Ja9lzNygL50FCPxpP/u1FmHizj y7k7VDFprkS2pHc2zAN/R0bY68ewrLdYjCcEH5dneeNe7jiBNXsitc1Mggp2l9IkfVSn 5xzWwAGqoUI7jo4m33u5F948ksciEzhTR8jaeey9fg7tIEva9DUeiT40YJbd0Y/qWMMO nPhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716453766; x=1717058566; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8bNfBdFp5mZ2kI3ADKPWjh4YaxvbI3ApUdRoUcOWyZQ=; b=jq7iotl7SosxKbngtGo4BMo4/fgdjL3BhTMPemRe/8o0AmFwFm4qqUdNZLkZqOjv88 DVOAZlhVWXJYj+0heJosJwxIFwvrAQhzw0rUVjXPvCCqCRccxA1+ElJbrGBTeVDoVQHd qsG9jEXFAnNoDr5pM04A3AzdVVDgTOJQ6EuNo2Xj7RIb6Fv/UviFklDPO7snRP/s++HV KE96NU/TIb0TEQPKWVCWwTBUeWCG8JsCNOg4m8l1VxPjFVTpcvabfAk2JkpDB5INmosY 0KAXC1z529VM1Z4mcMNXyt/la5VUSBzpk9DI8c/KQGzbRlQAjVBYwK7/9dvS8fKNa4TR akWw== X-Forwarded-Encrypted: i=1; AJvYcCXfeduJsVKPw+qDzNM+aCsvQSFMeu1hEwIMR1HPyvNxlffdXMlN3yVdR4RjT+kBG+qg5L0ZWuDaDucLzB4D0WoH1xt9x56M3UbPte/k X-Gm-Message-State: AOJu0YxK3ZcwYfzNDL+vgbG2LKWrm19CDfvrF4kd0hFWTaoUDmBb7wcm mIMApE8tTu31rrTi68NPsQDfwpkWzudNoVEvKgZhJpHmrmtzYK9SqWeFTGyYmZU= X-Received: by 2002:a2e:9858:0:b0:2e9:4c17:9c8e with SMTP id 38308e7fff4ca-2e94c17a021mr23112901fa.44.1716453766077; Thu, 23 May 2024 01:42:46 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-42100f3e03asm18556645e9.17.2024.05.23.01.42.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:42:45 -0700 (PDT) From: Alexandre Mergnat Date: Thu, 23 May 2024 10:42:32 +0200 Subject: [PATCH v5 03/16] dt-bindings: mfd: mediatek: Add codec property for MT6357 PMIC 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: <20240226-audio-i350-v5-3-e7e2569df481@baylibre.com> References: <20240226-audio-i350-v5-0-e7e2569df481@baylibre.com> In-Reply-To: <20240226-audio-i350-v5-0-e7e2569df481@baylibre.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Lee Jones , Flora Fu , Jaroslav Kysela , Takashi Iwai , Sumit Semwal , =?utf-8?q?Christian_K=C3=B6nig?= , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Alexandre Mergnat X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2491; i=amergnat@baylibre.com; h=from:subject:message-id; bh=SWDpxVosRWcwhcp5w5dGFmY/1KI8cAMYk3ck/hCfKf0=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBmTwF/2jDLQ5TVCgT3uxzYK5mIuMk4pelcscFCox46 O4PSEBOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZk8BfwAKCRArRkmdfjHURYsvEA CmSN9uNEndT4vCn4eJmEUww7V0IRTwU4v0Mw+SaDo98QMKyZRC82P0ip9h0k1rl+Msvia+4zk4rAZy 13Z91WE2oMA2cVHcf5SGoQ0ZXLHNoYcAUddHfGGfT8CZ2rViWDzWR6zArvkGvciCJ77pgHwIXdim7A huMZ6ooBhWPk4ailWcgwQhSkZSxM2M+odChO+8MwJ8HYJZNWsjP1qoha82hvRL7vmRoxRaIhq8nrG4 /gUfb9KFRFNfOxHpFMfaMGtA0Pceqple5rLArZZuMapNcEeDDiCfgnIKnWiW5XSiXyQcoHFK+zBCni ZlGLrRngoBKrXUzJYnr/ms6XmMujszyAK69ZDqkuzVDx7fM0vFhbnqcr9dzniBXGS+dsokjar0ZtaS ozZxmNKs8mmIUMz9zBii6kNB8dcrdYJkJjYCqcxFV0OlIac0BzusXY3JlsdnfZMztuPgh8qw9OrUby 96Hp/0PCCC41dSl4qGdK3tz1JkWZ1jKuiQIP6Oqt0fDPc4153wP3/+vM/avv8M86VMVcVAATtoKfu0 1Yc1B1RlwhWEyFFWH3pZMBuSPol3pT8YncGUyPXggY8DPThSIFuIMNJ3Xye3ZqKsfukmHPDZw4/FyQ J/exVsb8byuoOAE/R+xKncX9afsOFLtbq77KM4eUdo0rjAHD3U8ucguSuRug== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Add the audio codec sub-device. This sub-device is used to set the optional voltage values according to the hardware. The properties are: - Setup of microphone bias voltage. - Setup of the speaker pin pull-down. Also, add the audio power supply property which is dedicated for the audio codec sub-device. Signed-off-by: Alexandre Mergnat --- .../devicetree/bindings/mfd/mediatek,mt6357.yaml | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml b/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml index 37423c2e0fdf..d95307393e75 100644 --- a/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml +++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml @@ -37,6 +37,32 @@ properties: "#interrupt-cells": const: 2 + vaud28-supply: + description: 2.8 volt supply phandle for the audio codec + + audio-codec: + type: object + properties: + mediatek,hp-pull-down: + description: + Earphone driver positive output stage short to + the audio reference ground. + type: boolean + + mediatek,micbias0-microvolt: + description: Selects MIC Bias 0 output voltage. + enum: [1700000, 1800000, 1900000, 2000000, + 2100000, 2500000, 2600000, 2700000] + default: 1700000 + + mediatek,micbias1-microvolt: + description: Selects MIC Bias 1 output voltage. + enum: [1700000, 1800000, 1900000, 2000000, + 2100000, 2500000, 2600000, 2700000] + default: 1700000 + + unevaluatedProperties: false + regulators: type: object $ref: /schemas/regulator/mediatek,mt6357-regulator.yaml @@ -67,6 +93,7 @@ properties: required: - compatible - regulators + - vaud28-supply additionalProperties: false @@ -81,8 +108,14 @@ examples: interrupt-parent = <&pio>; interrupts = <145 IRQ_TYPE_LEVEL_HIGH>; interrupt-controller; + vaud28-supply = <&mt6357_vaud28_reg>; #interrupt-cells = <2>; + audio-codec { + mediatek,micbias0-microvolt = <1700000>; + mediatek,micbias1-microvolt = <1700000>; + }; + regulators { mt6357_vproc_reg: buck-vproc { regulator-name = "vproc"; -- 2.25.1