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 D31A033E7 for ; Fri, 22 May 2026 10:47:58 +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=1779446880; cv=none; b=duWvR9QgxCFeEMsMLP93bSm9CIZWM1vd7LnTP8tmsSLDnodm9nfTprENQexrL/U3ItkV8UwIG5ghAMSRrQoSSfzV7R0x5Yumy/xpIZvokx8a6/lfwIuIxukwY7jDa++GqhVrpgi67CmnmXtP1DavXK9EVA20LgDFB73m1zrtRto= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779446880; c=relaxed/simple; bh=NVgFKQxsnzNhNQOuc+bA77K7RYAApwOOdmSv3B5Z/xE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rmRGLZnnNOxGlIu9J5LFT8mTXPuAmemT/udbCDAnwZl8N+LadfPCBokFf05K8vGfOhv5f0tTWh4IZz4IAsUb4U20LNi6u6fZUZ6800kBqfe5bL4hU6JGjMFQOajuE5gm5ZRc2EyA1GSVoP8adu2+mMQhJeLsRBlTZl6yI5H+o3w= 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=KmPkDZ7Y; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=CXXL17op; 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="KmPkDZ7Y"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="CXXL17op" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64M9wSQH312895 for ; Fri, 22 May 2026 10:47:58 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= C5LPZXuE8GtSpjowrcTTt/AMJnsUFfiUN8IDJ0W9Gu4=; b=KmPkDZ7YhXmxGwHO G9ZYRJBI2glybS8lrr2wjVqhOLYF4wPPT0tgw0uj9vwtNBXFjGRzA85UA6+hurtV WOCzMFFTCGCHKYPQFep7GESuyetYQwbeB86/XghhEpXVgbwLCriNzeq5dd8thjMo R1V50neYHnIqwB+gnAT4JQ+lLuhd4SDZ63Z8wFlYQLPBdHuAGGuDDWA2g15MGq/r ZVJLhzXUvg2B1kHqJjKUfjW4b+Id5H7dIGpE9GyTO69Ooj07AKFkqX0YqU/z6B4E SXKW6VLF2UfTc1L+pwTZloItCb0FZCHpQP4igOAX8HpTBIEnUwpowqUz5UXMIgam +WXb+A== Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ea8833exc-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 22 May 2026 10:47:57 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-50d9f1bccd7so17639921cf.1 for ; Fri, 22 May 2026 03:47:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1779446877; x=1780051677; 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=C5LPZXuE8GtSpjowrcTTt/AMJnsUFfiUN8IDJ0W9Gu4=; b=CXXL17opzm3an4zDc/pIsRK2ypukoMUvYn9KSLzEwUr5scc06gwhUDSaku7ioCC9m6 CP78/fYXHYNJs/zouKr4Jvt4zxMYhgRz+y4lse0suAdr3hc6clyAwj/msa9Lr+UsJ0ei B8cUPMsKwPj1YaijkVyqBGIePLu7CCViUF7jusM3ueNDF/K+e+0L8oZpEUA+PtbgnvY0 xSVmTFG+U0Qy9mV4mo743esnzcWDJxkiFstuSQ/V0iA+9Hg1YaCaCEBgRWgmzjpT5YMQ oi5tsN6XJF/ABjgSKzTAyMGgOot9M/nPp1PuEwIGV2ofcYsicTQVh9lPy5apGY8RKQWZ Dfvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779446877; x=1780051677; 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=C5LPZXuE8GtSpjowrcTTt/AMJnsUFfiUN8IDJ0W9Gu4=; b=ESzkRufFDqUPAF80BU6uSDgBjjOcNi1bJ4/3x/X2HLTvTVyn6b3GjfgtdnoUupiGk8 hCdqvGTsxL4b0gHb14w2X7kGLFAHZHa5P7wxoybwV9EBVnu5RhrgV5nE6WKNEG8pIQfG 25L9mqLsJzdDybe0Xcc/ogY65XTmH0iKsrQGdbM9rtijIph6I62Uev40x6mZaob39yD0 piBObruUiC5WigdFOeLd9OjyCluuzxw2vfQnAr7qZfsw9iOnqNwi0FUQXFeLz+cMyGN7 ZUzxGM4KYUyhhi0mVclUBCMoUFs1xz+6CE7jeJqOsAYJ8oFHFPO/h/O/8WtaVtGVTOKO nu4Q== X-Forwarded-Encrypted: i=1; AFNElJ+pyXW9bP8M/E2P122i13hpISnPpxPG94BzyX4WJE9M27aHDR/jncl6WFhe1Mf8ExR1sd3oaVG6moYSsUs=@vger.kernel.org X-Gm-Message-State: AOJu0YzVn5LwRufzo5ZPYaSel5l11gUl7fcxzq5Kx3QlYf/iZhO3njqT l/RfAED1qUaQ7X258uNCamE4vnLhiYl4EhARf4k2d/AKi2weRaLe6zO7s1Urz08ndpiGodoIjXN LxTVMGS316V3P7Rnm84aeQ7+UejIN/02BNdTxq3BA+N1Sl5/HdOIxXPuJl4ldEp1LlNc= X-Gm-Gg: Acq92OG6jd5jUSIoqCQgV/WX5/bQ9LcluxB3qyS37pX9ftommMmYBAArwVC90dQM7ur Uly/Br/5Oj94GFFs4AoAcp1vbXmp7i80GmwG9vcaRiGuFpXIqe2n7BpnIV0iSeMxdtjsndVTeq8 sMT6Viz3Wg5MYyzGQpLCAq3WNicdx55A+YfCUeyGZzPt2JHRmiqGlYsepCHAXvuFUSV//d4G6Q3 GwQL1CYX68j0PDOY3yglr7X00n39tEMtNoeatEckp62WsU+Sy9u0yjoq1aZRlKCWQ4Uu/Y1o0SR U2ZfRW1E4Hfs9eHunE6fu+Q0DmppJUhBX2lwFvXWa6UWCuoVI6js0c+GX9WD50gAmwl8Z5Q9cOs zTp3a0BmlrC2zjx7ChFirm0K/hg5ZbwSnd+nSfWI676KmCA== X-Received: by 2002:a05:622a:a903:b0:509:e68:22cb with SMTP id d75a77b69052e-516d439424amr22762811cf.5.1779446877006; Fri, 22 May 2026 03:47:57 -0700 (PDT) X-Received: by 2002:a05:622a:a903:b0:509:e68:22cb with SMTP id d75a77b69052e-516d439424amr22762681cf.5.1779446876627; Fri, 22 May 2026 03:47:56 -0700 (PDT) Received: from [192.168.119.254] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-688b9b6d269sm537400a12.3.2026.05.22.03.47.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 May 2026 03:47:55 -0700 (PDT) Message-ID: <6bad01bc-3329-4a8c-a812-a6d058e15efa@oss.qualcomm.com> Date: Fri, 22 May 2026 12:47:53 +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 v3] arm64: dts: qcom: arduino-monza: add WLAN enable and rfkill GPIO To: Qian Zhang Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Baryshkov , Bartosz Golaszewski , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260511-linux-next-v3-1-3e22737e71eb@oss.qualcomm.com> <920223a6-4e4a-4ebc-8a1c-c37d0923a470@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTIyMDEwNyBTYWx0ZWRfXwJnWu4EEWR7Z Zd8ceArgjMa//7dGIAecuHazYljANDJ4CVXc+cXLWGYJiCus44fbbssAEgqsdiKJA+DwEHPtDL0 SwduUW6J4ZS25hL7LDfSyAZ1YVBJaPMF/WuGALUeABb1XbgRdNQjXX1E19RbVC7wipGDSFOb8Ae Vh/xXpHdiAOBWFxdi8uVDSSxLt+P8dcaklDjtR/KfvRb4pkGrP8jyZqq+pNwSWHx0PuR1upF1KG 6FayP06ev+6reSbNu6naTb3pdmRo12XQEVuELU6Az75MYSJgtGbpfVvukL894OEDQEzseS6skiz A27LohJayC2jceew9WrzFQVtAnqyhNhcdQtw6K9DjY3U+vlSWHr5Lz1Q7ZMBV/glH0k7z3QLQc6 8arHRM7SPFGklj41Slf8c2UU5jc7rQ7rNrgO6RwyPClBQy2GulVzhdYM9HyMg2a8WfgFbKN8L00 ahBNqazPkImEwUZmNwQ== X-Proofpoint-GUID: 0gEOc-IrXr1DyRLJVrEBW6GSqxVAT8Px X-Proofpoint-ORIG-GUID: 0gEOc-IrXr1DyRLJVrEBW6GSqxVAT8Px X-Authority-Analysis: v=2.4 cv=LsSiDHdc c=1 sm=1 tr=0 ts=6a10345d cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=Lzbw_nNmeTPLO_IXETgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=O8hF6Hzn-FEA:10 a=uxP6HrT_eTzRwkO_Te1X:22 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-05-22_02,2026-05-18_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 spamscore=0 lowpriorityscore=0 clxscore=1015 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605130000 definitions=main-2605220107 On 5/19/26 4:58 AM, Qian Zhang wrote: > You're right that GPIO 56 (wlan_en) is consumed by pwrseq-qcom-wcn > through the wcn6855-pmu node — apologies for the confusion in my > earlier reply. > Let me explain the hardware on this board, because it > differs slightly from the typical WCN6855 reference design and is the > source of a problem we're now stuck on. The wording, structure and magic characters within your reply make me think you're using a LLM to respond to me. I will not entertain this conversation further if that's the case. > Hardware > > The WLAN module fitted on Monaco-Monza is not a bare WCN6855 — it > contains an additional, module-internal PMU (PMCA6850) that gates > power to the WCN6855 die. So the signal chain is: > > SoC TLMM gpio56 (wlan_en) ──► PMCA6850 EN ──► WCN6855 rails ──► PCIe link up > > wlan_en is therefore the enable pin of PMCA6850, not of the > WCN6855 itself. From the host's point of view, asserting wlan_en > brings the module out of reset; the WCN6855 only becomes visible on > PCIe after PMCA6850 has finished its own ramp-up. The powerseq driver for WCN PMUs exists precisely to handle this setup. > Initially we reused the qcom,wcn6855-pmu compatible so that > pwrseq-qcom-wcn would drive wlan_en for us. But we hit a > resource-allocation issue this hardware behavior creates. > > The problem > > Because PMCA6850's enable is driven by pwrseq (which runs after the > PCI host bridge has scanned the bus), WCN6855 only appears on the bus > ~10 s after PCIe enumeration has already finished, with no resources > reserved for it. > > Topology — WCN6855 sits behind a Pericom PI7C9X2G304 switch alongside > a TI USB controller: > > pcie0 RC ── 00:00.0 ── 01:00.0 (switch UP) > ├── 02:01.0 (DN) ── 03:00.0 WCN6855 (BAR0 = 2 > MB, appears late) > └── 02:02.0 (DN) ── 04:00.0 TUSB7340 (BAR0 = > 64K, BAR2 = 8K, present at boot) > > dmesg (kernel 6.8.0-1071-qcom): > [ 5.545559] qcom-pcie 1c00000.pci: PCIe Gen.2 x1 link up > [ 5.882178] pci 0000:00:00.0: bridge window [mem > 0x40400000-0x404fffff]: assigned > [ 5.912197] pci 0000:02:01.0: PCI bridge to [bus 03] > [ 5.917368] pci 0000:04:00.0: BAR 0 [mem 0x40400000-0x4040ffff > 64bit]: assigned > [ 5.924919] pci 0000:04:00.0: BAR 2 [mem 0x40410000-0x40411fff > 64bit]: assigned > [ 16.476921] pci 0000:03:00.0: [17cb:1103] type 00 class 0x028000 > PCIe Endpoint > [ 16.477176] pci 0000:03:00.0: BAR 0 [mem 0x00000000-0x001fffff 64bit] > [ 16.516689] pcieport 0000:02:01.0: bridge window [mem size > 0x00200000]: can't assign; no space > [ 16.516704] pcieport 0000:02:01.0: bridge window [mem size > 0x00200000]: failed to assign > [ 16.516713] pci 0000:03:00.0: BAR 0 [mem size 0x00200000 64bit]: > can't assign; no space > [ 16.516720] pci 0000:03:00.0: BAR 0 [mem size 0x00200000 64bit]: > failed to assign > [ 18.093137] ath11k_pci 0000:03:00.0: Adding to iommu group 24 > [ 18.101694] ath11k_pci 0000:03:00.0: BAR 0 [??? 0x00000000 flags > 0x20000000]: can't assign; bogus alignment > [ 18.101724] ath11k_pci 0000:03:00.0: failed to assign pci resource: -22 > [ 18.108613] ath11k_pci 0000:03:00.0: failed to claim device: -22 > [ 18.115481] ath11k_pci: probe of 0000:03:00.0 failed with error -22 > > At the initial scan the PCI core sizes the root-port window to 1 MB > based only on the TI USB endpoint that is currently visible, and > gives the 02:01.0 downstream port no MMIO window at all. When > WCN6855 appears later it requires a 2 MB BAR0 and there is nowhere > to put it. This is a separate issue that needs fixing. I see Mani is already part of the thread, maybe he can take a peek Konrad