From patchwork Tue Apr 5 06:57:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12801062 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 6C28DC433EF for ; Tue, 5 Apr 2022 06:58:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231267AbiDEG77 (ORCPT ); Tue, 5 Apr 2022 02:59:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbiDEG77 (ORCPT ); Tue, 5 Apr 2022 02:59:59 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 701A47E5BA for ; Mon, 4 Apr 2022 23:58:01 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id dr20so24517581ejc.6 for ; Mon, 04 Apr 2022 23:58:01 -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=ytEtJqw0uy6W+7gp4IX9zLd4Z1yoYI8Fve6cd2B1msM=; b=pufHZkF7epqtGQHhi/rp3fJ68j947extNxkzIrIoEbyprH2k2/Wj7bS40po2iD6wox ViOi7FMVrhjSqFQqYUXYOUEGINBqG6DSd9wWefE87XfBezcikEnJfrQV2iUpAisDrZTs HTpCL4RMxAwH93CqkZf6lW+9nORiLJT//DV4FTKgbXWz5fWfaurHANDnSrGLqaswA1LA SZitEGad8cC2HCoCC2iEA5laadDyH/emRXgJdjDr2g92T/jX0Xoa4mumfxw6DLaBvo4u t1KaLm6ZtVk4uuFXGQFTngbGwGfYxy+5Fem3rkSDqqmYR9anWnme6Lau8NrYyHNtxxAK /0dQ== 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=ytEtJqw0uy6W+7gp4IX9zLd4Z1yoYI8Fve6cd2B1msM=; b=QlrhykMnfMR293FjRsPdx3S7+8uHBATXWY7EHfnK9aS3X5Dm49CwlM9NVJu9w3rej9 +O6F2M7cy4ncT0n2dlJRjqsK5lBtTPAvUdYbYc/n2DX0a3oT9ic7T99RcQbDYRnKx8Pw erRFyRXK0u8ZHYmA2FupaTpyy3P3slMJ+TcJbmpfDPIVb+V91K3wmNNlys7gBxZ7hHBF WorpkizsqSswmqkSyRgXBHLbRc+l914gtK1Jzq1U08pzSRiUhSzQOoPKMhvOGkG9aiBN tnEoA0w147DBl++4LVt03VE5W1NF7dHNMr49ngxrZjnXIjmYQ6cBHgH2uINjbaghPGgx ELwA== X-Gm-Message-State: AOAM533k8TADdlDsvAEhok7d6n4Y7wz4U2NZxDR0EOX25Gv9yh4sFKj9 0AsonGqWzuKjm5FWIvTb0GLFdw== X-Google-Smtp-Source: ABdhPJxahQTxuKqd0DovpGzcDiLImq2qWALuFI8VzoQ7ZIHCQgJZ1fH3yS+9s/M72qSE8TSSG5Vomw== X-Received: by 2002:a17:907:6d19:b0:6db:89c8:52e3 with SMTP id sa25-20020a1709076d1900b006db89c852e3mr2101712ejc.754.1649141880043; Mon, 04 Apr 2022 23:58:00 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id f17-20020a056402355100b0041925e80963sm6367419edd.41.2022.04.04.23.57.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 23:57:59 -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 v2 1/3] ARM: dts: qcom: rename WCNSS child name to bluetooth Date: Tue, 5 Apr 2022 08:57:50 +0200 Message-Id: <20220405065752.27389-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 --- Changes since v1: 1. None. --- 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 Tue Apr 5 06:57:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12801063 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 5D972C433FE for ; Tue, 5 Apr 2022 06:58:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230261AbiDEHAA (ORCPT ); Tue, 5 Apr 2022 03:00:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231265AbiDEG77 (ORCPT ); Tue, 5 Apr 2022 02:59:59 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D2597EA16 for ; Mon, 4 Apr 2022 23:58:02 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id ot30so14693515ejb.12 for ; Mon, 04 Apr 2022 23:58:02 -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=6a4whhXq8xdge76IgYoCHrL2FoyW/DFqlQKK+cWx+tE=; b=ZJHLcRL1YakrmvRFLp+ZmgaXLIrXF09PvNE0fog849Gfwq0K/2YZqFhVASIXjKLsa8 /2tMxswNPcZN/5CIUGMZ5rxk5qKvvFyMlLtBWIm0DdXUyevLAIf4lMjmJKYLvUb71y31 zXXrlewGt+iqiAcLU/vY3RfxO/TH7rSbeZCXq3AAME9i2dvIzKpgWsDQQkiUQaXosqEr DynSQu7JKbeHVU5wihC68XGNAxxtA3znpnqE2r9ycfPBUt7O15hVRh9noWO/ykkVInVq XlIMaPxP7iQF2N6ZQTHQen6ucu5cXOvSwSch62+eck2V/918Gt8MoZyEuvHoGWZpU4wo LReA== 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=6a4whhXq8xdge76IgYoCHrL2FoyW/DFqlQKK+cWx+tE=; b=Co7uV/jF7iNNHn4X7CbJwKJ2t4yXc0LysIS49TqESxe3Ljg9dys2TO3Jzus1qHpzGW 183pqI0f6/rIXC14pCIdak+MOJa4QdoIA3JV/virV/bATlqem6ZipULKK0aRERa32Zkj qR0S71Q4aKnvP+13flqmlP7Em0giB8rRm9Zh+m4GpeyYJa380pvL6bwMexVzi1EzAv8m u7jeOP99BaaD/UkgZ7HfHpGOZC3hsdjUDrfCH7F/j4GIpVTV0aMPcQkbcxX7Fg+irbW6 3g8I77QACuQhjaN3bCXLLGRBqaz7/v5/q8EJBK/hjHJbAa8MuRVHpnkMOW2CGEVGKg/g T44Q== X-Gm-Message-State: AOAM531pfehxBKX8ikpCgXV2++aWFRYv02sN54YeLz3TdSHthAup64dO kKgQwLrKoezE24ySVK3lsF0LwQ== X-Google-Smtp-Source: ABdhPJyfNzFcFmbqujbKXQBjJG49OBM/Nn2E4LiD8zF9LmxpEc1HW4phIcgCY72UAywHtZnsOGPjrw== X-Received: by 2002:a17:906:3042:b0:6cd:20ed:7c5c with SMTP id d2-20020a170906304200b006cd20ed7c5cmr1994575ejd.241.1649141880927; Mon, 04 Apr 2022 23:58:00 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id f17-20020a056402355100b0041925e80963sm6367419edd.41.2022.04.04.23.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 23:58:00 -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 v2 2/3] arm64: dts: qcom: msm8916: rename WCNSS child name to bluetooth Date: Tue, 5 Apr 2022 08:57:51 +0200 Message-Id: <20220405065752.27389-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220405065752.27389-1-krzysztof.kozlowski@linaro.org> References: <20220405065752.27389-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 --- Changes since v1: 1. None. --- 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 Tue Apr 5 06:57:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12801064 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 CF5A8C433F5 for ; Tue, 5 Apr 2022 06:58:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231287AbiDEHAE (ORCPT ); Tue, 5 Apr 2022 03:00:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231279AbiDEHAD (ORCPT ); Tue, 5 Apr 2022 03:00:03 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 723D87EB1A for ; Mon, 4 Apr 2022 23:58:03 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id k2so6517400edj.9 for ; Mon, 04 Apr 2022 23:58:03 -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=rZjzJt+Q8s0uR/epyUUgNkOPcmNYhHsDThvqQmb3yM0=; b=XNqE8cT5km1IRQCmYI0+cH0RJ2tSZ6isknZo+hF6RhJro3d2JX3yzlMx0Hh01Zg450 81Pxqe7d+jroaCvlwQqGlJxx5i9v6EKYWhPT6h412Rsk9+xjhUqPmX/nqjEjfHDBjHZc 1pAMEaSWxmPZMyxizF83shYPF/zSQ7IFvD6mDWGqG+zz+jtIum3pRLlGjJfSw/G+Xk5H syIcLEmrjkqesMkLLlwI8tD58FEGqTPDTXHcNgPh+rEZ4ah1C3SBtp0q9+nSe36B8grW lZyYVZywvrqIkf+sjK8GnVpAjgKhIwgTfbLmU3Qtl1lN9MEmDCP8JzLvHFD6Q23PBS0E 3y0g== 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=rZjzJt+Q8s0uR/epyUUgNkOPcmNYhHsDThvqQmb3yM0=; b=Ge26/tDpP4/hMXOR5ZE/e27rv1G86BrTIosLaEkgTPk7sXdrsrl8uKxWc6AmsTE0UN B8LpmSyaSZYzw05bJMe5eBuJftowPfMeMvF3BxswICatjJPA/b/SSiTNP3REBAdBEehE hfLBHzyA6wa2sN/kXJhLFP11i3rOV+qEC9ilOSeuIuNHhEghr/l8k4jVIGnUAVe0RM1x EDRCX57oTnrptiSPHeTdyP+yfTgW6lpHQdt2YoINxCOA5BF/rFS19c+0BZaR18HemJ52 etrhGoTWXQkb4KJ+OFX+h2NLKGULHfjxU/KHneyGamOLNTG5PJMBZ23CfKWwSZwJF8Vi vlbg== X-Gm-Message-State: AOAM530EOOHEX7DRL48Fo7YnRKMrHoPBhTuU882l/ks0c9mqHAbLoOBK ka1VExMWLsngaqEj6Uf7PtR+kw== X-Google-Smtp-Source: ABdhPJwtLene0gBYBGEDpU/h4AN+tVDgiEWPDJVTbZ7vUrtzPzJNi/rHzoRDGrp3Hfc6UuVuqbcZvw== X-Received: by 2002:a05:6402:40c9:b0:419:4b81:162e with SMTP id z9-20020a05640240c900b004194b81162emr2057548edb.380.1649141881907; Mon, 04 Apr 2022 23:58:01 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id f17-20020a056402355100b0041925e80963sm6367419edd.41.2022.04.04.23.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 23:58:01 -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 , Rob Herring Subject: [PATCH v2 3/3] dt-bindings: soc: qcom,wcnss: convert to dtschema Date: Tue, 5 Apr 2022 08:57:52 +0200 Message-Id: <20220405065752.27389-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220405065752.27389-1-krzysztof.kozlowski@linaro.org> References: <20220405065752.27389-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 --- Changes since v1: 1. Use proper maxItems, not items-maxItems. 2. Add Rob's tag. --- .../bindings/soc/qcom/qcom,wcnss.txt | 131 ----------------- .../bindings/soc/qcom/qcom,wcnss.yaml | 137 ++++++++++++++++++ 2 files changed, 137 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..d891ecfb2691 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml @@ -0,0 +1,137 @@ +# 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 + 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"; + }; + }; + };