From patchwork Tue Oct 3 13:18:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 147870 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2079174vqb; Tue, 3 Oct 2023 06:19:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHnYMx78ITvMiJtzL4SH+GTIUUMxLOK0lSPCQM69aYzLNmHdUjbv5Lv7ODXfox3Xv4cMV1r X-Received: by 2002:a92:d781:0:b0:34f:6837:6ab7 with SMTP id d1-20020a92d781000000b0034f68376ab7mr15544877iln.16.1696339152841; Tue, 03 Oct 2023 06:19:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696339152; cv=pass; d=google.com; s=arc-20160816; b=NET2qi+Bi/lLfd+uHYQn+Gq47pcu3qhilN9TYeHbywTAQBk0p+5bdjHeM/CsWlh0Qh fKk5t5l05HjHeInP1B3HdDmRvdnxUaJ8HVMTSMysnwVu33SFciq795I5lyzi9W1HFLkZ HtHVibJPUsxfNmrQZuE61RIl9uZXPV8WBVkh54a8uxoMtiKqg+5Dw4+992+Cb2AW729w tnKH2ODzxns3kbuh2619Cc6x90J/8UFMfbY05Svm0zgxpXcLDcQvAmp1hVs/9gtxXMwU Ucuv3oS6X8eKC+h3AKGeEn8MkqRpltWLO/8RWU/pTSej3jjZUKsgiUJqYamdb6X4NlEx aF9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature:dkim-signature; bh=wkEd/6Cy6zxlz0xNYtgtZA9rujzyPOBqe0YaT0QbcHk=; fh=2KZCdDDOrrR71Og9rtv+A3rmI3MualZUlNJjU056txw=; b=p7Ni6SAcsL1hmgE/g2O9UkeAVSccHG7RTZddPtvAkRuZ6IjkwU6qePlwRX1mg2N85s y210yPeNGsH2XhoquMhw0dZN47hm/QhnLP50jiDw4swdKXszlm4+SzykzTNWlxltbIRe Xq65Z0QpkB312mik9FQgxJWt+jFYF3V3dzExLixv0Xrs8M1ybYSpqMuw9RoD/ef/YRQT GEYL5HUbsonB7z8cdvyeJeHs7sAXQ8nu9HhbwOLMxSWY6b4pQlyBXXi9Dp3feBTX4g02 iGCTYnl/S00AEpypJ0NOqt8SIKPQFfqEyY4FBus8AHcEPDJDpsPhMl6522v3J5N6O6wX P0ug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=q7IP0NAB; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003 header.b=UR9uo9p9; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u8-20020a17090a400800b0026f3395cd7fsi9830594pjc.184.2023.10.03.06.19.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 06:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=q7IP0NAB; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003 header.b=UR9uo9p9; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7DA2D827D662; Tue, 3 Oct 2023 06:19:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235896AbjJCNTG (ORCPT + 17 others); Tue, 3 Oct 2023 09:19:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234880AbjJCNSw (ORCPT ); Tue, 3 Oct 2023 09:18:52 -0400 Received: from mo4-p03-ob.smtp.rzone.de (mo4-p03-ob.smtp.rzone.de [85.215.255.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EAAFB7; Tue, 3 Oct 2023 06:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696339126; cv=none; d=strato.com; s=strato-dkim-0002; b=fT1o1bfvAJmEucKypk4JvnYvVPf+gyyz7e86whnVfZ20S7qNU5yGUIvrwnz84Uphc7 jeCjbtpjr/ZgpKBKttj2klCINZ3gldsp82VIYQLwGj2xaI+gliiC0C63SgshSwqO4DJV Evqq2sGmK8rAx4zAPMWPO1xR6WSZjLdXUxrg7+me6fomISSGVvpMakOppNfyS1oQMLlI NTfqou2YB7n3M/sPVW/oLYZMBDWDveVGFPVejoystOSgTzrnvkSqrBqicaq09ONbmN7N dna4f7Gh8Hxtk5YbgRLMP6E84CxZuvsNtTgGtWU32w/0gWS3RW5nuazQqZLRlG76CDhF 8cMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1696339126; s=strato-dkim-0002; d=strato.com; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=wkEd/6Cy6zxlz0xNYtgtZA9rujzyPOBqe0YaT0QbcHk=; b=i0U6MZKYoPjCIbPzdQbe4u2/uGaRqki9rdE6+qIte0Gb/qGCsfxp2yg85iQ1vlw4Gz B7DcXych98b7h2ExMMBRX7npTf2/bybFYpksgz5ESD3cmvhpls7OG2olJTx4rhB/jtNJ mjkjmL24khi/bvFzDpRzbb3fi3U9AEIpse0wg3Qi2neWiFaulzznE+SSuO3jmsjSOEzz 2+IucfzhCSXtvh6D/Li9EyltV093uY9XXGzCklAEHnIxyirISkymShja40s7ciFIVcxA h5eWo74rSvlZnQS2GAOFksUsZWCKptEjCHPlZ6GTbWYPNMrGp6Ysw5H/5aBnrDcrP/JG NdlQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo03 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1696339126; s=strato-dkim-0002; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=wkEd/6Cy6zxlz0xNYtgtZA9rujzyPOBqe0YaT0QbcHk=; b=q7IP0NABHFpBrIhoZsdS+Sf6TwV2hADuAkBQ1mwqO/TuJCTtIU7+NiNBSbKoSqux8w ukFRK+fA3cdmkNmC1h1oZs/DqGR3IxwhoKtkQcN0J+hKX3O9Jo/U7RjkyucaoCx8B3A9 cJDD3ftnNeqDQLmd44qYR508e4mOmnMrnrAxcQQpE1h2u6JEq8meL28X+p1ONsTo7abv NjBAHIxJu7RE7BEd2/zbLRXYaUYbZEWBU1cgAGk1Fd0zSUoAkoS249x8e4G70QDQgcJh l9DbfJv2FGJZaTaA5+KL5aNBSKakTwiOLEhG8fA/QfdnSayrHBZlY2dRlbaufJBt9FGS rdCA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1696339126; s=strato-dkim-0003; d=gerhold.net; h=Cc:To:In-Reply-To:References:Message-Id:Subject:Date:From:Cc:Date: From:Subject:Sender; bh=wkEd/6Cy6zxlz0xNYtgtZA9rujzyPOBqe0YaT0QbcHk=; b=UR9uo9p9yO0V8BYeBwl1Vyoal4Zp8OgENSuFA1GbvpTNCxGHRSQJw7j23sS5LNtmkC 13r9oY40LQ7Fi4VTBKCA== X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVOQjVd4CteZ/7jYgS+mLFY+H0JAn8u4l+/zY=" Received: from [192.168.244.3] by smtp.strato.de (RZmta 49.8.2 DYNA|AUTH) with ESMTPSA id R04c57z93DIk2OI (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 3 Oct 2023 15:18:46 +0200 (CEST) From: Stephan Gerhold Date: Tue, 03 Oct 2023 15:18:24 +0200 Subject: [PATCH v2 06/14] arm64: dts: qcom: msm8916-samsung-serranove: Add sound and modem MIME-Version: 1.0 Message-Id: <20231003-msm8916-modem-v2-6-61b684be55c0@gerhold.net> References: <20231003-msm8916-modem-v2-0-61b684be55c0@gerhold.net> In-Reply-To: <20231003-msm8916-modem-v2-0-61b684be55c0@gerhold.net> To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Bryan O'Donoghue , Stephan Gerhold X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 06:19:10 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778740523065008987 X-GMAIL-MSGID: 1778740523065008987 Enable sound and modem for the Samsung S4 Mini Value Edition. The setup is similar to most MSM8916 devices, i.e.: - QDSP6 audio - Speaker/earpiece/headphones/microphones via digital/analog codec in MSM8916/PM8916 - WWAN Internet via BAM-DMUX except: - Samsung-specific audio jack detection (not supported yet) Signed-off-by: Stephan Gerhold --- arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts index 68da2a2d3077..5ce8f1350abc 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts @@ -6,6 +6,8 @@ /dts-v1/; #include "msm8916-pm8916.dtsi" +#include "msm8916-modem-qdsp6.dtsi" + #include #include #include @@ -319,6 +321,10 @@ &blsp_uart2 { status = "okay"; }; +&mpss_mem { + reg = <0x0 0x86800000 0x0 0x5a00000>; +}; + &pm8916_resin { status = "okay"; linux,code = ; @@ -350,6 +356,13 @@ &sdhc_2 { no-1-8-v; }; +&sound { + audio-routing = + "AMIC1", "MIC BIAS External1", + "AMIC2", "MIC BIAS Internal2", + "AMIC3", "MIC BIAS External1"; +}; + &usb { status = "okay"; extcon = <&muic>, <&muic>;