xref: /openbmc/linux/Documentation/devicetree/bindings/net/wireless/marvell-8xxx.txt (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1*bba047f1SLukas WunnerMarvell 8787/8897/8978/8997 (sd8787/sd8897/sd8978/sd8997/pcie8997) SDIO/PCIE devices
26b4480d1SXinming Hu------
36b4480d1SXinming Hu
46b4480d1SXinming HuThis node provides properties for controlling the Marvell SDIO/PCIE wireless device.
56b4480d1SXinming HuThe node is expected to be specified as a child node to the SDIO/PCIE controller that
66b4480d1SXinming Huconnects the device to the system.
76b4480d1SXinming Hu
86b4480d1SXinming HuRequired properties:
96b4480d1SXinming Hu
106b4480d1SXinming Hu  - compatible : should be one of the following:
11e3fffc1fSMatt Ranostay	* "marvell,sd8787"
126b4480d1SXinming Hu	* "marvell,sd8897"
13*bba047f1SLukas Wunner	* "marvell,sd8978"
146b4480d1SXinming Hu	* "marvell,sd8997"
15*bba047f1SLukas Wunner	* "nxp,iw416"
166b4480d1SXinming Hu	* "pci11ab,2b42"
176b4480d1SXinming Hu	* "pci1b4b,2b42"
186b4480d1SXinming Hu
196b4480d1SXinming HuOptional properties:
206b4480d1SXinming Hu
216b4480d1SXinming Hu  - marvell,caldata* : A series of properties with marvell,caldata prefix,
226b4480d1SXinming Hu		      represent calibration data downloaded to the device during
236b4480d1SXinming Hu		      initialization. This is an array of unsigned 8-bit values.
246b4480d1SXinming Hu		      the properties should follow below property name and
256b4480d1SXinming Hu		      corresponding array length:
266b4480d1SXinming Hu	"marvell,caldata-txpwrlimit-2g" (length = 566).
276b4480d1SXinming Hu	"marvell,caldata-txpwrlimit-5g-sub0" (length = 502).
286b4480d1SXinming Hu	"marvell,caldata-txpwrlimit-5g-sub1" (length = 688).
296b4480d1SXinming Hu	"marvell,caldata-txpwrlimit-5g-sub2" (length = 750).
306b4480d1SXinming Hu	"marvell,caldata-txpwrlimit-5g-sub3" (length = 502).
316b4480d1SXinming Hu  - marvell,wakeup-pin : a wakeup pin number of wifi chip which will be configured
326b4480d1SXinming Hu		      to firmware. Firmware will wakeup the host using this pin
336b4480d1SXinming Hu		      during suspend/resume.
346b4480d1SXinming Hu  - interrupts : interrupt pin number to the cpu. driver will request an irq based on
356b4480d1SXinming Hu		 this interrupt number. during system suspend, the irq will be enabled
366b4480d1SXinming Hu		 so that the wifi chip can wakeup host platform under certain condition.
376b4480d1SXinming Hu		 during system resume, the irq will be disabled to make sure
386b4480d1SXinming Hu		 unnecessary interrupt is not received.
39e3fffc1fSMatt Ranostay  - vmmc-supply: a phandle of a regulator, supplying VCC to the card
40e3fffc1fSMatt Ranostay  - mmc-pwrseq:  phandle to the MMC power sequence node. See "mmc-pwrseq-*"
41e3fffc1fSMatt Ranostay		 for documentation of MMC power sequence bindings.
426b4480d1SXinming Hu
436b4480d1SXinming HuExample:
446b4480d1SXinming Hu
456b4480d1SXinming HuTx power limit calibration data is configured in below example.
466b4480d1SXinming HuThe calibration data is an array of unsigned values, the length
476b4480d1SXinming Hucan vary between hw versions.
486b4480d1SXinming HuIRQ pin 38 is used as system wakeup source interrupt. wakeup pin 3 is configured
496b4480d1SXinming Huso that firmware can wakeup host using this device side pin.
506b4480d1SXinming Hu
516b4480d1SXinming Hu&mmc3 {
526b4480d1SXinming Hu	vmmc-supply = <&wlan_en_reg>;
53e3fffc1fSMatt Ranostay	mmc-pwrseq = <&wifi_pwrseq>;
546b4480d1SXinming Hu	bus-width = <4>;
556b4480d1SXinming Hu	cap-power-off-card;
566b4480d1SXinming Hu	keep-power-in-suspend;
576b4480d1SXinming Hu
586b4480d1SXinming Hu	#address-cells = <1>;
596b4480d1SXinming Hu	#size-cells = <0>;
606b4480d1SXinming Hu	mwifiex: wifi@1 {
616b4480d1SXinming Hu		compatible = "marvell,sd8897";
626b4480d1SXinming Hu		reg = <1>;
636b4480d1SXinming Hu		interrupt-parent = <&pio>;
646b4480d1SXinming Hu		interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
656b4480d1SXinming Hu
666b4480d1SXinming Hu		marvell,caldata_00_txpwrlimit_2g_cfg_set = /bits/ 8 <
676b4480d1SXinming Hu	0x01 0x00 0x06 0x00 0x08 0x02 0x89 0x01>;
686b4480d1SXinming Hu		marvell,wakeup-pin = <3>;
696b4480d1SXinming Hu	};
706b4480d1SXinming Hu};
71