From patchwork Mon Mar 27 15:02:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 75517 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1584687vqo; Mon, 27 Mar 2023 08:12:54 -0700 (PDT) X-Google-Smtp-Source: AKy350aEAEBUoIAV93SMIGEphzBbzaRBswbgmRBcnmNmV0jtUL9wsJ5lIUypkHCr1te2h1CsqRqP X-Received: by 2002:a17:907:2059:b0:8af:2107:6ce5 with SMTP id pg25-20020a170907205900b008af21076ce5mr10950116ejb.35.1679929974686; Mon, 27 Mar 2023 08:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679929974; cv=none; d=google.com; s=arc-20160816; b=lCrYt7qzqckcT1Ts2inbUsgIOJ7wdTXIcx2T8aW84gF79M4cDsp8HIiZVwDe2Hlkat T7gv74RUggbmC1h0FRFGyzgglqpBrTp8WhBic6cOEqq7AF70RQInrgMqyiR2dz9cOeQ8 NKYIgZ8O3sr3lbVjSS67siOJztcmUDB8OQCUkjzlEqAO3npl7wSqkLSghDm+xbDO3d+8 XrOBzJXV7jGd33bIBYEJJpBZPbpOK9KYBkBeK0eABZePI6n8ZYPUgZbBJVVMxwy8Ngd9 873Hz1aKi8A8dLigH1cObO0udmYPriqUaDyrtlYTBgEC9AE9ZYck1vqITU+rA7InUBD5 8Jmg== 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=3af7AQ9wLc3osxXyvBrW7r37wpKHewq77ohhLjiNp5I=; b=m/XX9/gRbXv4bRIwfyCjHOObEtm8+WGiC9J0r2MogzJkC0ndYcu0bgSDLm6dw9SPxQ gDGFm2ErdORcYZ91cs+nRajHb78v7JEZBLgqlT2PGj00ceR+GGYFfxIkQGK79YyTXsOW h7+1MmzcUm5d8iWJ7yyGcTLstcdZNMQTRNU+GZDyqGVJifzGZJ0dlwgIqeClsTVYhM5N sGG84zN/wZyOblG0K8vHxdaLRanNYGe9LhVbOLruPt5MkZFqrMwwEykdiP1RFFxfavLW H/n3nRJXZRj4P7vjLDIbsBnlq4uAtMYNw6xQV+fdzB61yuTnMF/jT5VeGfEeM/32FG7n zrcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aJAMeUSu; 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 tl2-20020a170907c30200b0093c96889d25si12348199ejc.407.2023.03.27.08.12.29; Mon, 27 Mar 2023 08:12:54 -0700 (PDT) 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=aJAMeUSu; 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 S232514AbjC0PEA (ORCPT + 99 others); Mon, 27 Mar 2023 11:04:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232153AbjC0PDv (ORCPT ); Mon, 27 Mar 2023 11:03:51 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 021FF3596; Mon, 27 Mar 2023 08:03:03 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id x17so11868704lfu.5; Mon, 27 Mar 2023 08:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679929356; 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=3af7AQ9wLc3osxXyvBrW7r37wpKHewq77ohhLjiNp5I=; b=aJAMeUSuyua/Fa1o+yzjjCi4t7zNAxGXPG0mr4ctDoteRlTqAfsvzt1UmCylvScST+ D53MpZfSCQPDgUc4+h6B7RJD9NS7BV9RdYb6/cn4TGT16+1YttXq8Rye0AiNdP/bI6wF sLW+/u9BtWSxrCwrd9nt1QCeK0N5jhH82sQNgvY20RpccuN9HQlRPXikT8jzUa17mYOd mw18ksCfHZkzth1pn5CNNsc0+mw12AKyd6tYCn9ddyKIVgT1m53d5eVuSdJW2paltwS0 Fh1NNRXw8IlOEsmcFE7+n0Lw1IuKRyOIaybwgKVSBOb7K5BThsbAaPL58VQc6NDK1sqB mZHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679929356; 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=3af7AQ9wLc3osxXyvBrW7r37wpKHewq77ohhLjiNp5I=; b=iSMijXm7selnhKm6hWZu/w/rqkmV1FpSsGpvP7tSsHxqUCz7ciPxy5rCylW27GniVJ lZP+pQYbqhpknw8PHlMWD6+z0skoSdOVp56DExxpbpvHkBfNUpFqF6tT0IpqyO/tgqdV sI5PIim+ThCxNanzmAps1ecUbTBx0g1O+YGD4N5MPqDmNmrDJdTZzZOGkNUkPhz8qvhK FwypytfGa2U9tgUc+CP4ugswi0l/58fnTvLBGeT+Ci/hYYVr/QYA6ljXjiac3GquzVx7 NYA1S6T7kiZ4o1211HB0nV3nSnJguW0tIYw3vUPWmHmE5tuTw86GjpY5IkGlCzsuBpAQ Y3Qg== X-Gm-Message-State: AAQBX9ePnVuG3OGmnpN6cgChieXP4kXWxyo5lOUEQt1BKm4vdiNkUkK2 0muFgeieVl+oJWjfSsAcRDs= X-Received: by 2002:a19:a40a:0:b0:4eb:982:adf with SMTP id q10-20020a19a40a000000b004eb09820adfmr1952941lfc.26.1679929356417; Mon, 27 Mar 2023 08:02:36 -0700 (PDT) Received: from xeon.. ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id f4-20020a19ae04000000b0049ad2619becsm4706923lfc.131.2023.03.27.08.02.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 08:02:36 -0700 (PDT) From: Svyatoslav Ryhel To: Rob Herring , Krzysztof Kozlowski , Thierry Reding , Jonathan Hunter , Svyatoslav Ryhel , Maxim Schwalm , Dmitry Osipenko Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v4 2/2] ARM: tegra: transformers: bind RT5631 sound nodes Date: Mon, 27 Mar 2023 18:02:19 +0300 Message-Id: <20230327150219.13636-3-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230327150219.13636-1-clamor95@gmail.com> References: <20230327150219.13636-1-clamor95@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=0.1 required=5.0 tests=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 autolearn=unavailable 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?1761534253052226848?= X-GMAIL-MSGID: =?utf-8?q?1761534253052226848?= TF201, TF300TG and TF700T support RT5631 codec. Signed-off-by: Svyatoslav Ryhel --- arch/arm/boot/dts/tegra30-asus-tf201.dts | 17 +++++++++++++++++ arch/arm/boot/dts/tegra30-asus-tf300tg.dts | 17 +++++++++++++++++ arch/arm/boot/dts/tegra30-asus-tf700t.dts | 17 +++++++++++++++++ 3 files changed, 51 insertions(+) diff --git a/arch/arm/boot/dts/tegra30-asus-tf201.dts b/arch/arm/boot/dts/tegra30-asus-tf201.dts index 3c2b9e93e028..0406c5a69c12 100644 --- a/arch/arm/boot/dts/tegra30-asus-tf201.dts +++ b/arch/arm/boot/dts/tegra30-asus-tf201.dts @@ -624,4 +624,21 @@ opp-table-emc { /delete-node/ opp-800000000-1300; /delete-node/ opp-900000000-1350; }; + + sound { + compatible = "asus,tegra-audio-rt5631-tf201", + "nvidia,tegra-audio-rt5631"; + nvidia,model = "Asus Transformer Prime TF201 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,audio-codec = <&rt5631>; + }; }; diff --git a/arch/arm/boot/dts/tegra30-asus-tf300tg.dts b/arch/arm/boot/dts/tegra30-asus-tf300tg.dts index 573deeafb7ba..4861db8e1e59 100644 --- a/arch/arm/boot/dts/tegra30-asus-tf300tg.dts +++ b/arch/arm/boot/dts/tegra30-asus-tf300tg.dts @@ -1084,4 +1084,21 @@ opp-table-actmon { /delete-node/ opp-800000000; /delete-node/ opp-900000000; }; + + sound { + compatible = "asus,tegra-audio-rt5631-tf300tg", + "nvidia,tegra-audio-rt5631"; + nvidia,model = "Asus Transformer Pad TF300TG 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,audio-codec = <&rt5631>; + }; }; diff --git a/arch/arm/boot/dts/tegra30-asus-tf700t.dts b/arch/arm/boot/dts/tegra30-asus-tf700t.dts index e7fe8c7a7435..efde7dad718a 100644 --- a/arch/arm/boot/dts/tegra30-asus-tf700t.dts +++ b/arch/arm/boot/dts/tegra30-asus-tf700t.dts @@ -820,4 +820,21 @@ vdd_1v2_mipi: regulator-mipi { enable-active-high; vin-supply = <&vdd_3v3_sys>; }; + + 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,audio-codec = <&rt5631>; + }; };