All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: nanopi-neo-air: Add eMMC and bluetooth
@ 2022-01-04 19:37 ` Mikhail Rudenko
  0 siblings, 0 replies; 4+ messages in thread
From: Mikhail Rudenko @ 2022-01-04 19:37 UTC (permalink / raw)
  To: Rob Herring, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec
  Cc: Mikhail Rudenko, devicetree, linux-arm-kernel, linux-sunxi, linux-kernel

Enable the bluetooth part of AP6212 chip (connected to UART3) and the
onboard eMMC (connected to MMC2) for the NanoPi NEO Air board.

Signed-off-by: Mikhail Rudenko <mike.rudenko@gmail.com>
---
 arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
index be49eabbff94..cd3df12b6573 100644
--- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
+++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
@@ -103,12 +103,40 @@ brcmf: bcrmf@1 {
 	};
 };
 
+&mmc2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc2_8bit_pins>;
+	vmmc-supply = <&reg_vcc3v3>;
+	vqmmc-supply = <&reg_vcc3v3>;
+	bus-width = <8>;
+	non-removable;
+	status = "okay";
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
 
+&uart3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart3_pins>, <&uart3_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 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */
+		host-wakeup-gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA7 */
+		shutdown-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */
+	};
+};
+
 &usbphy {
 	/* USB VBUS is always on */
 	status = "okay";
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] ARM: dts: nanopi-neo-air: Add eMMC and bluetooth
@ 2022-01-04 19:37 ` Mikhail Rudenko
  0 siblings, 0 replies; 4+ messages in thread
From: Mikhail Rudenko @ 2022-01-04 19:37 UTC (permalink / raw)
  To: Rob Herring, Maxime Ripard, Chen-Yu Tsai, Jernej Skrabec
  Cc: Mikhail Rudenko, devicetree, linux-arm-kernel, linux-sunxi, linux-kernel

Enable the bluetooth part of AP6212 chip (connected to UART3) and the
onboard eMMC (connected to MMC2) for the NanoPi NEO Air board.

Signed-off-by: Mikhail Rudenko <mike.rudenko@gmail.com>
---
 arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
index be49eabbff94..cd3df12b6573 100644
--- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
+++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
@@ -103,12 +103,40 @@ brcmf: bcrmf@1 {
 	};
 };
 
+&mmc2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc2_8bit_pins>;
+	vmmc-supply = <&reg_vcc3v3>;
+	vqmmc-supply = <&reg_vcc3v3>;
+	bus-width = <8>;
+	non-removable;
+	status = "okay";
+};
+
 &uart0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart0_pa_pins>;
 	status = "okay";
 };
 
+&uart3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart3_pins>, <&uart3_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 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */
+		host-wakeup-gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA7 */
+		shutdown-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */
+	};
+};
+
 &usbphy {
 	/* USB VBUS is always on */
 	status = "okay";
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: (subset) [PATCH] ARM: dts: nanopi-neo-air: Add eMMC and bluetooth
  2022-01-04 19:37 ` Mikhail Rudenko
@ 2022-01-11  8:24   ` Maxime Ripard
  -1 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2022-01-11  8:24 UTC (permalink / raw)
  To: Maxime Ripard, Mikhail Rudenko, Chen-Yu Tsai, Rob Herring,
	Jernej Skrabec
  Cc: Maxime Ripard, devicetree, linux-sunxi, linux-arm-kernel, linux-kernel

On Tue, 4 Jan 2022 22:37:18 +0300, Mikhail Rudenko wrote:
> Enable the bluetooth part of AP6212 chip (connected to UART3) and the
> onboard eMMC (connected to MMC2) for the NanoPi NEO Air board.
> 
> 

Applied to local tree (sunxi/dt-for-5.18).

Thanks!
Maxime

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: (subset) [PATCH] ARM: dts: nanopi-neo-air: Add eMMC and bluetooth
@ 2022-01-11  8:24   ` Maxime Ripard
  0 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2022-01-11  8:24 UTC (permalink / raw)
  To: Maxime Ripard, Mikhail Rudenko, Chen-Yu Tsai, Rob Herring,
	Jernej Skrabec
  Cc: Maxime Ripard, devicetree, linux-sunxi, linux-arm-kernel, linux-kernel

On Tue, 4 Jan 2022 22:37:18 +0300, Mikhail Rudenko wrote:
> Enable the bluetooth part of AP6212 chip (connected to UART3) and the
> onboard eMMC (connected to MMC2) for the NanoPi NEO Air board.
> 
> 

Applied to local tree (sunxi/dt-for-5.18).

Thanks!
Maxime

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-11  8:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 19:37 [PATCH] ARM: dts: nanopi-neo-air: Add eMMC and bluetooth Mikhail Rudenko
2022-01-04 19:37 ` Mikhail Rudenko
2022-01-11  8:24 ` (subset) " Maxime Ripard
2022-01-11  8:24   ` Maxime Ripard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.