Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp627286pxb; Tue, 2 Feb 2021 13:38:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoSqHWghhVzxxjxlY4Efjfu5LynJbkTNMRT8JFBkPxlM1IXkHqWJs3QnlVvIJ4uuQ4x0U0 X-Received: by 2002:a17:907:961b:: with SMTP id gb27mr22858042ejc.413.1612301933623; Tue, 02 Feb 2021 13:38:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612301933; cv=none; d=google.com; s=arc-20160816; b=M3/xg41XYRaA0cqHdjdCjyGUMdLQPi+AosNhEdMS4uzjIqVib8QKd5yjZzcC4SvbJs QbUvTHHkkqzvXFr1KGYyUimlzYFUyIiPmqe5ikdaEVLxdRaWvSTZttd0v1xiSm7RL2Ov AnuRWxoPofw3/Z4U5Cx/o06D1lAk0R2VrXWAft0UnWkHETXOlVyROlYT+ALtjfuEVI+I tg2v4vXOENHuNrb8Lzpc6HWKI9xs23pv+t409OWIeIouiI84zWEEkNxfpl/5DT/TrRWn nIHggpvXfCMJuYfFnRkSAqO/GwfwkfNhl7cYioyomA6XpE1MuKlhBcCv9ChZCRC9io4o WRGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=kHwwCFZOBcZt8HEeiinoBimAE/Mk7BxGie3JGOVk6Vg=; b=kiWoHrqzwlzpVhan/8MWy+WX0jdfIB5xtDwz6wMtIRSGcAyH48IS2IJBWIJmDmFlv7 bc26h9P43UK/HNdKqmL6D4MtmNsqeFs0SFiUA/ECFC/QB18qVOMSggQu1fTI2lJv4SQ/ fky4isYuXkk+jm2ucyMXsD4dPL+9EY/C5FNgIcLgZEw7aKMEjqP2pHUdNsVny6SDzW7/ D01OWRKrMf19lBd7LCHzUhv1K2BUnnj1x8xHPCi6t3/heyzENxjPvHKKAg+2mCfIiPa/ MPd7n8dqeNaZ3jr3/aK8H1iM5rvcCrnywGskuZ0tySriYkygCZ+LR4/34L5/sO0DbfVW QxaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=SXcxHqIz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ak17si60437ejc.215.2021.02.02.13.38.27; Tue, 02 Feb 2021 13:38:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=SXcxHqIz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232311AbhBBNSb (ORCPT + 99 others); Tue, 2 Feb 2021 08:18:31 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:14216 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232040AbhBBNRx (ORCPT ); Tue, 2 Feb 2021 08:17:53 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 02 Feb 2021 05:17:04 -0800 Received: from [10.26.73.224] (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Feb 2021 13:17:00 +0000 Subject: Re: [PATCH v1 1/2] ASoC: dt-bindings: tegra: Add binding for RT5631 To: Ion Agorria , Thierry Reding , Stephen Warren , "Liam Girdwood" , Mark Brown , Takashi Iwai , Jaroslav Kysela , Rob Herring , Svyatoslav Ryhel , Ion Agorria , Dmitry Osipenko CC: , , , References: <20210131184101.651486-1-AG0RRIA@yahoo.com> <20210131184101.651486-2-AG0RRIA@yahoo.com> From: Jon Hunter Message-ID: Date: Tue, 2 Feb 2021 13:16:57 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210131184101.651486-2-AG0RRIA@yahoo.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1612271824; bh=kHwwCFZOBcZt8HEeiinoBimAE/Mk7BxGie3JGOVk6Vg=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Language: Content-Transfer-Encoding:X-Originating-IP:X-ClientProxiedBy; b=SXcxHqIz/otPP7pSDUkaNNJyzDSKSpq05Z7/lRwcuR529gT9L8F/dhOAPNpyDgn77 h4fgNq8ecgTor2hP0/5ASb/OS9lmgWsaBSOAFcrx31D3/4JTaJykC4jjF/+IOraLpB Oog4HjOm1c+p3kf6HSAh1VseNOjtxgERT40zDk+Mp4//N5rWMLbGyPy4VtGvrjLTLL ToDqtmc4vShE+B61DxAqMtfBOP13mmAWAQhsupQcRl0GzfcABkOU5skdkTrKaY4nth x+5nXkRA/fBz/awz33SIppEzLLsO8toMWYOEeDf8Arbpqkjq9hh2Fegl3kAYscbamR fcE0z5/kiP2gA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/01/2021 18:41, Ion Agorria wrote: > 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 Thierry and I should be sufficient and so no need to include Stephen in the list. > + > +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>; > + }; > + > +... > Otherwise looks good to me ... Reviewed-by: Jon Hunter Cheers Jon -- nvpublic