From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 61845C87FCB for ; Fri, 1 Aug 2025 11:34:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Ma6CVEd5vFlkdi688lTgYneNuc7eywWV/AqxBa17UwM=; b=QURkxQKGivviVvChW/yjYi6/9P BN7loZ4EsjGrWwOEpLhtJkS5pWyzv1XleIA36dZqXfMMrEE7/Gvb3H2aHY+VM3W0rGDs3DbjZHu1y 4Ryl2Fkh7pY3t26sFM4aVdSyxRzzOXVeawgEVhh2qfyHdo52GcpUDR06k+J7xjZHjJ76+oIdoQunL Swra06pLU+KFTba/QHDWg6EFdugKtuLm9PqZNlq/taSEDVmA5Xew3KnWyrXeJCtq6sx29+SAetUfn 1gZwARpNKAZHYrr4dmP3sJi83oVQZzQYKeAVv54jDUbB4XkVLjcihN2r2o8OfX0dkP2sggb3PfBDR 77su0CPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uho1Q-00000005ZQR-3jQ7; Fri, 01 Aug 2025 11:34:00 +0000 Received: from bali.collaboradmins.com ([148.251.105.195]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uhnm9-00000005XIl-2ihS; Fri, 01 Aug 2025 11:18:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1754047092; bh=wgQXtFlBffsJMdtzb8h8rV8iabe3a1/i/jY6Gh4CFGw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Uj/tFHGMsRwfP8KBREkN1pi1C+bzKBX8JOgZNVAD2F/11IYg8ZuwApRWgZHAjFe7J 01d9r7FHQ9T3mImASP+UepU2VyntyZMjiPWpJJsDrwn2yzrW5z3mf6WkDJCiYNb1nQ KesXhTZvyTNmk/7Jwxu089JHpBift2XWiDdSQSk9271/KAUZrb5Ldb2+Q5MjcHJCth vghGnidKKedCb6CHex2iEEVLrchOQB8Vht9FbRGZvlZxOksXFw83NhAo3zTNU64w/D J6o3OJbLuMAQRFx8DhuneWY8Vhx/TxJqRs8ANHjsWSHowibcBY8FracucTV8Qwjq60 05FTCvHhVREgQ== Received: from 2a01cb0892f2d600c8f85cf092d4af51.ipv6.abo.wanadoo.fr (2a01cb0892f2d600c8f85cF092d4af51.ipv6.abo.wanadoo.fr [IPv6:2a01:cb08:92f2:d600:c8f8:5cf0:92d4:af51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jmassot) by bali.collaboradmins.com (Postfix) with ESMTPSA id 2280B17E129E; Fri, 1 Aug 2025 13:18:11 +0200 (CEST) From: Julien Massot Date: Fri, 01 Aug 2025 13:18:07 +0200 Subject: [PATCH 5/9] dt-bindings: sound: Convert MT8183 DA7219 sound card bindings to YAML MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250801-mtk-dtb-warnings-v1-5-6ba4e432427b@collabora.com> References: <20250801-mtk-dtb-warnings-v1-0-6ba4e432427b@collabora.com> In-Reply-To: <20250801-mtk-dtb-warnings-v1-0-6ba4e432427b@collabora.com> To: kernel@collabora.com, Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Ikjoon Jang , Enric Balletbo i Serra , Chen-Yu Tsai , Weiyi Lu , Eugen Hristev , Liam Girdwood , Mark Brown , Julien Massot , Sean Wang , Linus Walleij Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-sound@vger.kernel.org, linux-gpio@vger.kernel.org, Julien Massot X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250801_041813_840869_9D0D8137 X-CRM114-Status: GOOD ( 14.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the Device Tree binding for MT8183-based boards using the DA7219 headset codec and optional MAX98357, RT1015 or RT1015P speaker amplifiers from the legacy .txt format to YAML schema. This improves binding validation and removes DT schema warnings for boards using these audio components. Signed-off-by: Julien Massot --- .../bindings/sound/mt8183-da7219-max98357.txt | 21 ---------- .../devicetree/bindings/sound/mt8183-da7219.yaml | 49 ++++++++++++++++++++++ 2 files changed, 49 insertions(+), 21 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/mt8183-da7219-max98357.txt b/Documentation/devicetree/bindings/sound/mt8183-da7219-max98357.txt deleted file mode 100644 index f276dfc74b4654deb0867f830e17a92638b39e23..0000000000000000000000000000000000000000 --- a/Documentation/devicetree/bindings/sound/mt8183-da7219-max98357.txt +++ /dev/null @@ -1,21 +0,0 @@ -MT8183 with MT6358, DA7219, MAX98357, and RT1015 CODECS - -Required properties: -- compatible : "mediatek,mt8183_da7219_max98357" for MAX98357A codec - "mediatek,mt8183_da7219_rt1015" for RT1015 codec - "mediatek,mt8183_da7219_rt1015p" for RT1015P codec -- mediatek,headset-codec: the phandles of da7219 codecs -- mediatek,platform: the phandle of MT8183 ASoC platform - -Optional properties: -- mediatek,hdmi-codec: the phandles of HDMI codec - -Example: - - sound { - compatible = "mediatek,mt8183_da7219_max98357"; - mediatek,headset-codec = <&da7219>; - mediatek,hdmi-codec = <&it6505dptx>; - mediatek,platform = <&afe>; - }; - diff --git a/Documentation/devicetree/bindings/sound/mt8183-da7219.yaml b/Documentation/devicetree/bindings/sound/mt8183-da7219.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6c5098b450cd1b183c8e41325cbeedd9aec91b5d --- /dev/null +++ b/Documentation/devicetree/bindings/sound/mt8183-da7219.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/mt8183-da7219.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT8183 sound card with external codecs + +maintainers: + - Julien Massot + +description: + Binding for MediaTek MT8183 SoC-based sound cards with DA7219 as headset codec, + and MAX98357A, RT1015 or RT1015P as speaker amplifiers. Optionally includes HDMI codec. + +properties: + compatible: + enum: + - mediatek,mt8183_da7219_max98357 + - mediatek,mt8183_da7219_rt1015 + - mediatek,mt8183_da7219_rt1015p + + mediatek,headset-codec: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the DA7219 headset codec. + + mediatek,platform: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the MT8183 ASoC platform (e.g., AFE node). + + mediatek,hdmi-codec: + $ref: /schemas/types.yaml#/definitions/phandle + description: Optional phandle to the HDMI codec (e.g., IT6505). + +required: + - compatible + - mediatek,headset-codec + - mediatek,platform + +additionalProperties: false + +examples: + - | + sound { + compatible = "mediatek,mt8183_da7219_max98357"; + mediatek,headset-codec = <&da7219>; + mediatek,hdmi-codec = <&it6505dptx>; + mediatek,platform = <&afe>; + }; -- 2.50.1