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