From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BD4E36AB57 for ; Wed, 22 Apr 2026 13:08:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776863331; cv=none; b=o7ThxNi8M3zo3PXfM+ph+YDBgM1jFWl1R87F9RCeUdGru69hfzIckT6quyTT2QjK/jQgoacPUkwtS9zz5IsCttiKsVtroO9bcp3PlDTb1ZDkWsCVlMBcJZWzXKU7lGvm2VuYopsjlYRdj82Moitpw9YsJCvNkgDQ3Xlv+jrIEas= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776863331; c=relaxed/simple; bh=jh2jMSSXcTJXd8vlLLS/y4BWbI+0DSavjwWgrZsTuSc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=OTir/LXe35YiGF40GqIC+Qu9ohhefBX3eDi81ZxaPXaONWaNdA9VwWe8ZlhvYVNEUjPVJtiSGKVx6/wLs+2eARnELPEYg7IuLJO3ay+WUYCK3EwfPXiMmu8KRa6jaGPO+CQR6YKMae6Drvhzp8zyYmb5gn6udkjAmxojkRlJnRg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=pkmxffez; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Cm4fWF48; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="pkmxffez"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Cm4fWF48" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63M982pE2637641 for ; Wed, 22 Apr 2026 13:08:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= w1qZsMsy9aONVEYgOFeg+h83ww+M66WJpHobjGnH/38=; b=pkmxffeznbTdM1my AfJ0umve6g/Ir7lEe3X85lY0rdPLT5PyGNTkztHTdTZsJxRi2oSBLDZALDcoJj2f 9gp5VkWzYMQ7xts+yaz7olSdmqbToXO8ubNfz/iSutO5y8PyPkX5EWlfI/fdMfaC pGtBsBMerPN33Hg9gkt9DXi3MdRCa+NiWRs7gHvetZKAJUbW+GK1Oea5J4PycXKx 28SnOJzlZYBiofUooOzCZT1FMhDDka2xf0LF0h6+8pyvWKLbG6L5xDptaSEjDAHk /9gmfKbtEFgsgOG0vq0RSlRhU6AU0U/I1PIE2j+DGfuqTkk273CxM/42Vr8oj8YV fnA8pw== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dpenhbet2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 22 Apr 2026 13:08:48 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-8eb8e3294easo45532085a.1 for ; Wed, 22 Apr 2026 06:08:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1776863327; x=1777468127; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=w1qZsMsy9aONVEYgOFeg+h83ww+M66WJpHobjGnH/38=; b=Cm4fWF48jPnbfeQlgAvrwk0+CD2imVm+K5LJBPzYqLpfUzvbM4AtbbZoFmvAw5jHns B8a4RzQ9q7HdJtAQY9wbDUP3jV01u7cqxXMqFtoDALb8jH+tL48LJbIXGrsqJQyAJgwN fyhlPv5ZXdlAraBo4dCL5g5qn9Q7PckwQaMAFqDHk7d1wWlf7XmAulZNsaHeAui+8LKQ ru5zUuvuHc1GNDVlYt03fwKDPqmt1eQ6QpzMDdwXCh+9gjttDB0XAr5GStSIUyOmqR/a aY4sTmje2ob2lZCx/+0T6nS8Y+nQTeAG5CtiiNCT00V8+kcv5tBbXO738ChOXHvywRRS bkmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776863327; x=1777468127; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w1qZsMsy9aONVEYgOFeg+h83ww+M66WJpHobjGnH/38=; b=nJGrJBl7+VHu7hnWCdGflMvfWqta2TPotZf6R4P8RwPDlJfgwTZzvcuBM2rSPnmNVZ x1p27Opi4Wkvca9XEJ/gfzNE9mZFo1fEkb46hlQxaUZ9RzOmv6SlpCgDIip4MmYAPdqr jhkBAJ20HxhYGG56NuNxSLvF4jvUCcib1aUilaLmucS0TvSfbl9rw3wRGUIulrfPocuG jbPZy/PgaBoPQxVVta01yQrab/zntp2BwHhcTXzvPBn/Eh7vzziY65vIj9//aD4XrN0p wYG9HBcblQhVtoGp8bsLKIJsmqGJsgPvs+RVvP1FdIqegtjfCf0az/b7Rs9wLYarDKjK oykQ== X-Forwarded-Encrypted: i=1; AFNElJ+g5SyMoPfrU3HNhTBJMGAfQXptS1Da9F3sW+LRn+k21ZXEWua2C06TeqWdJHf7tfsoO5j5KfQ/eUF2bhw=@vger.kernel.org X-Gm-Message-State: AOJu0YzBhIIIe+HF2vcuWsVZqkHYsg6ZKdxYVPOFI8HhbJKJ/8xIgIqc dK67NjTBDt+g1SM8VuGmNZEAePU28jxytDW8mclOqhiry5s/thsKayYo/1sRrsJWmyssK8pwyXR s1euxOEpo8eY/piZY49icUTFPRqblZ8/7iLORD65u17lJ2e4Gfmfv5A9U0VuB7Gv3vVM= X-Gm-Gg: AeBDietu8RAvnvIzhCl7mBqFWIFegksAvgNiIuUk/RGsV4dKJAp8x6pjdwSuPqG6x0s br8sjG3j0TEiU7NHvEd5NuQ82d0oufU1LOinJP6DLxd+iY9Jkfk9h24PhAmMnMAE2QM2LzSOVD0 KQUCjtR1mkM1wlwpRrsUyCihG7DOoAweclsZUM4k6ZyWAUhh4sTQflhDCrhiC5aCuHNgPfwPUX1 CUSHMJUqtb1KGNNvTYPtEjb+yS80vknXIGcWQOWtm5jMV44Auza8olDvW8CeXOP8doY3qFyyre8 QARDSUzHx4TikP+4I9u8NSKAZuhfE3+7GSFQGbJ1X6tA4qNWrELRFHdSRyFW89oWDBaKyS7p5A/ aJ0ZvqhcseUU2YimbrItha2mzlRT0ejJVAsbrsu9if+smslkQ3xw2Q08wUk1vJ+1Zu73OPwk+w/ uTjDKh0Z642EprcQ== X-Received: by 2002:a05:620a:4002:b0:8f0:7516:daa9 with SMTP id af79cd13be357-8f07516e2fbmr70755885a.4.1776863326035; Wed, 22 Apr 2026 06:08:46 -0700 (PDT) X-Received: by 2002:a05:620a:4002:b0:8f0:7516:daa9 with SMTP id af79cd13be357-8f07516e2fbmr70741785a.4.1776863324003; Wed, 22 Apr 2026 06:08:44 -0700 (PDT) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-672c47fe8a0sm3291152a12.5.2026.04.22.06.08.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Apr 2026 06:08:42 -0700 (PDT) Message-ID: Date: Wed, 22 Apr 2026 15:08:38 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/5] arm64: dts: qcom: sm6350: add LPASS LPI pin controller To: Luca Weiss , Dmitry Baryshkov Cc: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla References: <20260128-sm6350-lpi-tlmm-v1-0-36583f2a2a2a@fairphone.com> <20260128-sm6350-lpi-tlmm-v1-4-36583f2a2a2a@fairphone.com> <91812db8-9774-468e-8a8b-10699a63310c@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=HdUkiCE8 c=1 sm=1 tr=0 ts=69e8c860 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=W6naqKN7AAAA:8 a=6H0WHjuAAAAA:8 a=EUspDBNiAAAA:8 a=WRoefMb1mtoobpndLnoA:9 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 a=Xp8b5NkTPdl8jt_qJiRs:22 a=Soq9LBFxuPC4vsCAQt-j:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDIyMDEyNiBTYWx0ZWRfX70H87G23fKL/ 0OQuDs1CEBuVPNVZdjmqbDHPo9aQsdlqwPe/HqdkKFmFnTrmUOwbY3qEMeOZx6Gk/Q5Ktfw1/Bm B+C+tTwxvdHlw2LBCH2tZBp2WHvY1JsG1fQFP39piK3kHxlf42Eur0f82Pg/rNDRjo+EVoAmVLe ypE0XiCyuPDkLsr9hF7vFoFa/Tk3RJ8V9Hshv5UqW+WOLEwCBIk8h33svvt0YJ4HVnVBtg8d0WL cNWygS1AST0ZbqCP2lyyk8mwwEWMf1kuCmcSgVUEHzki2FjhVnr41Mq2jufpIU//cr49OTrNlFc F9BjV0jtdK7q8nuye2ubVUj8zbUW1hMS6HhyxjXWrVs54ma6IHcXurNF+s8s7z2vO+Kr3ERqN5k mT4OLQaA5GVS+Ytkot0H0MfxtaCR28CEYO5gwAmYc+FDzzVN8lmmkkNVvdWF6ahi6TFNtbqJudt cZcwnuzCEe1F0oI16sQ== X-Proofpoint-ORIG-GUID: 6URv9ZkYB12sXewH-8uQ02U1alXqI9FT X-Proofpoint-GUID: 6URv9ZkYB12sXewH-8uQ02U1alXqI9FT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-22_01,2026-04-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 malwarescore=0 bulkscore=0 spamscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 adultscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604220126 On 4/13/26 10:55 AM, Luca Weiss wrote: > Hi Konrad, > > On Thu Jan 29, 2026 at 12:19 PM CET, Konrad Dybcio wrote: >> On 1/29/26 9:32 AM, Luca Weiss wrote: >>> On Wed Jan 28, 2026 at 11:16 PM CET, Dmitry Baryshkov wrote: >>>> On Wed, Jan 28, 2026 at 01:26:52PM +0100, Luca Weiss wrote: >>>>> Add LPASS LPI pinctrl node required for audio functionality on SM6350. >>>>> >>>>> Signed-off-by: Luca Weiss >>>>> --- >>>>> arch/arm64/boot/dts/qcom/sm6350.dtsi | 66 ++++++++++++++++++++++++++++++++++++ >>>>> 1 file changed, 66 insertions(+) >>>>> >>>>> diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi >>>>> index 9f9b9f9af0da..b1fb6c812da7 100644 >>>>> --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi >>>>> +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi >>>>> @@ -1448,6 +1448,72 @@ compute-cb@5 { >>>>> }; >>>>> }; >>>>> >>>>> + lpass_tlmm: pinctrl@33c0000 { >>>>> + compatible = "qcom,sm6350-lpass-lpi-pinctrl"; >>>>> + reg = <0x0 0x033c0000 0x0 0x20000>, >>>>> + <0x0 0x03550000 0x0 0x10000>; >>>>> + gpio-controller; >>>>> + #gpio-cells = <2>; >>>>> + gpio-ranges = <&lpass_tlmm 0 0 15>; >>>>> + >>>>> + clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, >>>>> + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; >>>>> + clock-names = "core", >>>>> + "audio"; >>>>> + >>>>> + i2s1_active: i2s1-active-state { >>>>> + clk-pins { >>>>> + pins = "gpio6"; >>>>> + function = "i2s1_clk"; >>>>> + drive-strength = <8>; >>>>> + bias-disable; >>>>> + output-high; >>>> >>>> This looks suspicious for the clock pin. >>>> >>>>> + }; >>>>> + >>>>> + ws-pins { >>>>> + pins = "gpio7"; >>>>> + function = "i2s1_ws"; >>>>> + drive-strength = <8>; >>>>> + bias-disable; >>>>> + output-high; >>>> >>>> The same >>>> >>>>> + }; >>>>> + >>>>> + data-pins { >>>>> + pins = "gpio8", "gpio9"; >>>>> + function = "i2s1_data"; >>>>> + drive-strength = <8>; >>>>> + bias-disable; >>>>> + output-high; >>>> >>>> And here. >>> >>> I've taken this pinctrl from downstream lagoon-lpi.dtsi. There the >>> active config for these pins have "output-high;" set. >>> >>> And fwiw this pinctrl works fine at runtime for driving the speaker. >> >> I tried to find an answer. >> >> A doc for this SoC says that i2s clock pins should be at output-low >> (2 mA) when muxed to the i2s_xxx function, with no information about >> bias settings (perhaps bias-disable), and in sleep they should be the >> same (minus the drive strength note, but 2mA is the lowest setting) >> >> I am further confused because the output-enable bit in the cfg >> register specifically says "when in GPIO mode" > > Thanks for checking. > > What should we do here now? Follow what you found in the docs, or follow > what downstream is doing (8ma output-high)? > > https://gerrit-public.fairphone.software/plugins/gitiles/kernel/msm-extra/devicetree/+/refs/heads/int/15/fp4/qcom/lagoon-lpi.dtsi#219 > > I think apart from this question, this patchset should be ready to land. I think I'm OK with following downstream. If we make any discoveries wrt docs, we'll likely need a mass fixup anyway, so Reviewed-by: Konrad Dybcio adding +Srini for awareness Konrad