arm: dts: sun7i: fix mmc3 compatible string
net: rfkill: gpio: fix gpio name buffer size off by 1

snprintf should be passed the complete size of the buffer, including
the space for '\0'. The previous code resulted in the *_reset and
*_shutdown strings being truncated.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
net: rfkill: gpio: use clk_prepare_enable/clk_disable_unprepare

rfkill-gpio called clk_enable() without first calling clk_prepare(),
resulting in a warning and no effect. Switch to clk_prepare_enable()
and clk_disable_unprepare.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
net: rfkill: gpio: add DT support

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
brcmfmac: add BCM43362 SDIO interface support

BCM4339 is a b/g/n 1x1 WiFi chip. This patch adds support for it
through SDIO interface.

The core IDs, addresses and ram size were found using debug output
from the bcmdhd driver. Drive strength was provided by Arend van
Spriel, from Broadcom datasheets.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Cc: Arend van Spriel <arend@broadcom.com>
ARM: dts: sun7i: add pin muxing options for UART2

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
ARM: dts: sun7i: add WiFi module to Cubietruck DTS

The CubieTruck has an AMPAK AP6210 WiFi+Bluetooth module. The WiFi
part is a BCM43362 IC connected to MMC2 in the A20 SoC via SDIO.
The IC also takes a 32.768 KHz low power clock input, and a power
enable signal via GPIO.

The WiFi module supports out-of-band interrupt signaling via GPIO,
but this is not supported in this patch.
ARM: dts: sun7i: add bluetooth module to CubieTruck DTS

The CubieTruck has an AMPAK AP6210 WiFi+Bluetooth module. The
Bluetooth part is a BCM20710 IC connected to UART2 in the A20
SoC. The IC also takes a 32.768 KHz low power clock input, a power
enable signal and a wake signal via GPIO.

The Bluetooth module supports out-of-band interrupt signaling via
GPIO, but this is not supported in this patch.
net: rfkill: gpio: add clock-frequency DT property support

Some devices require a specific clock rate for the clock tied to
the rfkill device. Add clock-frequency property so we can specify
this from the DT.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
ARM: dts: sun7i: add requested clock rate to rfkill nodes