From patchwork Tue Jan 30 16:38:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 768239 Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 067CF85C6F for ; Tue, 30 Jan 2024 16:38:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706632724; cv=none; b=uMXsTRuoK2rW4Lv6S6CXCPwGf4cXBj8m9jX2FDcITvIboyl+oyk+ecniU2OXmY8PrU/YxaA7mVtmM60NWdSERWKGhiY4cEyeKh2BiGXH5dCDD4Tl9Pjrh7018sExDXB/1M13gsYds4Kdxu7eyZCBdCoObbNAidsBTOEzHTNn0xA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706632724; c=relaxed/simple; bh=TEQ8jOOdW9C4N7DptJHsfbYzZqm7WAXOuWhzqtkfQ4g=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=rV6zJWDKJh9ULJJJ3Kdh5JChWW0sitFaMozL9uucuee3yOT52vdlFMEHmboFWNIqVdE8zhLGANh36d5cIZUbkNnhn+9Wiq4605it4Sq3KQkzCMTl0C2V7e0T1q9A1kt0n7BOekVWCuMaLh7k1A+q/ENYQf0J7ODe0fLpcjsW9I4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=hU0aPY7j; arc=none smtp.client-ip=209.85.208.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hU0aPY7j" Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2d0600551e8so6926931fa.0 for ; Tue, 30 Jan 2024 08:38:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706632720; x=1707237520; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=VpyDXlK61hD1QI31oUeDnUsni8/0Ke03qUlHK7bR94Q=; b=hU0aPY7j4lbj6mYyKUIQkgUJ7zXygJBVbVkLh1lcF1ZiI/4xO1Tb5Kb/u8JybSgWXx h/8itLbULyZF6j+5taSlWW9N/4FTYuUmgK1TVUVZlvQhqmqDdLv8rNStmSvOq57Hcm9R fYgNWb8locDxxzVtgmcV+aQM4JJAr6FOFWSFzB1vnQ3Z9H0ltqr40JL5qX37j74Dpu73 TmoYfrIZX3+GPDX+8bogUWQYMI2c2R8O+BGxU9pKESxYPfDK66if5k/m5e0vMw0halzQ sBCz1IB7k5H2jEdUpsf53PfMFRSgkfhyBmlodBjtmLUN8jJRzEjYLC9BRj9CnC+jPc0/ c7mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706632720; x=1707237520; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VpyDXlK61hD1QI31oUeDnUsni8/0Ke03qUlHK7bR94Q=; b=bwFYcbMYAWsw420vSa28FmCtEcqrDcwOxMn4uhxLme5TRe52lnv9boz0JCfEMidX8X rthSWb0VOIr5iF6l1kb6hHM7kjAaWqQ9QBVzeG825O1f7SwTOp6Yo1nT802UdDjZQz4B yuCUhKBI+1EtkcyXtAUAM/nZrHJOVDOqEzg82M+Um1U43rN+e5QE6LMVJW83PqMAX2Iu lVEhxsWfOugIV+469vDdiWBeE5W62wc1U/nReGYCC5X4ec2tGORa0HKBA8Jn8Dp5oLZA Qr5ioP6FheafNT6/+b2yiiY7335c+Y3CFxx7Ck+R7tq5vAvzvVjzJ6snxtZt/AG2Ex0t kp4A== X-Gm-Message-State: AOJu0YxS6QR2CnKVd4atq/Ne7rei7gvTS733vC3G5boG1FAz/ss/KsDl IYfJr0NARi5gf2ccqdz/XDBNAhVt6J/VXubALR2wVHMQR55BKuat4+b6w5edjPM= X-Google-Smtp-Source: AGHT+IE8RruwgdA0nx7lUTOLRYZAuNoIzluFUmMwW0/obCVYUN0QV9PJr1qGD1P3WX3+odbtu5oM2w== X-Received: by 2002:a2e:a586:0:b0:2cc:6cbf:5cf7 with SMTP id m6-20020a2ea586000000b002cc6cbf5cf7mr7327900ljp.4.1706632720049; Tue, 30 Jan 2024 08:38:40 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVu+mK6Ryz5/VqZRcvSMYr+tdTDVltngYhKuEjayx8IE0yJlp96CDWvIysIgWkInligAuEZZmJA80SEY1XpDgIlrKmUVeGJWh5OTuOcn8qWiP+04deYtw+dytTTVr1NFhhTR2l9St0Gn1wkjisj61/tVbSlHJPmlhdqE3OaiVI7Wbh2m8P1VAeeA44eEoThQ9oMTR6sBYpuKePbaDrB0+IYFrQMP879UPNtLtmAYb0pHTMfIzZNYA3mG11o+uJ42uxGXgu2lLLd3t9kjtf8/hOs9S7wuGhUlt2jjOHbXHWK7Mhe5XrFl+W72TRShtOeWrl9ThE5sgMVbZJZR9s+DMhDqKbvGrJusN1v9qAffBp0uVYzIzpwtO9nIzMlWFF3bUElZrbo7M80X7hzp8JZxMbTzGPUYZ3RHlN4qQZvAp049aEnTHns32caVDfqsSdGzbRjtPBgI2Gx07Mm5qHPeZEiPjhuPXZE+WP74kuSTfRP/PHxm/swq1JdXKnZi1ji+vyhr/SYGAg= Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id y8-20020a2e9788000000b002d05e8bd84fsm219639lji.31.2024.01.30.08.38.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 08:38:39 -0800 (PST) From: Dmitry Baryshkov Subject: [PATCH RFC 0/4] wifi: ath10k: support board-specific firmware overrides Date: Tue, 30 Jan 2024 18:38:36 +0200 Message-Id: <20240130-wcn3990-firmware-path-v1-0-826b93202964@linaro.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAwmuWUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDQ2MD3fLkPGNLSwPdtMyi3PLEolTdgsSSDF3zRAPTRIPkNAtDA3MloN6 CotS0zAqwudFKQW7OSrG1tQAINVu9bAAAAA== To: Kalle Valo , Jeff Johnson , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1851; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=TEQ8jOOdW9C4N7DptJHsfbYzZqm7WAXOuWhzqtkfQ4g=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBluSYO7h0IJF2XRBtVVaNpejrj5YPDtGDzKL1ng gAQs3MfnwCJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZbkmDgAKCRCLPIo+Aiko 1RpTCACUEZvuDID4NMQkqH7mn816sf4Yr1B4k8eDltq6lnf/fTK35CVPNEjyL2Kyb+k0jk2AlFP 50e3rEmqQW6MZtNR4Rw7b99V58k+O0PrFa9dU4KgxPNT9v3/GXCFmkAY14ACjOP4HVdosMbu4hI +3+Hrk9wMHO9TXI2lcjKmbw7gNw6nerBRT3pKtadBOr9A9BIKaINBzhQXqv9tZOpbA8vNDOPQ9T xB2sOQ9JWGTURgOdRfGFI7AITGnqFjghSBPB4f285X69iqsmwgfYdiZs0Vbwy67uTxGYD4/xJfO z5oo1v21xX/SbpkPRtqSKUFdeTtJk/NVUmqQtB04V4lJlJcP X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A On WCN3990 platforms actual firmware, wlanmdsp.mbn, is sideloaded to the modem DSP via the TQFTPserv. These MBN files are signed by the device vendor, can only be used with the particular SoC or device. Unfortunately different firmware versions come with different features. For example firmware for SDM845 doesn't use single-chan-info-per-channel feature, while firmware for QRB2210 / QRB4210 requires that feature. Allow board DT files to override the subdir of the fw dir used to lookup the firmware-N.bin file decribing corresponding WiFi firmware. For example, adding firmware-name = "qrb4210" property will make the driver look for the firmware-N.bin first in ath10k/WCN3990/hw1.0/qrb4210 directory and then fallback to the default ath10k/WCN3990/hw1.0 dir. Signed-off-by: Dmitry Baryshkov --- Dmitry Baryshkov (4): dt-bindings: net: wireless: ath10k: describe firmware-name property wifi: ath10k: support board-specific firmware overrides arm64: dts: qcom: qrb2210-rb1: add firmware-name qualifier to WiFi node arm64: dts: qcom: qrb4210-rb1: add firmware-name qualifier to WiFi node .../devicetree/bindings/net/wireless/qcom,ath10k.yaml | 6 ++++++ arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 1 + arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 1 + drivers/net/wireless/ath/ath10k/core.c | 11 ++++++++++- drivers/net/wireless/ath/ath10k/core.h | 2 ++ drivers/net/wireless/ath/ath10k/snoc.c | 3 +++ 6 files changed, 23 insertions(+), 1 deletion(-) --- base-commit: 596764183be8ebb13352b281a442a1f1151c9b06 change-id: 20240130-wcn3990-firmware-path-7a05a0cf8107 Best regards,