From: Ion Agorria <AG0RRIA@yahoo.com>
To: Thierry Reding <thierry.reding@gmail.com>,
Jonathan Hunter <jonathanh@nvidia.com>,
Stephen Warren <swarren@nvidia.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Takashi Iwai <tiwai@suse.com>,
Jaroslav Kysela <perex@perex.cz>,
Rob Herring <robh+dt@kernel.org>,
Svyatoslav Ryhel <clamor95@gmail.com>,
Ion Agorria <ion@agorria.com>, Dmitry Osipenko <digetx@gmail.com>
Cc: linux-tegra@vger.kernel.org, devicetree@vger.kernel.org,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: [PATCH v1 1/2] ASoC: dt-bindings: tegra: Add binding for RT5631
Date: Sun, 31 Jan 2021 19:41:00 +0100 [thread overview]
Message-ID: <20210131184101.651486-2-AG0RRIA@yahoo.com> (raw)
In-Reply-To: <20210131184101.651486-1-AG0RRIA@yahoo.com>
From: Svyatoslav Ryhel <clamor95@gmail.com>
Add device-tree binding that describes hardware integration of RT5631
audio codec chip with NVIDIA Tegra SoCs.
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Ion Agorria <ion@agorria.com>
---
.../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 <jonathanh@nvidia.com>
+ - Stephen Warren <swarren@nvidia.com>
+ - Thierry Reding <thierry.reding@gmail.com>
+
+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 <dt-bindings/clock/tegra30-car.h>
+ #include <dt-bindings/soc/tegra-pmc.h>
+ #include <dt-bindings/gpio/gpio.h>
+
+ 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>;
+ };
+
+...
--
2.26.2
next prev parent reply other threads:[~2021-02-03 7:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20210131184101.651486-1-AG0RRIA.ref@yahoo.com>
2021-01-31 18:40 ` [PATCH v1 0/2] ASoC: tegra: Add RT5631 machine driver Ion Agorria
2021-01-31 18:41 ` Ion Agorria [this message]
2021-02-02 13:16 ` [PATCH v1 1/2] ASoC: dt-bindings: tegra: Add binding for RT5631 Jon Hunter
2021-01-31 18:41 ` [PATCH v1 2/2] ASoC: tegra: Add RT5631 machine driver Ion Agorria
2021-02-02 13:22 ` Jon Hunter
2021-02-02 15:25 ` Dmitry Osipenko
2021-02-02 16:24 ` Jon Hunter
2021-02-02 16:57 ` Dmitry Osipenko
2021-02-02 17:00 ` Mark Brown
2021-02-02 15:54 ` Dmitry Osipenko
2021-02-02 13:23 ` [PATCH v1 0/2] " Jon Hunter
2021-02-03 21:42 ` Dmitry Osipenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210131184101.651486-2-AG0RRIA@yahoo.com \
--to=ag0rria@yahoo.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=clamor95@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=digetx@gmail.com \
--cc=ion@agorria.com \
--cc=jonathanh@nvidia.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=perex@perex.cz \
--cc=robh+dt@kernel.org \
--cc=swarren@nvidia.com \
--cc=thierry.reding@gmail.com \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox