Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2805062pxk; Sun, 27 Sep 2020 23:39:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysdSqMOeCAef1EhNoOZqnaZ8QKaS1gMzmMEgN7B/HNBzJj+9IAm7RNEp6f7c0S6z5FzrSV X-Received: by 2002:aa7:c394:: with SMTP id k20mr97930edq.279.1601275175290; Sun, 27 Sep 2020 23:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601275175; cv=none; d=google.com; s=arc-20160816; b=Xm4GB0Tt8LSCXFVOfbnnEtXSONLwrGjA0Bgs179Jzrz2lq7eu/JGFuXB4YESBzQ8Ma 7qgIwfphAL+VLJd6a8blmKyXgZfbKKIxcWdjRDo94HF1ufgjZGWqTHoQdVWKch66E3Cy LdtsR/WCNjMp7ftd4lVmcLlXlxMOCJgWoZbsa+E4iYXQNftoneFmPQdHFERL//2OB9uL lw8HuZiJh6mJV2pvL9fs30XZmDzP6DNj+FsMepAKkCQZtAPy+HwLQD3PC+kvlUTfkkjQ 143cjyqEqsaF6Xs4dyqv1pAmi0ibaZVPw3uu0gxZ9wqP8hmOQw1usu8CxD7cIndkRQJy sO9Q== 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=J9fPNn2hkvUvRS1FoBqTdwdl0ikK+0K/8i5MIze2SS4=; b=eZ9fZmY68OaI29cUGRy1jzjqW1h+6+cioDigCAu13se+y0I1U31TbvLcGlgS1MhziS CnkgUwPyk6zuL1OFWaqC8lt+ErqtgBw512kvynFQRBYfOdTmsIfH83fvpKiJAGeV2gOz pSNccxHQ6w2SGJMqQtxWnOjpQQRlBp6Dx//hCe0QnhsvLkcYyffJ08XBgQyDxIxV601m B/XAXcZLEvkHwpPzTo8d7SD/kUF3QYRnvDcIjL97zPyZbr6O4VNouwNn88Fcq2lucYwS X2WG5Lg3ujvR428vEHa34SFo+h4wNBZ9h+tGaoPIUUlUy3yWU0AOxx8+vsWehbjM53fS WCtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EvW1auze; 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 g3si51826ejw.227.2020.09.27.23.39.12; Sun, 27 Sep 2020 23:39:35 -0700 (PDT) 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=EvW1auze; 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 S1726573AbgI1GiH (ORCPT + 99 others); Mon, 28 Sep 2020 02:38:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbgI1GiH (ORCPT ); Mon, 28 Sep 2020 02:38:07 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 246BDC0613CE; Sun, 27 Sep 2020 23:38:07 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id f18so9320pfa.10; Sun, 27 Sep 2020 23:38:07 -0700 (PDT) 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=J9fPNn2hkvUvRS1FoBqTdwdl0ikK+0K/8i5MIze2SS4=; b=EvW1auzeaeX+5P91nfpAeNz3iU3z6CXl1gD1XAWygHj/x0evv/YLyspd75P/ksoy33 3nVjlPmZjT6ZnNetqaqDPlAPzuuy6rlHXgFEa0nOSDqhBn7HfjEcCRSj5cEYx6Ny2yRo +Ki+TDRfUpNA4phWyuxqaKjCnEL8Mh4HyT3elj7VQONpzdS+h/UiwvMfUKMu9hGlZqqB lOQtoGiDYfWb4OEfRjemFbIstZy/a5gWi+rASC9MguiWr/Z2kWRVSWmZVN2XsSZsGjNO gPoyDRbBnwcvIwk8TAUAxBN9hBkDqXEq+xBy2Kaqk8zyzFsObQTMfGmorhlDJEd4vVYn se2g== 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=J9fPNn2hkvUvRS1FoBqTdwdl0ikK+0K/8i5MIze2SS4=; b=IWafYUutdvx/AcSLk2vnxm4sTdLF03LSTNf+Q3gWfcNeItByhdTxYWmy4BkcqXmfno C724hgtIPcYgAzs365BEwUJoPIX//5/IimR5iWK3/h4QQYjV46+kCug0rCLvpKBgcCg6 mtPhFcy6UYf3P//7883LTY6pbNmwZ6MXD1OefL+a8rRvXmjAEHdZrs6FJPGbyrW6Wrzu +COevxUYQZwhL00BR7pHsunUA2ex089ttH0BEVuYJSwzySfJahDSuuj1Qys0etJnhHCt nwTeSJpiCSoWGe0h+Zi1uQAy/pvnWZ2ja2oeVrVk8OI1fZSSr3rVAHtpN9jFuFgO4YmY WcAg== X-Gm-Message-State: AOAM5323BM/uf/o7zXewUsT0ROqRms+ByUmDZKeCZiyAHtqlnfPs7BC1 zBP6/rUd7MY9ogzNju8+e5N/afHkWZdSwjr3 X-Received: by 2002:a17:902:9007:b029:d2:8cdd:d8cd with SMTP id a7-20020a1709029007b02900d28cddd8cdmr206114plp.85.1601275086370; Sun, 27 Sep 2020 23:38:06 -0700 (PDT) Received: from localhost (114-34-18-97.HINET-IP.hinet.net. [114.34.18.97]) by smtp.gmail.com with ESMTPSA id c7sm189527pfj.100.2020.09.27.23.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2020 23:38:05 -0700 (PDT) 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 , 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 v1 1/2] ASoC: qcom: dt-bindings: Modify sc7180 machine bindings Date: Mon, 28 Sep 2020 14:37:43 +0800 Message-Id: <20200928063744.525700-2-ajye_huang@compal.corp-partner.google.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200928063744.525700-1-ajye_huang@compal.corp-partner.google.com> References: <20200928063744.525700-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 compatible "qcom,sc7180-sndcard-rt5682-m98357-2mic" for 2mic case. Signed-off-by: Ajye Huang --- This patch depends on this patch series https://patchwork.kernel.org/patch/11773221/ . .../bindings/sound/qcom,sc7180.yaml | 64 ++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/qcom,sc7180.yaml b/Documentation/devicetree/bindings/sound/qcom,sc7180.yaml index b77311bb5190..ec84dbfc1bc9 100644 --- a/Documentation/devicetree/bindings/sound/qcom,sc7180.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,sc7180.yaml @@ -15,7 +15,9 @@ description: properties: compatible: - const: qcom,sc7180-sndcard-rt5682-m98357-1mic + enum: + - qcom,sc7180-sndcard-rt5682-m98357-1mic + - qcom,sc7180-sndcard-rt5682-m98357-2mic audio-routing: $ref: /schemas/types.yaml#/definitions/non-unique-string-array @@ -34,6 +36,11 @@ properties: "#size-cells": const: 0 + dmic-gpios: + description: + GPIO for switching between DMICs, it is required when + compatible is "qcom,sc7180-sndcard-rt5682-m98357-2mic". + patternProperties: "^dai-link(@[0-9])?$": description: @@ -81,6 +88,7 @@ additionalProperties: false examples: - | + //Example 1 sound { compatible = "qcom,sc7180-sndcard-rt5682-m98357-1mic"; model = "sc7180-snd-card"; @@ -128,3 +136,57 @@ examples: }; }; }; + + - | + //Example 2 (2mic case) + sound { + compatible = "qcom,sc7180-sndcard-rt5682-m98357-2mic"; + model = "sc7180-snd-card"; + + 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