~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/soc/qcom/qcom,wcnss.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Qualcomm WCNSS
  8 
  9 maintainers:
 10   - Andy Gross <agross@kernel.org>
 11   - Bjorn Andersson <bjorn.andersson@linaro.org>
 12 
 13 description:
 14   The Qualcomm WCNSS hardware consists of control block and a BT, WiFi and FM
 15   radio block, all using SMD as command channels.
 16 
 17 properties:
 18   compatible:
 19     const: qcom,wcnss
 20 
 21   firmware-name:
 22     $ref: /schemas/types.yaml#/definitions/string
 23     default: wlan/prima/WCNSS_qcom_wlan_nv.bin
 24     description:
 25       Relative firmware image path for the WLAN NV blob.
 26 
 27   qcom,mmio:
 28     $ref: /schemas/types.yaml#/definitions/phandle
 29     description: |
 30       Reference to a node specifying the wcnss "ccu" and "dxe" register blocks.
 31       The node must be compatible with one of the following::
 32            - qcom,riva"
 33            - qcom,pronto"
 34 
 35   qcom,smd-channels:
 36     $ref: /schemas/types.yaml#/definitions/string
 37     const: WCNSS_CTRL
 38     description:
 39       Standard SMD property specifying the SMD channel used for communication
 40       with the WiFi firmware.
 41 
 42   bluetooth:
 43     type: object
 44     additionalProperties: false
 45     allOf:
 46       - $ref: /schemas/net/bluetooth/bluetooth-controller.yaml#
 47     properties:
 48       compatible:
 49         const: qcom,wcnss-bt
 50 
 51       local-bd-address: true
 52 
 53     required:
 54       - compatible
 55 
 56   wifi:
 57     additionalProperties: false
 58     type: object
 59     properties:
 60       compatible:
 61         const: qcom,wcnss-wlan
 62 
 63       interrupts:
 64         maxItems: 2
 65 
 66       interrupt-names:
 67         items:
 68           - const: tx
 69           - const: rx
 70 
 71       qcom,smem-states:
 72         $ref: /schemas/types.yaml#/definitions/phandle-array
 73         maxItems: 2
 74         description:
 75           Should reference the tx-enable and tx-rings-empty SMEM states.
 76 
 77       qcom,smem-state-names:
 78         items:
 79           - const: tx-enable
 80           - const: tx-rings-empty
 81         description:
 82           Names of SMEM states.
 83 
 84     required:
 85       - compatible
 86       - interrupts
 87       - interrupt-names
 88       - qcom,smem-states
 89       - qcom,smem-state-names
 90 
 91 required:
 92   - compatible
 93   - qcom,mmio
 94   - qcom,smd-channels
 95 
 96 additionalProperties: false
 97 
 98 examples:
 99   - |
100     #include <dt-bindings/interrupt-controller/arm-gic.h>
101 
102     smd-edge {
103         interrupts = <GIC_SPI 142 IRQ_TYPE_EDGE_RISING>;
104 
105         qcom,ipc = <&apcs 8 17>;
106         qcom,smd-edge = <6>;
107         qcom,remote-pid = <4>;
108 
109         label = "pronto";
110 
111         wcnss {
112             compatible = "qcom,wcnss";
113             qcom,smd-channels = "WCNSS_CTRL";
114 
115             qcom,mmio = <&pronto>;
116 
117             bluetooth {
118                 compatible = "qcom,wcnss-bt";
119                 /* Updated by boot firmware (little-endian order) */
120                 local-bd-address = [ 00 00 00 00 00 00 ];
121             };
122 
123             wifi {
124                 compatible = "qcom,wcnss-wlan";
125 
126                 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
127                              <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
128                 interrupt-names = "tx", "rx";
129 
130                 qcom,smem-states = <&apps_smsm 10>, <&apps_smsm 9>;
131                 qcom,smem-state-names = "tx-enable", "tx-rings-empty";
132             };
133         };
134     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php