1edb6e3ecSSebastian Reichel* Texas Instruments wl1251 wireless lan controller 2edb6e3ecSSebastian Reichel 3edb6e3ecSSebastian ReichelThe wl1251 chip can be connected via SPI or via SDIO. This 4edb6e3ecSSebastian Reicheldocument describes the binding for the SPI connected chip. 5edb6e3ecSSebastian Reichel 6edb6e3ecSSebastian ReichelRequired properties: 7edb6e3ecSSebastian Reichel- compatible : Should be "ti,wl1251" 8edb6e3ecSSebastian Reichel- reg : Chip select address of device 9edb6e3ecSSebastian Reichel- spi-max-frequency : Maximum SPI clocking speed of device in Hz 10edb6e3ecSSebastian Reichel- interrupts : Should contain interrupt line 11edb6e3ecSSebastian Reichel- vio-supply : phandle to regulator providing VIO 12edb6e3ecSSebastian Reichel 13edb6e3ecSSebastian ReichelOptional properties: 14edb6e3ecSSebastian Reichel- ti,wl1251-has-eeprom : boolean, the wl1251 has an eeprom connected, which 15edb6e3ecSSebastian Reichel provides configuration data (calibration, MAC, ...) 1657f0a29cSH. Nikolaus Schaller- ti,power-gpio : GPIO connected to chip's PMEN pin if operated in 1757f0a29cSH. Nikolaus Schaller SPI mode 18edb6e3ecSSebastian Reichel- Please consult Documentation/devicetree/bindings/spi/spi-bus.txt 19edb6e3ecSSebastian Reichel for optional SPI connection related properties, 20edb6e3ecSSebastian Reichel 21edb6e3ecSSebastian ReichelExamples: 22edb6e3ecSSebastian Reichel 23edb6e3ecSSebastian Reichel&spi1 { 24edb6e3ecSSebastian Reichel wl1251@0 { 25edb6e3ecSSebastian Reichel compatible = "ti,wl1251"; 26edb6e3ecSSebastian Reichel 27edb6e3ecSSebastian Reichel reg = <0>; 28edb6e3ecSSebastian Reichel spi-max-frequency = <48000000>; 29edb6e3ecSSebastian Reichel spi-cpol; 30edb6e3ecSSebastian Reichel spi-cpha; 31edb6e3ecSSebastian Reichel 32edb6e3ecSSebastian Reichel interrupt-parent = <&gpio2>; 33edb6e3ecSSebastian Reichel interrupts = <10 IRQ_TYPE_NONE>; /* gpio line 42 */ 34edb6e3ecSSebastian Reichel 35edb6e3ecSSebastian Reichel vio-supply = <&vio>; 36edb6e3ecSSebastian Reichel ti,power-gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>; /* 87 */ 37edb6e3ecSSebastian Reichel }; 38edb6e3ecSSebastian Reichel}; 3969167ae5SH. Nikolaus Schaller 4069167ae5SH. Nikolaus Schaller&mmc3 { 4169167ae5SH. Nikolaus Schaller vmmc-supply = <&wlan_en>; 4269167ae5SH. Nikolaus Schaller 4369167ae5SH. Nikolaus Schaller bus-width = <4>; 4469167ae5SH. Nikolaus Schaller non-removable; 4569167ae5SH. Nikolaus Schaller ti,non-removable; 4669167ae5SH. Nikolaus Schaller cap-power-off-card; 4769167ae5SH. Nikolaus Schaller 4869167ae5SH. Nikolaus Schaller pinctrl-names = "default"; 4969167ae5SH. Nikolaus Schaller pinctrl-0 = <&mmc3_pins>; 5069167ae5SH. Nikolaus Schaller 5169167ae5SH. Nikolaus Schaller #address-cells = <1>; 5269167ae5SH. Nikolaus Schaller #size-cells = <0>; 5369167ae5SH. Nikolaus Schaller 5469167ae5SH. Nikolaus Schaller wlan: wifi@1 { 5569167ae5SH. Nikolaus Schaller compatible = "ti,wl1251"; 5669167ae5SH. Nikolaus Schaller 5769167ae5SH. Nikolaus Schaller reg = <1>; 5869167ae5SH. Nikolaus Schaller 5969167ae5SH. Nikolaus Schaller interrupt-parent = <&gpio1>; 6069167ae5SH. Nikolaus Schaller interrupts = <21 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_21 */ 6169167ae5SH. Nikolaus Schaller 6269167ae5SH. Nikolaus Schaller ti,wl1251-has-eeprom; 6369167ae5SH. Nikolaus Schaller }; 6469167ae5SH. Nikolaus Schaller}; 65