From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 DE6203815E2 for ; Thu, 29 Jan 2026 11:19:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769685553; cv=none; b=OpfyFYASf61rxjlh90J+EiGlQtLaBwpbfC9hrl1WXnD+KkpO7FRWkfbcAyK4G2/ETMIntgnsr9MvqEv0eOoxBamqj24ySmPYInDPoUjc1wC2wPIMR9AlHuOIiPff7OaEh98hVZOvTpN26srwyvo3oqgV7hEU9C3/CupKgZ+UHng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769685553; c=relaxed/simple; bh=XZUI+1dfgfMKqsltluvNOpJlTGT+hBConju38yjh73E=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Esh+szrmaUvlXOZrsJJOswGVTo4jcsAKrvAcnNGPM38JOmdnyjx867R30VYt2WYzg6GTe3HobNKlkEtC1dmf09a2hQrJ0IIEIY7fb7+FadC8SR9kE75Mvb4ZhepXerfQRMLNU8jr1AAU4JC7mYjExS2CdC2J0UJHCw9YCjpoHNQ= 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=ez6vu1DW; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=eVo++lRi; arc=none smtp.client-ip=205.220.168.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="ez6vu1DW"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="eVo++lRi" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 60TAKWcV3674000 for ; Thu, 29 Jan 2026 11:19:11 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= 9Gltcaw9+uco5jPE/rC649cVEXA47psnbqJDgxE3UkE=; b=ez6vu1DWTOlYSQZO i+Y1RkPnD9byy3UtGcg79ftZtzjRkfIv+M2aNTlvgcj9Xxo5JZp7AAdfOv/zi7LP 8phFX48FYKxh+lv0SuCz3+La9d0H1e4DL/+U+HY0p0cpOHYLAG277bh3qI6lkTHE kuZQNrUZqb7/V3nl6Lm5kn3N96nCu+VwhUoeiup5T/62KXYUpeZczHiCUPQMX7dz dx3gy4FXJ2V3l7F5YxXJhMA6oD5vogal7n0zR5MQ4/45E7NZJoSOyl9/Ra4Y1yFU 07J6J9g7LBIsBBaNZXX1Ogz2o+aUUxIqD71P6hyV1NUg0yFIBOR5aHl8k2h5Rtit MnHjQQ== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4c05q7g5fp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Jan 2026 11:19:11 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-8c6de73fab8so26743185a.3 for ; Thu, 29 Jan 2026 03:19:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1769685550; x=1770290350; 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=9Gltcaw9+uco5jPE/rC649cVEXA47psnbqJDgxE3UkE=; b=eVo++lRio76t/NMTuz/IFyDFKrkIVl0H4/JP51AcsqjWcFQUCLxHuK/0bcLrr8RXHQ YGLmvqVtWj3w2JW6dynnh0sCc7rpcT/DqraNw90ssnsf0LknTDxAO2OCGvZAVAQf9P0g CmhYlPZDYBT96Mh3/yBkhRPWWcG6wifRocPnq4TRsX3cFOaYbFV+DCrFX7rpFLEmSOEW RK7aux9rCB5/gyZ10LlAZfPRhRars9Z/cTDH9MSntpAVtjKk0/Kqif0wsss80NavjF9S vT+moTbPzgwUY865IScSQp5BqHBgznNMRCOYz1vvYqk4fzfU1QirTeYxbWF5lG1pxWry Akng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769685550; x=1770290350; 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=9Gltcaw9+uco5jPE/rC649cVEXA47psnbqJDgxE3UkE=; b=Sl3UumE/0Cqm1qzxgalqVcOZ8D3hy9rkfd1ndsVrO/ssH7kgF1+2xSdZLUZKIrwNMY oC67NSW8Aq5HN3r4jeVynpcBpiUCcf+PSZlb/6Vju4pNFYxbMVXqv6sr4xYgXsgKKwJV +Mmm2w41MCPMmd9VLIUckoM+CTWZzB+C44HETRskmaWom4MRTe8K9LYV410gn1WD0Jhn rtMQWR9+6tL2lAsdaSoDRUOZTexEs74wzI3Tw4OcIZ0278rc+cscBTcZBGKvUApSeupH DotsIMCP4D+g1q86IwNUZ3su59B3RqIcNDHPwZah8ga0dQspB1WrGj3SGewIz8eVLSrw 5R+w== X-Forwarded-Encrypted: i=1; AJvYcCW86dW5tfGWJF+d7iYb58kyN3v8beGpfNVlGoeyrBg51leRi9hgJLjePuO7BpHHVChG8B+PDe5/vui/@vger.kernel.org X-Gm-Message-State: AOJu0YzS1eX6rMl/aX1Wc57m5EuZDrX714R9sOxFWWHWGe8bH2O2RN6z SjrcBRwVhP1M5010Qlhus1sM0FUclcNsjFaWsSGkyhedLiW4nOgOWd51xRsgJ7NJIj3kQ3bQt+k FnZvZUT0i4Xx0hKArmDPsGQPwcOTrkF9nthaq/YQ/siqIcnN5XrWYBhyAbXwAXGBl X-Gm-Gg: AZuq6aKCdJAcl+OakH+y4Ku88fKA7Tl9NqMd2uCtzUPft7BZOuD20V3e2xRj2I2ujiX zGe4WlY/y2bVC8ZCOfiT6YEIxHOoOLSpRq6De7YDe1Q3UIEf01s3c/Q9DMvSnfi+YpwPOMB99No ozR9SgMfMUpnAF9DmwfSTfFrDJbzteOp15o5XrjgO+l/SDx3GGUTqy02lptyEB88QVA0ZRK4NSW bglEv1Kvapd2GqeDYAYb746YaT1RXEnlIebDJC22/G6E6M6z0eFxrGl8jt7zlJHYjMenlGIEg3X MMHAPvMYlv8Epsta+We8cItgL628Y4JdwH+QUnrbPvOcNI4PDq6Fa7W7etHpHMbMQhrLuG/dvxQ VHgjXX0HTsJJMZBfO+oVM2jnjflX9Qja37wl0Cr0WvJOfJFj5J3UN4xLVh0KiqoKEXCI= X-Received: by 2002:a05:620a:191e:b0:8c5:33bf:524c with SMTP id af79cd13be357-8c71ad22c32mr324006385a.6.1769685550003; Thu, 29 Jan 2026 03:19:10 -0800 (PST) X-Received: by 2002:a05:620a:191e:b0:8c5:33bf:524c with SMTP id af79cd13be357-8c71ad22c32mr324004985a.6.1769685549534; Thu, 29 Jan 2026 03:19:09 -0800 (PST) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-658b46ac0e8sm2677629a12.34.2026.01.29.03.19.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Jan 2026 03:19:08 -0800 (PST) Message-ID: <91812db8-9774-468e-8a8b-10699a63310c@oss.qualcomm.com> Date: Thu, 29 Jan 2026 12:19:06 +0100 Precedence: bulk X-Mailing-List: devicetree@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 References: <20260128-sm6350-lpi-tlmm-v1-0-36583f2a2a2a@fairphone.com> <20260128-sm6350-lpi-tlmm-v1-4-36583f2a2a2a@fairphone.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: Zhxw7gQn6VBi5L0U5hDB_MsvAdrs4Bds X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTI5MDA3NiBTYWx0ZWRfX/e5YL+B1tRnc F/AEnBKY/ozB6Id4KcV0+Cco7A3AIooeZW0g9BIGaBNyhfvDH6dArwllJSttXAHY2o0WRMoUawV MCS0W0Dk9WG6qymeQ041LAS/9haj7ONWhBolsvuCfAicZyyeA6RcFeKk0QT9abxgwYfEXl2q+ND rkYp3NpUZ7JRxv6krRfpC8GASuycroZq/OYUCFMJ4QXTuTPsbVbXViEL1EVuK+8E4nu1kjKTUaj ki9okdVYBW01Gj7WHLiW3PmlmWul3nhHfWezaSZPx20GL7E5h0lr/mZmxzKMAsqwN7P/lQC/jKu ekr29kBXsdtPYYQpCE0pXFQFnuMBt5FfVE3WzOVzaBhDdqM73jSJig/lLiXIOpSaX1g3W/0NH0u RNK/iAJFeNIfh4dRO/KHoKksAzZo1/FB/uLKUBcpIbLoaUisHOoHMhCjI1rEqTALc2hh4REZkwx CiD2ByEow9vObkvSOEw== X-Authority-Analysis: v=2.4 cv=donWylg4 c=1 sm=1 tr=0 ts=697b422f cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=6H0WHjuAAAAA:8 a=8gWlQ0A84ExjddM39AAA:9 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=Soq9LBFxuPC4vsCAQt-j:22 X-Proofpoint-ORIG-GUID: Zhxw7gQn6VBi5L0U5hDB_MsvAdrs4Bds X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-01-29_02,2026-01-28_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 suspectscore=0 spamscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2601290076 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" Konrad