Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3085565pxx; Sun, 1 Nov 2020 22:26:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEp3OeGeuLWUhacIrrRZpuDENq2rr9wg5e+GW/x+2jERgpsd0JgYIN66F0Qul010BDbdLa X-Received: by 2002:a17:906:43c6:: with SMTP id j6mr13820864ejn.547.1604298386447; Sun, 01 Nov 2020 22:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604298386; cv=none; d=google.com; s=arc-20160816; b=b0qNRyt4fHEfA1+W+EORP5PMO15P987H8kzH6ltvm+GVuBJABLByrHq8Vl/loyDRkF IMFF/1lzreJO+G59TrqQaT2WTVTjRRM5y4e4Q9zO/tAMHbW8oCvyzt5I5nbX+Ghk8t/p cmPmBtc3GC+TuewXP4WhGZQTl38lIdL4yadDwzmjb7RRtGq1tS6t8+x2GxGQ6JmDU7fx OBrbBkO4CveMfkIX34owT4NEq9RfjysgGAO4W8DGZv1cnbohsYZViPhwBMmqUJkenhUb YBNZiwpC9M5flTn/RohcbhVlvDGguj6yApRqWMh2zHma79E+3FXr2EZ1OaUJmuP+az3d I+ZA== 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=mdVPkO/q4ig27b41Ma0ipj3qPAj1LWAThPCU+KMAntY=; b=Qn6KAi9LTpLQwq5wGxsCsl6OBHQDnxW3LdoG8XYOe8YqOXR1I3euU/p1m4wj8nSKMv K6mVxScNJAuzIl6+ZGl75XM2enkEltXcTdNmiG0t+MZP/UnJYMTzGJFb45MkjMjNoqBo whV1Qk/MLPEUQA5HVWvRamwli2cBHWByiCoRTR4+pkXSeGNXAI/xAXNoRVtsjA1ovw7q 3pCon21d4GEut3sqgPMol9nC3h2nuErDrwTYWPUQ0q52OnMNUzsb+fO3sLO8V/L0cD3P SYXlYCptiIalokRPwWgtr7rEZ4guCpEMK4b0q9ClDeW+0tGgr+cz0ZaIfPYUsclet8w8 Zykg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TN1kXme8; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm12si9937031ejc.343.2020.11.01.22.26.03; Sun, 01 Nov 2020 22:26:26 -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=@gmail.com header.s=20161025 header.b=TN1kXme8; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727979AbgKBGY0 (ORCPT + 99 others); Mon, 2 Nov 2020 01:24:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727871AbgKBGYZ (ORCPT ); Mon, 2 Nov 2020 01:24:25 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 867CEC0617A6; Sun, 1 Nov 2020 22:24:25 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id r10so6342191plx.3; Sun, 01 Nov 2020 22:24:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mdVPkO/q4ig27b41Ma0ipj3qPAj1LWAThPCU+KMAntY=; b=TN1kXme8So3nia93jft19a+yG8QKdaRwbSY/mPtmcT8biUf+vQfmqNY8p2Z8ZBVB73 Ho33MAvyzujMMFhlK/tvFLWDcfxrBcX8a5Ap08W0FN5u/MrV6p5YW2aVgM2c5LsC5CK0 SMUxEgP/YxigD1Px2YACVZehKZN5KDXMbB1Hg0VYfykdTFa0D6a3KEssxs+17whM3kWa o/IC+3a1WKN4K6qGkQX5hlXEUaVnVwqr3GE1LVKhy8vzaGqHRKspujuEFT5Hx4erJU7e 3/6oBBBafMp5xbSUJ72IEibN9vMag3rUQT249DqbLTXpdcOIFAeJFIPmyFI0UGNRkwEI sbQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mdVPkO/q4ig27b41Ma0ipj3qPAj1LWAThPCU+KMAntY=; b=rfwq8ltHcN5CKvjqe7fvEhlIXh2HmtAZzknNSv3uuuHXSJITkIYTEz8O6dspu9XgJ9 T6E/nZHZ0tKqPRgJLjb6Q8WGuFaKJCxmfKo+I70RkG+A2RJGLsebyK3gSLyjToWPzMvq pN3/BviYRFN5m6oz4v+HyAHsxK/Gz6QwHBrSNpQkR3n6yQOQBkrBcj4xPTAQpCOf9s/I 0Vf2aszGCH6n7ez4wNcYOHrppsK5pUVSR6txEnsnzyWPdQIu2sLPu0yTxD5yqr94yjQC /BFKWnmPiKQTR23nc5cDiSkB+evIlLXyvJqu4ddR9S9APNkuSeSwACBBT7R52lVhzhOw wj3Q== X-Gm-Message-State: AOAM531Fj9HvLDTciAkqem7dyljCipNwnTujDu3cmmZcGhXdIXm+B56E MOZBfba3K2Vjk5kG+iiHZHnvnecd+EDeeQ== X-Received: by 2002:a17:902:bd4c:b029:d6:8c38:7221 with SMTP id b12-20020a170902bd4cb02900d68c387221mr18332551plx.82.1604298264823; Sun, 01 Nov 2020 22:24:24 -0800 (PST) Received: from localhost (114-34-18-97.HINET-IP.hinet.net. [114.34.18.97]) by smtp.gmail.com with ESMTPSA id q123sm12902114pfq.56.2020.11.01.22.24.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Nov 2020 22:24:24 -0800 (PST) From: Ajye Huang X-Google-Original-From: Ajye Huang To: linux-kernel@vger.kernel.org Cc: Mark Brown , Rohit kumar , Banajit Goswami , Patrick Lai , Srinivasa Rao Mandadapu , srinivas.kandagatla@linaro.org, Andy Gross , Bjorn Andersson , Liam Girdwood , Rob Herring , Jaroslav Kysela , cychiang@chromium.org, tzungbi@chromium.org, dianders@chromium.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Ajye Huang Subject: [PATCH v3 1/2] ASoC: google: dt-bindings: modify machine bindings for two MICs case Date: Mon, 2 Nov 2020 14:24:07 +0800 Message-Id: <20201102062408.331572-2-ajye_huang@compal.corp-partner.google.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201102062408.331572-1-ajye_huang@compal.corp-partner.google.com> References: <20201102062408.331572-1-ajye_huang@compal.corp-partner.google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a property "dmic-gpios" for switching between two MICs. Signed-off-by: Ajye Huang --- .../bindings/sound/google,sc7180-trogdor.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml b/Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml index efc34689d6b5..9e0505467e57 100644 --- a/Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml +++ b/Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml @@ -34,6 +34,9 @@ properties: "#size-cells": const: 0 + dmic-gpios: + description: GPIO for switching between DMICs + patternProperties: "^dai-link(@[0-9])?$": description: @@ -81,6 +84,7 @@ additionalProperties: false examples: - | + //Example 1 sound { compatible = "google,sc7180-trogdor"; model = "sc7180-rt5682-max98357a-1mic"; @@ -128,3 +132,57 @@ examples: }; }; }; + + - | + //Example 2 (2mic case) + sound { + compatible = "google,sc7180-trogdor"; + model = "sc7180-rt5682-max98357a-2mic"; + + audio-routing = + "Headphone Jack", "HPOL", + "Headphone Jack", "HPOR"; + + #address-cells = <1>; + #size-cells = <0>; + + dmic-gpios = <&tlmm 86 0>; + + dai-link@0 { + link-name = "MultiMedia0"; + reg = <0>; + cpu { + sound-dai = <&lpass_cpu 0>; + }; + + codec { + sound-dai = <&alc5682 0>; + }; + }; + + dai-link@1 { + link-name = "MultiMedia1"; + reg = <1>; + cpu { + sound-dai = <&lpass_cpu 1>; + }; + + codec { + sound-dai = <&max98357a>; + }; + }; + + dai-link@2 { + link-name = "MultiMedia2"; + reg = <2>; + cpu { + sound-dai = <&lpass_hdmi 0>; + }; + + codec { + sound-dai = <&msm_dp>; + }; + }; + }; + +... -- 2.25.1