Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp637474lqs; Fri, 14 Jun 2024 00:31:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEWRV6somSzSn9Hok++5Tn2SoG5O+06QxiwRYVXnljbjLVVG0Tka6jP8nBSb9U/h+TKCu2HIjLOHCMOAb5DvfK51uR+HTlYLiS7JB6hQ== X-Google-Smtp-Source: AGHT+IF/3rzKwQhlQYUy3yE22iLjG2QFESETjsd3Gkb2o4IDnGsj1aR+/7GejZZ9Lp7Ss8hiVIez X-Received: by 2002:a17:90b:3d6:b0:2c2:d127:fbf5 with SMTP id 98e67ed59e1d1-2c4bd8ac257mr7639991a91.7.1718350278327; Fri, 14 Jun 2024 00:31:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718350278; cv=pass; d=google.com; s=arc-20160816; b=MxqFpy2jlfaYXA9x2uqfI+9CMLoPzgJQM3GV4gwkwZxY7Q04Nqv1RHSixTP3POX4vS ymAS1x79xSOrGIanu7z3KF2yyZgQWFt/iC/Yn39xxBJQovc4smVzmGjQCUZhVJR34/dc xyF2/Vcmg0EHUt0PzaPhlpaosU++RGjXF9/EApYL9575bv8RQQFWq3AoQy1ceoSNQRlT L9YERRkpJ+JyiWg5IpljWZUnSI+5Trb+C4gSBIUcW4HhDZyYGkTxeDe6twOFf3qfISUr WKrP9TXDugF9tiBJ9y6A9NMGbp9xniQ+UUtWMkULrl84FjhJ4TIzfAwK7g1izEeq3xw1 yxQA== 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=o2DyZqIDUahM0ZsaHK7M1PD57mu5NmA+zBZx7QZ/EsQ=; b=f8E/rSBRajLGCC0c3vY3QSB3WIt1ydLNAg4WzU5MSlwa2hnRIyt5Uu3kMvYTBj6WgK 8nqrlPpn1ycpzkQiOTZ/K8tyVOURiCpKn+NaT6NSq68tF7GAgQfx/pHDr2cbGeSsVENB y4TseYtHB6s87357tD3FEsN/3r8WUpd4zhCAoBJ4OTc4usVGl6CDLeJyH/ToMUvOqst8 QoKU7xjiQKZMUQr+GmGCicQKsvmjWAjfHQUFA02oE07DZVRS7eumEvGiX/8sEH37/5E+ a+mZgXls1uuXw2SVuJ6rPcroxkudLypJ/POITWkFDozs3E528zwAOQHoLRCk4SrxEV7S MNhw==; 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=dNfj7vRN; 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-214451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214451-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4c4769aa9si3215391a91.134.2024.06.14.00.31.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:31:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=dNfj7vRN; 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-214451-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214451-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 22BF72892C1 for ; Fri, 14 Jun 2024 07:29:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09D7418412D; Fri, 14 Jun 2024 07:28:10 +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="dNfj7vRN" Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 187CC14B940 for ; Fri, 14 Jun 2024 07:28:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718350088; cv=none; b=DKxHeBTlG7C+KwMXoUJXBCCXXzFiUiozBtd4TXqBtJqKEyFP+SxXCAuwSJ76s/U9BOw9x3uh3WBkOSWz9s//ZEdU3n64jyQrL0P0YF3elPOLpIWqJxIJMGQEoDAxwqMUJ/h3aPoBYqi3K8BjFXcCMC4/gS4m+tlYPvJ7SBy5efg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718350088; c=relaxed/simple; bh=SWDpxVosRWcwhcp5w5dGFmY/1KI8cAMYk3ck/hCfKf0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fjWA4FQdmkBbLar9UWqiReOPSuCveOWj+QMgQz2rBmxhk30V0GWWnZlnT297cPkQS+sEi7cyQcuC6Tz6xD0JLMRl7ioWGpsvvO/WVE5gS+TrtlZlw9TNXJbcQfqCODqJq6AASvq0sQEBU80DQZd0prV0kNIYQ+LKuI9i7dGr+Bc= 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=dNfj7vRN; arc=none smtp.client-ip=209.85.221.43 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-wr1-f43.google.com with SMTP id ffacd0b85a97d-35f14af40c2so1627495f8f.0 for ; Fri, 14 Jun 2024 00:28:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1718350085; x=1718954885; 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=dNfj7vRN3kBHW1zWVfBmjI7Sst08cMmfY+z5NARHLYVyJ16WXeaCu2mUfgKITBphY+ lYERt325XQQz5kafYQc+QqjSAogrFcgNQekBA1BnZ0EBMGBIBUdejHSzse2N5Zw+iSwO GwkQ4yqRmdZhEytj5vWhfpL8lpl6M0j7vRO7A7P3XpfdrGBpRxldhhDA2tdXZIv2SJoJ 1FYAk1uiLpQrCSXvDXLqbJFGP04wrgDQ4PxUpti0xtW3XQtoOTPqvw0M4HiJwVsp3pr5 DnUqbmBoWqJKmF4lIxDX3BYlq6EOFN+FwFYDt8K4J3gvLe6PY7xQUk+MR10o8N6PHrZ+ aZmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718350085; x=1718954885; 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=iOoH9kU1iNNOOe7AO5I7NOWhvUXIwU1v8v56SPi74JpyX8HdyxkCqCi+cjiUb07WXW mhNOM4NAKxpspyDdGBj9+EOF9dMNxiec8rt4Kdm+OWBdKCMIIjDAq++6j8mhiytGWg1U OGFyBlT4aYn7eErycjqllHTTFLpxnrUsabzNBircSnN6nb7ZfdCSRZJiidYhInObZMpm jB8a/LOFxtoDxv4fjCcz4A2nRqCrGevc63zXJTMyGqelr/SDThkGrg0+muCVpIhUNmIE OXqeqPrxk+rRtkRZKVxbVuBiwJkSrTHTB1QLxGPfYewzdZIEwgSXO5ulrkisEqMflZ0b RYNA== X-Forwarded-Encrypted: i=1; AJvYcCU9JEGoAfRR9ndn2SSQzCkTk2oqO4/ckYVdYpo12TBIF3UK3hHdDNXCJKI5pDWfyskyF4Wd7JO10HjwlSMPZQMOvTpxu8GeOunc6eBP X-Gm-Message-State: AOJu0YwFjD88vWkgDiqKGlE3KUJiiBbVVBAntTDlxUH9US5UNy1mhXrM PtDqzcfBsQC/4wnf9XffaXNZbGA0ZPDy5MkhjkyU+d0RYKPVF7XLg2JUIJSCedI= X-Received: by 2002:a5d:69c4:0:b0:360:85d0:3c86 with SMTP id ffacd0b85a97d-36085d03d20mr176336f8f.6.1718350085366; Fri, 14 Jun 2024 00:28:05 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-36075104b2esm3535773f8f.101.2024.06.14.00.28.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:28:04 -0700 (PDT) From: Alexandre Mergnat Date: Fri, 14 Jun 2024 09:27:46 +0200 Subject: [PATCH RESEND 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-54827318b453@baylibre.com> References: <20240226-audio-i350-v5-0-54827318b453@baylibre.com> In-Reply-To: <20240226-audio-i350-v5-0-54827318b453@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+MdRFAcsmYgBma/D+I/oKQQm6/M7ruRFFizPFoZBPidH22eCRZMP0 T2UcWeOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZmvw/gAKCRArRkmdfjHURdZND/ 4ylZ5IPjy/OzFOUB5PNaiFxsROAj8BRd6HcqJlZ/2ZUC2mfkXuXbBugwiP1VFhFowX7vkMBEs+NHA5 VXIIsNhRUhKOslkiex4Olf5lQLp5QC8SXUTK3mESQ4I05ZRkCeunC6AfovEfD1iBxTVVdRoFXWK1Pm 9QPu8EOCgbTiYrdcCKvSVbQ5ptTP8gUJE3b+R7ZnCxpXjUYnm/1g9DueJdCyC8fkNLML9b3oRKimpC E8UDv4drqCLmiQoITi5kAzkyGGIMOQpvHmw4JEopQZw93Nr/HtQ9gyAUy49GlqeSQydzINPTXnRbn0 //VyP+7paab5PWOpt+Mfw/LZxWLzX56r0q96ZUjCt3rsbv0UeBKDNQ1qLXWHJ9Ow3hfv7MV3E7/+6V w3RqXLQ5Vq5ePUAY0Zgt+DJexy37wmkm8cH7wseXvQ6Am4X+XErXOd27NazXPKa+t3PuwF8umW1SRz R8PiEHvn7pnhRqtKY20Ixabqz2aI1gBIePkL6+q3KdRgXf8AumZ0VQ/JwGMEe23sdtsxsF6oAK8wct ubSpR4kJDobcgaLpB+CA11yhBhwdIdNnuLbWzhnPEd0+bgftmcmch5tFsBW+JvnHblWC6GCDUZRcCi bv70RD0njpP+E9yRWCpE8nhql4GtPTc0J/f4GPTaEuhe6iso3d09S5tKtYaw== 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