Texas Instruments Wilink 6/7/8 (wl12xx/wl18xx) Wireless LAN Controller

Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/ti,wlcore.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>"

The wl12xx/wl18xx chips can be connected via SPI or via SDIO. Note that the *-clock-frequency properties assume internal clocks. In case of external clocks, new bindings (for parsing the clock nodes) have to be added.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,wl1271", "ti,wl1273", "ti,wl1281", "ti,wl1283", "ti,wl1285", "ti,wl1801", "ti,wl1805", "ti,wl1807", "ti,wl1831", "ti,wl1835", "ti,wl1837"

reg — not listed as required here #

Maximum number of items (maxItems): 1

This is required when connected via SPI, and optional when connected via SDIO.

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "irq"

Item 2

Exact value (const): "wakeup"

vwlan-supply — not listed as required here #

Points to the node of the regulator that powers/enable the wl12xx/wl18xx chip. This is required when connected via SPI.

ref-clock-frequency — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Reference clock frequency.

tcxo-clock-frequency — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

TCXO clock frequency.

clock-xtal — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Indicates that the clock is generated from XTAL.

Required in this object (required): "compatible", "interrupts"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,wl1271", "ti,wl1273", "ti,wl1281", "ti,wl1283"

When the condition matches (then) #

Required in this object (required): "ref-clock-frequency"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

// For wl12xx family:
spi {
    #address-cells = <1>;
    #size-cells = <0>;

    wlcore1: wlcore@1 {
        compatible = "ti,wl1271";
        reg = <1>;
        spi-max-frequency = <48000000>;
        interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
        vwlan-supply = <&vwlan_fixed>;
        clock-xtal;
        ref-clock-frequency = <38400000>;
    };
};
#include <dt-bindings/interrupt-controller/irq.h>

// For wl18xx family:
spi {
    #address-cells = <1>;
    #size-cells = <0>;

    wlcore2: wlcore@0 {
        compatible = "ti,wl1835";
        reg = <0>;
        spi-max-frequency = <48000000>;
        interrupts = <27 IRQ_TYPE_EDGE_RISING>;
        vwlan-supply = <&vwlan_fixed>;
    };
};
#include <dt-bindings/interrupt-controller/irq.h>

// SDIO example:
mmc3 {
    vmmc-supply = <&wlan_en_reg>;
    bus-width = <4>;
    cap-power-off-card;
    keep-power-in-suspend;

    #address-cells = <1>;
    #size-cells = <0>;

    wlcore3: wlcore@2 {
        compatible = "ti,wl1835";
        reg = <2>;
        interrupts = <19 IRQ_TYPE_LEVEL_HIGH>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page