ARM: dts: enable WLAN for Mecer Xtreme Mini S6
authorJustin Swartz <justin.swartz@risingedge.co.za>
Mon, 6 Apr 2020 13:50:04 +0000 (13:50 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 18 May 2020 22:38:56 +0000 (00:38 +0200)
The Mecer Xtreme Mini S6 features a wireless module, based on a
Realtek 8723BS, which provides WLAN and Bluetooth connectivity via
SDIO and UART interfaces respectively.

Define a simple MMC power sequence that declares the GPIO pins
connected to the module's WLAN Disable and Bluetooth Disable pins
as active low reset signals, because both signals must be deasserted
for WLAN radio operation.

Configure the host's SDIO interface for High Speed mode with 1.8v
I/O signalling and IRQ detection over a 4-bit wide bus.

Signed-off-by: Justin Swartz <justin.swartz@risingedge.co.za>
Link: https://lore.kernel.org/r/20200406135006.23759-1-justin.swartz@risingedge.co.za
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rk3229-xms6.dts

index 9252a735c45033244870a4873c5e3918505d5a64..727734d6da9ba0ecbbaf5adc7000c15d95d4c3cf 100644 (file)
                };
        };
 
+       sdio_pwrseq: sdio-pwrseq {
+               compatible = "mmc-pwrseq-simple";
+               reset-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>,
+                             <&gpio2 29 GPIO_ACTIVE_LOW>;
+       };
+
        vcc_host: vcc-host-regulator {
                compatible = "regulator-fixed";
                enable-active-high;
        status = "okay";
 };
 
+&sdio {
+       bus-width = <4>;
+       cap-sd-highspeed;
+       cap-sdio-irq;
+       mmc-pwrseq = <&sdio_pwrseq>;
+       non-removable;
+       vqmmc-supply = <&vccio_1v8>;
+       status = "okay";
+};
+
 &sdmmc {
        cap-mmc-highspeed;
        disable-wp;