From patchwork Sun Oct 15 20:03:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 733908 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6CF57CDB47E for ; Sun, 15 Oct 2023 20:04:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231178AbjJOUEJ (ORCPT ); Sun, 15 Oct 2023 16:04:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230417AbjJOUEH (ORCPT ); Sun, 15 Oct 2023 16:04:07 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B89ED9; Sun, 15 Oct 2023 13:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1697400213; bh=UBcuPPvCkMF5VJX2cM/TeeQFIz6MAcbcTnhTFVt0/f0=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=wCMCKUVtrDwe6X5Bg0nId5QFXMCRKYAZBulQ++9fqc4RZbqaXcXAEJ3pHToYx8aED LCfIvxiV8jkgwvHzkyJAeGWDnDXrVnjh6vP3nrmocf6uFs6O+l8MUms6eq3qQDJBlS wfmuo14ZjcLcv1Iy5UfrQEeHCmg0RKMgnmXepZyg= From: Luca Weiss Date: Sun, 15 Oct 2023 22:03:06 +0200 Subject: [PATCH 1/4] dt-bindings: remoteproc: qcom: wcnss: Add WCN3680B compatible MIME-Version: 1.0 Message-Id: <20231015-fp3-wcnss-v1-1-1b311335e931@z3ntu.xyz> References: <20231015-fp3-wcnss-v1-0-1b311335e931@z3ntu.xyz> In-Reply-To: <20231015-fp3-wcnss-v1-0-1b311335e931@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Loic Poulain , Kalle Valo , Bryan O'Donoghue , Stephan Gerhold Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=746; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=UBcuPPvCkMF5VJX2cM/TeeQFIz6MAcbcTnhTFVt0/f0=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlLEWQWYz3VnCBzuywdfmhz0FJE7b161pJE9+zl YZAeemp6A+JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZSxFkAAKCRBy2EO4nU3X VgUoD/957O200UjOLzDFN3HHOTl5/M5HtqlfCK+sAZl73OpKRDMj0Jcp8oMLl0OnrElRbTtpkJW croer+9sw6euIA03ntodsFpkA/HSSMSWV8fsYdsa5hs9Vl1M5KT1E8eskSJriUOML2thUt1uvBY PbB8K5X5pxSssglgqmFNhrYPaJzQz+rWYCiY1k5PQwHYj1SHfSGaPrT+nGYEK7TtyzZtA7vGOwE Os+46TJqIcBEDRjmgNDPR505ZSMESvjZB6tNhgN6bK9bJpb94Ef2uU+8fTXvWaB2ha+NSGQjEZ/ 3O0jTCXwVfd5RitkoJPIPr8JsHmaZnmb4PzhuUa49t72dAuAVmaFKiG81Uvo75et+Q9Vi7UEWrD rpTdYS9lwzQIE7rFG6Hd4xJwe488aEEw1PusLwpksOBnxg31L3PRSw3ARAoObqG8751HWPdwCFB NAqpeCXIxCFEcYnzNDSA5NaMhSCMkEaUjPN7SaItoLNIy9FuCkqDsDGAPAe9+VJF1G53hpHk7ib 44eplItLHmqFYdpY7mkAUQjD1XW2Q3JPf0UtrwxiuKNj6slkNvhTBRLp7KZR2BGcFgiEi/eEdyV ki9H78THtYsJd2h9ziLiE+n0GyDHhK0GGhQjhLftDK+Ri1ruKO7l3K2K7jPLc+9VVANiw+uBku0 dv2y6ikI1jaqFTQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a compatible for the iris subnode in the WCNSS PIL. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml index 45eb42bd3c2c..0e5e0b7a0610 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml @@ -111,6 +111,7 @@ properties: - qcom,wcn3660 - qcom,wcn3660b - qcom,wcn3680 + - qcom,wcn3680b clocks: minItems: 1 From patchwork Sun Oct 15 20:03:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 733907 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91313C41513 for ; Sun, 15 Oct 2023 20:09:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230350AbjJOUDt (ORCPT ); Sun, 15 Oct 2023 16:03:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbjJOUDk (ORCPT ); Sun, 15 Oct 2023 16:03:40 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53540C5; Sun, 15 Oct 2023 13:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1697400213; bh=2ykxA5zzNJWAE+OoTTOfsNOtoZ0RYvFAtzV34C7L8Ho=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=XPnutBRuLZF+K0HCGwq4OvnYkOVs0vOPCn0mKcuV4sFSBJ9Iz5LC8WoNuGdk1j5lO v2f7nk9aVO/u9rA+hgC4/+BSozFEish58yScozF/Qv09ZjOFc6KDGE3oj1Saai5PZs Jgor3sBqz6RamxbhpeeAbXID5VBSgytZ0VKkS/lo= From: Luca Weiss Date: Sun, 15 Oct 2023 22:03:07 +0200 Subject: [PATCH 2/4] remoteproc: qcom_wcnss: Add WCN3680B compatible MIME-Version: 1.0 Message-Id: <20231015-fp3-wcnss-v1-2-1b311335e931@z3ntu.xyz> References: <20231015-fp3-wcnss-v1-0-1b311335e931@z3ntu.xyz> In-Reply-To: <20231015-fp3-wcnss-v1-0-1b311335e931@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Loic Poulain , Kalle Valo , Bryan O'Donoghue , Stephan Gerhold Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=856; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=2ykxA5zzNJWAE+OoTTOfsNOtoZ0RYvFAtzV34C7L8Ho=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlLEWR1EdQQWFa0spDxB5Nq2eXKQrvzYfHimGBh 88EaOpKOLSJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZSxFkQAKCRBy2EO4nU3X Vj9ZD/9+ky5IFpL9cSPvYSEDGkwX+QREqSdT7eBH+Px1+POoBQe5sLUM2/GwEZFd1vp88/2aH3S e3nfs+I8w39H/VZSUvZ9twVBWbzswlS6bKnlm6DaHzwc5aTbox0oTs7yIy3MFFsMz+rNbHaMg3P VomVU3n6qrZsDYsB3nyibYw61epBl3XFqGD39mC0BioHpc/oyXdkhWkNRwvdv0CcKZNiVGeg5YH vFRr/Q/HrdnH1TX8dn4URV7MFAFbtA4poBEDaHLW2RokhnOMW5xbxwVFWZ2/03IUcZ7JCdX9bi6 zthj3sV3v2i+r3qcbIzO31JRVxLrJoM/d+z4q5v+t4IEX+5elmkNKuWDd548Sezgi1gxdERD6oR OdcInOZrX0lFfhzH9sivg79PufDk0GIBn8CVjSjh1fJJcPd6hFMr8wII0kmtGd3oeryTLCmu6pV d1MJKtcTLJ+TzVvkOgSuReXqWpz1ofDkyJrbJzaky8WumnlAaz6S+eb3TKE1abh/gQmm4+QZOgS LJdnh8AOVr1GCbfj+ciX6UeX35f5FE7A5/MozYbU8BvDYqaDN+h00vEF+uyqVzgBJQEGXcgVlLO WuUdWqlx5ZhlCz/Cx8WkGHP/H1vStUntNoeqqxUK1rWZ5NFTU86x2J6uSITf5Wr+28tFDS8mWBv 1cyLkonatMF0K/Q== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a compatible for the WCN3680B chip used with some Qualcomm SoCs. It shares the same regulator setup as WCN3680, so we can reuse the driver data for that. Signed-off-by: Luca Weiss --- drivers/remoteproc/qcom_wcnss_iris.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/qcom_wcnss_iris.c b/drivers/remoteproc/qcom_wcnss_iris.c index dd36fd077911..22acc609105f 100644 --- a/drivers/remoteproc/qcom_wcnss_iris.c +++ b/drivers/remoteproc/qcom_wcnss_iris.c @@ -99,6 +99,7 @@ static const struct of_device_id iris_of_match[] = { { .compatible = "qcom,wcn3660", .data = &wcn3660_data }, { .compatible = "qcom,wcn3660b", .data = &wcn3680_data }, { .compatible = "qcom,wcn3680", .data = &wcn3680_data }, + { .compatible = "qcom,wcn3680b", .data = &wcn3680_data }, {} }; From patchwork Sun Oct 15 20:03:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 733909 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 751C5CDB484 for ; Sun, 15 Oct 2023 20:04:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230156AbjJOUDs (ORCPT ); Sun, 15 Oct 2023 16:03:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjJOUDk (ORCPT ); Sun, 15 Oct 2023 16:03:40 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51ADCB7; Sun, 15 Oct 2023 13:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1697400213; bh=qZlNzEpRoS5paF/EbsvUPqS1Yv+qD45c+PbzCsHBeTY=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=HVBfOQozHsT0wnd4rGAVdyIdNep7uY/Mz/KEH2BlKWYMJFH02V/wTSvrrUPrFTsyu rFdQ56rpQemoYvQxk9+eAzE1op8drtc/mTa5KP2dc/HbZdTOty6FgnSH0QV8xa2i8/ wt+gFWrFZXChbw6pjonXBl3ghMaQdCPcXVv8i2xg= From: Luca Weiss Date: Sun, 15 Oct 2023 22:03:08 +0200 Subject: [PATCH 3/4] wifi: wcn36xx: Add check for WCN3680B MIME-Version: 1.0 Message-Id: <20231015-fp3-wcnss-v1-3-1b311335e931@z3ntu.xyz> References: <20231015-fp3-wcnss-v1-0-1b311335e931@z3ntu.xyz> In-Reply-To: <20231015-fp3-wcnss-v1-0-1b311335e931@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Loic Poulain , Kalle Valo , Bryan O'Donoghue , Stephan Gerhold Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=966; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=qZlNzEpRoS5paF/EbsvUPqS1Yv+qD45c+PbzCsHBeTY=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlLEWSIODDShP6A2fJ2Vf5LSlcaLukdHI504hZW gRd8oh2nMCJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZSxFkgAKCRBy2EO4nU3X VtSMD/44Ttl62qB0epFTn19gfFMWUYwSXnzdqFhapN+LsRfa10HzoTnuEEsQCl2LvpAzjRj1kgC EaiQO372J3sCgPAIt4wTV/XM2HWxeGsKSPxNdFfRSsZxT24c5nRQuWQ7SJn3AF8PYB2eCBX9LPQ JNmyJJ/U70XqT+TLvjrLVYO6rayCYRXhAEXESJPu4McFO6I2SKo6i6KWRhZn4aXOM6Flz/1+/Mk rho9kpWhkBLcQXwDbjkPOwsWQEZT3a962deOwLkpbKQsw5I0IVce3xlx59aG/0FErAipgK51xke m2QjHJnLjtC3UwEyjaMSaGeMkNVpn9x1+DW1IIbwX8RmmYDPXOj3btcE7um0fADKc5Fp+87FZmp Iwycw+zbnt4dUX3RaOXG0KxY+DjU7TQHKlfSsIzcNulfhfmO7NFbXj9FT3Yd7iIyAUMJdQbK0DK V5FZhDKDlx5qDCOX4CqrMkbpdH+cHgy+2l1Jya9JFr7lzBSCjjCLIv/E/FcJ2/NwGaCzco++sES dACParyXrslCuJ0oc9MyPDBe2Gi3ETe/HFliGM8iZnflgmXpSeA9kqQ8nuaiZBvau177K7P93GS duCitbhvfH1jKTyvvRNlAmBO3Xyzv6nzw9Mag4Yq1OACkr0iDWYRSWHJCg6Z3d3zl6hynYjEH0v 6keZ4ZS6nCPNbkw== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a check for the WCN3680B compatible next to the WCN3680 compatible. Signed-off-by: Luca Weiss --- drivers/net/wireless/ath/wcn36xx/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 2bd1163177f0..74b0b7074760 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -1535,7 +1535,8 @@ static int wcn36xx_platform_get_resources(struct wcn36xx *wcn, if (of_device_is_compatible(iris_node, "qcom,wcn3660") || of_device_is_compatible(iris_node, "qcom,wcn3660b")) wcn->rf_id = RF_IRIS_WCN3660; - if (of_device_is_compatible(iris_node, "qcom,wcn3680")) + if (of_device_is_compatible(iris_node, "qcom,wcn3680") || + of_device_is_compatible(iris_node, "qcom,wcn3680b")) wcn->rf_id = RF_IRIS_WCN3680; of_node_put(iris_node); }