Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1878569lqe; Tue, 9 Apr 2024 03:15:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJDRuOksJSvefrdS3/PJV3seD5me71fmtic/vTu7hUd2WtKqtoSnglBsME1tmzXUZh46/liRw4Ferlhwy4KKbSCEHhUaDrYh7QVC+WTw== X-Google-Smtp-Source: AGHT+IEQlbDdysQqfRvqn3ehwQKF0iXbRSKZp00DI4AyTyGJT/3nOangd2lvbp59ITSng775ijHU X-Received: by 2002:a0d:d501:0:b0:611:37bc:4742 with SMTP id x1-20020a0dd501000000b0061137bc4742mr9052180ywd.5.1712657722963; Tue, 09 Apr 2024 03:15:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712657722; cv=pass; d=google.com; s=arc-20160816; b=Rk+ADWw+Sb+XzaL0qmvJqvOwvvwxft6fmB813VxpKxomtn5cnDHKv2QFpjqOdJvw+r yBR7NFOLyNaOBvBZ/1hlLORaWB0r7OjgTqupSFdvwPXkDJ1Tn9yplGrocyGnunHfOwwp QJS9vPYmo2wTP1IRsnpLoAnVsIAKr9mFlhiF4SHMskbKciTKRfXbFWRwv6XHBm1DTwXN 7f5bVIaKwZCWfvlWQmpHu4rxx2rV5KiDKiEGzeBk4H0w/0+lGAr5cPrn09F7VLkQp0DI AY3vI9NFOwbMbIxU+Um5GI4699o1Prh86R4GjZ1dmrcY+5ny2FazskXvYlYPzhYbvZ7c 4ADA== 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=ORjGCzH/z+0lccA7K6wZO54EFsOktZ+W05TnMMd8cIg=; fh=kFM8FBwAermDHvLA2JoApgZDa1JuVWxfZNSqYkOZNkc=; b=zStonUieoWzTuL/J3sDqzk9n1VJ1A5YtC4FA2EuhafaJRvlJJMfZ0nrov6LSxB2JDM m9vPyEQUsuTdB3caaY4Wq7W/SkIAx1cLqM70NQUQ/oKwucfL2wn/CEZkth8Yr/eXA1gs /GPlXwgeqRnlnBXqijqAB2ormY3UHJT8+cqKUXWETH0MNOVfO6iwsJy7bYKus5Mid75u nsU8wB0Qondj9iFT69polkKFVM7AWOOdoS3BcVpB9yQeNga1SWNLWJHqquNb2rGZKfUk mHjQ0/shPXGR85vvHfHgZJPTyo6JVQAYPkhoF0lYWhY+Cgw05CUC3MYV8QsKYVElHwan EfjA==; 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="oA8Y/Hx9"; 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-136641-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136641-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m6-20020a05622a118600b0043466716c89si8948885qtk.581.2024.04.09.03.15.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 03:15:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136641-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=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b="oA8Y/Hx9"; 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-136641-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136641-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9ECAA1C21726 for ; Tue, 9 Apr 2024 10:15:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C74812BE8B; Tue, 9 Apr 2024 10:13:51 +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="oA8Y/Hx9" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 4D1E683A08 for ; Tue, 9 Apr 2024 10:13:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712657630; cv=none; b=NeHe/4BX1AUDNA51RjDpW/ZRjiPCclONvnCPSOGmMq/EpCJfBKx4MoEEI69zqx/ikB0xeiM4rzuZfoh119ntnuHuMuP0qtFwDpValfPWXEb0iuvXCgLf5LCxpCKnUgKFvgqtWbvkYFGLIW4G0rR8WV0IMeKbOFpNa5f27dgN53A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712657630; c=relaxed/simple; bh=ufC03TRzyDk5YR8DEBKesMFjVbHSKso6JjQ31AKWDaQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sOHTM5lddM5NLAAuqQBL7auB/cm3P++IdSDpRzZWBQwWOYXBs5NTMgon46S7SVdwi8o+ItW3DW6/omVytZSW4bCEbxeqy1rW0d5Ml2qD5ZkousI/73Qqb++1/3rjzu1M92lxERf9uhm2q9HoeC8p9Nx9LKLD/51a49A1DD4TBYE= 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=oA8Y/Hx9; arc=none smtp.client-ip=209.85.128.42 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-wm1-f42.google.com with SMTP id 5b1f17b1804b1-41663330f9dso13870845e9.2 for ; Tue, 09 Apr 2024 03:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1712657626; x=1713262426; 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=ORjGCzH/z+0lccA7K6wZO54EFsOktZ+W05TnMMd8cIg=; b=oA8Y/Hx9QKMALa2bhCr0Kj7jQwwU6UYu51peMOIC5lrTeuruE1f48Pw0CGGs5DruJB 09BnYbc3BRTC+iudwZx9SLxhre4m9mcJZSNfj+OJcj8bQLOkW6tWjeejCaRX4r8uX/Xp YqBrqeIpHVihNRsI/tDN3R6WT7v7GygKJcXNSNr2k7HaJTsAuN5raPNqZY9ypkOKe72I 6YlfKOJD3IiElIhHKJXUkyONnvMh+zkcIPolYs6tmOtqFzyfmK6mAjpDPEn3VFYJAvlq ToTWqrQ+HUxjV8XYUSkgOm1KTfS0/PybtboKZyFkz+pw9KJvdNzpNVD5QM9hEhOv3Fa2 Vo1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712657626; x=1713262426; 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=ORjGCzH/z+0lccA7K6wZO54EFsOktZ+W05TnMMd8cIg=; b=hIu8wCV0AeV2suQ8s3t9L6zKvJSXWaoyeR9o9+LqDIFYLHhCjyUXt/wlkgB6d18LyD dEdXaopHsLyu+whfZ5ZBETLUebmXQcN22PwyQg8bziUfvU5gnWIFwEYrA8xhGJ4vJo13 sMk+On2rtz21jXV04FE6vXw+fhMP06ddEVIH2ooOrVPYcahO0ZQ/7DI2uI7Cw7OxSkgA sCiFDvapDErXrw+fAwQGJhVRuw2SCOq6quPUXGNFfm5fnLexhsAgtJJe9d/UhLWdmRnS bWrJrj7ieDW1Xmy2PZPB18lv1S+0j0BQ/wTYlLfYNLN6eaXRP2uy5CO4SFi5VnpCy3Cu ZLoA== X-Forwarded-Encrypted: i=1; AJvYcCVc8gg2Co0DmcGfEFg0RAoJjMlelJCxvjGXrnAQDZaw4zPOZ4poVExEiKQpW96e9SSE63fA42N+LydALUkwSAadOLrYMcY2Em4u3/IF X-Gm-Message-State: AOJu0YwwD/8VYUjEs5jgxlttTcQzM+fRXUnX6H4UCIxg/jLn7Z+qqgHP NXzPBv1qiF7+/p5As5W6MEdnEYLjkBWal+JlvjcXDnCIpwgENBMrGOxtP5hyKrZHVHZK98MOvW3 i+g8= X-Received: by 2002:a05:600c:350c:b0:416:667d:4691 with SMTP id h12-20020a05600c350c00b00416667d4691mr4530196wmq.25.1712657626644; Tue, 09 Apr 2024 03:13:46 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id r7-20020a05600c458700b00416b035c2d8sm1124149wmo.3.2024.04.09.03.13.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 03:13:46 -0700 (PDT) From: Alexandre Mergnat Date: Tue, 09 Apr 2024 12:13:25 +0200 Subject: [PATCH v2 04/18] ASoC: dt-bindings: mt6357: Add audio codec document 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-v2-4-3043d483de0d@baylibre.com> References: <20240226-audio-i350-v2-0-3043d483de0d@baylibre.com> In-Reply-To: <20240226-audio-i350-v2-0-3043d483de0d@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 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=2299; i=amergnat@baylibre.com; h=from:subject:message-id; bh=ufC03TRzyDk5YR8DEBKesMFjVbHSKso6JjQ31AKWDaQ=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBmFRTTFKmit1LRHBjD3sVBNy1AD+EFSPxUwuPh5hBL llo/QJCJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZhUU0wAKCRArRkmdfjHURRLrD/ 0UItyg9zwrmDQpm/gbTeRtQNNsOjxAl8PQIWG8EqnsHgcHKNZrT5vEhV+q6JscmsLBfKi1MnE3f3HX t2UyIjSKZTzyYdGRsCJEqMicDSryyY7IckznV0K7tVh8PNPNcCAtcS5y0BswhRRY/MsqEscAGm4X9Q 0xfJfWpCXqVnfEz35io+YGQYh1pNdw+Sua5QmPXzWAJrd2ZMadxK6f6rjLEVPTjIrq16VYfEJuIlq3 PPr/0cJx5AYi/70kI6NW1qds/TkjhJHMhcyVzG0yI6f2QGmhlru4byON2sRKKnoy/SKeqI7UJxW2bd ssbzSx4dxbtlzGwy0bFGjL9X5m3EN4oYAP5UTd5xR8pyG16Orv+/tLJaLX4dFEzkqtdCZXgnlY9Gki B4ohzq/yeLtxcLfZQwiIegbQWxTVOAxHIP+Q4uPLxCYD+FR/ZHVlVEbJ6QCmpK+sOGRzqiBv0kqY1C MUT1f6xaRnTvjkx3EfDKaXGUUV1sv71+gHTlrMz7q3gKyVaRHH6zYSWfIRD2PrzRfiZ66J5SU7IMxc FyKZHs9k/OWQ0E5jN0npkOcn0mqcrZ6iFWA1qK6xhyHu+61Xa6DKEkM6YcMLUQYwtP3/6o+JsQYnuN 8a4gQu4guSBQODpZf9+jzZFOd1nf7gCoacIRWppbgdHhnfS9tvBXBVOcVI/A== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Add MT8365 audio codec bindings to set required and optional voltage properties between the codec and the board. The properties are: - phandle of the requiered power supply. - Setup of microphone bias voltage. - Setup of the speaker pin pull-down. Signed-off-by: Alexandre Mergnat --- .../devicetree/bindings/sound/mt6357.yaml | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/mt6357.yaml b/Documentation/devicetree/bindings/sound/mt6357.yaml new file mode 100644 index 000000000000..f532a9e7dff5 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/mt6357.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mt6357.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek MT6357 Codec + +maintainers: + - Alexandre Mergnat + +description: | + This is the required and optional voltage properties for this subdevice. + The communication between MT6357 and SoC is through Mediatek PMIC wrapper. + For more detail, please visit Mediatek PMIC wrapper documentation. + Must be a child node of PMIC wrapper. + +properties: + vaud28-supply: + $ref: /schemas/types.yaml#/definitions/phandle + description: 2.8 volt supply for the audio codec + + 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 + +required: + - vaud28-supply + +additionalProperties: false + +examples: + - | + codec { + vaud28-supply = <&mt6357_vaud28_reg>; + mediatek,micbias0-microvolt = <1900000>; + mediatek,micbias1-microvolt = <1700000>; + }; + +... -- 2.25.1