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 F25C22C15BE for ; Wed, 1 Apr 2026 13:34:24 +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=1775050466; cv=none; b=b9TwRvy9vc2NRHha3vnC6ZQH7s4NWfDZujmCfz7sZejLEv8CLf9cOvLISow0dio/1nTO7k2hy9fPoyOXBAqQTSmkwEUnCJYyAvFGEnwcEpKJjLNSR1EDsPeZ44fBpv3Oq5hufZMA1gUGH0GoYGOCvL3j9rFHK+QLT+XfadH5kiI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775050466; c=relaxed/simple; bh=kjBuFtSmTQKymqjdsLBcLS3k+9y7bSIc4IA9L9bYLps=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eQxcYDZir0Mck2DycXcyAJFLsVez+rpZfrtWLWCWkA8CqA1Zg9PC5rizGu+v+48cI4i7MG39LaJQzOls78jq0G9Kr3Fc5UxXAW4lsM7H8T8h3i5UB+aq12UacYiVmBaWAX6nV+tPcFlVQ1cdpRqp+VLH1OEDxvDxNiXKZT2c6RE= 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=HaRbwsA9; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=FlELJEXO; 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="HaRbwsA9"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="FlELJEXO" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 631CS2iB1285859 for ; Wed, 1 Apr 2026 13:34:24 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= oUAsPqKJi8o/QNgAhqgHHlu6CHFNY+OVldJYYmN8WmE=; b=HaRbwsA9zcvj5hnu FSfUQ4P7CBk4VkzpCyYHXq2JYa7oZJzTqdbHosRUqEfH8ETOFCtLdj7w9HPZGH9w yKuKfjbn/6SYYdz0AwLOoYWNUOtb63EUW/rCYXPgVwruZFYuVdhe1AAcqpWJEtfU nhfcRUHwhdZrbO34byZ+8HmC4i1wnFol/zQtKmf/aAfpHNLIY0fLNi7RdwDBOHlj PIYymzyUBj5u/Rsl/DYlLWN+lsZ3O9j7SVoGaHx9d4Fb1OsS8pI5NCFVxi4RoCLm IUn916gYb29ZcIsndOk6a8SciOcD0E0jD6VDwloKkvw4GXOSwhCruhBuZNAeh6lh 3kSnUA== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d8xm3sha0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 01 Apr 2026 13:34:23 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-35c0e84914aso1866156a91.1 for ; Wed, 01 Apr 2026 06:34:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1775050463; x=1775655263; 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=oUAsPqKJi8o/QNgAhqgHHlu6CHFNY+OVldJYYmN8WmE=; b=FlELJEXOpAP16MkUtgH4kCKlNpx+WWKfZKZcbCYDfKHpe2U3dUdYrLi462xL+/OZdK Zlk30206T6B1kjKzCEQZkcHyskCMkxH6iF8oe/3uGNplzzXNM5AE/3DQ9ysgp4RbXfFn uAPU8u1/JI/2sXe3Hi5oHyx3aq0gU0AxyhVtLL2d3avsHi+F1wgeLryQaWmBsAuSGaNU eRIXq6M9xYsX6WUSnkUJeYlSSAQrdPmtnHMYalwxRCyX03IRXKQZPFbhoqyxr9Xzd2wq Rs2v94BrxTTDHYjqfHDrCHSJK4a/vXqPs3elW2MHCkk1WhJLhhExWHxarjs2tr3b9HaH MWAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775050463; x=1775655263; 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=oUAsPqKJi8o/QNgAhqgHHlu6CHFNY+OVldJYYmN8WmE=; b=fycG6oVQ1Jd5U/20SzOPxqw+qLpgsBW4BvDppUnhnNB/4e/SzrsYqrvhViHcxaT+aY CtJPaQ7tlCM1aJ1vHhHjeQsKQuQEA3d4TzBuYuITe8gQkSaqQurOCRCYCMHH5vGNU9Am 5N1K39FLF0YZtvRAxqt1ceegSTIRL4wTA1fnkfbtMcZ7dRGNsaq19yQ/ww+LqvGfTab6 88c1WWoDVxpeW8VCZFeeTCGGuYSh+ACc5qpHSCydDrxv0Ftt6XDvqqjjTcb5pbnamBos tyJ1/AM5dz8iYuFJ5qa/ICv6C6GcaYhDePssjRO4fQ03KJgDowCO88cClO/n9X0jy4Hp T6RA== X-Forwarded-Encrypted: i=1; AJvYcCUib23iw9V6vhkL3gu9tXYUMXEKL/uTNZkkmi24lSQo7xOSah4URVkZmeGqe/0DkSUWpILSZ8i002Er@vger.kernel.org X-Gm-Message-State: AOJu0YwPQVd0Y0Pv1LU7bR3GVSXecGpb6aH14TJ9mCkGVmpelEsSijbg kVr2PuM3apMK/y5pxishETYoYIpm88aVgROPhqma9ylYLomNqHgOrM1sr26aOUErdHNoy+xXVKa NvKMoteYn0prVCXLm5G/4n7qTK5IFCOKGyWexuEhQB8yYUbbx8rd69cJgtsIhmkyB X-Gm-Gg: ATEYQzwkVpzn5ONG0lmvXPRVlnCMDj/hcTN6kt8whnjoDyJjQu4o8Xn0O7c0A7sFm2a Jz93T0FkhUTReHNOMu3ClITd529v0kjkTqIVoSWpK3fxCd0on47v/L9JXYrsrYCLvK8OpBaDd0n M0Dyy9wcRToNYx5NGqndo6LSQfhLJrkIp9IlHW/FclX/NNqbYPTLd0F73GNQqKK+qWG3XjHJNqo lef7DtffwQujVWPAob7nV2JeRSsoZcerCcNKFKFcOc+CC/a/0IWH5rIrprSIs9Y55+NKhTKFpk2 KYYddpYau1FfezCouV9ARv70Ezz/vsI5vJzeSDQQiKWaEpx0/AlNh9RfuMLww+V7Gls1vP2B2mB kUmd4UE5iVzQZ+9OeNT4kCgbL0DPOpZjQSadHUPFXtQFaT5t2TqbAX+KxnFuIw6EOkQhTF37pZi XC4bkiKpC7584v X-Received: by 2002:a17:90b:3952:b0:35b:90e7:c450 with SMTP id 98e67ed59e1d1-35dc6e770f8mr2198541a91.1.1775050462898; Wed, 01 Apr 2026 06:34:22 -0700 (PDT) X-Received: by 2002:a17:90b:3952:b0:35b:90e7:c450 with SMTP id 98e67ed59e1d1-35dc6e770f8mr2198508a91.1.1775050462395; Wed, 01 Apr 2026 06:34:22 -0700 (PDT) Received: from [10.133.33.205] (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c76b986ec97sm3472440a12.30.2026.04.01.06.34.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Apr 2026 06:34:21 -0700 (PDT) Message-ID: <4a3887f7-9445-4d46-b250-5fb160c9795b@oss.qualcomm.com> Date: Wed, 1 Apr 2026 21:34:16 +0800 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/6] arm64: dts: qcom: kaanapali-mtp: Enable bluetooth and Wifi To: Dmitry Baryshkov Cc: Jingyi Wang , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , aiqun.yu@oss.qualcomm.com, tingwei.zhang@oss.qualcomm.com, trilok.soni@oss.qualcomm.com, yijie.yang@oss.qualcomm.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, 20260224-knp-dts-misc-v6-0-79d20dab8a60@oss.qualcomm.com References: <13745334-c2dd-4a97-90de-a5ee18cff6a7@oss.qualcomm.com> <0279f334-95ed-4df8-9e42-749fd854c551@oss.qualcomm.com> <3xb6ya4zxhmaode3u3al5r4g3rfzlq2ifbyodvwtr3qgt34pwc@ia2xqfaeufd2> Content-Language: en-US From: Zijun Hu In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=L90QguT8 c=1 sm=1 tr=0 ts=69cd1edf cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=UxcVjGXgwavKz8fSHwIA:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-ORIG-GUID: JcttNVQ5Yvya32kd_DZe1dy9OQmTsdQW X-Proofpoint-GUID: JcttNVQ5Yvya32kd_DZe1dy9OQmTsdQW X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDAxMDEyNSBTYWx0ZWRfX85AlAHycvE5j oQXPWZ+dTYV9kJq5swQFOAyhjazicYXKwWe2ruL7ioE5KFVhH+rf7NzxSa6PGi1RUHsjo5+ftl+ 5SFvryTs89czpJgN0clOCxZ38xr0mMrYzwbFpAoSaj+5IEeGtq4w+k4kgVc/kHwKTgCUeBoRbp9 q6A824Ro9ZGmeztJ/zFBOOeMBMIrk65DPIoN+i0sW+Ik6c8a0jOJsGeJ6k5OTJbXh40Ktc5HZiA 1K9fKd0UV6qK7kOef4wcN9LZuPMBva40unDog2gDWKr/QcnT/JRZB1PKdsJ4P3ck7ke3eP4M9D3 tOSXNsRigeXt+d4F0ShPGEI+uvgY7ZLUt/0QMXZavTqy/F+LHLnY2283PltF3b+aMKZpvt3JdA8 VQjBlDSd1/mwDtsbkgWU/urkSNKQ0n03zPhXVGvwdQdSZ1xpbh7ljfWt46mj6j2lLeRWD0lcapV 4xEU0CsUM+njLrNTQJg== 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-01_04,2026-04-01_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 phishscore=0 clxscore=1015 priorityscore=1501 spamscore=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604010125 On 4/1/2026 7:08 PM, Dmitry Baryshkov wrote: >>>>> - Is the pin wired in the hardware? >>>> pin SW_CTRL is wired in hardware. >>> Granted your three answers, it can and should be described in the DT. >>> >>>> i have below confusions about 'swctrl-gpios' of 'qcom,wcn7850-pmu' >>>> which WCN7850 pin is 'swctrl-gpios' mean for ? >>>> Why to introduce 'swctrl-gpios' ? >>>> what problem does it solve ? >>>> how to solve the problem ? >>> Please descibe the hardware in the DT. Problem solving belongs to the >>> driver. >> sorry for not agreeing with your points here. >> >> it is better to correct or remove 'swctrl-gpios' within DT binding spec at least >> for 'qcom,wcn7850-pmu' with below reasons: >> >> 1) provided that 'swctrl-gpios' is for pin SW_CTRL of datasheet, binding spec's >> both description and its expected usage are wrong. > Please correct it. > >> 2) its driver does not parse and use the property 'swctrl-gpios', moreover, the >> property have no user within upstream DT tree. > There is no "driver" in the "DT bindings" > 'its driver' i mean here is the driver which drives the device which is generated by this DT node 'qcom,wcn7850-pmu'. source code of the driver is drivers/power/sequencing/pwrseq-qcom-wcn.c >> 3) the property is not mandatory based on binding spec. > Which is expected, because on some platforms it might be not wired up > and on the other platforms the pin to which it is wired to might be > unknown (think about all the phones for which the community doesn't have > schematics). > got your points and will explain mine at below 2) together. >> 4) upstream DT tree have had many such usages as mine which just set default pin >> configuration and not specify 'swctrl-gpios' explicitly. > I don't understand this part. > For DT node 'qcom,wcn7850-pmu' of products identified by the following dts file at least: wcn7850-pmu { compatible = "qcom,wcn7850-pmu"; pinctrl-names = "default"; // config SW_CTRL pin default settings, but pinctrl-0 = ....; // this DT node does not specify property 'swctrl-gpios'. .... } grep -l -r "qcom,wcn7850-pmu" arch/arm64/boot/dts/qcom/ | xargs grep -l -r "sw[_-]ctrl" arch/arm64/boot/dts/qcom/sm8550-hdk.dts arch/arm64/boot/dts/qcom/sm8650-qrd.dts arch/arm64/boot/dts/qcom/sm8750-mtp.dts arch/arm64/boot/dts/qcom/sm8650-ayaneo-pocket-s2.dts arch/arm64/boot/dts/qcom/sm8550-qrd.dts arch/arm64/boot/dts/qcom/sm8650-hdk.dts >> 5) kaanapali-mtp is originally preinstalled with android OS which supports some >> qualcomm specific feature which have not been supported by up-stream kernel. >> so kaanapali-mtp H/W has some wired pins which is not used by up-stream >> kernel sometimes > Again, what does that have to do with the hardware description? kaanapali-mtp hardware supports the feature pin SW_CTRL involved, but we can decide not to enable the feature based on requirements. any advise about how to correct DTS to not enable the feature SW_CTRL involved ?