1*4882a593Smuzhiyun* Texas Instruments wl1251 wireless lan controller 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThe wl1251 chip can be connected via SPI or via SDIO. This 4*4882a593Smuzhiyundocument describes the binding for the SPI connected chip. 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunRequired properties: 7*4882a593Smuzhiyun- compatible : Should be "ti,wl1251" 8*4882a593Smuzhiyun- reg : Chip select address of device 9*4882a593Smuzhiyun- spi-max-frequency : Maximum SPI clocking speed of device in Hz 10*4882a593Smuzhiyun- interrupts : Should contain interrupt line 11*4882a593Smuzhiyun- vio-supply : phandle to regulator providing VIO 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunOptional properties: 14*4882a593Smuzhiyun- ti,wl1251-has-eeprom : boolean, the wl1251 has an eeprom connected, which 15*4882a593Smuzhiyun provides configuration data (calibration, MAC, ...) 16*4882a593Smuzhiyun- ti,power-gpio : GPIO connected to chip's PMEN pin if operated in 17*4882a593Smuzhiyun SPI mode 18*4882a593Smuzhiyun- Please consult Documentation/devicetree/bindings/spi/spi-bus.txt 19*4882a593Smuzhiyun for optional SPI connection related properties, 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunExamples: 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun&spi1 { 24*4882a593Smuzhiyun wl1251@0 { 25*4882a593Smuzhiyun compatible = "ti,wl1251"; 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun reg = <0>; 28*4882a593Smuzhiyun spi-max-frequency = <48000000>; 29*4882a593Smuzhiyun spi-cpol; 30*4882a593Smuzhiyun spi-cpha; 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun interrupt-parent = <&gpio2>; 33*4882a593Smuzhiyun interrupts = <10 IRQ_TYPE_NONE>; /* gpio line 42 */ 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun vio-supply = <&vio>; 36*4882a593Smuzhiyun ti,power-gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>; /* 87 */ 37*4882a593Smuzhiyun }; 38*4882a593Smuzhiyun}; 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun&mmc3 { 41*4882a593Smuzhiyun vmmc-supply = <&wlan_en>; 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun bus-width = <4>; 44*4882a593Smuzhiyun non-removable; 45*4882a593Smuzhiyun ti,non-removable; 46*4882a593Smuzhiyun cap-power-off-card; 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun pinctrl-names = "default"; 49*4882a593Smuzhiyun pinctrl-0 = <&mmc3_pins>; 50*4882a593Smuzhiyun 51*4882a593Smuzhiyun #address-cells = <1>; 52*4882a593Smuzhiyun #size-cells = <0>; 53*4882a593Smuzhiyun 54*4882a593Smuzhiyun wlan: wifi@1 { 55*4882a593Smuzhiyun compatible = "ti,wl1251"; 56*4882a593Smuzhiyun 57*4882a593Smuzhiyun reg = <1>; 58*4882a593Smuzhiyun 59*4882a593Smuzhiyun interrupt-parent = <&gpio1>; 60*4882a593Smuzhiyun interrupts = <21 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_21 */ 61*4882a593Smuzhiyun 62*4882a593Smuzhiyun ti,wl1251-has-eeprom; 63*4882a593Smuzhiyun }; 64*4882a593Smuzhiyun}; 65