Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1041925pxb; Thu, 5 Nov 2020 22:16:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyU63euazZFcaE4rYCZ/xaOGmB0XxuPrHMKPZWQ0Ijxqrz7ynfOO5HH3/Hpwfp79rZcXRmq X-Received: by 2002:a05:6402:144b:: with SMTP id d11mr475385edx.195.1604643399216; Thu, 05 Nov 2020 22:16:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604643399; cv=none; d=google.com; s=arc-20160816; b=yDBOdtTSyz38ymdB7WRwIWXeN9oo/O9cElEm/LS3Al5YOfqwrxZBsmGGv9Df6T33Da R+dXUX6dC8boUJQs63BaO6tfJ5vK7d58oqKMAvPcjLqYCT/5BsY6+nXHBE81NlIVMfPv RpkYoFR3UjgPaCn86u1P2RI0FLsWejB5dlQQFHLlZmyJuv5v+jy3iS0p1yVRIK/sCkdP Po5cZt9y49yawNmTfpcLxWADBqoz/TPCPdXz4dc0zXOmgQqZ9/i2hZ54VgjREalfyAuW G9FCLLsLqGRwjXCMANwEHsZ+18H/dmx6E8MO6Yc1qhRhjM3+wnLEvCZRl5Ul1L2XiCUC WV9Q== 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=l5wJhSF1myKTxNCEOkUYzTRb2ml1CsAb8yYtcmdDQEc=; b=CdSx3lXyXe5u8gGOdYJr4vizELm2j7gYSQDeJkDd+ryefjVobdL8eyTCHpQZwPTaAk ZUkGCPJXrigMTma+ZsdmZWfm9u5RAQcyLucV8lkKGEZMYCOyHM6LUkHzDJ6+tKKxN4z5 TmfRzsCPPg4Vc3RPhEzLOSTYq5wtAXsjwy9ZS0jLzKdU1xmmFb+uqUaLA86qceWz49Vv tqjRs3qzxUAl2d55kDyCOYzbhQkAndBZiX9Hp1rQOgSPizLcdelAz8pEfHSs7l0HKmjL WUzGoPDZfwh0fOPxDFrdkEQ41JfNToh9tsIz4b4XfYar3V410FqacdGFMFueuIIIgce9 VUwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j3j3Ypm3; 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 ks9si175605ejb.1.2020.11.05.22.16.15; Thu, 05 Nov 2020 22:16:39 -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=j3j3Ypm3; 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 S1726227AbgKFGOs (ORCPT + 99 others); Fri, 6 Nov 2020 01:14:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726190AbgKFGOr (ORCPT ); Fri, 6 Nov 2020 01:14:47 -0500 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1655DC0613CF; Thu, 5 Nov 2020 22:14:46 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id z3so356181pfz.6; Thu, 05 Nov 2020 22:14:46 -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=l5wJhSF1myKTxNCEOkUYzTRb2ml1CsAb8yYtcmdDQEc=; b=j3j3Ypm3ruFiRx011vvNly7A5X1a5FTVUBD0VHrZdFLR2zwy/mlqzqfssGSOSUX7kz MieivpEEWrdLOc1R3xFYVIB6oKzXWqyW4jFiVluwTwT7K0Wbt4oe1XsifHVWEtD43WcU SlDwmaEtn8FUGoMr8wiBnYXLRcgTTLoT4eAheSe/5hKUMRdJvbEDhfIYPXZAygzxdIj7 2jzoJ4zmcQqY7LZwBHvbNQGtCDMPML/lCvfroFN7BxyVdyxgKc9qCIFMRS6bAOJghScK bcNOSO/xGqt+3tAZfI2Ner2fjeGL3GWjaTzijlUDG5a1GJGBN1Uio3icMREanKlpTI5T I8aQ== 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=l5wJhSF1myKTxNCEOkUYzTRb2ml1CsAb8yYtcmdDQEc=; b=fprR8dYU68P2wnyqu3Kd3cB0wg4F9bzaBhDxdtPCH1LZnPNeHA8FCPWgxtargCe+IR 3sRhgiimTTaqLBWJLIkO8O8hHqy2we1Z6WxDoQKEURLOOHywC8G2yDWet0eUD5XL+2TI tsuEHNDLtIP5IjTHWoN6XJbgcgQ7wslFU9xyy+grzSFbVjy3K5tpch+pP0A0wV5mYdb1 k7cwVuMR1gZqlGOvOYxqwjmRXVmecIb8xaz+npXfgdIS7KVQWjTbtlNa95Oo/6NlyeHi 3THnVljn+IsyXeAXmKgX7Yd0euaFVtK+/Rtr+dDst4f+yiCsOPcKOhYr8whcJbhl+RYO USfg== X-Gm-Message-State: AOAM530XpJVdcP14MmTPDYfW94miocMlCXBDqC7/XqXxD8aR4N6GXev5 zQGDh+mElMXIwMZ7SoKdua+5ggx0e/Qo4A== X-Received: by 2002:a62:17c8:0:b029:18b:5a97:a8d1 with SMTP id 191-20020a6217c80000b029018b5a97a8d1mr467274pfx.15.1604643285394; Thu, 05 Nov 2020 22:14:45 -0800 (PST) Received: from localhost (114-34-18-97.HINET-IP.hinet.net. [114.34.18.97]) by smtp.gmail.com with ESMTPSA id q5sm746472pjj.26.2020.11.05.22.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 22:14:44 -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 , robh@kernel.org, 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 v6 1/2] ASoC: google: dt-bindings: modify machine bindings for two MICs case Date: Fri, 6 Nov 2020 14:14:32 +0800 Message-Id: <20201106061433.1483129-2-ajye_huang@compal.corp-partner.google.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201106061433.1483129-1-ajye_huang@compal.corp-partner.google.com> References: <20201106061433.1483129-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 --- .../devicetree/bindings/sound/google,sc7180-trogdor.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml b/Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml index efc34689d6b5..ce050a9dec94 100644 --- a/Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml +++ b/Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml @@ -34,6 +34,10 @@ properties: "#size-cells": const: 0 + dmic-gpios: + maxItems: 1 + description: GPIO for switching between DMICs + patternProperties: "^dai-link(@[0-9])?$": description: @@ -83,7 +87,7 @@ examples: - | sound { compatible = "google,sc7180-trogdor"; - model = "sc7180-rt5682-max98357a-1mic"; + model = "sc7180-rt5682-max98357a-2mic"; audio-routing = "Headphone Jack", "HPOL", @@ -92,6 +96,8 @@ examples: #address-cells = <1>; #size-cells = <0>; + dmic-gpios = <&tlmm 86 0>; + dai-link@0 { link-name = "MultiMedia0"; reg = <0>; -- 2.25.1