From patchwork Mon Jan 24 17:03:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 534540 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 C4EF5C433EF for ; Mon, 24 Jan 2022 17:06:12 +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 DBF1E28DD; Mon, 24 Jan 2022 18:05:20 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DBF1E28DD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1643043970; bh=47Ohb5EhFxovHgqW/3SaOJFk9U+xN5ApNqs8413PZPY=; h=From:To:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=ZXOrED/y0Of3MGd7rF80B8RT65fLDBZ2EurQSQvoCIv3d2MKpNfh6y08POd0mvo+A Qh7wnK/8FQIymwB5MZUC8Fs5WwWrhpnZd4Ah8OvoW8S1JCRWuUwtbth0wnhaw8KT0d wu553swo5aZ1werK7i2kFBc7txWbMOGiz5WR3xdM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C0266F80516; Mon, 24 Jan 2022 18:04:32 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8691AF8050F; Mon, 24 Jan 2022 18:04:30 +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 371DAF80083 for ; Mon, 24 Jan 2022 18:04:21 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 371DAF80083 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="WvHeSbDZ" Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.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 20CF33F4B4 for ; Mon, 24 Jan 2022 17:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643043860; bh=+59EwcCO1RI2K6NXx9nmWMGLlCdcb4Skfl8EoAq/R8s=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=WvHeSbDZFYvLKBAX2ytHoHQfOPhC1QmZ/mR4F5VhSa947wjWm3ihszIir9Ru1LFLt pTAxSGcIG6Eu6PvqSwNpH2cAyPlUSutK99sbIRHZnLrWuUl0O8cLkDHNrhKdZSXZUx H9yCLqt5UJgIvM1baQ3M1t/nBveVrsfgasnUL5Gx57AUleI/T0C50GfxugnVkwUPJT EjackeoOmTHvgYR1WM+KmdKPoqM2VKelkt1q3dnMd0IU4pyc0EUJy5P9AF7Z2kd6ya GCn07WUmYN/4a2Z/lM3FyL2mNsFZovyHK7ZLDcOlEJih9LcKtJ/93XtTj+zRF0H0gf RgTZIJdFKiWmw== Received: by mail-ed1-f70.google.com with SMTP id k5-20020a508ac5000000b00408dec8390aso760491edk.13 for ; Mon, 24 Jan 2022 09:04:20 -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:mime-version :content-transfer-encoding; bh=+59EwcCO1RI2K6NXx9nmWMGLlCdcb4Skfl8EoAq/R8s=; b=5qurmeb+COT8gwT1ZPsII24fM0OrzrYrIOBBwHg6fXp+oGKdLqHOVZ/4fR3WW+AT8g /cAQkANegy/gBUGvv1MnkSakfqKnmpysP1G1R+E4JwHxTHzoDuqyTjQsZMGuY75pyB1o pHBxZsOSm+gwdvX9kAAtT57i+QN/e0q/Y5zY1cdKQ2RLFWwEeFZN5ieXEd5ehIS7xGeu KYxcQVhsbI3KRL3jmrE2G2LIGjD8A6ojkQeKY2TPExdr2M0mrDt3iHLz0QDjbGepM3oj jQyn8Sj1JGmy2PfXfT7C6ti1nbUqQmVkqTcMpADzrQtIe2trcIa+hpUH1A05C6/jZPyo Yf0Q== X-Gm-Message-State: AOAM530x6j85MAPcoxbPkCmdppxkAoJgLq+gK/lZZaz0pbJWseJzx2B5 wMYwdBRZroGuL6T4V4oyKQrxd3+gcqx8GLrJiHuMNXkM1WFNOt64R0z87iRYF4hvrWMBP/TVSp7 vMiPl17NYHieQEANjnd/Eps7BEdPCRM22tfgB/w7d X-Received: by 2002:a17:907:97c4:: with SMTP id js4mr7790582ejc.586.1643043859694; Mon, 24 Jan 2022 09:04:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6bIUyqSYlsbbcqUfcmbGdWW0EqG6ljBFLpi0TFeXsvlHolU79XgsL0Uo+9k2arEBqkIsRjA== X-Received: by 2002:a17:907:97c4:: with SMTP id js4mr7790564ejc.586.1643043859512; Mon, 24 Jan 2022 09:04:19 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id o11sm6903846edh.75.2022.01.24.09.04.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:04:18 -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 1/6] ASoC: dt-bindings: samsung, aries-wm8994: require sound-dai property Date: Mon, 24 Jan 2022 18:03:31 +0100 Message-Id: <20220124170336.164320-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 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 --- .../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 eb487ed3ca3b..d5cc221787cf 100644 --- a/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml +++ b/Documentation/devicetree/bindings/sound/samsung,aries-wm8994.yaml @@ -33,6 +33,8 @@ properties: description: | phandles to the I2S controller and bluetooth codec, in that order + required: + - sound-dai codec: type: object @@ -40,6 +42,8 @@ properties: sound-dai: $ref: /schemas/types.yaml#/definitions/phandle-array description: phandle to the WM8994 CODEC + required: + - sound-dai samsung,audio-routing: $ref: /schemas/types.yaml#/definitions/non-unique-string-array From patchwork Mon Jan 24 17:03:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 534539 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 584B9C433EF for ; Mon, 24 Jan 2022 17:06:46 +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 7A67C28E9; Mon, 24 Jan 2022 18:05:54 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7A67C28E9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1643044004; 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=JZ9QErgzk4iNh4SnY+xunEBeWOBL6sFFdUW6/xJZ7mWCY6Deaqz7og5UjucnZ1yB7 2u++Ou44iroaBYCvHkmrQV6T0cwrKH0WJSyGlJjufYYC6suKcYyuLMz1TYkVUdxvnV F0eqCevNWqN1eG4XpasHg3R9PY7N1+Hi6nL5Cmn4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C36A1F8051E; Mon, 24 Jan 2022 18:04:35 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 28F84F8051A; Mon, 24 Jan 2022 18:04:33 +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 662B1F80424 for ; Mon, 24 Jan 2022 18:04:23 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 662B1F80424 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="pKa54jeS" Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.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 118BD3F1A4 for ; Mon, 24 Jan 2022 17:04:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643043862; bh=5FFlQVfiPYwOVz/qR1ttwGkalvSmqMhuguJRa3JpJFQ=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pKa54jeSkusUE3Hw9673mak37Y6Y0iuo84fM4+oaPUm2/vC4kNLvKVosDEjRbfp/p Bx/qFQVkKr0ywfJEFSqeGuwihIbnL/KlaNi7moVqeh5DAy9/0jBIqaMUfvZCXWTqcj XrplZk5tA9XlUebtdgEWu1hWZeHUefDClDc0tv/iNR9xSgpepApOIrMBtJBn84OXcz X/0jlyc2xbgUnQ+VCzfqgG/YrFzpMzQ6bLInOSRoi2zazmDKvAkNZdDxnTJp8C1OhQ xktUbeBFCmIFnz6INGwIwsOSl8q8Xd81YDqePH2SmmWqUFup8s4Sz61ceuo328CX5i iTQQLrk4kGAww== Received: by mail-ej1-f72.google.com with SMTP id d18-20020a1709063ed200b006a5eeb2ee4dso2330107ejj.3 for ; Mon, 24 Jan 2022 09:04:22 -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=llsxb+43Lbg9zLywrdo4k7lZlD0DKn7zdK21Aa7fjPaX7BrNObfTp2PydtHBDMP9kH VGfYSNXRq943lbGRc/qLs+EFO1GCXY3S0JJ00KI5YvDn5DBwXyGPHeWpM9AK6xmnuByh wbX37ukTR8X3en25zbSmlumPocG6J9+ReiDXxgd+zyxQHp3XbDjbo4H1YU+jpziQif/w k0n0RJ2KasFd9eg0QrUnWDvGDWCT1TQ2dem8qN7lfXcjfzdBlLB1aRkCcFUlYGCki58k 12pBKANYzCPJpwGZ7oRVQsPcXKrd8VyNEpA0DZDVDToOWV+X8nu5m4KwyEJFXPaNR6F0 2J8Q== X-Gm-Message-State: AOAM530KNXLFL1BTVYtDcsAo0AvRGGaykcL/9SV8Ee/T192ZaOsH/9mT 1eSoGJwBYfwsyewO1ihpbogmNRZDZGgXHFoqXm1BU3K8CLTkFuuESuUY1a2+M8MEXnq8gf+7/qn xlhOTQU28TacAn4zxvn8GtmrbA+/S8WxbXBG2fFXs X-Received: by 2002:a17:906:7003:: with SMTP id n3mr13196766ejj.160.1643043861295; Mon, 24 Jan 2022 09:04:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSHmcPIiDwaWIhrNLyt3hgJ6DEahlcrBImfV1TaDHD72Fiq6kwC/08hZHQNxbcb99lYE/AuA== X-Received: by 2002:a17:906:7003:: with SMTP id n3mr13196752ejj.160.1643043861075; Mon, 24 Jan 2022 09:04:21 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id o11sm6903846edh.75.2022.01.24.09.04.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:04:20 -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 2/6] ASoC: dt-bindings: samsung,arndale: convert to dtschema Date: Mon, 24 Jan 2022 18:03:32 +0100 Message-Id: <20220124170336.164320-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220124170336.164320-1-krzysztof.kozlowski@canonical.com> References: <20220124170336.164320-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 --- .../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 Mon Jan 24 17:03:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 534541 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 DCAADC433EF for ; Mon, 24 Jan 2022 17:05:20 +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 B5A9028B2; Mon, 24 Jan 2022 18:04:28 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B5A9028B2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1643043918; 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=jkGO7oTBNFX95lipAFBs43O2aqR/1zuptO2EDMrD5LG3iYCdmL71rMEwVpFVRz3rn 3IY/zGbF7rlFgQ6Cslhtns242o2qHdeylFsfC0ldGfL3kDYGqb8uC3DVqejrf3AfLk uSRlfSAaj4AZt34yqNSzCLKSAxyX0cYbgNjR15Ys= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 48F81F802BE; Mon, 24 Jan 2022 18:04:28 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3D63FF8030F; Mon, 24 Jan 2022 18:04:27 +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 4E818F800E9 for ; Mon, 24 Jan 2022 18:04:24 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4E818F800E9 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="d7VVSyyF" Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.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 B8AFC3F1CC for ; Mon, 24 Jan 2022 17:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643043863; bh=WHnGp+/co0yjLFJTld0gSMGvtw/E8RuZJ7zwbzyKcNU=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=d7VVSyyF+NkJuWtcFqfiTy1bh0gXByt5RSO28+WJtOwe+M9SKalXD3osvvcrWQeWo xYmzbQ0uuBTCkzgzpS3Zwk98kFRloZSe8yiXiXXOICRmFTvwNlSbqvyXugNEAW0qkL Ar4AmfrfYa6sNEXrV/jBjLh4KeACLtme9TL/E6MtLr8XMAq2ztvfpM7lGYmZP7E3K+ KkmrYp7J1wrA25DoCB3DshOcaMo5yLVcWE7e6ulaLwLAmmp0kx+ZPjmhl57/VqE+mx 8f40cZPxR/CrT2018G3oI88sbPc32/9Oe6xJxgVleNvWTMomXLO7PWkSz24lD10RNr nuwGMcrnwRkPA== Received: by mail-ej1-f71.google.com with SMTP id h22-20020a1709060f5600b006b11a2d3dcfso2345468ejj.4 for ; Mon, 24 Jan 2022 09:04:23 -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=McFm4BwPZ6ekZVXnbaiaX3Ky0RE1boQ34eUYslCmxV6HAx2YXiwmzb4OGMh9XwzKO0 lbk5l1/Q7rkLB4IJNDsXWUZO1bfi+9y0Ivi1M5X2bmXr0VXnymnROmq26mIdngIi91It /gIqtpEi/SDABhstISTo8xMHUBz22Zrymt1WnNobire8TLFRKym9XSUyubpVVLoLsjva x8Wb7NHVIZdVFrK90AK1+yInvDneaGfZyxRDYBZpxrfXIPPT083JeKmEXhFy7WWD88KU NPupWNqxIX6chLAHXnFA0bNna4SuAgy5n3OUVc9CFr9hHMkroS3nJz7noYwC6gVZ/uAj 1fXw== X-Gm-Message-State: AOAM5312F0CP1S/fOOBvsnuJplsxCN1JkIxvD1qnSjgo6/s/uGe3aosm UjDQQ6ukbXrtmbTVIaSF2arCi/2RQr3eH4rFriGpFmw4AHvGnWf/AeFIr6VUpM5E7CF0ItLcHVB K9o1qS/tBwWQDT445rBMgFYcFLG53/WcAz2S0P7Xi X-Received: by 2002:a17:906:5596:: with SMTP id y22mr8179352ejp.8.1643043862520; Mon, 24 Jan 2022 09:04:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJylydnv9+0HE5iRBYqNGtKIgdOAVkwlbhJwvlM+lFHa3jNFMGCzlCqPBbQevZuxHqp1bGdkMw== X-Received: by 2002:a17:906:5596:: with SMTP id y22mr8179330ejp.8.1643043862324; Mon, 24 Jan 2022 09:04:22 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id o11sm6903846edh.75.2022.01.24.09.04.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:04:21 -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 3/6] ASoC: dt-bindings: samsung,arndale: document ALC5631 Date: Mon, 24 Jan 2022 18:03:33 +0100 Message-Id: <20220124170336.164320-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220124170336.164320-1-krzysztof.kozlowski@canonical.com> References: <20220124170336.164320-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 --- 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 Mon Jan 24 17:03:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 536497 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 84DC1C433F5 for ; Mon, 24 Jan 2022 17:05:55 +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 A039828C6; Mon, 24 Jan 2022 18:05:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A039828C6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1643043953; 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=e4iudten3+SOlebHvb7u4Xjd9IRx1yLKkPJSlz2ZuKNS0zOUxUjfZH/WN4hSp+0Qa elLqkiR5TXL9bbICG1KbsJcCGKq2CLe3XJbXaTvRlAcV+kExyLsgB9DCUPWGHzm+Q/ oNIQEeGudzQUmG6wSeZbX/I6rhYXiyyQn+8/H0TQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 25972F8027C; Mon, 24 Jan 2022 18:04:30 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D1161F80424; Mon, 24 Jan 2022 18:04:28 +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 7833CF8027C for ; Mon, 24 Jan 2022 18:04:25 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7833CF8027C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="SiQ4G+BF" Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.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 DE9603F1D8 for ; Mon, 24 Jan 2022 17:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643043864; bh=aFma7LFfbMy+pdLU8XgqpfQtVODFsB45EwHFjG4cPHo=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SiQ4G+BFKx8MddiYx4chwyr2IFI6lXHfzKaLtP6uEhUsw0hSoUStiwrR+NPhOF1ux +ToWy/5kJ7TNxoipEcQCGhDKbZXZWCC5+W2obtdXdT4J+g1zwv6sx1v+At0rnzYKZI IFWAx/BQ6KAWTdbeWJhXsrPM9iU2LvqY9A2lS3ab543GBceZEEMRO1lePfuGyq339C CTTXPWHCNXFzWjd6UPMwA9RJO7q+XEilpARIfcvp9zfeJKQLtNM9XzQbqzMXstpxGy hFMVHskYG9713tw4ouiqd98Z3usGAAdA8rR+T2jcXBc+ioqPENU8QLrgHfWbZELv5s OS+GExtH5apXA== Received: by mail-ed1-f71.google.com with SMTP id k5-20020a508ac5000000b00408dec8390aso760605edk.13 for ; Mon, 24 Jan 2022 09:04:24 -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=RvtE92VAuvBXp2q8yjZiggKkJ0Suz4qx6rZRNUZRAb7v+CVdzvSbKcGs7BcW3xErlU sK50/oP6yNZZwhJhGPraay9GwcVSOD/K17RJ3bbebsb1huE4fJnXkPofjWRotJFRa2VJ /E9DGmXg8y2E5EJbIXKouiQG58aWJsUwtta/ZFYhEOzUOAZVbPjWu1F3WsRp7wwe+0FT G/plgySaXn3hc1RjlKansT/ve2MuNpzNHnmddSa2f9ZyH8bmUQ/rILHirDfjQB0NoWx6 A18dqcJy3JOalPiWjjP8sGeNWsYBaJg5dC9mRwzY4SxPc9TVuRb9lSXVlKezIa3bGwkc X7Zw== X-Gm-Message-State: AOAM533pdqYbkCOj3h5ETAqHCCdeJhSALqgm2oQho5oZUjk1f0y2Ux+z pcpjxMSrGbcIXIz/66MV72mNs4FKBA+oa/e+f/u9dwPHWPsdqPWsmBF3AVkV7LUMULU1SY+WK8p PaZRebI2RQk7ukcJQkFfjqYxpRVuNgI0ED4blAKCm X-Received: by 2002:a17:907:160d:: with SMTP id hb13mr2478835ejc.609.1643043864494; Mon, 24 Jan 2022 09:04:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8dy0UNUYy8V7YlFigpm3/abtk7yXYoxh8/7MuNjbTZltb26qnfPnsmVYy3oKPQLI1sLWBSA== X-Received: by 2002:a17:907:160d:: with SMTP id hb13mr2478820ejc.609.1643043864305; Mon, 24 Jan 2022 09:04:24 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id o11sm6903846edh.75.2022.01.24.09.04.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:04:23 -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 4/6] ASoC: dt-bindings: samsung,smdk5250: convert to dtschema Date: Mon, 24 Jan 2022 18:03:34 +0100 Message-Id: <20220124170336.164320-4-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220124170336.164320-1-krzysztof.kozlowski@canonical.com> References: <20220124170336.164320-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 --- .../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 Mon Jan 24 17:03:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 536496 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 D786AC433F5 for ; Mon, 24 Jan 2022 17:06:18 +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 E1C3328E5; Mon, 24 Jan 2022 18:05:26 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E1C3328E5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1643043977; bh=mAXheLg2Zo5bYnktJxkJkK4xHBKkybeDekyPSipPZDQ=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=OiF32N1HprXVzRsoWqNhoLf03IDQNC0aNzfMvwaoVWh3RZluDd9w49/WJJLHJsdOA Y7c6QzSkprpCoUkBw7M1M/NV7zJXb8XHEwtOqjaCDvPSPzb1c5HM8bIq9cwtAWBu+V iIdxfInpQ6ykJL/21v+qxJNDxHKl/3X4X2L4bWHg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 41FB1F80519; Mon, 24 Jan 2022 18:04:35 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8FC35F80517; Mon, 24 Jan 2022 18:04:32 +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 9904DF80083 for ; Mon, 24 Jan 2022 18:04:26 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9904DF80083 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="LKNKXlRB" Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.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 29DE33F1E0 for ; Mon, 24 Jan 2022 17:04:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643043866; bh=m/SJzOvCGXryS1758Fh3hpAtkFdWGlrBiM3VxRdkYrE=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=LKNKXlRBGJtgEP2d98D8QFuAKMkOOxirr9Vr1HYCxNNYJsnlA4xCoJi77HUIokMlt waG+1sHcJVPzkPLl5Mdq+P+QvrLT9sA6QqHu6jEloKyv9Ek2eAr2iKx26HxTIrre7b MizlLl5cfBHDVhuMYGzOghWULMt88FGRseGZXd6SVaeHsZc+uPOdCZfwzkUdWbKQ+5 bgcBLpXYR3+K+rAukRJG+qkPYx32bV3Iq7rbtpcB/vCo7+oOp1JC6W4jjhb0Df+OaS Ul7o4+6ml6lTSIsLqJsQCnMT94zTuaSTb4IQLPaGaOC3ISUzTHUlWru+YoQ5fx1GZC MtqEPcGvyk9Mw== Received: by mail-ej1-f69.google.com with SMTP id ky6-20020a170907778600b0068e4bd99fd1so2347979ejc.15 for ; Mon, 24 Jan 2022 09:04:26 -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=m/SJzOvCGXryS1758Fh3hpAtkFdWGlrBiM3VxRdkYrE=; b=tvb10Y0qLgBidnidllqUkENu2JSPdCBTGiJjDWU7tNtdUUjktEaBSMmzH1xFzIG6DP bU+pbQV6SAHH3/OXDiWzdAhPzMVxiMWlpPmO+iYk/M9RRfdx9FmYH5WzvXsBM5KPoVCA KrFeFNBD/iomhlV62Wn6Ouum/CHjakapwDFZMPYb+jOHBApJ49HtE/2WNDPN6BqkYf2p bQSNVUpc5+rm1Cdft4XeoQ7wTZ5AfmzOvGDCCGeqmmtA3kn7HzI8PvPRoCFN1a8ZMTqg Zj2hrT/5KH3cd6ji2ZlPfKq6kl4BvhknCqk6S8hB6xjzsLlisSniUYD5gUTs9NSwGG2D uKMQ== X-Gm-Message-State: AOAM531Wzw/ESH4QPIK9AXAleCg+Iw4j0tUfZmNBgwHJ9SM0pmNxFO1v L9Gcekdecx9FKUAlvZ4t5Mf423iksQkf3Z3/rxZJf5GhKSjcpEbIZaJ3xMzaSfuFX2dqndpWQpn RXdsuXd+LgPGrrSLexicmpPF0N5uzbOguQ3E2YX8y X-Received: by 2002:a17:906:9c82:: with SMTP id fj2mr12667488ejc.699.1643043865736; Mon, 24 Jan 2022 09:04:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQjQyxA1HcV6BfnXmwkoNRaO8orvjbUNf88YPPwPUgaCU+EwbK3OjKEFnrhzcCFEEQ+666QQ== X-Received: by 2002:a17:906:9c82:: with SMTP id fj2mr12667473ejc.699.1643043865565; Mon, 24 Jan 2022 09:04:25 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id o11sm6903846edh.75.2022.01.24.09.04.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:04:24 -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: [RFC 5/6] ASoC: dt-bindings: samsung,snow: convert to dtschema Date: Mon, 24 Jan 2022 18:03:35 +0100 Message-Id: <20220124170336.164320-5-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220124170336.164320-1-krzysztof.kozlowski@canonical.com> References: <20220124170336.164320-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 --- TODO: The DTS do not pass cleanly. cpu/sound-dai should be fixed. --- .../bindings/sound/samsung,snow.yaml | 78 +++++++++++++++++++ .../devicetree/bindings/sound/snow.txt | 31 -------- 2 files changed, 78 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..df969b384839 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/samsung,snow.yaml @@ -0,0 +1,78 @@ +# 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. + $ref: /schemas/types.yaml#/definitions/phandle-array + 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. + $ref: /schemas/types.yaml#/definitions/phandle + items: + - description: Phandle of the I2S controller. + - description: Index of the I2S controller. + 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 Mon Jan 24 17:03:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 536495 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 5A00FC433F5 for ; Mon, 24 Jan 2022 17:07:03 +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 6EF0328D1; Mon, 24 Jan 2022 18:06:11 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6EF0328D1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1643044021; 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=Z0MXZZqMDeYWFWWpu+j/AfDJJLJygnIevx4QimG6WwH0PY1ce5a2yeL6JW5zMrDNb Vf0GOJR8HzGiKH/egteOKCq/r63P8dtC81iyHthmjW0ebmxHxpM8WLZwUxbFqPeBLm FymYUZIwUneJ5Cgb6u5CHEF+2Y3bcAUsEoSVz2F0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 7CEBBF80524; Mon, 24 Jan 2022 18:04:38 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C62EFF80525; Mon, 24 Jan 2022 18:04:37 +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 05A13F80517 for ; Mon, 24 Jan 2022 18:04:29 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 05A13F80517 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="cJpOrBPo" Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.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 54D793FFFD for ; Mon, 24 Jan 2022 17:04:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643043869; bh=tXqK0pipG2DbLRjVtcGxzSWNM2TWL5POjuuSkj4vEW8=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cJpOrBPoyMpgaIMBUKgrGNMt6w3UvvSimrkwVFwIZZv48KB+GjVukAVJalXBCnr2o UCmNB5aIIykOtRAYDEEt3Ho7ydfh3BkuVuTEsn7nFHAxWXTCN9DBTjnmAiyc355/Fd TybYjyGOmVFoK8LCdn3Jlsj85u353eBd2xG/fSnA9AWNZHiyDUjmz8PvrHT/jvso2F 4L9YLlxPKJQMT1hJ5TA+mCdifEKey8wN5K+d3fn0fTvmZ1UkKjwf1y+lHrw1R8NSUo m2MXia/UOVhnADuGw//yRgcTkGI1Gxwu6JCW3Aa9NyHFl7P7c52HC5UGIxfZMOeupt yar7SgJ2jyKzg== Received: by mail-ed1-f71.google.com with SMTP id c11-20020a056402120b00b0040321cea9d4so13455925edw.23 for ; Mon, 24 Jan 2022 09:04:29 -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=04JJ4/ucQz3AXemDrfORRo7ilL07RpX2tSn8gvrSV8CMCGesb6yz3EKsKah5EXTb2G WvWx3c4QrQTCjllHn0d9aetAWtHMomddG/1FnWmudcvMYqWZKtTMs1+5VjAA/LT4T9ew iZYRezKLXm58e7GzpJtD106NDw9t0bQbAwHd9Mda6aT1g+w2yy5u4kp+X2mxDTUk6qO5 NyPD+oAHC3InpD4AuQ3LvOGmHl39wHHgQcntwB0ksf52gN/hyZbJymEZJt5ouJ6ZjbYm JKwp4eBX/VoQlx1q0cm33bNp5+nk7yDZuE4bRavATLsl4CnpP12qR/Uq4HHbptMx4Rbm cs8g== X-Gm-Message-State: AOAM532IXeLnzGjxOAAKtmCZkNUn143YJBJ98tOqF9ScZRfLAIAOkzFV tbvYtxio4miy5/xb4VtLERAzMKOLRn3IJc0a5pq2aRveqyHA347uG2Iw9nj+RCx0hjp3x3l1jmj wMYRhW4Nneia4N5uBvGaAlO6wWq+N4fMoEYPXd3IA X-Received: by 2002:a17:907:62a1:: with SMTP id nd33mr13076926ejc.578.1643043867803; Mon, 24 Jan 2022 09:04:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXf92USALcbrXLrv5+/4JqlVrxe0UnW/ZBZv+jrm84Km565mZiaUpixrWAnqJJLbn1fOdrOw== X-Received: by 2002:a17:907:62a1:: with SMTP id nd33mr13076897ejc.578.1643043867500; Mon, 24 Jan 2022 09:04:27 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id o11sm6903846edh.75.2022.01.24.09.04.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 09:04:26 -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 6/6] ASoC: dt-bindings: samsung,tm2: convert to dtschema Date: Mon, 24 Jan 2022 18:03:36 +0100 Message-Id: <20220124170336.164320-6-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220124170336.164320-1-krzysztof.kozlowski@canonical.com> References: <20220124170336.164320-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 --- .../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"; + };