From patchwork Wed Mar 8 07:34:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 66055 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp192352wrd; Tue, 7 Mar 2023 23:41:29 -0800 (PST) X-Google-Smtp-Source: AK7set/QgAHLAu3e+ASiGyLeWQ7c5DXVT9TkhKjxwpELBOO5GXtNBq4rTFK5BMG68bZmnRAqm3kO X-Received: by 2002:a05:6a20:4b26:b0:cd:1e80:587d with SMTP id fp38-20020a056a204b2600b000cd1e80587dmr14365915pzb.23.1678261289249; Tue, 07 Mar 2023 23:41:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678261289; cv=none; d=google.com; s=arc-20160816; b=Xoq1Tll+whDfGNtenHLs59vw4fDlV6iWuSIwMk7AKXmPlyRiWO+pMGDpPIzuA8Qulw mI6Zg+cqf0qkGz3uBNaZVZOIvQ416l/CMtjHOiQb6LiGCmNX8Y3rCVJ3zerR7QS6CXYE 4KEkjxzb6jRzV+/Gp15WaZokyVkrlMXrd9R10wXAcUsft3t3lMr3RXGUZ/+70CH+zn+M TFxgVXsll4G19cqCnk9CvU0K7djaK4yQBIuX/H1Dh6BrWpY5Xz4X8EeEItsyAD41GCdx hEgnULDhUjqT0dETOgO6HmgBh23wkFqg3xaeaVUbYwvtpF9LRgx7ps8TafVQKXNauIiJ 82eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WBcnq48gZafulICVd9tvrELT8WaB8t4pfISzUK/pzOI=; b=Lok654njraBGaJVySH0jwzf6a5ihM6rFwBRfWDqWYUfyzNoeuqnZttnhUVhsbPZHj2 KofmauKwpUo2GN5V94fVxdiVZQSG8AgOW52vXFxGN5U+4mh6fGDrPK57l53nKGVubxFS eGlW2x1p5iKrx1VEZdO4T7nblgQiTR+z+6rm+myu2S81HmrzoMP8heLgboaepqrA/HRw bTihjPpS6rBnvu6pOq4UdsJ4sgy0ev3wIiFedIe6T3q8EVsUeAFMIflL3sTqtSxEDK8M D/Bkf4hbsUYHzQIHWJ/hJncWJ4H33aA2Qni5xrHlR+hAqC8J+Dth3EqlGb4y7oNf4I5d oVOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LtOCJHK4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l64-20020a639143000000b005001709205bsi14536114pge.722.2023.03.07.23.41.16; Tue, 07 Mar 2023 23:41:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LtOCJHK4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbjCHHgA (ORCPT + 99 others); Wed, 8 Mar 2023 02:36:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbjCHHfg (ORCPT ); Wed, 8 Mar 2023 02:35:36 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 357EF1EBC2; Tue, 7 Mar 2023 23:35:29 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id s11so62021673edy.8; Tue, 07 Mar 2023 23:35:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678260927; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WBcnq48gZafulICVd9tvrELT8WaB8t4pfISzUK/pzOI=; b=LtOCJHK4KvMX8bwTtHJrl8sZHkh+iEgZz6I87FKs713yXXegtKWTWcWFc/1P5V9pzf 3uY+McYYdyOoCIzWMZN/E8S7P226CMZ9IOdn2mjGDHGkVxhkMf3rW5KFJaSLlBL9654V y1PqPvye6lBWlzcGm2qHm/B3ECEH07bWwXAKuc32lJ/CkfDb1kSVmODkVoVVHSnWM1Ua VU592RmHtzHhiVi/XRlwqqmbsN6WI2OA+EimSNlXcN2lb3nwUSI/2pzvGnb42sZ+zTvg usP2J3osvVH8ExlHymqazrZHFPd2jryxCbmCMxDygSxQlrVZr/yP6hgm8W3rx1utFwFR sLJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678260927; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WBcnq48gZafulICVd9tvrELT8WaB8t4pfISzUK/pzOI=; b=OlIjTofCt+U2ao2LluRkA5CWloWLYcVQtMbET/M9mpGLifjerJ69UDufRzAzIYChih KLKo5KFTDV/rnCLTNgCXuRa1OTz2/iTyBSrPeLKgH9B14bydCLtEzCY9Evkt+/7R32cT Bd1/23tC5awBtMZ+qMC2huJGrv4N1njje0IQj/4aRbsDD90pl/a1W4iyluwkVqwjuo44 MJNMA16hXobmdUesmc/zggv6gkaDNnmCbD3IQDEjlQc8rXFJH/t9oeWFGo8+RUBdQZoU OR+LZWQyvRdfFIHW/GIk77xb02khuDHGhcfyEkhWWeg6ozaEjdIwNyPI0UTUeGPjr1Fk bQdw== X-Gm-Message-State: AO0yUKWP52EUF+CRr3gYF+YL2XZEHGE1F/rx7diz2MV4HiNvo12XeF5E dCe4hY2xRzwI7635rJIt2Xo= X-Received: by 2002:a17:906:2db1:b0:7c9:6e0e:1427 with SMTP id g17-20020a1709062db100b007c96e0e1427mr15342605eji.6.1678260927608; Tue, 07 Mar 2023 23:35:27 -0800 (PST) Received: from xeon.. ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id h15-20020a1709062dcf00b008dffda52d71sm7051880eji.124.2023.03.07.23.35.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 23:35:27 -0800 (PST) From: Svyatoslav Ryhel To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Jonathan Hunter , Jaroslav Kysela , Takashi Iwai , Svyatoslav Ryhel , Maxim Schwalm , Dmitry Osipenko Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH v2 4/8] dt-bindings: sound: nvidia,tegra-audio: add RT5631 CODEC Date: Wed, 8 Mar 2023 09:34:58 +0200 Message-Id: <20230308073502.5421-5-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230308073502.5421-1-clamor95@gmail.com> References: <20230308073502.5421-1-clamor95@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759784509778850415?= X-GMAIL-MSGID: =?utf-8?q?1759784509778850415?= From: David Heidelberg Add dt-binding for RT5631 CODEC. Signed-off-by: David Heidelberg Signed-off-by: Svyatoslav Ryhel --- .../sound/nvidia,tegra-audio-rt5631.yaml | 85 +++++++++++++++++++ 1 file changed, 85 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..a04487002e88 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/nvidia,tegra-audio-rt5631.yaml @@ -0,0 +1,85 @@ +# 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 audio complex with RT5631 CODEC + +maintainers: + - Jon Hunter + - Thierry Reding + +allOf: + - $ref: nvidia,tegra-audio-common.yaml# + +properties: + compatible: + items: + - pattern: '^[a-z0-9]+,tegra-audio-rt5631(-[a-z0-9]+)+$' + - const: nvidia,tegra-audio-rt5631 + + 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 pins (documented in the binding document), + and the jacks on the board. + minItems: 2 + items: + enum: + # Board Connectors + - "Int Spk" + - "Headphone Jack" + - "Mic Jack" + - "Int Mic" + + # CODEC Pins + - MIC1 + - MIC2 + - AXIL + - AXIR + - MONOIN_RXN + - MONOIN_RXP + - DMIC + - MIC Bias1 + - MIC Bias2 + - MONO_IN + - AUXO1 + - AUXO2 + - SPOL + - SPOR + - HPOL + - HPOR + - MONO + +unevaluatedProperties: false + +examples: + - | + #include + #include + sound { + compatible = "asus,tegra-audio-rt5631-tf700t", + "nvidia,tegra-audio-rt5631"; + nvidia,model = "Asus Transformer Infinity TF700T 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>; + + 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"; + };