2019-03-01 18:54:10

by Andreas Kemnade

[permalink] [raw]
Subject: [PATCH v2] ARM: sun8i: h3: bluetooth for Banana Pi M2 Zero board

The Banana Pi M2 Zero board has an AP6212 BT+Wifi combo chip
with broadcom internals attached to UART1 and some gpios.
This addition is in line with similar boards

Signed-off-by: Andreas Kemnade <[email protected]>
---
changes in v2: remove pinctrl things
arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
index 1db2541135a7..57432d0500b1 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
@@ -69,6 +69,8 @@
compatible = "mmc-pwrseq-simple";
pinctrl-names = "default";
reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
+ clocks = <&rtc 1>;
+ clock-names = "ext_clock";
};
};

@@ -122,7 +124,20 @@
&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
+ uart-has-rtscts;
status = "okay";
+
+ bluetooth {
+ compatible = "brcm,bcm43438-bt";
+ clocks = <&rtc 1>;
+ clock-names = "lpo";
+ vbat-supply = <&reg_vcc3v3>;
+ vddio-supply = <&reg_vcc3v3>;
+ device-wakeup-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */
+ host-wakeup-gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */
+ shutdown-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
+ };
+
};

&usb_otg {
--
2.11.0



2019-04-07 20:25:46

by Andreas Kemnade

[permalink] [raw]
Subject: Re: [PATCH v2] ARM: sun8i: h3: bluetooth for Banana Pi M2 Zero board

ping

On Fri, 1 Mar 2019 19:52:12 +0100
Andreas Kemnade <[email protected]> wrote:

> The Banana Pi M2 Zero board has an AP6212 BT+Wifi combo chip
> with broadcom internals attached to UART1 and some gpios.
> This addition is in line with similar boards
>
> Signed-off-by: Andreas Kemnade <[email protected]>
> ---
> changes in v2: remove pinctrl things
> arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
> index 1db2541135a7..57432d0500b1 100644
> --- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
> +++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
> @@ -69,6 +69,8 @@
> compatible = "mmc-pwrseq-simple";
> pinctrl-names = "default";
> reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
> + clocks = <&rtc 1>;
> + clock-names = "ext_clock";
> };
> };
>
> @@ -122,7 +124,20 @@
> &uart1 {
> pinctrl-names = "default";
> pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
> + uart-has-rtscts;
> status = "okay";
> +
> + bluetooth {
> + compatible = "brcm,bcm43438-bt";
> + clocks = <&rtc 1>;
> + clock-names = "lpo";
> + vbat-supply = <&reg_vcc3v3>;
> + vddio-supply = <&reg_vcc3v3>;
> + device-wakeup-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */
> + host-wakeup-gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */
> + shutdown-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
> + };
> +
> };
>
> &usb_otg {
> --
> 2.11.0
>
>


Attachments:
(No filename) (849.00 B)
OpenPGP digital signature

2019-04-08 08:15:20

by Maxime Ripard

[permalink] [raw]
Subject: Re: [PATCH v2] ARM: sun8i: h3: bluetooth for Banana Pi M2 Zero board

On Sun, Apr 07, 2019 at 10:23:21PM +0200, Andreas Kemnade wrote:
> ping
>
> On Fri, 1 Mar 2019 19:52:12 +0100
> Andreas Kemnade <[email protected]> wrote:
>
> > The Banana Pi M2 Zero board has an AP6212 BT+Wifi combo chip
> > with broadcom internals attached to UART1 and some gpios.
> > This addition is in line with similar boards
> >
> > Signed-off-by: Andreas Kemnade <[email protected]>

I never received that patch, who did you send it to?

Maxime

--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


Attachments:
(No filename) (566.00 B)
signature.asc (235.00 B)
Download all attachments

2019-04-08 08:31:45

by Chen-Yu Tsai

[permalink] [raw]
Subject: Re: [PATCH v2] ARM: sun8i: h3: bluetooth for Banana Pi M2 Zero board

On Sat, Mar 2, 2019 at 2:53 AM Andreas Kemnade <[email protected]> wrote:
>
> The Banana Pi M2 Zero board has an AP6212 BT+Wifi combo chip
> with broadcom internals attached to UART1 and some gpios.

^ Broadcom

> This addition is in line with similar boards

This sentence is unfinished.

>
> Signed-off-by: Andreas Kemnade <[email protected]>

ChenYu

2019-04-12 05:34:50

by Andreas Kemnade

[permalink] [raw]
Subject: Re: [PATCH v2] ARM: sun8i: h3: bluetooth for Banana Pi M2 Zero board

Hi,

On Mon, 8 Apr 2019 10:14:04 +0200
Maxime Ripard <[email protected]> wrote:

> On Sun, Apr 07, 2019 at 10:23:21PM +0200, Andreas Kemnade wrote:
> > ping
> >
> > On Fri, 1 Mar 2019 19:52:12 +0100
> > Andreas Kemnade <[email protected]> wrote:
> >
> > > The Banana Pi M2 Zero board has an AP6212 BT+Wifi combo chip
> > > with broadcom internals attached to UART1 and some gpios.
> > > This addition is in line with similar boards
> > >
> > > Signed-off-by: Andreas Kemnade <[email protected]>
>
> I never received that patch, who did you send it to?
>
Seems that I only have sent you the first version of that patch. Somehow
I must have left you out during copy and paste of adresses.

Regards,
Andreas


Attachments:
(No filename) (849.00 B)
OpenPGP digital signature