The XR819 exposes one SDIO function. Boards may provide a MAC address, clocks, supplies, and wire a GPIO interrupt instead of using the SDIO interrupt. Signed-off-by: Arthur Heymans --- .../bindings/net/wireless/xradio,xr819.yaml | 92 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 93 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/wireless/xradio,xr819.yaml diff --git a/Documentation/devicetree/bindings/net/wireless/xradio,xr819.yaml b/Documentation/devicetree/bindings/net/wireless/xradio,xr819.yaml new file mode 100644 index 000000000000..afb640ebad6f --- /dev/null +++ b/Documentation/devicetree/bindings/net/wireless/xradio,xr819.yaml @@ -0,0 +1,92 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/wireless/xradio,xr819.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: XRadio XR819 SDIO wireless controller + +maintainers: + - Arthur Heymans + +description: | + The XR819 is a 2.4 GHz IEEE 802.11b/g/n controller connected to the host + through SDIO. Its out-of-band interrupt may be connected to a host GPIO. + + Power supplies, the active-low reset line, and any host-provided 32.768 kHz + low-power clock may be managed by the parent MMC controller using + vmmc-supply/vqmmc-supply and mmc-pwrseq-simple when required before SDIO + enumeration. + +allOf: + - $ref: wireless-controller.yaml# + +properties: + compatible: + const: xradio,xr819 + + reg: + const: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 1 + items: + - description: 13-52 MHz reference clock (XTAL2) + - description: 32.768 kHz low-power sleep clock (LPCLK) + + clock-names: + minItems: 1 + items: + - const: xtal + - const: lpclk + + ana-v18-supply: + description: 1.8 V analog supply (ANA_V18) + + dig-v18-supply: + description: 1.8 V digital LDO supply (DIG_V18) + + pll-v18-supply: + description: 1.8 V RF PLL supply (PLL_V18) + + rx-v18-supply: + description: 1.8 V receiver supply (RX_V18) + + tx-v18-supply: + description: 1.8 V transmitter supply (TX_V18) + + tx-v33-supply: + description: 3.3 V power amplifier supply (TX_V33) + + vdd-io-supply: + description: Digital and SDIO I/O supply (VDD_IO) + +required: + - compatible + - reg + +dependencies: + clocks: [ clock-names ] + clock-names: [ clocks ] + +unevaluatedProperties: false + +examples: + - | + #include + + mmc { + #address-cells = <1>; + #size-cells = <0>; + + wifi@1 { + compatible = "xradio,xr819"; + reg = <1>; + interrupt-parent = <&pio>; + interrupts = <10 IRQ_TYPE_EDGE_RISING>; + local-mac-address = [02 00 00 00 00 01]; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 0cf311e6c4be..6e7b5f6beba4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7211,6 +7211,7 @@ F: Documentation/process/cve.rst CW1200 WLAN driver S: Orphan L: linux-wireless@vger.kernel.org +F: Documentation/devicetree/bindings/net/wireless/xradio,xr819.yaml F: drivers/net/wireless/st/ F: include/linux/platform_data/net-cw1200.h -- 2.56.1