Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp638821lqs; Fri, 14 Jun 2024 00:35:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCZ5ayYn+CEfzxpSTY6CKlaI2QBjTap2q9JJuz402sRqfv6mPRzwx/kxF3E/H6Q9wnooyrChNHrxF6pZfiBkLHpf3PlamDI67rjUFj3A== X-Google-Smtp-Source: AGHT+IFeooT5dC0CqAT8uaik517CPjP5X+bjG/5OC9wWgOHd0CDHyDQEa1vChN+EDdZ8+BBsW/oz X-Received: by 2002:a17:90b:1c88:b0:2bd:d67b:6bf3 with SMTP id 98e67ed59e1d1-2c4bda1b1cdmr7229093a91.20.1718350499783; Fri, 14 Jun 2024 00:34:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718350499; cv=pass; d=google.com; s=arc-20160816; b=avRSJHJr6zrjE2FGM21Aep40LiuPox1CBlOgEZhTfpg2F2d4XXhk0Zfw05LLG4CpUa MEpo/u7HO8cLgmg/bFgT3Mj4+njTwZ8sCsBqEIhc7ArDiZ6maY4XROPbnmA/JM2n29yo 7Y/NzvCPZpQCZX32uC/HaOaQxZzTOVYFE15WiC2+3ncuppbJre6T4pejQ3jCeRpc0H4N oW75yfUiyLGmWSXx+C28jPTu8jbMcZB1wpWPuuloCDfNwGPFvl5zYSAe6oPNwGRqtqum rgfC9Ix4rMoFl6dfbcZB+hWeNnRsKi8zOnlJUDREwOAd0NltTcc1pepDxLsqrlM95ipL c4tg== 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=Wcqbhlzk69tSoPzbWxkhR+N5g5aDso2+zkY/xdikbcA=; fh=pX7ezdbnOxG2CEl5p7E4ysDejto6b3R/SUba4mtXFew=; b=xci1p1z9j1cszdc2Pt4UtDCeXqsqtHkh8AfkddtxIwgtyPQDyYfEm+XcY9cCdOI/6C 6A09fT3eXFUqRAjYqK4jZsSyRsCI8Ui7l5Nq+zvr5fAec1CSKJWA8iOwyxkSUiYGF64l 2JA1L9ocW6K4qYcpuPdFKo9xhY4c/U+3/xOWfJmvH6fVI1I3b+vLqQOnuAKWJRzF6tes N9gcNonXS70oLV2truXZDfZJwOL42Vc5YxoG5SHVSZbqzd0NDaK9bt5JwLgZLzHdqO3q 872pAPtMSneIGF8U8FdL/8iAzOqEOHrAfysnBjsmnv4KczjYKg25iV9g2pAnAN0yrAjF XloA==; 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=CX3hg3NM; 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-214450-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214450-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 98e67ed59e1d1-2c4a75df0b9si5398467a91.24.2024.06.14.00.34.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:34:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214450-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=CX3hg3NM; 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-214450-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214450-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 CBE03B254B6 for ; Fri, 14 Jun 2024 07:28:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C26671836E1; Fri, 14 Jun 2024 07:28:08 +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="CX3hg3NM" Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 9882A14883F for ; Fri, 14 Jun 2024 07:28:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718350087; cv=none; b=nTef6i4rOPfRRU1gY2kp8bdqgB4se5RrbWnsaNhwzHfq6t+QaNT7Bn+Ee2ShOteq3hi9r9sr58dqFvD0fFR52ElroUaGkM3hsSyh4HL8bAVTtu27b0VXFn5KZGP1EG56DfRrrmjPAaZq20qUs8buazfph2e1jHVKGtBmKTnWP+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718350087; c=relaxed/simple; bh=cKEFvnur0r9wK70qRsiyMlYMUWCy0Z2MhPoP9t2s+R8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FxEG1iOduIgLqQPJm4Sj7nwbruhegvyMIDmFY+zDqgPjrLkfZOhfIMpcDVCAmlgaI6z+B1h+w/IbUBcNxVAenju76TJSM8tD/nWsL62xbJrXu509kFjauWEZZNO7jdLQPx9KmvHtcnXQFC8vvWsNDHK4rZIdWoFEBrsMj0p6hrc= 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=CX3hg3NM; arc=none smtp.client-ip=209.85.221.48 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-f48.google.com with SMTP id ffacd0b85a97d-35f2d723ef0so1689492f8f.1 for ; Fri, 14 Jun 2024 00:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1718350084; x=1718954884; 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=Wcqbhlzk69tSoPzbWxkhR+N5g5aDso2+zkY/xdikbcA=; b=CX3hg3NMBXKa5o1ULYH/8MT84xyNy2XTAtjJ3OBnoWdKpMKDIiIlt6xe6Ma/d8RJkx tpImWBVtK/LeADI+smZsz8Rp+QdqbG9talYHHhBFzWDuw3ocuf81YFslnNHFqdCzoWLg UulSSpzGIVdpFOhGfi8eMgnNVBk38BTS2BBDBQYLcrGmfBIvJRNdBeURghkbcehujU11 lazxkFmXO55QYzJYnucTuO84CNakdDYsbj9fp2dIiWaKIGLTnhw+2Kx/zgPsookHmFaF A1wY7fE2Y2+pE2ndvSuja9zLQryD13dl5Sciteop99lV1uOO0mcorwIEDiCdpq5CfXyg MeWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718350084; x=1718954884; 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=Wcqbhlzk69tSoPzbWxkhR+N5g5aDso2+zkY/xdikbcA=; b=P95LvGdwIcQmQIymJ0pET8+NHneD5HydwxNaW7M4xcCUgSjruAVpqR9HTosYrtmPnj RMTiivPTa1EeFxxgBQA2aolFbCCTnFiuRAJAHQG0FZ1ToO8OBogLdfQ+Jo7eKpPGTWmz zx6D5riFi1Nv9NxPUEElKT3w310XkYucvrX12blwg5RwylSe+eYeyuOYfckc/r67qEc6 UPDsAGtINtvzrjuaG/Gt7IiFaFVbfMf1yrdJYASvCYtnerMkwdqZMLuub5yxkvM351YY BQ17bS0/HeQ8ep1Bxq0kTsfzbtTqo/yqIi5hnkWNvK9ZLwDDeXD01+UUUG+pop2CtN7e zNWA== X-Forwarded-Encrypted: i=1; AJvYcCUFmOVXRg8w029Poffy+mWZJ/3Hztml1a2cuCvQGXyJXQ30saH/Lu/8dq/tdGgcemPDvsffx1JLiFMtTnKt9CzLHfN/8ZMKKa9246wm X-Gm-Message-State: AOJu0YyhyfljIxbrpelZwkvSTbJeEL0yR1u9c/f9KqPeJBiFyvUGquTd y6WD76fxbfAHtgpCxi4ftYQT5kNGtgZMv4gCestwYnU7lF5lM/YVXJWuu9dVyy4= X-Received: by 2002:a5d:4d43:0:b0:360:85cd:15d2 with SMTP id ffacd0b85a97d-36085cd16f1mr192260f8f.10.1718350083878; Fri, 14 Jun 2024 00:28:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:28:03 -0700 (PDT) From: Alexandre Mergnat Date: Fri, 14 Jun 2024 09:27:45 +0200 Subject: [PATCH RESEND v5 02/16] ASoC: dt-bindings: mediatek,mt8365-mt6357: Add audio sound card 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-v5-2-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 , Krzysztof Kozlowski X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3330; i=amergnat@baylibre.com; h=from:subject:message-id; bh=cKEFvnur0r9wK70qRsiyMlYMUWCy0Z2MhPoP9t2s+R8=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBma/D+nYv/EDAhy7H3m6RJwWmdHTceswfrWziDe14m yVtbhD6JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZmvw/gAKCRArRkmdfjHURYXjD/ 9Ieu4k836F7MKBxZp/GH6IhoeeM1ScLClCw98D55FAjs2uE++c4tkQxd7j8s6vCf7baH4Lx7C7yUBB +kvTzZsC/KUmj+U7LgNfIfFOrAgbRGeV9Zfi//swaATwAP2rg19KQHp0M/tAe8OYnXQrozYM2lcjsy rC0bOMFXSB020FkuEj6dzf97RlMhUZDrVK0a9KOLHlFyGfc2I+ZkNskoJr0c/i3T1UYGOhHc20euTF pMterSUcfV7Z1XsktI3FXVH98tUZe+vPQoYZiAWZ/MHSn/L4k6tIkZvmVAI4PaUv+rFpZWO/NI+Vxi tVccXoWKqyghEwH7h4mLxj1SisXk47uuUYuEcDUWHWEYxX61mqNXYS7W1bPm5qDcch6o0E5enT2iEe PJAKH79/zsAD5J8R+p0ZS8y4rNy9H8bdUInH3C5Fk959FAQyy1384QjeBPcIAzHSCpkmB/jMrsKs8H MMMjmvsKCu6qL/0BCAUKAS925rHQam8jkUMS5QN/KC1Ab9l9EQLlRsMntR3hf+n8Maxg1k+ih1Njzp 7LNoVRnCYdbejWyCt2PtnGeCgNV0QxgmKRUF8NucRFlmhRgk0eJfSMGvjZjeCoj1nQK+7ZgT6ND66I qGm4dfthK4dlv6jg0+IgPREH/Xgc0YYQzLjdZ2BR1MxwANdORr+6obyk/a8w== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Add soundcard bindings for the MT8365 SoC with the MT6357 audio codec. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Alexandre Mergnat --- .../bindings/sound/mediatek,mt8365-mt6357.yaml | 107 +++++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt8365-mt6357.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt8365-mt6357.yaml new file mode 100644 index 000000000000..f68883da1bb8 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/mediatek,mt8365-mt6357.yaml @@ -0,0 +1,107 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mediatek,mt8365-mt6357.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek MT8365 ASoC sound card + +maintainers: + - Alexandre Mergnat + +properties: + compatible: + const: mediatek,mt8365-mt6357 + + pinctrl-names: + minItems: 1 + items: + - const: default + - const: dmic + - const: miso_off + - const: miso_on + - const: mosi_off + - const: mosi_on + + mediatek,platform: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of MT8365 ASoC platform. + +patternProperties: + "^dai-link-[0-9]+$": + type: object + description: + Container for dai-link level properties and CODEC sub-nodes. + + properties: + codec: + type: object + description: Holds subnode which indicates codec dai. + + properties: + sound-dai: + maxItems: 1 + description: phandle of the codec DAI + + additionalProperties: false + + link-name: + description: Indicates dai-link name and PCM stream name + enum: + - I2S_IN_BE + - I2S_OUT_BE + - PCM1_BE + - PDM1_BE + - PDM2_BE + - PDM3_BE + - PDM4_BE + - SPDIF_IN_BE + - SPDIF_OUT_BE + - TDM_IN_BE + - TDM_OUT_BE + + sound-dai: + maxItems: 1 + description: phandle of the CPU DAI + + required: + - link-name + - sound-dai + + additionalProperties: false + +required: + - compatible + - pinctrl-names + - mediatek,platform + +additionalProperties: false + +examples: + - | + sound { + compatible = "mediatek,mt8365-mt6357"; + pinctrl-names = "default", + "dmic", + "miso_off", + "miso_on", + "mosi_off", + "mosi_on"; + pinctrl-0 = <&aud_default_pins>; + pinctrl-1 = <&aud_dmic_pins>; + pinctrl-2 = <&aud_miso_off_pins>; + pinctrl-3 = <&aud_miso_on_pins>; + pinctrl-4 = <&aud_mosi_off_pins>; + pinctrl-5 = <&aud_mosi_on_pins>; + mediatek,platform = <&afe>; + + /* hdmi interface */ + dai-link-0 { + link-name = "I2S_OUT_BE"; + sound-dai = <&afe>; + + codec { + sound-dai = <&it66121hdmitx>; + }; + }; + }; -- 2.25.1