From patchwork Sat Apr 2 09:39:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12799046 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 15405C433F5 for ; Sat, 2 Apr 2022 09:39:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239783AbiDBJlX (ORCPT ); Sat, 2 Apr 2022 05:41:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239794AbiDBJlV (ORCPT ); Sat, 2 Apr 2022 05:41:21 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A1461427FC for ; Sat, 2 Apr 2022 02:39:30 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id f6-20020a1c3806000000b0038e4a0fc5easo2764431wma.3 for ; Sat, 02 Apr 2022 02:39:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aXj7BO+bBl0pqBjxQeNENw+58YReTBBaL4hobpryihU=; b=vet3rbn/NG8QVw+yDszbyDWKY5L90KbtP9S0HjYYSY8QDBQ2EgIozScdmHkMB8JmfI 9JIiUpaE+NwLgmYolUdfJisSKANyb/qwg2Sq3P9NnTZxMnNLq9IO/K2zVgSkwIYsh+eW rBuHQZdLU8mVvgc2sJDjN4n7+hp6Pe1m6JwGFUFSLnXRxcbTlUCOeUB8AVNB3FcgL728 MF6AycKkgJGiZYRYHceFjwk8HRzstF5lWwNbqsJM8fE4PteMNbNIrZ2ozchaXmxgQIW6 bWvaMBfB2sceHNAHaHux9nMl9bZFEMm04dCBb31tJph9jPZU4TVRmy4wxykfzLzpNkfh tyJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aXj7BO+bBl0pqBjxQeNENw+58YReTBBaL4hobpryihU=; b=sYfjuFgiBDJnNNcJwiEGET2yoC8dNLhvpwgacOKby3aVmiCLp8nhH6X146XsdvEkka sOFMd2SG9DBCT8eIKanJedRTsdaIngN/Xrt7d2LMZteIqk+pjK+OlBpUlUtxw95XkM4y kfd+EsixHo8B1KzQkXK5A6hlY9DHlRFSTlg+R4pGVVtsMZhEqCyDRZciBEp+yUszTDl0 TMkgNP6TnKnMWjPGW15NJ/n2CLSu55jdVLTPM5jrQelYbqnloFHi4g0YYwnExd8F10GY wKAZp1zQFAxx/i6RHYVaMCmkzmh1InbeLDL+VzolCUA54807QK5B+h741PZPewSN/1Wg 4UOQ== X-Gm-Message-State: AOAM532Rj5YfnUoIaiDtmGR5uWMa3Ieh1xsoqCAbdnWJ+e2ZBbrky3JX FkTh4bWK/ADJmM2UGdfDvQIJfw== X-Google-Smtp-Source: ABdhPJx9Mu6P0y0Lvm9ZJupxsF1r0ICkLoSYcvm03bfXv+UG9HlYaDhP47N9pxGhwPLH5v6BWwXLRQ== X-Received: by 2002:a05:600c:3d8d:b0:38c:6f6e:e61a with SMTP id bi13-20020a05600c3d8d00b0038c6f6ee61amr11875820wmb.101.1648892368692; Sat, 02 Apr 2022 02:39:28 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id y6-20020a05600015c600b00203fa70b4ebsm5265713wry.53.2022.04.02.02.39.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Apr 2022 02:39:28 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/3] ARM: dts: qcom: rename WCNSS child name to bluetooth Date: Sat, 2 Apr 2022 11:39:17 +0200 Message-Id: <20220402093919.50084-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The "bluetooth" is more popular and more descriptive than "bt", for a Bluetooth device. The WCNSS DT schema will expect such naming. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/qcom-apq8064.dtsi | 2 +- arch/arm/boot/dts/qcom-msm8974.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index 33a4d3441959..6eaa996272e5 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -1548,7 +1548,7 @@ wcnss { qcom,mmio = <&riva>; - bt { + bluetooth { compatible = "qcom,wcnss-bt"; }; diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 2035be2fb8c4..0799dd4bfa2d 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -930,7 +930,7 @@ wcnss { qcom,mmio = <&pronto>; - bt { + bluetooth { compatible = "qcom,wcnss-bt"; }; From patchwork Sat Apr 2 09:39:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12799047 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 D882DC4332F for ; Sat, 2 Apr 2022 09:39:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239794AbiDBJlY (ORCPT ); Sat, 2 Apr 2022 05:41:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239841AbiDBJlW (ORCPT ); Sat, 2 Apr 2022 05:41:22 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01DCD143441 for ; Sat, 2 Apr 2022 02:39:31 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id q19so434493wrc.6 for ; Sat, 02 Apr 2022 02:39:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XhV4HSZrMAi+yhoQY81OkkuHq2F23KHAg72528AqqLM=; b=cuuDYgOnVXMfDSWJ9FK4GOX4dJrbCpXFo1MSeNMzg7cKUUz/66coAEuV3xcNo/BBA4 G0WIkEKTi6OPRPfUwMBLH1EHYkYQ1scfiFMCMmGgIQ6FQt3Tw3YFmmsLJFN2cfkaTOur XURRtl3hCm0bjtXMZ+159WaJzIgJD0rt/WaMS9KQPlXKqwJmfBYrwJyu90eMF3yiM1/b wy2E1/QmLMUaXJWQ+pmGvMAWmi3bJfssXymZF5QuQFoVQZZGyBieCoY4RtmfnF8u0oX+ HTJrra3pJEFWXQN9quhWPfuC18xBBtqKUzAZsa9/yaMQ3c/oj7HvSRWjpdFMd31v79sI dx8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XhV4HSZrMAi+yhoQY81OkkuHq2F23KHAg72528AqqLM=; b=g+RA0FCJYqz9MERslXWT6vXcweHxasN6oVSEczMJGhP5yQiO44lPMPpog5vihxmncx IghPR02HE4Xwu+NO7kr8VMSXb5MYIJubg7GKmukModdv9SDzjXxUFxQX3dAfNslW/yUr 0Yj09uWw3djoDe/knwPPsm2IdeC3V2Z0bWTUeib/iiqKKR4rGJAPnDN/W9HnwvFqfTEV noOTwTH8AQqi0QC1H11Fs1JSlfUYRmI7KGtFDVoDdM8zQy6XTXHGpiBqYOzKmjJ/x7dV ZV7dn9O3bScBctcmLIdbUntg5DkmOln7MactRs9zpNJnqGS73QEGafQuPKywIFiUdPza 8Lqg== X-Gm-Message-State: AOAM533sKvo5zKN70Fd3c4Him5akVWfNGW0je1d4hbCSPjYpEqHkLqv1 aCkjPyGIUUN9xe9eSGyn79ihlNf+UV11nuFI X-Google-Smtp-Source: ABdhPJw9Hg6ggkP86eCOBRotSKXYb7G5OP1NFWjKanrvcLI+qo8OtYOPe5VorEypNLw69YMnp6DSwg== X-Received: by 2002:a05:6000:18ae:b0:204:62a:20f4 with SMTP id b14-20020a05600018ae00b00204062a20f4mr11136100wri.640.1648892369609; Sat, 02 Apr 2022 02:39:29 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id y6-20020a05600015c600b00203fa70b4ebsm5265713wry.53.2022.04.02.02.39.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Apr 2022 02:39:29 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] arm64: dts: qcom: msm8916: rename WCNSS child name to bluetooth Date: Sat, 2 Apr 2022 11:39:18 +0200 Message-Id: <20220402093919.50084-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220402093919.50084-1-krzysztof.kozlowski@linaro.org> References: <20220402093919.50084-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The "bluetooth" is more popular and more descriptive than "bt", for a Bluetooth device. The WCNSS DT schema will expect such naming. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index cf0482fdf69d..9a496b7b78fb 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -1788,7 +1788,7 @@ wcnss_ctrl: wcnss { qcom,mmio = <&pronto>; - bt { + bluetooth { compatible = "qcom,wcnss-bt"; }; From patchwork Sat Apr 2 09:39:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12799048 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 4FBFBC43217 for ; Sat, 2 Apr 2022 09:39:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239841AbiDBJl0 (ORCPT ); Sat, 2 Apr 2022 05:41:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239860AbiDBJlY (ORCPT ); Sat, 2 Apr 2022 05:41:24 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E53114344A for ; Sat, 2 Apr 2022 02:39:32 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id r7so3053059wmq.2 for ; Sat, 02 Apr 2022 02:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KREN+AabFyAtaAW7Vfs0QIZLiq7RaWCj552NjbUfAnc=; b=T+5eT04oZR8EPIk6JOx/jGHj/mDX5yyHaTLBfakEcGWxgF7ewG0+ehkhTF6I6FAzic kL/nMbByfd/xuXFFOQCaTUTf0y/xAxo5vw/maunV/Wk+9WEF+AgINs/FEIMEZEfkhual qDRGGqoGxJFUXGWJrh2RwZ7NmvnRAM+jPS8/5zR3PFufI5eUFDPwshswwdP7q3/+jT/4 Q2vOL2O6lg7MpvOFy2OM9r4zmKzrSSA9oOdLDbbmSDSiy2+v4q9epVTd6DFaxYN6F7GW UUM8fSGWuAMxN1fCComany4aimAIYlwQG6JHQjoPS7qdvtP9Jnms8u4t2ua3z460Olhe gY2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KREN+AabFyAtaAW7Vfs0QIZLiq7RaWCj552NjbUfAnc=; b=WDBUnJRUuflh5iLSX3ziDEirU9WI4GcMnHmsWMT/WDVKIm8EEw0T8prpX5rqdPfUo5 miVO2FpExIcG8Nep+T8sXxEu6hN8qPDrMftXPD1YdP/NvmqdA+C2AVIl4Fy5+gCv+kuG 8pT20woapA3r8jAVuX0pOXYRzwAYDzZvQaSCLz3RWIJNrKaiYfrpzqukw8E+sY6dZSXt j2DhzGzdDQFMxzvsLg/orwiPaN0XI0QIqxtVugoCVCxPWAViIt96aRhjmM3nkdll4zlT PGVgruhB8oSJK9lEXl3m8HiYhG4HsYqrkqSCw+EVokVYm0ImmLZQ0c0T07azisnBlSJ+ qtUQ== X-Gm-Message-State: AOAM5318hrRu85PrhdnRSCpMgVgSdLM4Jvxzzw3W4q0F+IgD94WnjG6q 4+6WDFlt9/5Ybn5NM/8I+dkNQMXDPEnpl82Z X-Google-Smtp-Source: ABdhPJyTJOylDZ+3CAwbtCGDEx+/Fv47boVaquqNG6Oq+5Tbfn/AcmYdWx72lofYn3cVgqf26jXikw== X-Received: by 2002:a7b:c844:0:b0:37b:b986:7726 with SMTP id c4-20020a7bc844000000b0037bb9867726mr12449343wml.160.1648892370480; Sat, 02 Apr 2022 02:39:30 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id y6-20020a05600015c600b00203fa70b4ebsm5265713wry.53.2022.04.02.02.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Apr 2022 02:39:30 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/3] dt-bindings: soc: qcom,wcnss: convert to dtschema Date: Sat, 2 Apr 2022 11:39:19 +0200 Message-Id: <20220402093919.50084-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220402093919.50084-1-krzysztof.kozlowski@linaro.org> References: <20220402093919.50084-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Convert the Qualcomm WCNSS bindings to DT Schema. Changes against original bindings: fix qcom,smd-channels and qcom,smem-states names (how they are used in DTS and driver), enforce child node naming of bluetooth and wifi. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../bindings/soc/qcom/qcom,wcnss.txt | 131 ----------------- .../bindings/soc/qcom/qcom,wcnss.yaml | 139 ++++++++++++++++++ 2 files changed, 139 insertions(+), 131 deletions(-) delete mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt deleted file mode 100644 index 1382b64e1381..000000000000 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt +++ /dev/null @@ -1,131 +0,0 @@ -Qualcomm WCNSS Binding - -This binding describes the Qualcomm WCNSS hardware. It consists of control -block and a BT, WiFi and FM radio block, all using SMD as command channels. - -- compatible: - Usage: required - Value type: - Definition: must be: "qcom,wcnss", - -- qcom,smd-channel: - Usage: required - Value type: - Definition: standard SMD property specifying the SMD channel used for - communication with the WiFi firmware. - Should be "WCNSS_CTRL". - -- qcom,mmio: - Usage: required - Value type: - Definition: reference to a node specifying the wcnss "ccu" and "dxe" - register blocks. The node must be compatible with one of - the following: - "qcom,riva", - "qcom,pronto" - -- firmware-name: - Usage: optional - Value type: - Definition: specifies the relative firmware image path for the WLAN NV - blob. Defaults to "wlan/prima/WCNSS_qcom_wlan_nv.bin" if - not specified. - -= SUBNODES -The subnodes of the wcnss node are optional and describe the individual blocks in -the WCNSS. - -== Bluetooth -The following properties are defined to the bluetooth node: - -- compatible: - Usage: required - Value type: - Definition: must be: - "qcom,wcnss-bt" - -- local-bd-address: - Usage: optional - Value type: - Definition: see Documentation/devicetree/bindings/net/bluetooth.txt - -== WiFi -The following properties are defined to the WiFi node: - -- compatible: - Usage: required - Value type: - Definition: must be one of: - "qcom,wcnss-wlan", - -- interrupts: - Usage: required - Value type: - Definition: should specify the "rx" and "tx" interrupts - -- interrupt-names: - Usage: required - Value type: - Definition: must contain "rx" and "tx" - -- qcom,smem-state: - Usage: required - Value type: - Definition: should reference the tx-enable and tx-rings-empty SMEM states - -- qcom,smem-state-names: - Usage: required - Value type: - Definition: must contain "tx-enable" and "tx-rings-empty" - -= EXAMPLE -The following example represents a SMD node, with one edge representing the -"pronto" subsystem, with the wcnss device and its wcn3680 BT and WiFi blocks -described; as found on the 8974 platform. - -smd { - compatible = "qcom,smd"; - - pronto-edge { - interrupts = <0 142 1>; - - qcom,ipc = <&apcs 8 17>; - qcom,smd-edge = <6>; - - wcnss { - compatible = "qcom,wcnss"; - qcom,smd-channels = "WCNSS_CTRL"; - - #address-cells = <1>; - #size-cells = <1>; - - qcom,mmio = <&pronto>; - - bt { - compatible = "qcom,wcnss-bt"; - - /* BD address 00:11:22:33:44:55 */ - local-bd-address = [ 55 44 33 22 11 00 ]; - }; - - wlan { - compatible = "qcom,wcnss-wlan"; - - interrupts = <0 145 0>, <0 146 0>; - interrupt-names = "tx", "rx"; - - qcom,smem-state = <&apps_smsm 10>, <&apps_smsm 9>; - qcom,smem-state-names = "tx-enable", "tx-rings-empty"; - }; - }; - }; -}; - -soc { - pronto: pronto { - compatible = "qcom,pronto"; - - reg = <0xfb204000 0x2000>, <0xfb202000 0x1000>, <0xfb21b000 0x3000>; - reg-names = "ccu", "dxe", "pmu"; - }; -}; diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml new file mode 100644 index 000000000000..1e37ec871185 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml @@ -0,0 +1,139 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/qcom,wcnss.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm WCNSS + +maintainers: + - Andy Gross + - Bjorn Andersson + +description: + The Qualcomm WCNSS hardware consists of control block and a BT, WiFi and FM + radio block, all using SMD as command channels. + +properties: + compatible: + const: qcom,wcnss + + firmware-name: + $ref: /schemas/types.yaml#/definitions/string + default: "wlan/prima/WCNSS_qcom_wlan_nv.bin" + description: + Relative firmware image path for the WLAN NV blob. + + qcom,mmio: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + Reference to a node specifying the wcnss "ccu" and "dxe" register blocks. + The node must be compatible with one of the following:: + - qcom,riva" + - qcom,pronto" + + qcom,smd-channels: + $ref: /schemas/types.yaml#/definitions/string + const: WCNSS_CTRL + description: + Standard SMD property specifying the SMD channel used for communication + with the WiFi firmware. + + bluetooth: + type: object + additionalProperties: false + properties: + compatible: + const: qcom,wcnss-bt + + local-bd-address: + $ref: /schemas/types.yaml#/definitions/uint8-array + items: + minItems: 6 + maxItems: 6 + description: + See Documentation/devicetree/bindings/net/bluetooth.txt + + required: + - compatible + + wifi: + additionalProperties: false + type: object + properties: + compatible: + const: qcom,wcnss-wlan + + interrupts: + maxItems: 2 + + interrupt-names: + items: + - const: tx + - const: rx + + qcom,smem-states: + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 2 + description: + Should reference the tx-enable and tx-rings-empty SMEM states. + + qcom,smem-state-names: + $ref: /schemas/types.yaml#/definitions/string-array + items: + - const: tx-enable + - const: tx-rings-empty + description: + Names of SMEM states. + + required: + - compatible + - interrupts + - interrupt-names + - qcom,smem-states + - qcom,smem-state-names + +required: + - compatible + - qcom,mmio + - qcom,smd-channels + +additionalProperties: false + +examples: + - | + #include + + smd-edge { + interrupts = ; + + qcom,ipc = <&apcs 8 17>; + qcom,smd-edge = <6>; + qcom,remote-pid = <4>; + + label = "pronto"; + + wcnss { + compatible = "qcom,wcnss"; + qcom,smd-channels = "WCNSS_CTRL"; + + qcom,mmio = <&pronto>; + + bluetooth { + compatible = "qcom,wcnss-bt"; + /* BD address 00:11:22:33:44:55 */ + local-bd-address = [ 55 44 33 22 11 00 ]; + }; + + wifi { + compatible = "qcom,wcnss-wlan"; + + interrupts = , + ; + interrupt-names = "tx", "rx"; + + qcom,smem-states = <&apps_smsm 10>, <&apps_smsm 9>; + qcom,smem-state-names = "tx-enable", "tx-rings-empty"; + }; + }; + };