Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp123610lqg; Fri, 26 Apr 2024 10:23:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWohyQ+TAmVSRpFavDKyfgj2u4PwJA0EXrWljrDQVfDULbwGQp2qRce25CyCrcMhITTmCPD7bsOM2YMLQ73BVU7tDtLxOrh6gSonjC04g== X-Google-Smtp-Source: AGHT+IGYYh3hLhj4oPQKc9oGZ8pqX8teWVE9amm+hkYIcRISVqn1uIWBE8naczwGACha6dFWDo1n X-Received: by 2002:a05:6402:1b03:b0:572:5f8c:4e with SMTP id by3-20020a0564021b0300b005725f8c004emr907619edb.36.1714152232934; Fri, 26 Apr 2024 10:23:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714152232; cv=pass; d=google.com; s=arc-20160816; b=MQSawoAhk50AjtqAVTT7+8ZUC0BkLKNRTfGawcZ8a9sp7KaOX6Cm8h+SvbiXB4WVBT zuySHbUTjc307G7/s485au9mXMnQGX8nHH/CvFmoH03SiVlj/H1Jln+YsR+a1fqs/gkM IE4O6D+aPIM4ylVcUTmGSuPPYoTXtUzoRnlPeSdIhe6jf9EGIQ69JCXMAxxvNKHF6xnR tT713x3ZMD3k/Mr/eUDQdFSW7WJSMsjJ7FwVRMEoCTRlu6kGAskS53AqGCP/I6nO58gZ xPwcgu3wJyGnkk6YHeVPwXQluQBnq+fAevjxZTScZThxE0OEHgqAMwNNLq9WIxASoFLy aHNw== 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=4TU43dOQH6UMfjQS6G859NG2HaMeSGxyH5T3QTnjRnY=; fh=YjqwnkKA5HgjnKaQAYqgvIi3eud3naKZwvXYMOlgP3E=; b=ShM+6Ue1HXX2F92xsLfXbTaTZfCsySnKvf7O3mpqhrwYqvXmwixZpipX05eyD6a59p LaWM+6aFdCh5Q4+u77sOvmLtQvnqNZic3qQulq2TaOO5pBo8VvcClUsHFNky8KsyNM4k YMvHzY/p6BuatYmcmAOSPu1fUKGJWdfHsuhM9upjt4fkdsdsBcd/W5UI/WRBMgg2Uq3h 5HA/yA/hry1WHvIip+0D0oWDNPoWizTNRUnq8GLWX8fotCXrRog9UUIyfplF6kNXfCBb 1qWwe+mMvCz4wTYw/3TEfkVaorp0m80RDakrxZqwkC6JST21jam0VdxE6r412iKOdo6G Y/Qg==; 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=E8WmN+kh; 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-160465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160465-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q11-20020a50c34b000000b00572301d0a7csi3752872edb.311.2024.04.26.10.23.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 10:23:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=E8WmN+kh; 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-160465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160465-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7E7B91F245EB for ; Fri, 26 Apr 2024 17:23:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9E5E16F829; Fri, 26 Apr 2024 17:22:44 +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="E8WmN+kh" Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 BD41016DEA6 for ; Fri, 26 Apr 2024 17:22:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714152163; cv=none; b=bQSowScRftNYu4psRmhFU0O8tkqSmtymig1hJUpJqYAVs2yuEr4wk0Gtd2ppbC3Y11uXd5OZHcUWvFLs5DIlxJ//zhhDMXbvhil/nRSQp2KBoUQnRDnVBSEJQiMH2g/gt6ygQ/RTrwrSvqW4BQIVVHzlRg9xE3ndxreaJNrCWY4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714152163; c=relaxed/simple; bh=RfcGWh4J4Ru+vCmoaCssck50D44laU1fHfw1FIxcYyA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dlAp6eMI3wyLEMH/GKrEk5uR6/YKzKUOs+cMxz3ETFd/L/1i+R1B7iV8Zcp8XfnHvn59FET+SNc2NHnMHr7n60d1NOxHtCySlmnU4XeMJO2kj3nRy1r424VY7IdnMIqnW3kdrYURFgcQsbjUyhihcjRdCj6WbChZiFsyfGIxlDQ= 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=E8WmN+kh; arc=none smtp.client-ip=209.85.218.54 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-ej1-f54.google.com with SMTP id a640c23a62f3a-a58c09e2187so218576066b.3 for ; Fri, 26 Apr 2024 10:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1714152160; x=1714756960; 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=4TU43dOQH6UMfjQS6G859NG2HaMeSGxyH5T3QTnjRnY=; b=E8WmN+kh3Bj6tIRwJwM7OrEBlMuDdceV8F30yM1I8FqOmmczAEtSe1tqGR7HI8iQ+w YzoM3eBLPRt0xh82qFwCBn/M+FAYc8eYwWL4H9Dl8bZRT0Alr6z1k8CmQo720WdH+vPg a+LBiEtqd8FFj0E6SMcpSV8v2nbCnKsJCxRxU/yZ/t04oS+GgzXkoQqTHkH4SXDsGe/1 0aaesHhQ6CYTcPuPijSM06OM1f279/TBPeMrl+ZtdYoB+m2qGNcMRIPOwoBNJnmP83hx JE1n8S2PgONmtOh7YmzO/a8M/ChCJHGfCw+SjqAPEP/Ad8GHTtWhfEhSoNV6vQQJbtmn Bh4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714152160; x=1714756960; 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=4TU43dOQH6UMfjQS6G859NG2HaMeSGxyH5T3QTnjRnY=; b=aaFwuyMUGRnwUfMTUukth3zN8hw9MszmHvmaxCCiYXrfVU34gYfgzD5FCZYeyHUGIq pfIQMWKnQSj7icu7ABnTF7XMVOqngROKwKkQUXEWd5VBOb+3li9LDQVjW3ZDavGqTOHK Y5rf15k/uc8y5731wf060uoR/BP1kF0sTqdVgftY+Odck9pTxcSxObY1OIWXgqXBLODv Nql3fJxKZY16aalvHT+A+f0pOSN1aVTBDYA8L8St5AZ7IGgXPSdt42HREX4T862pVQHR nCHXX8o95vPMaopOgjX5yqlZ+UtRCHORZ/LTn93Xb5AkWGcy9NpiqHDAm6jGwR2vuMLK 8HyA== X-Forwarded-Encrypted: i=1; AJvYcCW9JWCQh9dMKri9xpA578JI9+IllY+E3KbhpiTY3RaKWECzXvr6Xn0FrW/nMt0SMSbIbqnIKxXX7QUFsuHuGtkJ9j18KCJOjkHpmIt8 X-Gm-Message-State: AOJu0YwuF+JF8Tg4u4WQ76kL6ldWZJkRaFsGV3PpEEwiBKv9mpYm9nVZ eXQeI8nN3AdUIV+IX/jaqiLd+U5O4MQeWBWMl6iIwlq+ZrVIrjhIpqoDgaKZf0A= X-Received: by 2002:a17:906:c288:b0:a58:7283:f587 with SMTP id r8-20020a170906c28800b00a587283f587mr2140675ejz.33.1714152159933; Fri, 26 Apr 2024 10:22:39 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id ot15-20020a170906cccf00b00a5239720044sm10763363ejb.8.2024.04.26.10.22.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 10:22:39 -0700 (PDT) From: Alexandre Mergnat Date: Fri, 26 Apr 2024 19:22:31 +0200 Subject: [PATCH v4 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-v4-2-082b22186d4c@baylibre.com> References: <20240226-audio-i350-v4-0-082b22186d4c@baylibre.com> In-Reply-To: <20240226-audio-i350-v4-0-082b22186d4c@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=3263; i=amergnat@baylibre.com; h=from:subject:message-id; bh=RfcGWh4J4Ru+vCmoaCssck50D44laU1fHfw1FIxcYyA=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBmK+LaS/TeL9lgDhsOUZkB6fGKdDfM1W9MWsbPfEMi JmdJbfKJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZivi2gAKCRArRkmdfjHURUymEA CNNp4DesNUeM0GUuDt/1G0pbD4jz4uHrL7JeY0bqC+GS59MxGwPSYDsmHoHACfSv4Auy7Mr6AI/lCZ eeXcrfAg3jGsLq5nDOLFW2YyqcKs2qvOvG9RpMGF1E/wmT67od51GEjhsbpTb36vjAi0fxcm3BKCm+ DpW18Cq1LhI9Y9ZU66I3WaBcrXlVHRnkEIZeB5yop2GKPBii9g335yPsuoh22bIBH0raZGWiSiqAwd hKwCfsgHJtLO5wzTELCojIwEEn4N06TOk5GNSaihM875N7w1zaVYNte+wgcnALZJdRDXkbHL9aeQ19 zJ8793FsDW8jCjldeIdQO2LKbFejGNT7FUSJU3pKTZUh0M9pQjxi/9mk3OeBTVdCy1+fiauYHLWcwl xDZzjUtyxaykzBuf3jD1/VWlOGLa2gj6Ks5F7CzvMRM58kzZIgqlxPEG0+3hlaHXLSguDTThAfAxdb /JzwzQRxVhd4RyTRjGlFjWaati4BOFMtSpzeTn4wWF8y0xig/3+US5yuIVRD3c73+AxRGQ1dWmsXH1 nRIIcapVKL3KCjh+OlxcOV5kON4yPMVq0Dm2sPXnyhlWYq8I5oBQ8pM9zMSDrRXbSpiw0XvKYR73M3 FnWVbmFMca+bUJ5NXumQ/E9Edev7275CsD60sYOS7BYPnfZ/wvs1w8kOqAzg== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Add soundcard bindings for the MT8365 SoC with the MT6357 audio codec. 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