Skip to content

Commit 8446b84

Browse files
xdarklightsuperna9999
authored andcommitted
ARM: dts: meson8m2: mxiii-plus: Enable Bluetooth and WiFi support
The MXIII Plus uses an Ampak AP6330 Bluetooth and WiFi combo chip. Bluetooth is connected to &uart_A and requires toggling GPIOX_20. WiFi can be routed to either &sdhc or &sdio. Route WiFi to &sdhc since &sdio is already connected to the SD card. Additionally WiFi requires toggling GPIOX_11 and GPIOAO_6 as well as enabling the 32kHz clock signal. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20230321171213.2808460-4-martin.blumenstingl@googlemail.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
1 parent ef8474d commit 8446b84

1 file changed

Lines changed: 47 additions & 1 deletion

File tree

arch/arm/boot/dts/meson8m2-mxiii-plus.dts

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
ethernet0 = &ethmac;
2020
i2c0 = &i2c_AO;
2121
serial0 = &uart_AO;
22-
serial1 = &uart_A;
2322
mmc0 = &sd_card_slot;
2423
};
2524

@@ -45,12 +44,32 @@
4544
};
4645
};
4746

47+
sdio_pwrseq: sdio-pwrseq {
48+
compatible = "mmc-pwrseq-simple";
49+
50+
pinctrl-0 = <&xtal_32k_out_pins>;
51+
pinctrl-names = "default";
52+
53+
reset-gpios = <&gpio GPIOX_11 GPIO_ACTIVE_LOW>,
54+
<&gpio_ao GPIOAO_6 GPIO_ACTIVE_LOW>;
55+
56+
clocks = <&xtal_32k_out>;
57+
clock-names = "ext_clock";
58+
};
59+
4860
vcc_3v3: regulator-vcc3v3 {
4961
compatible = "regulator-fixed";
5062
regulator-name = "VCC3V3";
5163
regulator-min-microvolt = <3300000>;
5264
regulator-max-microvolt = <3300000>;
5365
};
66+
67+
xtal_32k_out: xtal-32k-out-clk {
68+
compatible = "fixed-clock";
69+
#clock-cells = <0>;
70+
clock-frequency = <32768>;
71+
clock-output-names = "xtal_32k_out";
72+
};
5473
};
5574

5675
&cpu0 {
@@ -192,6 +211,27 @@
192211
vref-supply = <&vddio_ao1v8>;
193212
};
194213

214+
/* SDIO wifi */
215+
&sdhc {
216+
status = "okay";
217+
218+
pinctrl-0 = <&sdxc_a_pins>;
219+
pinctrl-names = "default";
220+
221+
bus-width = <4>;
222+
max-frequency = <50000000>;
223+
224+
disable-wp;
225+
non-removable;
226+
cap-mmc-highspeed;
227+
cap-sd-highspeed;
228+
229+
mmc-pwrseq = <&sdio_pwrseq>;
230+
231+
vmmc-supply = <&vcc_3v3>;
232+
vqmmc-supply = <&vcc_3v3>;
233+
};
234+
195235
&sdio {
196236
status = "okay";
197237

@@ -222,6 +262,12 @@
222262
pinctrl-0 = <&uart_a1_pins>, <&uart_a1_cts_rts_pins>;
223263
pinctrl-names = "default";
224264
uart-has-rtscts;
265+
266+
bluetooth {
267+
compatible = "brcm,bcm20702a1";
268+
shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>;
269+
max-speed = <2000000>;
270+
};
225271
};
226272

227273
&uart_AO {

0 commit comments

Comments
 (0)