Merge tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / net / wireless / ti,wlcore,spi.txt
1 * Texas Instruments wl12xx/wl18xx wireless lan controller
2
3 The wl12xx/wl18xx chips can be connected via SPI or via SDIO. This
4 document describes the binding for the SPI connected chip.
5
6 Required properties:
7 - compatible :          Should be one of the following:
8     * "ti,wl1271"
9     * "ti,wl1273"
10     * "ti,wl1281"
11     * "ti,wl1283"
12     * "ti,wl1801"
13     * "ti,wl1805"
14     * "ti,wl1807"
15     * "ti,wl1831"
16     * "ti,wl1835"
17     * "ti,wl1837"
18 - reg :                 Chip select address of device
19 - spi-max-frequency :   Maximum SPI clocking speed of device in Hz
20 - interrupt-parent, interrupts :
21                         Should contain parameters for 1 interrupt line.
22                         Interrupt parameters: parent, line number, type.
23 - vwlan-supply :        Point the node of the regulator that powers/enable the
24                         wl12xx/wl18xx chip
25
26 Optional properties:
27 - ref-clock-frequency : Reference clock frequency (should be set for wl12xx)
28 - clock-xtal :          boolean, clock is generated from XTAL
29
30 - Please consult Documentation/devicetree/bindings/spi/spi-bus.txt
31   for optional SPI connection related properties,
32
33 Examples:
34
35 For wl12xx family:
36 &spi1 {
37         wlcore: wlcore@1 {
38                 compatible = "ti,wl1271";
39                 reg = <1>;
40                 spi-max-frequency = <48000000>;
41                 interrupt-parent = <&gpio3>;
42                 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
43                 vwlan-supply = <&vwlan_fixed>;
44                 clock-xtal;
45                 ref-clock-frequency = <38400000>;
46         };
47 };
48
49 For wl18xx family:
50 &spi0 {
51         wlcore: wlcore@0 {
52                 compatible = "ti,wl1835";
53                 reg = <0>;
54                 spi-max-frequency = <48000000>;
55                 interrupt-parent = <&gpio0>;
56                 interrupts = <27 IRQ_TYPE_EDGE_RISING>;
57                 vwlan-supply = <&vwlan_fixed>;
58         };
59 };