From patchwork Sun Jan 31 18:41:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ion Agorria X-Patchwork-Id: 12063533 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FORGED_YAHOO_RCVD, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1249C433E0 for ; Wed, 3 Feb 2021 07:03:17 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id E8E3764F60 for ; Wed, 3 Feb 2021 07:03:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E8E3764F60 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=yahoo.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org 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 580211721; Wed, 3 Feb 2021 08:02:25 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 580211721 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1612335795; bh=CwFNVjrVK62N3TAY3o7IKcQYL62hNKs6oms0HU/LKN8=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=GxLTbymPDOuqmGIc61nAnI2GEydyy4WNAVj7vvs/7H51zu9b29TiCuQ3+lmdXYckU Bzb7EpIgksYcDqgJPnrLwKI/cSmvqhLwNyg0Vcn6cK7MaPE+95wJv1jBe+X9nDWGhf raGt7uro84rRCkgJLFk8Khl5xB5qq7aQBKHpwqOQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 08555F8021D; Wed, 3 Feb 2021 08:01:35 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9D450F801F7; Sun, 31 Jan 2021 19:43:50 +0100 (CET) Received: from sonic309-52.consmr.mail.ir2.yahoo.com (sonic309-52.consmr.mail.ir2.yahoo.com [77.238.179.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 92DCCF8016E for ; Sun, 31 Jan 2021 19:43:33 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 92DCCF8016E Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b="lVka3P44" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1612118612; bh=v7I3tB+1qyMyvErvK8UKhycYIpGAyMoxrrmdcVZj7mE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=lVka3P44uu/iXMrBGDnWObq6EtqDGzT0BFGwsOoTU5l3JcIVhFkYJpY89FzxDT+NVa2OpFHeAAoSLAnFaQAVHYJGE0KB7/CWvBCMNd0czFcw2wEgRMyMKg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7ST.Ggj2AXmXAr2XT9Iux3zHSCcVygEhnGr.1Veb rGbOJ6U2iQc.wowwi6tUHW__QNERLxJQ7kX_urZudati7THynIPiNHbiHXbHIQn6ZLTgLhZqadDz oEDvyYbQmLXup2zY0a6A94kKGESk6I4_.OBz2iaKd9W7v9E58_3wHVLNQZYjaiKXbuHZYCQVyFc4 p6DujTu7pgoMx_q.BE9FEivWnlBWx11sT_8j9KuW9.919UVupN8Fg4D7.QTfiCi5R.TKMX4ixeq3 uqq23l4x384X554xsMCGIh0.jeoiKSBvMUw_4bJDHMAekj291BKfike3Q7ue8WUqUDTg5GPMDD.w 5AMlz2L51DTgHd9faFw8Tp3s2lJSfal2uGm9b3aJuXzgw46K.cHUSdHP0ZaOsvQAE09J4etxz7Wb JZQGVaCI7G_EtXtYYKdi7gm0KxIYnK4tagu0vICfiawKLaM0uohP8rDOhetp8htn6TX1FYjCM9kX yP.CcZWzmkCDn_5aqNj00QJ8KLhqsSILny6_HlGNA.eUuG8I6MRxC01tfwExEnCIFfI12XUPc1bc TzylM7NMP9LzYtX10q8RpfnZkmlLT9evZptpOngTp9xXj_WwsQOyx Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Sun, 31 Jan 2021 18:43:32 +0000 Received: by smtp407.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e16a2e904335ed9f41206b782293961f; Sun, 31 Jan 2021 18:41:30 +0000 (UTC) From: Ion Agorria To: Thierry Reding , Jonathan Hunter , Stephen Warren , Liam Girdwood , Mark Brown , Takashi Iwai , Jaroslav Kysela , Rob Herring , Svyatoslav Ryhel , Ion Agorria , Dmitry Osipenko Subject: [PATCH v1 1/2] ASoC: dt-bindings: tegra: Add binding for RT5631 Date: Sun, 31 Jan 2021 19:41:00 +0100 Message-Id: <20210131184101.651486-2-AG0RRIA@yahoo.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210131184101.651486-1-AG0RRIA@yahoo.com> References: <20210131184101.651486-1-AG0RRIA@yahoo.com> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 03 Feb 2021 08:01:31 +0100 Cc: linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org 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" From: Svyatoslav Ryhel Add device-tree binding that describes hardware integration of RT5631 audio codec chip with NVIDIA Tegra SoCs. Signed-off-by: Svyatoslav Ryhel Signed-off-by: Ion Agorria --- .../sound/nvidia,tegra-audio-rt5631.yaml | 134 ++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra-audio-rt5631.yaml diff --git a/Documentation/devicetree/bindings/sound/nvidia,tegra-audio-rt5631.yaml b/Documentation/devicetree/bindings/sound/nvidia,tegra-audio-rt5631.yaml new file mode 100644 index 000000000000..6ee62c599518 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/nvidia,tegra-audio-rt5631.yaml @@ -0,0 +1,134 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- + +$id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-rt5631.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra RT5631 ASoC + +description: | + This binding describes integration of the Realtek ALC5631/RT5631 sound + codec with the sound system of NVIDIA Tegra SoCs. + +maintainers: + - Jon Hunter + - Stephen Warren + - Thierry Reding + +properties: + compatible: + enum: + - nvidia,tegra-audio-rt5631 + + clocks: + minItems: 3 + items: + - description: PLL A clock + - description: PLL A OUT0 clock + - description: The Tegra cdev1/extern1 clock, which feeds the card's mclk + + clock-names: + minItems: 3 + items: + - const: pll_a + - const: pll_a_out0 + - const: mclk + + assigned-clocks: + minItems: 1 + maxItems: 3 + + assigned-clock-parents: + minItems: 1 + maxItems: 3 + + assigned-clock-rates: + minItems: 1 + maxItems: 3 + + nvidia,model: + $ref: /schemas/types.yaml#/definitions/string + description: User-visible name of this sound complex. + + nvidia,audio-routing: + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + description: | + 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 RT5631's pins (as documented in its binding), and the jacks + on the board: + + * Int Spk + * Headphone Jack + * Mic Jack + * Int Mic + + nvidia,i2s-controller: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle of the Tegra I2S controller. + + nvidia,audio-codec: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle of the RT5631 audio codec. + + nvidia,hp-mute-gpios: + description: GPIO that mutes the headphones (button event). + maxItems: 1 + + nvidia,hp-det-gpios: + description: GPIO that detects headphones plug-in. + maxItems: 1 + +additionalProperties: false + +required: + - compatible + - clocks + - clock-names + - assigned-clocks + - assigned-clock-parents + - nvidia,model + - nvidia,audio-routing + - nvidia,i2s-controller + - nvidia,audio-codec + +examples: + - | + #include + #include + #include + + sound { + compatible = "nvidia,tegra-audio-rt5631"; + nvidia,model = "NVIDIA Tegra RT5631"; + + nvidia,audio-routing = + "Headphone Jack", "HPOL", + "Headphone Jack", "HPOR", + "Int Spk", "SPOL", + "Int Spk", "SPOR", + "MIC1", "MIC Bias1", + "MIC Bias1", "Mic Jack", + "DMIC", "Int Mic"; + + nvidia,i2s-controller = <&tegra_i2s1>; + nvidia,audio-codec = <&rt5631>; + + nvidia,hp-det-gpios = <&gpio 178 GPIO_ACTIVE_LOW>; + nvidia,hp-mute-gpios = <&gpio 186 GPIO_ACTIVE_LOW>; + + clocks = <&tegra_car TEGRA30_CLK_PLL_A>, + <&tegra_car TEGRA30_CLK_PLL_A_OUT0>, + <&tegra_pmc TEGRA_PMC_CLK_OUT_1>; + clock-names = "pll_a", "pll_a_out0", "mclk"; + + assigned-clocks = <&tegra_car TEGRA30_CLK_EXTERN1>, + <&tegra_pmc TEGRA_PMC_CLK_OUT_1>; + + assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_A_OUT0>, + <&tegra_car TEGRA30_CLK_EXTERN1>; + }; + +...