From patchwork Sat Jan 29 12:23:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 537962 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 81C67C433F5 for ; Sat, 29 Jan 2022 12:25:36 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 59C03176C; Sat, 29 Jan 2022 13:24:44 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 59C03176C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1643459134; bh=9veOrnylV7/CQ2c3bmflGf77LZJCulezMAwwlg2+Yac=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=anjQI3NyW5dsKIdlJxm0NI7/Usfafv/GNJ12gsWSc2vg5PJSWedyUfcqtEswjh/e/ U0Fti+vcf9C2A+udmTRQFMjiKO0i3pj6CKrrnO3Edv061YyQsyhv5DAGXDIGTQlzp7 7jdKZ1qKr65pNTAf7vd513NkvPuGkGi32ubNzW90= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id BA89FF8014B; Sat, 29 Jan 2022 13:24:11 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D374EF8023A; Sat, 29 Jan 2022 13:24:10 +0100 (CET) Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id AAFA8F8014B for ; Sat, 29 Jan 2022 13:24:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AAFA8F8014B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="upfxwh5g" Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (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 C231E3FE09 for ; Sat, 29 Jan 2022 12:24:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643459042; bh=Xin2bUCV5GBX+4IaAK+yFj1wjm1SLWxA3e09mShlOR4=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=upfxwh5gSrgAt6Iow7u6hc274z6e9RAsI0wWWfj3AZ3D2/5xyxVKl8qjuUBxGhnVX NYzCZ0q9hftiCmT1cY2zPUM3fWoyDsFvy2TGvjszqyr8zaM6ru8cN/PHrBOpPp5y6S 8eiY7WqYCJGr3bsQrYKdxqX72WSj07CXUDGJsrn9eoQRpe//wSVDNwk3u6u54JewvT LQgLSXV+2S+no9rDT18Vlq+WkvtArUfavwl3U5K4K8z8Q4DXpT+0skvNcmIzxC9wNT hO2yi4bG74+E34IIM41tJUBF9/ycK4HY/1y4C+mHHjb6xjvIpXEUHOcclYysSAFx2j 3jv5qxnqMwroQ== Received: by mail-wm1-f71.google.com with SMTP id f7-20020a1cc907000000b0034b63f314ccso4217690wmb.6 for ; Sat, 29 Jan 2022 04:24:02 -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=Xin2bUCV5GBX+4IaAK+yFj1wjm1SLWxA3e09mShlOR4=; b=pKvVrhaZ8+ripOGbLqsedFW/ZFWlDCtpqWw1A7Y2lUcKRzrFKxom+MHWzsiKNckWb9 9SHA/DD9QLzthDWlvmxqAAshBGzKd4lqV7qJhCkncdDNGkWvtOldzpVJNH6RjxrcldaT yIcXeqwqjp4PD8nz7P7CZ+ogUh+LefOqtgyOdS7/UpERQu6u9XwJQmR7lSNIMqxv70Ng LaUxVMS+HpVlW3DFvXfpAZeQdpxi63SJPO96DFHV/x3jQpsngvHfA1WW2FTO+V6VPwF6 JtColLQpw2q/WR4gBoNDlOsziQq8BeH1EJAVQB3gD6cZh8ai6p/158JALoVvaA+UNE3f zD8g== X-Gm-Message-State: AOAM5326bjlOkeX3V/3NqA8pe1i0Kf/CiH8G4pleY+gijjKeZgTqYPAW +t/q/s5XfCUEwwa8w07kZRyW48wAYZchasr5K49+LcWt9PzEaaVwwFFStbIbWW4Sj0TyrgDY+dX 72qmQP59kXDJJ4j68AVDrKLMsOxgy7atUAlOlXTfe X-Received: by 2002:a05:600c:20a:: with SMTP id 10mr20148993wmi.19.1643459040703; Sat, 29 Jan 2022 04:24:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzX2X5P3axlQ5WI/mG6GqvwXYyv9cpxowJ11N6MeS+DE60iDMwN+meIUmiOJBb6d5n8wE5K5A== X-Received: by 2002:a05:600c:20a:: with SMTP id 10mr20148982wmi.19.1643459040514; Sat, 29 Jan 2022 04:24:00 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id z13sm7901534wrm.90.2022.01.29.04.23.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 04:23:59 -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 1/6] ASoC: dt-bindings: samsung, aries-wm8994: require sound-dai property Date: Sat, 29 Jan 2022 13:23:52 +0100 Message-Id: <20220129122357.45545-2-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 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The cpu and codec nodes must provide sound-dai property. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../devicetree/bindings/sound/samsung,aries-wm8994.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml b/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml index 4ffa275b3c49..97f83eeaf091 100644 --- a/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml +++ b/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml @@ -30,6 +30,8 @@ properties: description: | phandles to the I2S controller and bluetooth codec, in that order + required: + - sound-dai codec: type: object @@ -37,6 +39,8 @@ properties: sound-dai: maxItems: 1 description: phandle to the WM8994 CODEC + required: + - sound-dai samsung,audio-routing: $ref: /schemas/types.yaml#/definitions/non-unique-string-array 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: 538997 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 894D7C433EF for ; Sat, 29 Jan 2022 12:25:52 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A488F1784; Sat, 29 Jan 2022 13:25:00 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A488F1784 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1643459150; bh=WjAdBxp5WIQgilzKveCMMtFwnljsWIPgg5aY0b4Du0c=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=p8k8cJHyLOHJYXNe/5PmhcdqzX3CMZhedAeXhtjH4t5sP885rtgqeOm0q+ySfOnhj EkEsGeQnWY0c9rBgRfwfbcFZtQo3BaFnxlF6+vn038Yp5LBbMN3oFeZLdpdAD2Op6I 4JMmW0K1y25sC6IVDJY2V39moi82Wux03RlZ5BTg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id E6AADF80515; Sat, 29 Jan 2022 13:24:42 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id ACF33F80510; Sat, 29 Jan 2022 13:24:41 +0100 (CET) Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8C596F80510 for ; Sat, 29 Jan 2022 13:24:35 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8C596F80510 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="hsHOsLMG" Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (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 266C33F197 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-f71.google.com with SMTP id q71-20020a1ca74a000000b003507f38e330so7385370wme.9 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=Rec+G+qbnBdCoZheUNov0Fh19DNcn0fNprTC6jS6Fs+9sTF8oBZ+PNy47Tx6RXCY18 Wfb5TwgVkM1SAr8wN2Vx4Df7a9H+Vo8omsaPr7BxOai1kpFhlvW52pPNeb9l3HSNjKyK MPLL5jUjze7QO7/oIc/sEU+ba9kZLPnwjdhegb3ZQjHeY2OmhBVNMSL8lP8/P8pDmYo2 4kSlaIslQ4Gv0jlqbZZKdouba/+cBFEDgngklmQzh8VKdhvbLHzPlhCRr4sC+CNQj3Ty Ra7D3HoQLgricg7p5yl/gwM1j8/xIubuGOlh49P415ug+C8vNw//AbNxplg4PuwMTrei vuXA== X-Gm-Message-State: AOAM532uOv2GzOJMRRomXn2t1VR0kunychA0JLsUEV9LbGp+UbnHQHi+ HbwOnDueK1UuwyV9GGonFx24L5oUi7w5MJixXDtnRovWsOoRqea6cALxRReYOK/q/pACEgR7Cdf eoC8iCs0qYZrTfgO8oez1tEt+edze0NU5c3YhP7sw X-Received: by 2002:adf:f64e:: with SMTP id x14mr10041191wrp.216.1643459073802; 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 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Convert the audio complex on Arndale boards with Samsung Exynos SoC to DT schema format. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../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:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 538996 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 58E9FC433EF for ; Sat, 29 Jan 2022 12:26:26 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9E618177C; Sat, 29 Jan 2022 13:25:34 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9E618177C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1643459184; bh=Qolsdtak86SEENTZPUaLfQJjKAa7MJpZCa/1z9a9wRg=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=FZLCX5xx7UujMuBPCZdaQe24Wp5HcE56w+3T2n1zxlXTPb2vIgIAtmtY3I7Zxyc0W CUJZiXdwwv/me6iKUOw1OTFwG+YaVzoRUIbYgiD1Ku9bYvlPbBQphfYV0LwHp7LZJa NWW0M6ROuLEZJ96Vp3/L5PE/j6lYdANQimZUoJW8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 81542F8051B; Sat, 29 Jan 2022 13:24:47 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DE6B8F80510; Sat, 29 Jan 2022 13:24:42 +0100 (CET) Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id BBC7EF80515 for ; Sat, 29 Jan 2022 13:24:36 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BBC7EF80515 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="nxIXBXA0" Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.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-1.canonical.com (Postfix) with ESMTPS id 805F13F203 for ; Sat, 29 Jan 2022 12:24:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643459075; bh=WHnGp+/co0yjLFJTld0gSMGvtw/E8RuZJ7zwbzyKcNU=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=nxIXBXA0ALLdeBN8GDiaqVxef49iz4HTbGo5K+WfUScHf8SIHJWG1og/x3F90FZNE oql5zpzbnGXb3z2Sxzt3GO/6zNEbKu+izgN6xNJRLrKZlvJhjenuD5Gt4h0BEX4BiK hiCoIYzkwcDc5vGjzAdJlb0xJ+WtpxNmlsmbQnPbZQfoNP3uc/q6R8xPS7PlbAnlL9 J30GyTTjYExEAFXwdAFCDE755v/3lQ+uQ2FQkWRSFz5bppUAnCaOM3JjhZGenJ4Pj4 Rxf5Hn9ZDsNtRlMKbwQRjlNIQth3PWoDl1g0XtNPDD+2EAxOaRFGY2dcaxj/lrQ0m6 q0EDdApMcWSWw== Received: by mail-wr1-f70.google.com with SMTP id z1-20020adfbbc1000000b001df54394cebso2126784wrg.20 for ; Sat, 29 Jan 2022 04:24:35 -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=WHnGp+/co0yjLFJTld0gSMGvtw/E8RuZJ7zwbzyKcNU=; b=JV1tT7Coj04DVnXcKys4zo1w0Hb6ILPlgJ09XiO4L503gX16cR/9xwax9sGufpibn0 Tg9FDLCGBlW7Jeax3ZY2RRA93pXefoldWaP8wL36cN78oU6NePX56Cy8CChTxsuyZ5ca z9c0pxh0awL3YX8NEMHayn2LslEhBTZBOjkc9lsgWBYmwF96J3YyMt/ADJz3nUPZJBjB qPUAGOCLIT6HC2oIJh3FTus+EopQ9VZPBTlUrjV9A44zhXUFmb7X8wC+QehgruIlO40v /VBNsXVWiq/CdQB77wnruEQw4yv7L01nyvVHbimDA3wOx2arASVPWGGOedbDTuIr9T4t 3c7Q== X-Gm-Message-State: AOAM532n7U6PsoWlifrQKacP5SFFI2w2Ne24JLsaAnosmQvHermq2gh7 Fbg4C6njRksl1WIZhaV/ufSqm73IuTwExH7OhtU5nbbPsNg92ysiMgmNDgSvzCHBlvCwhwocdPH /tE6tcfRWeuU14rHI4ElFVY8oRqvVCkYk/uCbtk+p X-Received: by 2002:a7b:cc93:: with SMTP id p19mr10768241wma.175.1643459075061; Sat, 29 Jan 2022 04:24:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEYEjraGsXvaSH5x5kd6wGHrIGvpR2dGZG+9P2CfNNVi65TtZt1Y5RbfP/w5kfBPlc33FJqA== X-Received: by 2002:a7b:cc93:: with SMTP id p19mr10768229wma.175.1643459074936; Sat, 29 Jan 2022 04:24:34 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 04:24:34 -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 3/6] ASoC: dt-bindings: samsung,arndale: document ALC5631 Date: Sat, 29 Jan 2022 13:24:27 +0100 Message-Id: <20220129122430.45694-2-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 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The Arndale audio complex might come with ALC5631 which is compatible with RT5631. Document the compatible since it is used in Linux kernel sources. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Documentation/devicetree/bindings/sound/samsung,arndale.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sound/samsung,arndale.yaml b/Documentation/devicetree/bindings/sound/samsung,arndale.yaml index e7dc65637f02..cea2bf3544f0 100644 --- a/Documentation/devicetree/bindings/sound/samsung,arndale.yaml +++ b/Documentation/devicetree/bindings/sound/samsung,arndale.yaml @@ -13,6 +13,7 @@ maintainers: properties: compatible: enum: + - samsung,arndale-alc5631 - samsung,arndale-rt5631 - samsung,arndale-wm1811 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: 537961 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 70D07C433F5 for ; Sat, 29 Jan 2022 12:25:56 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9DF5A1755; Sat, 29 Jan 2022 13:25:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9DF5A1755 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1643459154; bh=w3jaXEw89uah6bQhp9pupDriGii4X30rhU3VXVX/Bu0=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=iqV+/ZOCQaHoYiPbYBVKvuWzaW7s4mDOaPXFxpAWx1TWtYcUPboGT5uJr8npe9+HG 5KJuPaP5mpztKS8HxWIP7en9ZUO5+vGf+3luOcwEH6jAeuXyIJ07A2iDSfjd9qHXjO xtIAm0EPpNYhRZTabDFwtk8Q8npZcvJN8z1+rhE8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id E2DC2F8051A; Sat, 29 Jan 2022 13:24:46 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9CBA2F8051A; Sat, 29 Jan 2022 13:24:43 +0100 (CET) Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D0D88F80516 for ; Sat, 29 Jan 2022 13:24:37 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D0D88F80516 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="RCuxcgW+" Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.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 DFD783F1D9 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-wr1-f69.google.com with SMTP id o26-20020adfa11a000000b001dd1d3a73c7so2935449wro.21 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=Zg16PprzwCJyeUK1FrftlcWK2fwrZzMxmgqb2Lm4pSR+bSnyGVP8XHM/aBq6szi9OT Jg2a+MLhsYsh5/Ex0P4g71fMt3DGiLIzpx8NrUrP1EddR6XykWe4/t0g1kNyOVYRx1QU fZyzXUnlNCN0/ScnLuNLpcLOS4luyrYXpuEontP280sFlaV9dlu1w9i2oZ8fCl/xROdh Z9ikWbIaSxGN48/6PwaDd9bR5vdsLGoTdWxdRbSJKNnHfPBuTvWK1ymIWn7RbdZN59h9 uYXh6S+C40ytJmWc5GF7m7K3YD/6mjDdzxqTjhGWR88WesdQ8GKLZR/hYXmbC8GFg0eZ d6RQ== X-Gm-Message-State: AOAM532Jldu/4Qq5jNqY0h4Mo/dBSd7L82oPVZDio6Y5S5r2vSwMI1OE 77cVuygnHJxMA6shMfxjKbKSO2+Rm+pFgkQyxVL08437EqZcqNhvCKzJlUGqjKdp+hjcOUcLycr ElraeDVzfO0roDiCk2rp9oWx8r2T45MTI8eMdmBgu X-Received: by 2002:adf:f046:: with SMTP id t6mr10225196wro.684.1643459076553; 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 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Convert the audio complex on SMDK5250 boards with Samsung Exynos SoC to DT schema format. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../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:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 538995 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 E0901C433EF for ; Sat, 29 Jan 2022 12:26:54 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 0F1E41788; Sat, 29 Jan 2022 13:26:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0F1E41788 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1643459213; bh=Tu7817+0usu6hbukyQzb8DhUKIzlRh/yNKTf7AwXdj8=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=PL/LqH+BeKdcD5VGTA1tt3BWjAcaBeKTcNms8WIsMa5MZ43Z4TUSDvSZsDa97oFLP hK6VlQA9LWSGqReSBImL1cdBoX+wyZZatfy3zptIPxoDDJrAcx2Er3PxgZVBAq7U9N pcBiOKIiCN2BFYYXO6pog6F00i0SbLGcAai6We8w= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id BE3BFF80511; Sat, 29 Jan 2022 13:25:08 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9B791F804B3; Sat, 29 Jan 2022 13:25:06 +0100 (CET) Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 0E745F80517 for ; Sat, 29 Jan 2022 13:24:39 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0E745F80517 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="a8PXgV6i" Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (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 334D03FE09 for ; Sat, 29 Jan 2022 12:24:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643459078; bh=bD5z5ffYf36ZpADiFx82Y+cqZ1Jq4IWx6Gvq+Okhbqw=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=a8PXgV6iaqq9y6n1Wn1VxbzYagq3gX3g0YmpRwyKt6VsvtBpvikpVtMrpfHWa0aNO FwiJ2MWLxY2g606nEbnGlPFBKbd9YpfGa/TT3bRnoIQu3sP4JYkB3cM+MUl+82oizp zohLjQyh3+9Rh9glO0Fnd1RgmS7Uzknf2Twq5rakzI8MVBW4FWi4YqI/NPv100fDsp wGHVyp4htoNg/HnYSb2i/XoamWGpw/j0fRXru2LM/Fq+dSur7reldJxe+X4w+miuF+ 7xAKZW7c22o072NLTNacf+KenMIQnlAA6EhWPSU5Yp+F0UGEp7zVM3Hxb9xOS8VQHM k6NyEFsita4fg== Received: by mail-wm1-f71.google.com with SMTP id t2-20020a7bc3c2000000b003528fe59cb9so616953wmj.5 for ; Sat, 29 Jan 2022 04:24:38 -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=bD5z5ffYf36ZpADiFx82Y+cqZ1Jq4IWx6Gvq+Okhbqw=; b=zlWih1k4a7ajef81hB90l93HE7Hj9A59jva8iOki68Nb1YB94g6XQnfbeha83x0mgQ SlhvEY/2wEdOEeLDi7JhFAMffL9hbfkF5ng3esBnZPCbzOUisbqedi0OCfTlEHN5O/6B u9cmZ1ljUmc7dJWYK4eQv/xy6bPsWUsn4BqzVIBvRdP1ZICHehSY+ca5D1mgwOOypaaW xVHBFnu6EOKMTMwd4xtCkq+2PVro2/hXW11OjKRpkJZ2MQ17VFs2xyjH11sNVvR0ThT/ YYsiW4Kqpdb/pbNvLGFoKXa08xYbAIrhsYX8Idv4bukj+BGJAqVK+jbtgE8YgD2CmluM kU3w== X-Gm-Message-State: AOAM532OknUJKXGR30rZ31vH21bkAmIj/O0yVkGW+wGFAI/ITw8KqI4d oAaVPsUd/BeFiyKkOO3CUQZfyHTaCRb849cTwjjT0xtblva1e+9l8kBA+jnnz668XwaZl47bE1E gcd8A8Cbc/lq7DKobBjUqphwb2SFhyVI6347o4Py5 X-Received: by 2002:a05:600c:3c9:: with SMTP id z9mr11015918wmd.148.1643459077821; Sat, 29 Jan 2022 04:24:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPb7GAtVKBWV4J0Pm7ej5eDXtc7ns7KfzMdGQW666plXAAi8bJ6GsApeCPfihWqlNq7cTw2A== X-Received: by 2002:a05:600c:3c9:: with SMTP id z9mr11015910wmd.148.1643459077657; Sat, 29 Jan 2022 04:24:37 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 04:24:36 -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 5/6] ASoC: dt-bindings: samsung,snow: convert to dtschema Date: Sat, 29 Jan 2022 13:24:29 +0100 Message-Id: <20220129122430.45694-4-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 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Convert the audio complex on Google Snow boards with Samsung Exynos SoC to DT schema format. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../bindings/sound/samsung,snow.yaml | 74 +++++++++++++++++++ .../devicetree/bindings/sound/snow.txt | 31 -------- 2 files changed, 74 insertions(+), 31 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/samsung,snow.yaml delete mode 100644 Documentation/devicetree/bindings/sound/snow.txt diff --git a/Documentation/devicetree/bindings/sound/samsung,snow.yaml b/Documentation/devicetree/bindings/sound/samsung,snow.yaml new file mode 100644 index 000000000000..0c3b3302b842 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/samsung,snow.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/samsung,snow.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Google Snow audio complex with MAX9809x codec + +maintainers: + - Krzysztof Kozlowski + - Sylwester Nawrocki + +properties: + compatible: + enum: + - google,snow-audio-max98090 + - google,snow-audio-max98091 + - google,snow-audio-max98095 + + codec: + type: object + properties: + sound-dai: + description: List of phandles to the CODEC and HDMI IP nodes. + items: + - description: Phandle to the MAX98090, MAX98091 or MAX98095 CODEC. + - description: Phandle to the HDMI IP block node. + required: + - sound-dai + + cpu: + type: object + properties: + sound-dai: + description: Phandle to the Samsung I2S controller. + maxItems: 1 + required: + - sound-dai + + samsung,audio-codec: + description: Phandle to the audio codec. + $ref: /schemas/types.yaml#/definitions/phandle + deprecated: true + + samsung,i2s-controller: + description: Phandle to the Samsung I2S controller. + $ref: /schemas/types.yaml#/definitions/phandle + deprecated: true + + samsung,model: + description: The user-visible name of this sound complex. + $ref: /schemas/types.yaml#/definitions/string + +required: + - compatible + - codec + - cpu + +additionalProperties: false + +examples: + - | + sound { + compatible = "google,snow-audio-max98095"; + samsung,model = "Snow-I2S-MAX98095"; + + cpu { + sound-dai = <&i2s0 0>; + }; + + codec { + sound-dai = <&max98095 0>, <&hdmi>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/snow.txt b/Documentation/devicetree/bindings/sound/snow.txt deleted file mode 100644 index 80fd9a87bb3f..000000000000 --- a/Documentation/devicetree/bindings/sound/snow.txt +++ /dev/null @@ -1,31 +0,0 @@ -Audio Binding for Snow boards - -Required properties: -- compatible : Can be one of the following, - "google,snow-audio-max98090" or - "google,snow-audio-max98091" or - "google,snow-audio-max98095" -- samsung,i2s-controller (deprecated): The phandle of the Samsung I2S controller -- samsung,audio-codec (deprecated): The phandle of the audio codec - -Required sub-nodes: - - - 'cpu' subnode with a 'sound-dai' property containing the phandle of the I2S - controller - - 'codec' subnode with a 'sound-dai' property containing list of phandles - to the CODEC nodes, first entry must be the phandle of the MAX98090, - MAX98091 or MAX98095 CODEC (exact device type is indicated by the compatible - string) and the second entry must be the phandle of the HDMI IP block node - -Optional: -- samsung,model: The name of the sound-card - -Example: - -sound { - compatible = "google,snow-audio-max98095"; - - samsung,model = "Snow-I2S-MAX98095"; - samsung,i2s-controller = <&i2s0>; - samsung,audio-codec = <&max98095>; -}; 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: 537960 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 DC7B6C433EF for ; Sat, 29 Jan 2022 12:26:42 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 29CB4179C; Sat, 29 Jan 2022 13:25:51 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 29CB4179C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1643459201; bh=3DvfaMY3W9pVhODWbUagdlCyMZx1Q+cM147ebesPZg0=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ofP6UuypVZFMgb6JShcMTr7u/8TLAlkavjvHXaOEPci9n5Oi9h+CIrbb16/k959rK PxhJfJfS7Ez+M5x49IKF7resgr2FUHqY7I0UL5FcdIKEFD/NBGT0VEKjlFWttcNoPS 2FGpAGK/+JGbZ+Og/tVtuvfwaECO76aN8Pl+dwYE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 25AABF8023A; Sat, 29 Jan 2022 13:25:08 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A06FBF800CE; Sat, 29 Jan 2022 13:25:06 +0100 (CET) Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 477DEF80511 for ; Sat, 29 Jan 2022 13:24:40 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 477DEF80511 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="IaW3Ldpd" Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (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 A21813F1E0 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-f71.google.com with SMTP id 7-20020a1c1907000000b003471d9bbe8dso3047284wmz.0 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=RmEICbIkCArfuRjMP0AJBwYcANiRqqe0EomEJIjtE0IOFh9UV2z9PGMAnN8Q7HPR8G q0DBVjZl/4gnukvMeDPgurZy8VeticE8ywhfRqDNwF/GsoTpxLg6FgSEs+SsJflfMJCi ntVrrJ2vTSSIezTKU0TUIZyaF1vTvLwJDgxmj7doOcr2F8/LYT+g2Q9uvgi9nYpsmDP0 GG8PccUZD0IZIpXIs6vGvmHlh5rOXzEcsWZ3fapot/UTkDKg6ZBkNHOxF2XI4TkCqDmX dNoye6oAIX7FCnxQS2c5X0QNAKT0I422WVC4CTYcW3CYgGf/IdZKHXr7mStyvKifkUIW KCKg== X-Gm-Message-State: AOAM533AvVBtC5hPHyW1zLbKRJpOTl0XIAVlWiwofWAVeHkhpaEA45t7 lt1Yxd3HxCPsBAHN/n/uMk+6VgZ9z4iceYk5/A5WO2yit4oDGRtHmPZ/8UnI8sMdiDsoopLadZn 0F0krNsnNT76/7GtINFRVbAJPERMf4BjB1zqiRtZ/ X-Received: by 2002:a7b:c153:: with SMTP id z19mr19068533wmi.118.1643459079231; 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 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Convert the audio complex on Samsung TM2 boards with Samsung Exynos SoC to DT schema format. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../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"; + };