From patchwork Thu Apr 6 00:59:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 80011 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp691436vqo; Wed, 5 Apr 2023 18:04:20 -0700 (PDT) X-Google-Smtp-Source: AKy350Z7e6FaKs9BVPLRz+Cn51RE3zFduEUC+oeCBJQegAopU9jJ2FdySyzAI+rjBwQMDIGPeGzJ X-Received: by 2002:aa7:d659:0:b0:502:52dd:57a2 with SMTP id v25-20020aa7d659000000b0050252dd57a2mr3698279edr.24.1680743060206; Wed, 05 Apr 2023 18:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680743060; cv=none; d=google.com; s=arc-20160816; b=Hq0t78qpS3jwunwEqy44E7y+y91IZktP01Ztq7By/K1zU2XMP6S33QiJW8XCuR9VGO +bVxRKETLkXaycfR1CXwZyLboMHfuW4yKw5KQWZsiyYmyUYJYcomc53Kl4qymN7SJsHZ 2ZX+lDxsbcfTFsgHAxBRe5QMHl7HWssNN+wucQ+B8SUnYdp38BivHt3c8JopJ8guFFIH bDf65xRqNXH0tUb5PX/A2Y2K8N9tj7+kTUsJ9UWHSgnHRFWe5LCZiSvCk0hz/QfryQ5j 2SYn/DRF8ikK074SeMwfz4IBLmg7LvH5JiliG/IT35u74H4UcDPv3IqexF/VAhfObDom j99g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=HNLFRUkUatGsw2bZQCH01KW7SFYZFSH/Ab3ddo1o/38=; b=xmCiMeVisU0C/bBc3LLfVO2vbPRR16hq8JKZVP2ajWofuoYFaIiro2BhhilV+9/EDH W6jRk6qgBHRS0ec2qEj2wk/ppQ02k1p7fKtvoh+rxE00UH/gSnjU99MtmU+KqHb+93Cv /l7+jZcAKGh1y+cNlItgW+QgfwBbQOVesViPEO0dey+zhmpGynD+vf4hQRMr3flkSQsH tzmHzH/Xco8Zbs2jqCtQZdIGFrlb/ZAkiKYVsbiDoSCTdzVM20FQsyQ8d737oTCGC5ns zmK+0mi/beEJI/zsb1HJNEgeCb7crRPCFkGXCk4JslVpD0AREq4yUsAyjZBkomE/anJw 3QMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rpp7xR0v; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020aa7d605000000b004bd0d14881dsi107714edr.90.2023.04.05.18.03.55; Wed, 05 Apr 2023 18:04:20 -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=@linaro.org header.s=google header.b=Rpp7xR0v; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233384AbjDFBAC (ORCPT + 99 others); Wed, 5 Apr 2023 21:00:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234222AbjDFA7p (ORCPT ); Wed, 5 Apr 2023 20:59:45 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E4C67282 for ; Wed, 5 Apr 2023 17:59:41 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id y20so48956010lfj.2 for ; Wed, 05 Apr 2023 17:59:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680742779; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=HNLFRUkUatGsw2bZQCH01KW7SFYZFSH/Ab3ddo1o/38=; b=Rpp7xR0v4yKSijPVLzKMMQEruNsfdlz803RnVU/i7xVToOyggdCn4l3RB/KVYn8tvJ URN4eqntH0aAf58Vy0T87c9bqrOuW9S4bwdRU8jqmXAUEqlpGnWqdsZLXKSmXSWQGJW3 zTU9SgCGH398qhhA8o5dajy+Kx6qVsm0Yi156ITjVS8SUZATaUqSwuRwyoyN04YN4n5J cUJnyGkVmiKpd0XDXEDde54sILniMkxRZOFtORq4b8+nXbih6ar1TyoTDbeXbtSJuCOM UcOSP2wu69MbsH1oe9FNzc32W8BDhoh7aghF1Z5XtmYceJWtFBkz4jAWD4hCuXD7DfJZ rJEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680742779; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HNLFRUkUatGsw2bZQCH01KW7SFYZFSH/Ab3ddo1o/38=; b=mn9cp0ZOkwAh+VPpAyYtiI9e7GiJCP3ZqXwmwr440DwwPuw6jSl5W+Gy9ezyY0WkMi kRTvU9VuWjbgpB2WFFRtD5kXaY7JbDOR9aobVNdHlTt7v62WhI6EE/A7x/tRTx7skJRV 9Cg535YAZPeXZqMvVgp4OzIsXCIHetmPv7Numcp+0N6m2AVHFljSB4nJYidHlrSEhGfK u0ktZOqMQEusbOhYS7cX//DJDYU4JJ7aBJ1Ygdd7YueZlHMd0Y0LTLZYVRlFsy/Vy/Tx HiHe9cDQoDyYhdxbwwZ47yMnkQkDgJ5J9Luv0UTQBhajqOVoi7WBzJ0d+GsWIJbugZz5 uaaA== X-Gm-Message-State: AAQBX9dmupmPEOdb6DhZC362k/vv/CkjMW8VugNMaW3sptUaKsCSI669 k9UBTp8bSdQZDSa3e/KBd+57qw== X-Received: by 2002:ac2:5a05:0:b0:4e8:4a9d:2ae1 with SMTP id q5-20020ac25a05000000b004e84a9d2ae1mr2022231lfn.32.1680742779182; Wed, 05 Apr 2023 17:59:39 -0700 (PDT) Received: from [192.168.1.101] (abxh37.neoplus.adsl.tpnet.pl. [83.9.1.37]) by smtp.gmail.com with ESMTPSA id v7-20020a197407000000b004b550c26949sm48280lfe.290.2023.04.05.17.59.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 17:59:38 -0700 (PDT) From: Konrad Dybcio Date: Thu, 06 Apr 2023 02:59:35 +0200 Subject: [PATCH 1/2] dt-bindings: net: Convert ATH10K to YAML MIME-Version: 1.0 Message-Id: <20230406-topic-ath10k_bindings-v1-1-1ef181c50236@linaro.org> References: <20230406-topic-ath10k_bindings-v1-0-1ef181c50236@linaro.org> In-Reply-To: <20230406-topic-ath10k_bindings-v1-0-1ef181c50236@linaro.org> To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson Cc: Marijn Suijten , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1680742775; l=19496; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=j+PBMT4F/0UGcPsep+JhR6HlL1IHSfEnN9IdHBy8gBg=; b=zdA8u/Ufn3FxrDrchDnrKk/EijYNWn5oSwcm0v819DiYeOx3SH/2N+mCIcQ5Dw+xl9sCJa9RC9Oz jO/EEuNMDTVNZDD6ZV9MLiPRJ6l5DwxOXwa3/4Af/qb5WeP+ve57 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1762386834859144009?= X-GMAIL-MSGID: =?utf-8?q?1762386834859144009?= Convert the ATH10K bindings to YAML. Dropped properties that are absent at the current state of mainline: - qcom,msi_addr - qcom,msi_base qcom,coexist-support and qcom,coexist-gpio-pin do very little and should be reconsidered on the driver side, especially the latter one. Somewhat based on the ath11k bindings. Signed-off-by: Konrad Dybcio --- .../bindings/net/wireless/qcom,ath10k.txt | 215 ------------- .../bindings/net/wireless/qcom,ath10k.yaml | 357 +++++++++++++++++++++ 2 files changed, 357 insertions(+), 215 deletions(-) diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt deleted file mode 100644 index b61c2d5a0ff7..000000000000 --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +++ /dev/null @@ -1,215 +0,0 @@ -* Qualcomm Atheros ath10k wireless devices - -Required properties: -- compatible: Should be one of the following: - * "qcom,ath10k" - * "qcom,ipq4019-wifi" - * "qcom,wcn3990-wifi" - -PCI based devices uses compatible string "qcom,ath10k" and takes calibration -data along with board specific data via "qcom,ath10k-calibration-data". -Rest of the properties are not applicable for PCI based devices. - -AHB based devices (i.e. ipq4019) uses compatible string "qcom,ipq4019-wifi" -and also uses most of the properties defined in this doc (except -"qcom,ath10k-calibration-data"). It uses "qcom,ath10k-pre-calibration-data" -to carry pre calibration data. - -In general, entry "qcom,ath10k-pre-calibration-data" and -"qcom,ath10k-calibration-data" conflict with each other and only one -can be provided per device. - -SNOC based devices (i.e. wcn3990) uses compatible string "qcom,wcn3990-wifi". - -- reg: Address and length of the register set for the device. -- reg-names: Must include the list of following reg names, - "membase" -- interrupts: reference to the list of 17 interrupt numbers for "qcom,ipq4019-wifi" - compatible target. - reference to the list of 12 interrupt numbers for "qcom,wcn3990-wifi" - compatible target. - Must contain interrupt-names property per entry for - "qcom,ath10k", "qcom,ipq4019-wifi" compatible targets. - -- interrupt-names: Must include the entries for MSI interrupt - names ("msi0" to "msi15") and legacy interrupt - name ("legacy") for "qcom,ath10k", "qcom,ipq4019-wifi" - compatible targets. - -Optional properties: -- resets: Must contain an entry for each entry in reset-names. - See ../reset/reseti.txt for details. -- reset-names: Must include the list of following reset names, - "wifi_cpu_init" - "wifi_radio_srif" - "wifi_radio_warm" - "wifi_radio_cold" - "wifi_core_warm" - "wifi_core_cold" -- clocks: List of clock specifiers, must contain an entry for each required - entry in clock-names. -- clock-names: Should contain the clock names "wifi_wcss_cmd", "wifi_wcss_ref", - "wifi_wcss_rtc" for "qcom,ipq4019-wifi" compatible target and - "cxo_ref_clk_pin" and optionally "qdss" for "qcom,wcn3990-wifi" - compatible target. -- qcom,msi_addr: MSI interrupt address. -- qcom,msi_base: Base value to add before writing MSI data into - MSI address register. -- qcom,ath10k-calibration-variant: string to search for in the board-2.bin - variant list with the same bus and device - specific ids -- qcom,ath10k-calibration-data : calibration data + board specific data - as an array, the length can vary between - hw versions. -- qcom,ath10k-pre-calibration-data : pre calibration data as an array, - the length can vary between hw versions. -- -supply: handle to the regulator device tree node - optional "supply-name" are "vdd-0.8-cx-mx", - "vdd-1.8-xo", "vdd-1.3-rfa", "vdd-3.3-ch0", - and "vdd-3.3-ch1". -- memory-region: - Usage: optional - Value type: - Definition: reference to the reserved-memory for the msa region - used by the wifi firmware running in Q6. -- iommus: - Usage: optional - Value type: - Definition: A list of phandle and IOMMU specifier pairs. -- ext-fem-name: - Usage: Optional - Value type: string - Definition: Name of external front end module used. Some valid FEM names - for example: "microsemi-lx5586", "sky85703-11" - and "sky85803" etc. -- qcom,snoc-host-cap-8bit-quirk: - Usage: Optional - Value type: - Definition: Quirk specifying that the firmware expects the 8bit version - of the host capability QMI request -- qcom,xo-cal-data: xo cal offset to be configured in xo trim register. - -- qcom,msa-fixed-perm: Boolean context flag to disable SCM call for statically - mapped msa region. - -- qcom,coexist-support : should contain eithr "0" or "1" to indicate coex - support by the hardware. -- qcom,coexist-gpio-pin : gpio pin number information to support coex - which will be used by wifi firmware. - -* Subnodes -The ath10k wifi node can contain one optional firmware subnode. -Firmware subnode is needed when the platform does not have TustZone. -The firmware subnode must have: - -- iommus: - Usage: required - Value type: - Definition: A list of phandle and IOMMU specifier pairs. - - -Example (to supply PCI based wifi block details): - -In this example, the node is defined as child node of the PCI controller. - -pci { - pcie@0 { - reg = <0 0 0 0 0>; - #interrupt-cells = <1>; - #size-cells = <2>; - #address-cells = <3>; - device_type = "pci"; - - wifi@0,0 { - reg = <0 0 0 0 0>; - qcom,ath10k-calibration-data = [ 01 02 03 ... ]; - ext-fem-name = "microsemi-lx5586"; - }; - }; -}; - -Example (to supply ipq4019 SoC wifi block details): - -wifi0: wifi@a000000 { - compatible = "qcom,ipq4019-wifi"; - reg = <0xa000000 0x200000>; - resets = <&gcc WIFI0_CPU_INIT_RESET>, - <&gcc WIFI0_RADIO_SRIF_RESET>, - <&gcc WIFI0_RADIO_WARM_RESET>, - <&gcc WIFI0_RADIO_COLD_RESET>, - <&gcc WIFI0_CORE_WARM_RESET>, - <&gcc WIFI0_CORE_COLD_RESET>; - reset-names = "wifi_cpu_init", - "wifi_radio_srif", - "wifi_radio_warm", - "wifi_radio_cold", - "wifi_core_warm", - "wifi_core_cold"; - clocks = <&gcc GCC_WCSS2G_CLK>, - <&gcc GCC_WCSS2G_REF_CLK>, - <&gcc GCC_WCSS2G_RTC_CLK>; - clock-names = "wifi_wcss_cmd", - "wifi_wcss_ref", - "wifi_wcss_rtc"; - interrupts = <0 0x20 0x1>, - <0 0x21 0x1>, - <0 0x22 0x1>, - <0 0x23 0x1>, - <0 0x24 0x1>, - <0 0x25 0x1>, - <0 0x26 0x1>, - <0 0x27 0x1>, - <0 0x28 0x1>, - <0 0x29 0x1>, - <0 0x2a 0x1>, - <0 0x2b 0x1>, - <0 0x2c 0x1>, - <0 0x2d 0x1>, - <0 0x2e 0x1>, - <0 0x2f 0x1>, - <0 0xa8 0x0>; - interrupt-names = "msi0", "msi1", "msi2", "msi3", - "msi4", "msi5", "msi6", "msi7", - "msi8", "msi9", "msi10", "msi11", - "msi12", "msi13", "msi14", "msi15", - "legacy"; - qcom,msi_addr = <0x0b006040>; - qcom,msi_base = <0x40>; - qcom,ath10k-pre-calibration-data = [ 01 02 03 ... ]; - qcom,coexist-support = <1>; - qcom,coexist-gpio-pin = <0x33>; -}; - -Example (to supply wcn3990 SoC wifi block details): - -wifi@18000000 { - compatible = "qcom,wcn3990-wifi"; - reg = <0x18800000 0x800000>; - reg-names = "membase"; - clocks = <&clock_gcc clk_rf_clk2_pin>; - clock-names = "cxo_ref_clk_pin"; - interrupts = - , - , - , - , - , - , - , - , - , - , - , - ; - vdd-0.8-cx-mx-supply = <&pm8998_l5>; - vdd-1.8-xo-supply = <&vreg_l7a_1p8>; - vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; - vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; - vdd-3.3-ch1-supply = <&vreg_l26a_3p3>; - memory-region = <&wifi_msa_mem>; - iommus = <&apps_smmu 0x0040 0x1>; - qcom,msa-fixed-perm; - wifi-firmware { - iommus = <&apps_iommu 0xc22 0x1>; - }; -}; diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.yaml b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.yaml new file mode 100644 index 000000000000..2ff004e404d9 --- /dev/null +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.yaml @@ -0,0 +1,357 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/wireless/qcom,ath10k.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies ATH10K wireless devices + +maintainers: + - Kalle Valo + +description: | + Qualcomm Technologies, Inc. IEEE 802.11ac devices. + +properties: + compatible: + enum: + - qcom,ath10k # SDIO-based devices + - qcom,ipq4019-wifi + - qcom,wcn3990-wifi # SNoC-based devices + + reg: + maxItems: 1 + + reg-names: + items: + - const: membase + + interrupts: + minItems: 12 + maxItems: 17 + + interrupt-names: + minItems: 12 + maxItems: 17 + + memory-region: + maxItems: 1 + description: + Reference to the MSA memory region used by the Wi-Fi firmware + running on the Q6 core. + + iommus: + minItems: 1 + maxItems: 2 + + clocks: + minItems: 1 + maxItems: 3 + + clock-names: + minItems: 1 + maxItems: 3 + + resets: + minItems: 6 + maxItems: 6 + + reset-names: + items: + - const: wifi_cpu_init + - const: wifi_radio_srif + - const: wifi_radio_warm + - const: wifi_radio_cold + - const: wifi_core_warm + - const: wifi_core_cold + + ext-fem-name: + $ref: /schemas/types.yaml#/definitions/string + description: Name of external front end module used. + items: + enum: + - microsemi-lx5586 + - sky85703-11 + - sky85803 + + wifi-firmware: + type: object + description: | + The ATH10K Wi-Fi node can contain one optional firmware subnode. + Firmware subnode is needed when the platform does not have Trustzone. + required: + - iommus + + qcom,ath10k-calibration-data: + $ref: /schemas/types.yaml#/definitions/uint8-array + description: + Calibration data + board-specific data as a byte array. The length + can vary between hardware versions. + + qcom,ath10k-calibration-variant: + $ref: /schemas/types.yaml#/definitions/string + description: + Unique variant identifier of the calibration data in board-2.bin + for designs with colliding bus and device specific ids + + qcom,ath10k-pre-calibration-data: + $ref: /schemas/types.yaml#/definitions/uint8-array + description: + Pre-calibration data as a byte array. The length can vary between + hardware versions. + + qcom,coexist-support: + $ref: /schemas/types.yaml#/definitions/uint8 + description: + 0 or 1 to indicate coex support by the hardware. + + qcom,coexist-gpio-pin: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + COEX GPIO number provided to the Wi-Fi firmware. + + qcom,msa-fixed-perm: + type: boolean + description: + Whether to skip executing an SCM call that reassigns the memory + region ownership. + + qcom,smem-states: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: State bits used by the AP to signal the WLAN Q6. + items: + - description: Signal bits used to enable/disable low power mode + on WCN in the case of WoW (Wake on Wireless). + + qcom,smem-state-names: + description: The names of the state bits used for SMP2P output. + items: + - const: wlan-smp2p-out + + qcom,snoc-host-cap-8bit-quirk: + type: boolean + description: + Quirk specifying that the firmware expects the 8bit version + of the host capability QMI request + + qcom,xo-cal-data: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + XO cal offset to be configured in XO trim register. + + vdd-0.8-cx-mx-supply: + description: Main logic power rail + + vdd-1.8-xo-supply: + description: Crystal oscillator supply + + vdd-1.3-rfa-supply: + description: RFA supply + + vdd-3.3-ch0-supply: + description: Primary Wi-Fi antenna supply + + vdd-3.3-ch1-supply: + description: Secondary Wi-Fi antenna supply + +required: + - compatible + - reg + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq4019-wifi + then: + properties: + interrupts: + minItems: 17 + maxItems: 17 + + interrupt-names: + minItems: 17 + items: + - const: msi0 + - const: msi1 + - const: msi2 + - const: msi3 + - const: msi4 + - const: msi5 + - const: msi6 + - const: msi7 + - const: msi8 + - const: msi9 + - const: msi10 + - const: msi11 + - const: msi12 + - const: msi13 + - const: msi14 + - const: msi15 + - const: legacy + + clocks: + items: + - description: Wi-Fi command clock + - description: Wi-Fi reference clock + - description: Wi-Fi RTC clock + + clock-names: + items: + - const: wifi_wcss_cmd + - const: wifi_wcss_ref + - const: wifi_wcss_rtc + + required: + - clocks + - clock-names + - interrupts + - interrupt-names + - resets + - reset-names + + - if: + properties: + compatible: + contains: + enum: + - qcom,wcn3990-wifi + + then: + properties: + clocks: + minItems: 1 + items: + - description: XO reference clock + - description: Qualcomm Debug Subsystem clock + + clock-names: + minItems: 1 + items: + - const: cxo_ref_clk_pin + - const: qdss + + interrupts: + items: + - description: CE0 + - description: CE1 + - description: CE2 + - description: CE3 + - description: CE4 + - description: CE5 + - description: CE6 + - description: CE7 + - description: CE8 + - description: CE9 + - description: CE10 + - description: CE11 + + required: + - interrupts + +examples: + # SNoC + - | + #include + #include + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + + wlan_msa_mem: memory@4cd000 { + no-map; + reg = <0x0 0x004cd000 0x0 0x1000>; + }; + }; + + wifi: wifi@18800000 { + compatible = "qcom,wcn3990-wifi"; + reg = <0x18800000 0x800000>; + reg-names = "membase"; + memory-region = <&wlan_msa_mem>; + clocks = <&rpmcc RPM_SMD_RF_CLK2_PIN>; + clock-names = "cxo_ref_clk_pin"; + interrupts = , + , + , + , + , + , + , + , + , + , + , + ; + iommus = <&anoc2_smmu 0x1900>, + <&anoc2_smmu 0x1901>; + qcom,snoc-host-cap-8bit-quirk; + status = "disabled"; + }; + + # AHB + - | + #include + + wifi0: wifi@a000000 { + compatible = "qcom,ipq4019-wifi"; + reg = <0xa000000 0x200000>; + resets = <&gcc WIFI0_CPU_INIT_RESET>, + <&gcc WIFI0_RADIO_SRIF_RESET>, + <&gcc WIFI0_RADIO_WARM_RESET>, + <&gcc WIFI0_RADIO_COLD_RESET>, + <&gcc WIFI0_CORE_WARM_RESET>, + <&gcc WIFI0_CORE_COLD_RESET>; + reset-names = "wifi_cpu_init", + "wifi_radio_srif", + "wifi_radio_warm", + "wifi_radio_cold", + "wifi_core_warm", + "wifi_core_cold"; + clocks = <&gcc GCC_WCSS2G_CLK>, + <&gcc GCC_WCSS2G_REF_CLK>, + <&gcc GCC_WCSS2G_RTC_CLK>; + clock-names = "wifi_wcss_cmd", + "wifi_wcss_ref", + "wifi_wcss_rtc"; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names = "msi0", + "msi1", + "msi2", + "msi3", + "msi4", + "msi5", + "msi6", + "msi7", + "msi8", + "msi9", + "msi10", + "msi11", + "msi12", + "msi13", + "msi14", + "msi15", + "legacy"; + status = "disabled"; + }; From patchwork Thu Apr 6 00:59:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 80009 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp690104vqo; Wed, 5 Apr 2023 18:01:47 -0700 (PDT) X-Google-Smtp-Source: AKy350ZxSpIVx9rdtWtZsNEzwCoNoNgPMfdBRYKxacaiv+OcWxCcnYgFr/5RDTaMSp5pHL/rZpFl X-Received: by 2002:a05:6a20:491c:b0:da:897b:ae40 with SMTP id ft28-20020a056a20491c00b000da897bae40mr1083279pzb.37.1680742906926; Wed, 05 Apr 2023 18:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680742906; cv=none; d=google.com; s=arc-20160816; b=di1qjMr1g5a6rVMb3XrPJR6gWCxcDC7DtSj1B+gZoC9GUbYCgFANzZEceaQGTwLHHa 2nPJKGM6zWYKAPpmDZkvnAoRBGe7VTeRM/7OP3uS2Ttt81dTMZRUIIcoTcSWzdH3cMyG oIVRJLlQ2b9JcTBTyFUO3n7KtDf3Fi2+gFWzx1TQAgZThyiEAodsVLZN1nC3rEoPUir1 l00OR3V6w2SAbd8mx+8Ma8tyFFpIFvexcKmEXdAO9ygJeNKXeiasgwDWW90+E5IyhE8v Y8Q5ApvtBe+2BRDvTRDY0JTrAoRNshYLPGk6YzdO+3TPwSCnQz+j8nFVLS2SLMYCA9KH KRWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=pyt8W3zTm8mLAuocsZEse9H9Wjv92dhj3v8YnLOroKY=; b=ooXXuRpb/jIQDWFI0u4/++aBsdEn1SFXasA+bh9nkS55sLjravwsupunadnoesvgSv 5xNIqyi5xSjkT+ZdRvC8uchrLRQ/N2X3ap5pzE0sRVzCi3cYaLfG5jYSJjpChn31n1GJ m02/cuaJhuIp75JOnFJuSj0LVZxyy1dCh4RcJFcxZhE86riXF673QHzu7Vr9NibRoXyM UTxUQJpei1gm/xH6CBQ9te48bcZYmHNQBcMzRG5GxJOjlchr3l2qTULQ4AH+QTlKXMm/ 3Hn8fA8pyzyu1Nvx+71VsriHEyhThcDLx5kIIfX4R8JptOY6/omzpiFcDiwvs9GBIHrO f28A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="t7X/Za4I"; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k64-20020a632443000000b005006397721fsi13858963pgk.859.2023.04.05.18.01.33; Wed, 05 Apr 2023 18:01:46 -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=@linaro.org header.s=google header.b="t7X/Za4I"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234526AbjDFA75 (ORCPT + 99 others); Wed, 5 Apr 2023 20:59:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233647AbjDFA7o (ORCPT ); Wed, 5 Apr 2023 20:59:44 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 706426EAF for ; Wed, 5 Apr 2023 17:59:42 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id x17so48974091lfu.5 for ; Wed, 05 Apr 2023 17:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680742781; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=pyt8W3zTm8mLAuocsZEse9H9Wjv92dhj3v8YnLOroKY=; b=t7X/Za4IJMuxfnHTFyLConWxB5AywCFd2qxosbiWBC5GRmaCKIYfRr7egqzVJTTg8N wMFbDyZu/hHkJLnmQnMGLglPe8hWrFPJ5vNSDzLLusqD9gi1PXfJ9Stejstg+H/Ud4Gv E1+ta9m4intURNO7QCH/HWiE9Vtx7thGr5LNhP+q+cRhPxHFg73zFy6kwBqs3Tz/1Qdq 0yNg+PzJ0yLLN+oM2awMlSVtsg5g1MFC98pMOFe57DGa06FNoWlQEuZQf01dDrHMhSIu P28E9raIwGheBgSq2YT7ivFoB0eY3tv+TvrqW5ibihUfbl0/GvON9YZoHIEFQIhywO9r tdLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680742781; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pyt8W3zTm8mLAuocsZEse9H9Wjv92dhj3v8YnLOroKY=; b=rdk0a4Vzg13pyiVxRc7smRsbrhy5JTRJmP8KDYnk9PI5CpWgioYfuNzkkBiVP5IZ44 gZayCY5qwChtGgeXoyiDe9YiOmkLeqT81tOqvQKllWYFI87Wy8ab4wjTj8h9jttmLFkP I67mziD4GHtbKYVSJ/B+TSrH8tkJT5qZes75k7+LKwzw1lut/bx9CxrR50XsbJ2SO4d6 E++PVJ2cUo3Lqv1W2kk8vYxrdAQCoJdlZ2KSlLlTx/+Pedg8mfDveMG9z8l56H5BqcID BhTryzLmBoK6DzRCIdY9q3Qt6hWYDSGRZcJkCTpL2YPV89LwbbpJdlea5fkW4EPVZRgK Qzlg== X-Gm-Message-State: AAQBX9faCF72o0vPhMRyyJs7vVO3HgeYmzt7WO1LyFDWlkP9ud/dHRDT wbq+DxYBdsWpupphsXTAGKGeQPf47csEoJA9u1o= X-Received: by 2002:a05:6512:3885:b0:4cb:13d7:77e2 with SMTP id n5-20020a056512388500b004cb13d777e2mr2177317lft.26.1680742780676; Wed, 05 Apr 2023 17:59:40 -0700 (PDT) Received: from [192.168.1.101] (abxh37.neoplus.adsl.tpnet.pl. [83.9.1.37]) by smtp.gmail.com with ESMTPSA id v7-20020a197407000000b004b550c26949sm48280lfe.290.2023.04.05.17.59.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 17:59:40 -0700 (PDT) From: Konrad Dybcio Date: Thu, 06 Apr 2023 02:59:36 +0200 Subject: [PATCH 2/2] arm64: dts: qcom: sdm845-polaris: Drop inexistent properties MIME-Version: 1.0 Message-Id: <20230406-topic-ath10k_bindings-v1-2-1ef181c50236@linaro.org> References: <20230406-topic-ath10k_bindings-v1-0-1ef181c50236@linaro.org> In-Reply-To: <20230406-topic-ath10k_bindings-v1-0-1ef181c50236@linaro.org> To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson Cc: Marijn Suijten , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1680742775; l=759; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=yzgqDSTZJ+UbMalehZ3yMdPUd3D/DDvUo/JFlgMs+5U=; b=sHPf/FrohXz7C9fLj2wWw9ZruWAGCYizyuzeuM9hidn5HR7plSHgPqw68u4/AQQt0bfoI/3/oBQF A0aZwIuGCJi7efvDfp7+sLcTU0v+aRrdzceZDkVr1R+uE84UOfRd X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1762386674439665763?= X-GMAIL-MSGID: =?utf-8?q?1762386674439665763?= Drop the qcom,snoc-host-cap-skip-quirk that was never introduced to solve schema warnings. Signed-off-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts index 1b7fdbae6a2b..56f2d855df78 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts @@ -712,7 +712,5 @@ &wifi { vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; vdd-3.3-ch1-supply = <&vreg_l23a_3p3>; - - qcom,snoc-host-cap-skip-quirk; status = "okay"; };