From patchwork Tue Mar 21 09:40:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 72786 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1680445wrt; Tue, 21 Mar 2023 02:44:53 -0700 (PDT) X-Google-Smtp-Source: AK7set9QGuNc1DcRIWeMcDH1nuIv4q9A6EEzyHhYZS1KPMmFeK9absnwYTRuT9Tp5nE6OgETRSHO X-Received: by 2002:aa7:8437:0:b0:622:c601:c0e6 with SMTP id q23-20020aa78437000000b00622c601c0e6mr1817695pfn.16.1679391892914; Tue, 21 Mar 2023 02:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679391892; cv=none; d=google.com; s=arc-20160816; b=yr4ElZu6XYBf0sbAtOjt0scUk9olI+RteaU19bDCVDf0XykReUY9IBZB569ZjwhYJ8 PV2jilWKGubz29oqvbk2yOZzaA4fPb3P+tHKC4QpTIBvvTTe6bnLXORahAFGnG42bL/1 gA2fYeQxjFYSP2oqHj7ebslb3rIrW6bym2j7xAtjmxcqynGCo3kvUOoU4zKV11mCBaKT t7waxGviR8W/nSEBzYxQ7dRHB1dqde1ZRZ0pa90/v9nLj+4JwRFSa18aDdLXTf6/IYeW IknofxfvRkvSeopDOYgLVT/M6XRbWBCImGZ22bwCAsEcxxjRh07Y8xzt8kAWHHshUoLR s7KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZqzHhiWtp8z6ZqO1bX7sH2wKKONtcCjuTiC23FqH6G0=; b=ae0aZUVkAd0r5pGIP1Wb6sarXq33ba3Hsl20OkKcV4X7cL9mnzLkiTvwoz/xaD8S3p SkmrWPnlDB32ODg3PUQekan8OvnTlsxzpAZrHDq0yqbS3EVdHKFJUxkvFqWpwDUabGjP +S1a5SwPPjjjAel1eHWyOygEnwz150sZ90kEsBMxvNXZWmqbuDuQ8CvHUwbU9yoVWKdW llPEnd5W/uKW6ayzeBOm1oQRkg8LyIugPJvtZDl6S87UMJGj2r/8Zx4KmxFfuP5a2+3h geLupdM+zV9dVUlk36u+C3dQyd5NZ+YW4mtcKJPJXNYQDC9SMdjtqJeUssKibVEsmw09 DGNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Oj6ds/hJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p8-20020a634f48000000b00502e6e5b580si12364814pgl.756.2023.03.21.02.44.32; Tue, 21 Mar 2023 02:44:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Oj6ds/hJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230249AbjCUJjW (ORCPT + 99 others); Tue, 21 Mar 2023 05:39:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbjCUJjO (ORCPT ); Tue, 21 Mar 2023 05:39:14 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51F8836463; Tue, 21 Mar 2023 02:39:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id AF84FCE17E3; Tue, 21 Mar 2023 09:39:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D98FEC433D2; Tue, 21 Mar 2023 09:39:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679391548; bh=OO5zaDA6gWw6Yo8WQeWvzqILKDsdnOqeoGNGYtZyLVs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Oj6ds/hJfqa48Lkwj+yTTqPF5GBJ2tyyUZzV1T+NVAmmgwUW81rWrVvQWsD4cuPSW fxRt6f0da841LGFKHab0jcMXRiOi7ro2LD84PFovx06dNiUbo8ZWVvAR/I/e3Xt8d5 B1Lm7zTzeBwmyjo8rsDfRbaCfwZGV300ZZHAPq/KepoPpVCV2Km6FojLUVQCGFbaIS LMYChRIDYH9i3X1GROLo96CxwPoCmOEBdNrgb7M3HLJU+/IBR9e6cKkUredc2Df1SY u4Gdmv/g/ZR1fw5nV9bGXqcAf+YdsUm448oW3ChVCu2uLmT8AIy8XvwdhoooMEAMCv GJFPiOQ3duLkQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1peYTo-0002Xy-AV; Tue, 21 Mar 2023 10:40:32 +0100 From: Johan Hovold To: Kalle Valo , Bjorn Andersson Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Andy Gross , Konrad Dybcio , Steev Klimaszewski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ath11k@lists.infradead.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v2 1/2] dt-bindings: wireless: add ath11k pcie bindings Date: Tue, 21 Mar 2023 10:40:10 +0100 Message-Id: <20230321094011.9759-2-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230321094011.9759-1-johan+linaro@kernel.org> References: <20230321094011.9759-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760970033452746530?= X-GMAIL-MSGID: =?utf-8?q?1760970033452746530?= Add devicetree bindings for Qualcomm ath11k PCIe devices such as WCN6855 for which the calibration data variant may need to be described. Signed-off-by: Johan Hovold Reviewed-by: Krzysztof Kozlowski --- .../net/wireless/qcom,ath11k-pci.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/wireless/qcom,ath11k-pci.yaml diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k-pci.yaml b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k-pci.yaml new file mode 100644 index 000000000000..817f02a8b481 --- /dev/null +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k-pci.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2023 Linaro Limited +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/wireless/qcom,ath11k-pci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies ath11k wireless devices (PCIe) + +maintainers: + - Kalle Valo + +description: | + Qualcomm Technologies IEEE 802.11ax PCIe devices + +properties: + compatible: + enum: + - pci17cb,1103 # WCN6855 + + reg: + maxItems: 1 + + qcom,ath11k-calibration-variant: + $ref: /schemas/types.yaml#/definitions/string + description: | + string to uniquely identify variant of the calibration data for designs + with colliding bus and device ids + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pcie { + #address-cells = <3>; + #size-cells = <2>; + + pcie@0 { + device_type = "pci"; + reg = <0x0 0x0 0x0 0x0 0x0>; + #address-cells = <3>; + #size-cells = <2>; + ranges; + + bus-range = <0x01 0xff>; + + wifi@0 { + compatible = "pci17cb,1103"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + qcom,ath11k-calibration-variant = "LE_X13S"; + }; + }; + }; From patchwork Tue Mar 21 09:40:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 72787 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1682686wrt; Tue, 21 Mar 2023 02:52:32 -0700 (PDT) X-Google-Smtp-Source: AK7set+nglFx/qnvK/mA0AbjXNRfA/kLY9xiIz8L+rPI84GUu/CRdS7LesoFgQEwlsMMyme8pAd8 X-Received: by 2002:a05:6a20:6ca6:b0:da:1830:328a with SMTP id em38-20020a056a206ca600b000da1830328amr1520003pzb.44.1679392352442; Tue, 21 Mar 2023 02:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679392352; cv=none; d=google.com; s=arc-20160816; b=YgYkjhXHcTzIgQKzhE2Kx5RPhRpWX7hgP+Ee6JFDx3cosDpLv8fyZSNgco+cVYZH7V RYhku3WtiNUsYmr1k8JRnaL2YHbw3Y0S2FDJ0D6OFnZZ1zhzRoD3v5M+aWmE5lIkF1ZI 0EeVEgSnJucVNK66pmwFSUJa5Mi9CoIRBtaA7fi7j51Gzpk9gmxU3Nk6U0co95rxFHcQ 5k/zhY376l+TTNQ9BIteIHGAwGzkrZrLSZ7XX/q74mezrrl2hwCan8wqmzElIzzg3Pgg LJvBabMWcCW6K5o7BKr60+RGKGRYDQsO7ygfNM7xGKGBX5/J6q+3na/v9Wbff0eI6mQn BKpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HQPlAw6niz6L3WS8/Qpegr9NFbd5H8UnijhHR7MbhXo=; b=R6mjzH921dMVRy2AkiMWoBeqylG5l+6F6fD8j9EnknybCKMdCMamAiq4GhWX/4tc4z XVlfQRojpUrEr8t03HZf7GXXyzE/sNEAxvMwHv+GCHjwpvwdgkfNCsKdhp7TjLkE9VIT Z9XjLO0nrzN7517+OSQOC61xGIe3Rl10k6K3lTTN0JFuOwKxwmnTcGvhSsiaBisqWsaU 7bssXEQh1jxsEGFzoyepNY49LSQ59m1M83lIwoQCgQVObm+NWPjkLyOyWGlYzzHxKZjM kRKLtl0fCkjCHndo8zMyFp/lRFWpX/uyqAayUlugUcariyk9FS9RKB+zsbN10hTUfMM9 m9yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R5Z9G5Rh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m10-20020a654c8a000000b00508e498d8f3si13061875pgt.372.2023.03.21.02.52.19; Tue, 21 Mar 2023 02:52:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R5Z9G5Rh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230184AbjCUJjS (ORCPT + 99 others); Tue, 21 Mar 2023 05:39:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbjCUJjN (ORCPT ); Tue, 21 Mar 2023 05:39:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0D433668D; Tue, 21 Mar 2023 02:39:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 59BADB8133B; Tue, 21 Mar 2023 09:39:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5B11C4339B; Tue, 21 Mar 2023 09:39:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679391548; bh=y4DQQgqTeIOp+QSV53CC0j5id0oCyBXkdp89zbwqiMA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R5Z9G5RhRob13EVQTljJZCAmCEYyyM9fYBf+rNjtCNqM+iL+MxJ1+MujMcRZjZTjr xhhPd4QD5t4ElLlkVFsDLYb7I341Y4aXnl3zQvTDyUxVTQn5l92Y9fk8AW2n4qMHDQ Ejjc8Y8rkqkOYZsNTJ3BN2Lt69j6rVDwMCO3gMNdcsdg5wzs54qUT/56B6ywxM3nLo TLHeUenQTUE6+PBT1FfrIBbc1OMamsmaFeq1zx24yEkc1KAKMs0xkOZyrmycKQIOZO xPSi/PbZuEset6GkJzTHqUw90m8nOr0CIcWhxYqZFU1Y7yDsPu3hFFto6M9ADEy2dg Ymd2iQIXqNicg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1peYTo-0002Y0-DN; Tue, 21 Mar 2023 10:40:32 +0100 From: Johan Hovold To: Kalle Valo , Bjorn Andersson Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Andy Gross , Konrad Dybcio , Steev Klimaszewski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ath11k@lists.infradead.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v2 2/2] arm64: dts: qcom: sc8280xp-x13s: add wifi calibration variant Date: Tue, 21 Mar 2023 10:40:11 +0100 Message-Id: <20230321094011.9759-3-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230321094011.9759-1-johan+linaro@kernel.org> References: <20230321094011.9759-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760970515389160390?= X-GMAIL-MSGID: =?utf-8?q?1760970515389160390?= Describe the bus topology for PCIe domain 6 and add the ath11k calibration variant so that the board file (calibration data) can be loaded. Link: https://bugzilla.kernel.org/show_bug.cgi?id=216246 Reviewed-by: Konrad Dybcio Tested-by: Steev Klimaszewski Signed-off-by: Johan Hovold --- .../dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 150f51f1db37..0051025e0aa8 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -711,6 +711,23 @@ &pcie4 { pinctrl-0 = <&pcie4_default>; status = "okay"; + + pcie@0 { + device_type = "pci"; + reg = <0x0 0x0 0x0 0x0 0x0>; + #address-cells = <3>; + #size-cells = <2>; + ranges; + + bus-range = <0x01 0xff>; + + wifi@0 { + compatible = "pci17cb,1103"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + qcom,ath11k-calibration-variant = "LE_X13S"; + }; + }; }; &pcie4_phy {