Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp705762iol; Thu, 9 Jun 2022 12:08:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4tPyVD+dMXdC5/wp5pF3soVU5Zi5CxUeMaSjYCBH+YWyyS16vcu9oSw13m2bx7nc6vxRc X-Received: by 2002:a63:8043:0:b0:3fc:d9e7:2357 with SMTP id j64-20020a638043000000b003fcd9e72357mr34638797pgd.405.1654801729726; Thu, 09 Jun 2022 12:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654801729; cv=none; d=google.com; s=arc-20160816; b=Q/ip8cLzltoNwNNuXmHEQwk9rJQbSz8tbmRNnNYDFCy9b1d3gn3k6pMqFBTzFbUQW8 hl6wDcV4hmNO8Gf427QyrayMcM/3ak2WEFiA5DD/I2oBb1oiYdB39pebXuCal4a9ftUk lZP1agsF3LUDRUMuC+XOZtOWObrkTUq3YlO516Zw4r1eStEsMoSRnvRgpz90LRxsU+X1 Z3htggb1+NPP9k1AIZhDqIANndqk5miOXGrsqvks3FqsVzh3CGcpZAg1ZKOlY5aCWUyj 9cLmHHwDRcvixyKABAUtG3K0BvSRT+0aZCMpyFFZkaAOWbvH9BumBF/5YjkPTsQkFDVs tG7w== 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=ks7LuCnyKwUNfZWNWu2qO9gg6hPaTP7iwoO2ip06+BM=; b=L+gSlngHeBIp2WCYVRJ2gxJxNPvHuQdKnSE8c6dB+/U+m+msdkTzGI+OKtZo4XCkwS dzRvKnewZK7pzBw06TUXSsUZSKZ5T0xszsXGi8fms/MMotQaCaNkudeSCLoP/TW2pz6u Inv+g/bzpOfWRY3NeFTahzylCQ69hJoVEnLQ1HEAAczerv6FjNeSEFCih/0n1aKAIQaJ FmtJh7+vnsJx99c+Y13EfulhxJOXkwj7cfKgUuVIjlQJCGyCfASB2+M41whJN86lycwt CeBTCApLL/dPyxoYtjGGnM1VhtP7u4ej4PKAfHSiBIyd3hFJCwOTIdIEF5zEAqUAfHxy e6cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=LkphQxXr; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k1-20020a17090aaa0100b001df6b7a8a91si135490pjq.109.2022.06.09.12.08.33; Thu, 09 Jun 2022 12:08:49 -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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=LkphQxXr; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344656AbiFIRTY (ORCPT + 99 others); Thu, 9 Jun 2022 13:19:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239242AbiFIRTV (ORCPT ); Thu, 9 Jun 2022 13:19:21 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FCAEA88BA; Thu, 9 Jun 2022 10:19:19 -0700 (PDT) Received: from g550jk.localnet (31-151-115-246.dynamic.upc.nl [31.151.115.246]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id B3332CCDF9; Thu, 9 Jun 2022 17:19:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1654795156; bh=2MPN+doYZMUaXvC0iC9GlfoIDwZjXtdp86X30pYRS8s=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=LkphQxXrMOnXuVuC1qZaoqrtpghwAWoxfgVdQoaVnDCtJTtTbZR5CvIYYMCA5O9QB BSPM6RIWIVfdnFljl/Pc4h16y8vvs+3Zsw9v20J5YSr0flQtYf/I+euWkmsUNgHLcy V27ER+iCOi5z9LCcyq68onwPMA6HCGbo++HlZIqc= From: Luca Weiss To: ~postmarketos/upstreaming@lists.sr.ht Cc: phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Martinz , Dylan Van Assche , Alexander Martinz Subject: Re: [PATCH 2/2] arm64: dts: qcom/sdm845-shift-axolotl: Add audio support Date: Thu, 09 Jun 2022 19:19:15 +0200 Message-ID: <11993096.O9o76ZdvQC@g550jk> In-Reply-To: <20220609095412.211060-2-amartinz@shiftphones.com> References: <20220609095412.211060-1-amartinz@shiftphones.com> <20220609095412.211060-2-amartinz@shiftphones.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 Hi Alexander, On Donnerstag, 9. Juni 2022 11:54:12 CEST Alexander Martinz wrote: > This patch adds audio support for the SHIFT6mq phone. > > The primary microphone and headphone jack are handled by the > SDM845 sound card and WCD9340 codec. > > The primary speaker needs to go through the TFA9890 speaker > amplifier. > > Signed-off-by: Alexander Martinz > Tested-by: Dylan Van Assche > --- > .../boot/dts/qcom/sdm845-shift-axolotl.dts | 141 ++++++++++++++++++ > 1 file changed, 141 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts > b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts index > fa72f23ef0c2..8c4967d6d0e3 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts > +++ b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts > @@ -8,6 +8,8 @@ > > #include > #include > +#include > +#include > #include "sdm845.dtsi" > #include "pm8998.dtsi" > #include "pmi8998.dtsi" > @@ -492,6 +494,19 @@ touchscreen@38 { > }; > }; > > +&i2c11 { > + status = "okay"; > + clock-frequency = <400000>; > + > + tfa9890_codec: tfa9890@34 { > + compatible = "nxp,tfa9890"; > + reg = <0x34>; > + vddd-supply = <&vreg_s4a_1p8>; > + reset-gpio = <&tlmm 7 0>; > + #sound-dai-cells = <1>; > + }; > +}; > + > &ipa { > status = "okay"; > > @@ -530,6 +545,27 @@ volume_down_resin: resin { > }; > }; > > +&q6afedai { > + qi2s@22 { > + reg = <22>; > + qcom,sd-lines = <0>; > + }; > +}; While my patch hasn't been reviewed yet, I have proposed to change the magic number <22> to the constant QUATERNARY_MI2S_RX here in existing dts files which better describes what the reg here is. https://lore.kernel.org/linux-arm-msm/20220603094710.64591-1-luca.weiss@fairphone.com/ Maybe worth doing the same here for v2? Regards Luca