Commit | Line | Data |
---|---|---|
e3fffc1f | 1 | Marvell 8787/8897/8997 (sd8787/sd8897/sd8997/pcie8997) SDIO/PCIE devices |
84039920 XH |
2 | ------ |
3 | ||
6b4480d1 XH |
4 | This node provides properties for controlling the Marvell SDIO/PCIE wireless device. |
5 | The node is expected to be specified as a child node to the SDIO/PCIE controller that | |
84039920 XH |
6 | connects the device to the system. |
7 | ||
8 | Required properties: | |
9 | ||
10 | - compatible : should be one of the following: | |
e3fffc1f | 11 | * "marvell,sd8787" |
84039920 XH |
12 | * "marvell,sd8897" |
13 | * "marvell,sd8997" | |
6b4480d1 XH |
14 | * "pci11ab,2b42" |
15 | * "pci1b4b,2b42" | |
84039920 XH |
16 | |
17 | Optional properties: | |
18 | ||
19 | - marvell,caldata* : A series of properties with marvell,caldata prefix, | |
20 | represent calibration data downloaded to the device during | |
21 | initialization. This is an array of unsigned 8-bit values. | |
22 | the properties should follow below property name and | |
23 | corresponding array length: | |
24 | "marvell,caldata-txpwrlimit-2g" (length = 566). | |
25 | "marvell,caldata-txpwrlimit-5g-sub0" (length = 502). | |
26 | "marvell,caldata-txpwrlimit-5g-sub1" (length = 688). | |
27 | "marvell,caldata-txpwrlimit-5g-sub2" (length = 750). | |
28 | "marvell,caldata-txpwrlimit-5g-sub3" (length = 502). | |
29 | - marvell,wakeup-pin : a wakeup pin number of wifi chip which will be configured | |
30 | to firmware. Firmware will wakeup the host using this pin | |
31 | during suspend/resume. | |
32 | - interrupt-parent: phandle of the parent interrupt controller | |
33 | - interrupts : interrupt pin number to the cpu. driver will request an irq based on | |
34 | this interrupt number. during system suspend, the irq will be enabled | |
35 | so that the wifi chip can wakeup host platform under certain condition. | |
36 | during system resume, the irq will be disabled to make sure | |
37 | unnecessary interrupt is not received. | |
e3fffc1f MR |
38 | - vmmc-supply: a phandle of a regulator, supplying VCC to the card |
39 | - mmc-pwrseq: phandle to the MMC power sequence node. See "mmc-pwrseq-*" | |
40 | for documentation of MMC power sequence bindings. | |
84039920 XH |
41 | |
42 | Example: | |
43 | ||
44 | Tx power limit calibration data is configured in below example. | |
45 | The calibration data is an array of unsigned values, the length | |
46 | can vary between hw versions. | |
47 | IRQ pin 38 is used as system wakeup source interrupt. wakeup pin 3 is configured | |
48 | so that firmware can wakeup host using this device side pin. | |
49 | ||
50 | &mmc3 { | |
84039920 | 51 | vmmc-supply = <&wlan_en_reg>; |
e3fffc1f | 52 | mmc-pwrseq = <&wifi_pwrseq>; |
84039920 XH |
53 | bus-width = <4>; |
54 | cap-power-off-card; | |
55 | keep-power-in-suspend; | |
56 | ||
57 | #address-cells = <1>; | |
58 | #size-cells = <0>; | |
59 | mwifiex: wifi@1 { | |
60 | compatible = "marvell,sd8897"; | |
61 | reg = <1>; | |
62 | interrupt-parent = <&pio>; | |
63 | interrupts = <38 IRQ_TYPE_LEVEL_LOW>; | |
64 | ||
65 | marvell,caldata_00_txpwrlimit_2g_cfg_set = /bits/ 8 < | |
66 | 0x01 0x00 0x06 0x00 0x08 0x02 0x89 0x01>; | |
67 | marvell,wakeup-pin = <3>; | |
68 | }; | |
69 | }; |