1 The WFxxx chip series can be connected via SPI or via SDIO.
6 You have to declare the WFxxx chip in your device tree.
9 - compatible: Should be "silabs,wfx-spi"
10 - reg: Chip select address of device
11 - spi-max-frequency: Maximum SPI clocking speed of device in Hz
12 - interrupts-extended: Should contain interrupt line (interrupt-parent +
13 interrupt can also been used). Trigger should be `IRQ_TYPE_EDGE_RISING`.
16 - reset-gpios: phandle of gpio that will be used to reset chip during probe.
17 Without this property, you may encounter issues with warm boot.
19 Please consult Documentation/devicetree/bindings/spi/spi-bus.txt for optional
20 SPI connection related properties,
26 compatible = "silabs,wfx-spi";
27 pinctrl-names = "default";
28 pinctrl-0 = <&wfx_irq &wfx_gpios>;
29 interrupts-extended = <&gpio 16 IRQ_TYPE_EDGE_RISING>;
30 wakeup-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
31 reset-gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
33 spi-max-frequency = <42000000>;
41 The driver is able to detect a WFxxx chip on SDIO bus by matching its Vendor ID
42 and Product ID. However, driver will only provide limited features in this
43 case. Thus declaring WFxxx chip in device tree is strongly recommended (and may
44 become mandatory in the future).
47 - compatible: Should be "silabs,wfx-sdio"
50 In addition, it is recommended to declare a mmc-pwrseq on SDIO host above WFx.
51 Without it, you may encounter issues with warm boot. mmc-pwrseq should be
52 compatible with mmc-pwrseq-simple. Please consult
53 Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.txt for more
59 wfx_pwrseq: wfx_pwrseq {
60 compatible = "mmc-pwrseq-simple";
61 pinctrl-names = "default";
62 pinctrl-0 = <&wfx_reset>;
63 reset-gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
68 mmc-pwrseq = <&wfx_pwrseq>;
73 compatible = "silabs,wfx-sdio";
75 pinctrl-names = "default";
76 pinctrl-0 = <&wfx_wakeup>;
77 wakeup-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
81 Note that #address-size and #size shoud already be defined in node mmc1, but it
87 Some properties are recognized either by SPI and SDIO versions:
88 - wakeup-gpios: phandle of gpio that will be used to wake-up chip. Without
89 this property, driver will disable most of power saving features.
90 - config-file: Use an alternative file as PDS. Default is `wf200.pds`. Only
91 necessary for development/debug purpose.
92 - slk_key: String representing hexadecimal value of secure link key to use.
93 Must contains 64 hexadecimal digits. Not supported in current version.
95 WFx driver also supports `mac-address` and `local-mac-address` as described in
96 Documentation/devicetree/binding/net/ethernet.txt