Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp73967rwe; Fri, 26 Aug 2022 00:32:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR7qx+TFrWfuWc3CQQwLu9YTgScUHIRPbYHQcS+laXVmgS9ES8NsAOK0C22fMXtEe3EHyIYP X-Received: by 2002:a17:903:11d2:b0:172:6ea1:b6e6 with SMTP id q18-20020a17090311d200b001726ea1b6e6mr2628166plh.72.1661499146510; Fri, 26 Aug 2022 00:32:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661499146; cv=none; d=google.com; s=arc-20160816; b=GKExDQ5Jm1SXPM/1XYPBKuuNKW0/r8232R6nTRVUknG6X4GboDSUSgDLjX+NYB2XXO cyEjQqRCjXhcG+PZSfleCyv6gRKZoEXdOC17Gf6V5WaD896JTFFiS0/cmsbeKOA0AIJu TnA6q9g2MbYhCBfR/0MEPWGF6YUIpcgGXIGinDb6eqH5hpA7PBMgNEAtbQ1IJBcxcEJA JBHHrtsKd2frymQqUZhLx/p+kH2WdgzXYG6yuIEmvjt3cv0SBuH049ksRla1Z6uHIVUO gmU55cZaUEYjfHgAYYX67N4qEMyvZblH8jck7LVNVz/LlqsY/QQadUTod4EUb4g1FYG+ TUAw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=UnLcczHHvwGYAXvgM/40CcIoX6vGDJJQPGBGsmiKVWg=; b=EjbsatnydocefrQaUtwhi5yl5v2w42H3T+1gT+2NkJLSqaxt7Af5k5qw1iwbO2yitm 9dz5fl1WLohPDzGPPaA/oLCiLbGdMEHgxF+UBGsfL8tLyU9t6rDHSeC873JhpBRe7OyO uivYtjAVDvADto+VDPdO58rEp2xg8ew0JJY+UWYX+pvTlqsG2RWFrFLfvzwevIHyQHaS Qd5qseQ2yeQUJB95r7D1m51p6p06b2CEeTVUOSQ1JecbD+vbRatdnLsRAqxBaPKPZ0B4 pzEv/Z7+N0UNphhog+d5jwHDski1p9c8rVJLo5akKW54F6DpetNUt5e1I8EcYJj+9rY+ xBAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CVBEV9H+; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e21-20020a170902e0d500b001743cb8d6absi583751pla.262.2022.08.26.00.32.15; Fri, 26 Aug 2022 00:32:26 -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=@chromium.org header.s=google header.b=CVBEV9H+; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242003AbiHZG4f (ORCPT + 99 others); Fri, 26 Aug 2022 02:56:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234289AbiHZG4e (ORCPT ); Fri, 26 Aug 2022 02:56:34 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA0BDD21CC for ; Thu, 25 Aug 2022 23:56:32 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id v4so603130pgi.10 for ; Thu, 25 Aug 2022 23:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=UnLcczHHvwGYAXvgM/40CcIoX6vGDJJQPGBGsmiKVWg=; b=CVBEV9H+l5dg4mJq+PF9bB7HmM69WekRsNI7sTjerDHLtdc49qoctvx3IeJGjwGzw2 Pjg6S9sPMIQUB58XfjpNlf8hP4nNklwPHvRdBA3jm4Qkis0ImpfSfEGbPYsTYFDRx9js iFotn7YSPTevT6CJ72ejrnAjyAaFeynOx5RIE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=UnLcczHHvwGYAXvgM/40CcIoX6vGDJJQPGBGsmiKVWg=; b=DOezCZoegiWoPpHZhsV84TAb8EMSquM+O+QZ8XPS9MNR41vMhYHL605sdTYwN7yUXz VQFiBiCez1ieICnL1AdhluvuMEe/oRz+VkaVV6/ys4DbX1bMoWeDq4RF7JKFTMeqQzNs Z1wuGDFDzUPgjEGms8Hfe0Fe8Ma4gqwhzdd7ZH7mMEOS/EemdJj3inFZ90LIiS/dN8Yf ob9ht7O558jklFBcQZl2kFXTzSSFPpPnYbFFJtTp/yf/xPoBn+eAhuFRUIy4D1dav11J z2IWuuu+7Rii6e1pRA3ooVCeW9ewhGs2O2QYXgRWaBHX09LLVD1+bk/eq9CQlAhvWfTB yN6A== X-Gm-Message-State: ACgBeo1ffdp7Rt4gjLE96b114G2wrpfgW0ljmE/xFngdhMEHctaYf/HU 2Bol2pFodCmWQG/1FzsBCPD3xw== X-Received: by 2002:a63:68c2:0:b0:421:9e8f:35c4 with SMTP id d185-20020a6368c2000000b004219e8f35c4mr2153619pgc.363.1661496992364; Thu, 25 Aug 2022 23:56:32 -0700 (PDT) Received: from judyhsiao0523.c.googlers.com.com (21.160.199.104.bc.googleusercontent.com. [104.199.160.21]) by smtp.gmail.com with ESMTPSA id m8-20020a170902db0800b0016f1319d2aasm747329plx.171.2022.08.25.23.56.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 23:56:31 -0700 (PDT) From: Judy Hsiao To: Bjorn Andersson Cc: Andy Gross , Rob Herring , Srini Kandagatla , dianders@chromium.org, mka@chromium.org, cychiang@google.com, judyhsiao@google.com, swboyd@chromium.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Judy Hsiao , Srinivasa Rao Mandadapu Subject: [PATCH v4] arm64: dts: qcom: sc7280: Fix Dmic no sound on villager-r1 Date: Fri, 26 Aug 2022 06:56:21 +0000 Message-Id: <20220826065621.2255795-1-judyhsiao@chromium.org> X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fix the DMIC no sound issue of villager-r1 by using "PP1800_L2C" as the DMIC power source to match the hardware schematic. This patch: 1. set vdd-micb-supply to PP1800_L2C as the MIC Bias voltage regulator. 2. In audio-routing, set VA DMIC01~VA DMIC03 to use the vdd-micb-supply setting. Co-developed-by: Srinivasa Rao Mandadapu Signed-off-by: Srinivasa Rao Mandadapu Signed-off-by: Judy Hsiao --- Changes since V3: -- Update the commit message and fix extra blank line. Changes since V2: -- Update the commit message. Changes since V1: -- Update the commit message. This patch depends on: arm64: dts: qcom: sc7280: Add herobrine-villager-r1. [1] [1] https://patchwork.kernel.org/patch/12929106 .../dts/qcom/sc7280-herobrine-villager-r1.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-villager-r1.dts b/arch/arm64/boot/dts/qcom/sc7280-herobrine-villager-r1.dts index c03b3ae4de50..fd202a8f6a33 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-villager-r1.dts +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-villager-r1.dts @@ -12,3 +12,30 @@ / { model = "Google Villager (rev1+)"; compatible = "google,villager", "qcom,sc7280"; }; + +&lpass_va_macro { + vdd-micb-supply = <&pp1800_l2c>; +}; + +&sound { + audio-routing = + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "AMIC1", "MIC BIAS1", + "AMIC2", "MIC BIAS2", + "VA DMIC0", "vdd-micb", + "VA DMIC1", "vdd-micb", + "VA DMIC2", "vdd-micb", + "VA DMIC3", "vdd-micb", + "TX SWR_ADC0", "ADC1_OUTPUT", + "TX SWR_ADC1", "ADC2_OUTPUT", + "TX SWR_ADC2", "ADC3_OUTPUT", + "TX SWR_DMIC0", "DMIC1_OUTPUT", + "TX SWR_DMIC1", "DMIC2_OUTPUT", + "TX SWR_DMIC2", "DMIC3_OUTPUT", + "TX SWR_DMIC3", "DMIC4_OUTPUT", + "TX SWR_DMIC4", "DMIC5_OUTPUT", + "TX SWR_DMIC5", "DMIC6_OUTPUT", + "TX SWR_DMIC6", "DMIC7_OUTPUT", + "TX SWR_DMIC7", "DMIC8_OUTPUT"; +}; -- 2.37.2.672.g94769d06f0-goog