From patchwork Sat Jan 29 12:24:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 538004 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D665C433EF for ; Sat, 29 Jan 2022 12:24:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241547AbiA2MYg (ORCPT ); Sat, 29 Jan 2022 07:24:36 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:54126 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244097AbiA2MYf (ORCPT ); Sat, 29 Jan 2022 07:24:35 -0500 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 3E8323F32C for ; Sat, 29 Jan 2022 12:24:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643459074; bh=5FFlQVfiPYwOVz/qR1ttwGkalvSmqMhuguJRa3JpJFQ=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hsHOsLMG3aed4NV0oYPPTfgR/lCkwJvnTUrQA6BzwuCvIIVuExMaMpDM4jOYOOyp6 18pxFrxbTk9o/mACp8mX8HMbs6cNc7Xd3pSZ8STLCQ47NiSHyR6R5OgcfexNTQ+uqE 85uqp3fidMofVOOLy4Alu5153YcyaeKoDm1bne0R8bwsLwMauQX60QD5rmqfeR85nq oLZVPNBtAma3k3UR1k7SGBwHwg0c9HzwSMKVGxJfd70HDnjoFdV4hYWB7iQsh2tXOy AN9cz1X4HX9FB/yy3LGxBW1KGIp7vbvYFr4mR4buNCwNCxGjAhgbAdP0lw6pk5+ck7 1vAQNGvPMEjVQ== Received: by mail-wm1-f70.google.com with SMTP id s1-20020a1ca901000000b0034ece94dd8cso7454233wme.5 for ; Sat, 29 Jan 2022 04:24:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5FFlQVfiPYwOVz/qR1ttwGkalvSmqMhuguJRa3JpJFQ=; b=EYDXFBniv/8Jh3fp1SMykMjHyO061HbIqHFhT6tGsDylj8rz/QoPODRXWJo/k36flB n1wEfTOHNHqtKqYaZlET/KYAMosHbLNWCD5ZiRbsgKRYBuvwvAk/+SbjZYJiFmE6NO8E HpoeuPqN+FjBQxQCP5DXNVyMFFM5OKIUpI5xZtFGh8oLubpHS693RDTFvfSfOav7lP6T JcqaS65JbsS/hmkKtXId8e3znOAogrxJBIdm8nzZ/QMy5RPzmH0OM89GXVGJ4FYKenw9 WLidcOOi0pOvYv55xS4U5iLLbS9GyQkEBmc5wUKCSnCaC0GTKJMfzzaJLnKtIU1NOurb Ls2w== X-Gm-Message-State: AOAM533wPyW3xoU1468uv/fqJgPG6YBzJGGRtYOagkaJ5/45tRRa7SWN 3NqKBsRbHqO+b8ZtZlDIwISVaapyYgT9kEmVg6W2BHX6Arar1X/s20IiCZ0p4b1fjkZd22s1roE PCyuJV4bzUbE6H7GsdXurySnoKwXqbuwiWJ4AEYU= X-Received: by 2002:adf:f64e:: with SMTP id x14mr10041186wrp.216.1643459073801; Sat, 29 Jan 2022 04:24:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxe6dsREF4mKdGOp2shKuhk+vTGgCTqdm3WOG32IIYdm9aRaZQctbPT/4EIxznruMFid33Pw== X-Received: by 2002:adf:f64e:: with SMTP id x14mr10041176wrp.216.1643459073650; Sat, 29 Jan 2022 04:24:33 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id m28sm1106875wms.34.2022.01.29.04.24.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 04:24:32 -0800 (PST) From: Krzysztof Kozlowski To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Sylwester Nawrocki , Jonathan Bakker , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/6] ASoC: dt-bindings: samsung,arndale: convert to dtschema Date: Sat, 29 Jan 2022 13:24:26 +0100 Message-Id: <20220129122430.45694-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220129122357.45545-1-krzysztof.kozlowski@canonical.com> References: <20220129122357.45545-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the audio complex on Arndale boards with Samsung Exynos SoC to DT schema format. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/sound/arndale.txt | 25 ----------- .../bindings/sound/samsung,arndale.yaml | 44 +++++++++++++++++++ 2 files changed, 44 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/arndale.txt create mode 100644 Documentation/devicetree/bindings/sound/samsung,arndale.yaml diff --git a/Documentation/devicetree/bindings/sound/arndale.txt b/Documentation/devicetree/bindings/sound/arndale.txt deleted file mode 100644 index 17530120ccfc..000000000000 --- a/Documentation/devicetree/bindings/sound/arndale.txt +++ /dev/null @@ -1,25 +0,0 @@ -Audio Binding for Arndale boards - -Required properties: -- compatible : Can be one of the following: - "samsung,arndale-rt5631", - "samsung,arndale-wm1811" - -- samsung,audio-cpu: The phandle of the Samsung I2S controller -- samsung,audio-codec: The phandle of the audio codec - -Optional: -- samsung,model: The name of the sound-card - -Arndale Boards has many audio daughter cards, one of them is -rt5631/alc5631. Below example shows audio bindings for rt5631/ -alc5631 based codec. - -Example: - -sound { - compatible = "samsung,arndale-rt5631"; - - samsung,audio-cpu = <&i2s0> - samsung,audio-codec = <&rt5631>; -}; diff --git a/Documentation/devicetree/bindings/sound/samsung,arndale.yaml b/Documentation/devicetree/bindings/sound/samsung,arndale.yaml new file mode 100644 index 000000000000..e7dc65637f02 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/samsung,arndale.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/samsung,arndale.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Insignal Arndale boards audio complex + +maintainers: + - Krzysztof Kozlowski + - Sylwester Nawrocki + +properties: + compatible: + enum: + - samsung,arndale-rt5631 + - samsung,arndale-wm1811 + + samsung,audio-codec: + description: Phandle to the audio codec. + $ref: /schemas/types.yaml#/definitions/phandle + + samsung,audio-cpu: + description: Phandle to the Samsung I2S controller. + $ref: /schemas/types.yaml#/definitions/phandle + + samsung,model: + description: The user-visible name of this sound complex. + $ref: /schemas/types.yaml#/definitions/string + +required: + - compatible + - samsung,audio-codec + - samsung,audio-cpu + +additionalProperties: false + +examples: + - | + sound { + compatible = "samsung,arndale-rt5631"; + samsung,audio-cpu = <&i2s0>; + samsung,audio-codec = <&rt5631>; + }; From patchwork Sat Jan 29 12:24:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 538003 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DB24C433F5 for ; Sat, 29 Jan 2022 12:24:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345600AbiA2MYi (ORCPT ); Sat, 29 Jan 2022 07:24:38 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:32930 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345566AbiA2MYh (ORCPT ); Sat, 29 Jan 2022 07:24:37 -0500 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id E6E183F2FF for ; Sat, 29 Jan 2022 12:24:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643459076; bh=aFma7LFfbMy+pdLU8XgqpfQtVODFsB45EwHFjG4cPHo=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RCuxcgW+KUeRyLhFSOEFTrmg6B6VRtdisIDeQRW5TqPHMAnxNKqJeLKpqMb7rKlzl yX4g4mGfttHR42wdG5pnCLDk843xf1279O2BiwgpbqCa5JTVsVsBd+RYO4swED3nE1 08t9J7Yam/2jYTja/NpJa+FC8SPfvqABSQt8fb5ffn5lhdryR9rC7i/TmZAk5KExzU sctskBNEz6gp558TZWpKkhcNn7XooCkTGk61VgXfcsmB3BXRcYwKt/EfmmkWVSpRQU Bg+MRYkdcJden+f9XVKdUJpOF7BfQNLgUdK/BgJW+u3NnuwQlW9CjlUMv2CyXchijL hhSstXI7Bz2rg== Received: by mail-wm1-f69.google.com with SMTP id bg32-20020a05600c3ca000b00349f2aca1beso4208990wmb.9 for ; Sat, 29 Jan 2022 04:24:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aFma7LFfbMy+pdLU8XgqpfQtVODFsB45EwHFjG4cPHo=; b=Il8NgEGoOZosWDrPMMI1I8Y+oHdXp8EcjHPU3xnTS+lbMh2RsZl5xHg4bNwqLwR2HF fQ1RY85+Sr+DGF76eVfUvR2AoCUSiMPw8QuR9LMhh+V1Ep8OXIPkD+bNKmSKQAdyAMTV V76KJd28TbEXa/YFHdNn1506mejtgGclkAADXXojEMDu1fxo79Mjt3e6a9TX+5EB6Df8 7I2yuAyhYmY9cKA3Ma+V6SWX1htYz5HUip2rojt3uS/ZpCxHyBY5FQ72zZ2IPUJYBnzq 9MtSgAtDJY6+yN9ODxTwtsVctXHm6d0K2/dtmvf1u3NZNNh9KzwLJ1CxEr/EMHduC5Mg 5wow== X-Gm-Message-State: AOAM530ZttTeci9rL4AUlMW9SVv2DCNhUh1wLX9ccZ8C3tV532ow7og+ molO13FVjHnzlWYuRlbLq94WRRepQFnl5neVN46XPz+Lbxugd7VeHliKKUW/HXxNaL17qARxwbV o8SaIS+PAoDguDsBmyXzZWIKnibuX0bafKjlc42I= X-Received: by 2002:adf:f046:: with SMTP id t6mr10225203wro.684.1643459076555; Sat, 29 Jan 2022 04:24:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6uVQv1yZoAqdrgKAJVhPpKtEPV3VRQWrLgTAFRKnvJZBUsYggRfijpP0h3y5+sFPo0x/DpA== X-Received: by 2002:adf:f046:: with SMTP id t6mr10225189wro.684.1643459076349; Sat, 29 Jan 2022 04:24:36 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id m28sm1106875wms.34.2022.01.29.04.24.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 04:24:35 -0800 (PST) From: Krzysztof Kozlowski To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Sylwester Nawrocki , Jonathan Bakker , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/6] ASoC: dt-bindings: samsung,smdk5250: convert to dtschema Date: Sat, 29 Jan 2022 13:24:28 +0100 Message-Id: <20220129122430.45694-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220129122357.45545-1-krzysztof.kozlowski@canonical.com> References: <20220129122357.45545-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the audio complex on SMDK5250 boards with Samsung Exynos SoC to DT schema format. Signed-off-by: Krzysztof Kozlowski --- .../bindings/sound/samsung,smdk-wm8994.txt | 14 ------- .../bindings/sound/samsung,smdk5250.yaml | 38 +++++++++++++++++++ 2 files changed, 38 insertions(+), 14 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/samsung,smdk-wm8994.txt create mode 100644 Documentation/devicetree/bindings/sound/samsung,smdk5250.yaml diff --git a/Documentation/devicetree/bindings/sound/samsung,smdk-wm8994.txt b/Documentation/devicetree/bindings/sound/samsung,smdk-wm8994.txt deleted file mode 100644 index 4686646fb122..000000000000 --- a/Documentation/devicetree/bindings/sound/samsung,smdk-wm8994.txt +++ /dev/null @@ -1,14 +0,0 @@ -Samsung SMDK audio complex - -Required properties: -- compatible : "samsung,smdk-wm8994" -- samsung,i2s-controller: The phandle of the Samsung I2S0 controller -- samsung,audio-codec: The phandle of the WM8994 audio codec -Example: - -sound { - compatible = "samsung,smdk-wm8994"; - - samsung,i2s-controller = <&i2s0>; - samsung,audio-codec = <&wm8994>; -}; diff --git a/Documentation/devicetree/bindings/sound/samsung,smdk5250.yaml b/Documentation/devicetree/bindings/sound/samsung,smdk5250.yaml new file mode 100644 index 000000000000..cb51af90435e --- /dev/null +++ b/Documentation/devicetree/bindings/sound/samsung,smdk5250.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/samsung,smdk5250.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung SMDK5250 audio complex with WM8994 codec + +maintainers: + - Krzysztof Kozlowski + - Sylwester Nawrocki + +properties: + compatible: + const: samsung,smdk-wm8994 + + samsung,audio-codec: + description: Phandle to the audio codec. + $ref: /schemas/types.yaml#/definitions/phandle + + samsung,i2s-controller: + description: Phandle to the Samsung I2S controller. + $ref: /schemas/types.yaml#/definitions/phandle + +required: + - compatible + - samsung,audio-codec + - samsung,i2s-controller + +additionalProperties: false + +examples: + - | + sound { + compatible = "samsung,smdk-wm8994"; + samsung,i2s-controller = <&i2s0>; + samsung,audio-codec = <&wm8994>; + }; From patchwork Sat Jan 29 12:24:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 538002 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D372C4332F for ; Sat, 29 Jan 2022 12:24:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345824AbiA2MYm (ORCPT ); Sat, 29 Jan 2022 07:24:42 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:32962 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345649AbiA2MYk (ORCPT ); Sat, 29 Jan 2022 07:24:40 -0500 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 9CF373F1D9 for ; Sat, 29 Jan 2022 12:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643459079; bh=tXqK0pipG2DbLRjVtcGxzSWNM2TWL5POjuuSkj4vEW8=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IaW3LdpdbTff9xH8SspyupTT21wzY14hYmcMTrISstTTeAppHtlnBNq7dQWUXOeAG SepEfZlb8dgazZKCrpmvNEtnSUiNhYXIOykonRe2ZKhNU1u5n2Glyly3ypG28yMyEs zY8/+E2tejh2XywXxB4btPuQQzFqUyq0hNF1+GB8RS4A47G/uikn2LT7Ui7fXtEYmu CyQgTY+9RnFyit6lh+GTyc7hCLgcNZ4R+Ox8QfidezL9wIfsXO72ixLjwkyNlZbb7j IQBppbrNoy8n78fOcuVKltAU+3ZYAfXdN1vjMIiEejE6D6vXS+ECCD/gFkAx0lC9YH gE7Ka7JFiji4Q== Received: by mail-wm1-f72.google.com with SMTP id t2-20020a7bc3c2000000b003528fe59cb9so616973wmj.5 for ; Sat, 29 Jan 2022 04:24:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tXqK0pipG2DbLRjVtcGxzSWNM2TWL5POjuuSkj4vEW8=; b=CL4nXI2wbi+PXNQi+TwlhW5g5j06+vkttZxhBaPZ+5Lo603+JRTAP7O4GwUgUimrwu u86YZkBhSQd14pqEvnnCIy8w9pLfZK6XjibqUl8QmYQnbOXICqKxLHX7ImWZYbQ+7YNL XE1CoUA1r1+pQGHfGqRCHqw9tOlq63wLzlpoqm2suSwtGBOS7llXDR9jUcFHiAKAsAgb MNNRzItf/mP4o2+tYmL2Ker5deyGQR0Oot8hSyYKq/pCpaqSJvmX3SlWd2/OHutbb7ZE FC6uIIwvU53fusiv1eegnG/TS/7WzF9m9mBNIylnOPsOAAXsGAAzgPbwvHpTSPjlBQ3J lXzQ== X-Gm-Message-State: AOAM532h5TBOd3wNdTVTqGk/xPPjuLGdyNEXUdfsmbC/kAgI0El7rLIl ft4FNcoaSr49UO+ePKlq07RZCt1ERjdKp4+VjmAnxaHKQ2swNoYSRKq1jz4OaMp2PcDLWQVCflx AkdIeVOpsPO/pFryeRLItWycpQtbu+5XI4bc4dT8= X-Received: by 2002:a7b:c153:: with SMTP id z19mr19068537wmi.118.1643459079232; Sat, 29 Jan 2022 04:24:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdmqfActw14wC7FL3RmrVzbohLPY/HdEUge5K9x5B3jaX/pE3A4wDMlx+joQVK33YEdtkdlQ== X-Received: by 2002:a7b:c153:: with SMTP id z19mr19068521wmi.118.1643459078995; Sat, 29 Jan 2022 04:24:38 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id m28sm1106875wms.34.2022.01.29.04.24.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 04:24:38 -0800 (PST) From: Krzysztof Kozlowski To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Sylwester Nawrocki , Jonathan Bakker , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/6] ASoC: dt-bindings: samsung,tm2: convert to dtschema Date: Sat, 29 Jan 2022 13:24:30 +0100 Message-Id: <20220129122430.45694-5-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220129122357.45545-1-krzysztof.kozlowski@canonical.com> References: <20220129122357.45545-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the audio complex on Samsung TM2 boards with Samsung Exynos SoC to DT schema format. Signed-off-by: Krzysztof Kozlowski --- .../bindings/sound/samsung,tm2-audio.txt | 42 ---------- .../bindings/sound/samsung,tm2.yaml | 80 +++++++++++++++++++ 2 files changed, 80 insertions(+), 42 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt create mode 100644 Documentation/devicetree/bindings/sound/samsung,tm2.yaml diff --git a/Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt b/Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt deleted file mode 100644 index f5ccc12ddc00..000000000000 --- a/Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt +++ /dev/null @@ -1,42 +0,0 @@ -Samsung Exynos5433 TM2(E) audio complex with WM5110 codec - -Required properties: - - - compatible : "samsung,tm2-audio" - - model : the user-visible name of this sound complex - - audio-codec : the first entry should be phandle of the wm5110 audio - codec node, as described in ../mfd/arizona.txt; - the second entry should be phandle of the HDMI - transmitter node - - i2s-controller : the list of phandle and argument tuples pointing to - I2S controllers, the first entry should be I2S0 and - the second one I2S1 - - audio-amplifier : the phandle of the MAX98504 amplifier - - samsung,audio-routing : a list of the connections between audio components; - each entry is a pair of strings, the first being the - connection's sink, the second being the connection's - source; valid names for sources and sinks are the - WM5110's and MAX98504's pins and the jacks on the - board: HP, SPK, Main Mic, Sub Mic, Third Mic, - Headset Mic - - mic-bias-gpios : GPIO pin that enables the Main Mic bias regulator - - -Example: - -sound { - compatible = "samsung,tm2-audio"; - audio-codec = <&wm5110>, <&hdmi>; - i2s-controller = <&i2s0 0>, <&i2s1 0>; - audio-amplifier = <&max98504>; - mic-bias-gpios = <&gpr3 2 0>; - model = "wm5110"; - samsung,audio-routing = - "HP", "HPOUT1L", - "HP", "HPOUT1R", - "SPK", "SPKOUT", - "SPKOUT", "HPOUT2L", - "SPKOUT", "HPOUT2R", - "Main Mic", "MICBIAS2", - "IN1R", "Main Mic"; -}; diff --git a/Documentation/devicetree/bindings/sound/samsung,tm2.yaml b/Documentation/devicetree/bindings/sound/samsung,tm2.yaml new file mode 100644 index 000000000000..74712d6f3ef4 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/samsung,tm2.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/samsung,tm2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos5433 TM2(E) audio complex with WM5110 codec + +maintainers: + - Krzysztof Kozlowski + - Sylwester Nawrocki + +properties: + compatible: + const: samsung,tm2-audio + + audio-amplifier: + description: Phandle to the MAX98504 amplifier. + $ref: /schemas/types.yaml#/definitions/phandle + + audio-codec: + description: Phandles to the codecs. + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - description: Phandle to the WM5110 audio codec. + - description: Phandle to the HDMI transmitter node. + + samsung,audio-routing: + description: | + List of the connections between audio components; each entry is + a pair of strings, the first being the connection's sink, the second + being the connection's source; valid names for sources and sinks are the + WM5110's and MAX98504's pins and the jacks on the board: HP, SPK, Main + Mic, Sub Mic, Third Mic, Headset Mic. + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + + i2s-controller: + description: Phandles to the I2S controllers. + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - description: Phandle to I2S0. + - description: Phandle to I2S1. + + mic-bias-gpios: + description: GPIO pin that enables the Main Mic bias regulator. + + model: + description: The user-visible name of this sound complex. + $ref: /schemas/types.yaml#/definitions/string + +required: + - compatible + - audio-amplifier + - audio-codec + - samsung,audio-routing + - i2s-controller + - mic-bias-gpios + - model + +additionalProperties: false + +examples: + - | + #include + + sound { + compatible = "samsung,tm2-audio"; + audio-codec = <&wm5110>, <&hdmi>; + i2s-controller = <&i2s0 0>, <&i2s1 0>; + audio-amplifier = <&max98504>; + mic-bias-gpios = <&gpr3 2 GPIO_ACTIVE_HIGH>; + model = "wm5110"; + samsung,audio-routing = "HP", "HPOUT1L", + "HP", "HPOUT1R", + "SPK", "SPKOUT", + "SPKOUT", "HPOUT2L", + "SPKOUT", "HPOUT2R", + "RCV", "HPOUT3L", + "RCV", "HPOUT3R"; + };