All of lore.kernel.org
 help / color / mirror / Atom feed
From: andre.przywara@arm.com (Andre Przywara)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 09/10] arm64: dts: allwinner: a64: NanoPi-A64: Add Wifi/Bluetooth chip
Date: Fri,  6 Jul 2018 09:52:09 +0100	[thread overview]
Message-ID: <20180706085210.17952-10-andre.przywara@arm.com> (raw)
In-Reply-To: <20180706085210.17952-1-andre.przywara@arm.com>

The NanoPi-A64 has an on-board WiFi/Bluetooth combo chip, connected
to the usual MMC1 and UART1. The power is provided by the always-on
VCC_SYS_3.3V, but it uses pin L2 to enable the regulator.

Add the respective nodes to the DT to make it usable.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 .../boot/dts/allwinner/sun50i-a64-nanopi-a64.dts   | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
index 0439cff685d6..bb3ba7709dee 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts
@@ -53,11 +53,18 @@
 	aliases {
 		ethernet0 = &emac;
 		serial0 = &uart0;
+		serial1 = &uart1;
 	};
 
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+        wifi_pwrseq: wifi_pwrseq {
+                compatible = "mmc-pwrseq-simple";
+                reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
+        };
+
 };
 
 &ehci0 {
@@ -105,6 +112,25 @@
 	status = "okay";
 };
 
+&mmc1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc1_pins>;
+	vmmc-supply = <&reg_dcdc1>;
+	vqmmc-supply = <&reg_dldo4>;
+	mmc-pwrseq = <&wifi_pwrseq>;
+	bus-width = <4>;
+	non-removable;
+	status = "okay";
+
+	brcmf: wifi at 1 {
+		reg = <1>;
+		compatible = "brcm,bcm4329-fmac";
+		interrupt-parent = <&r_pio>;
+		interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */
+		interrupt-names = "host-wake";
+	};
+};
+
 &ohci0 {
 	status = "okay";
 };
@@ -229,6 +255,13 @@
 	status = "okay";
 };
 
+/* Connected to the Bluetooth UART, with hardware handshake pins */
+&uart1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
+	status = "okay";
+};
+
 &usbphy {
 	status = "okay";
 };
-- 
2.14.4

  parent reply	other threads:[~2018-07-06  8:52 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-06  8:52 [PATCH 00/10] arm64: dts: allwinner: A64 boards DT updates Andre Przywara
2018-07-06  8:52 ` [PATCH 01/10] arm64: dts: allwinner: a64: Add L2 cache nodes Andre Przywara
2018-07-06  8:52 ` [PATCH 02/10] arm64: dts: allwinner: a64: Add Pine64-LTS device tree file Andre Przywara
2018-07-06  8:52 ` [PATCH 03/10] arm64: dts: allwinner: a64: Olinuxino: fix DRAM voltage Andre Przywara
2018-07-06  8:55   ` [linux-sunxi] " Icenowy Zheng
2018-07-06  9:05     ` Andre Przywara
2018-07-06 14:58   ` Martin Lucina
2018-07-06  8:52 ` [PATCH 04/10] arm64: dts: allwinner: a64: Olinuxino: add Ethernet nodes Andre Przywara
2018-07-06 15:01   ` Martin Lucina
2018-07-06  8:52 ` [PATCH 05/10] arm64: dts: allwinner: a64: Olinuxino: enable USB Andre Przywara
2018-07-06 15:04   ` Martin Lucina
2018-07-06 15:35     ` Andre Przywara
2018-07-06 15:36       ` [linux-sunxi] " Icenowy Zheng
2018-07-06 15:46         ` Andre Przywara
2018-07-06 15:50           ` Icenowy Zheng
2018-07-06 16:17             ` Andre Przywara
2018-07-09 10:15               ` Martin Lucina
2018-07-09 11:30                 ` Andre Przywara
2018-07-09 11:54                   ` Martin Lucina
2018-07-09 13:43                     ` Andre Przywara
2018-07-09 14:49                       ` Martin Lucina
2018-07-09 15:27                         ` Andre Przywara
2018-07-06  8:52 ` [PATCH 06/10] arm64: dts: allwinner: a64: NanoPi-A64: Fix DCDC1 voltage Andre Przywara
2018-07-06  8:52 ` [PATCH 07/10] arm64: dts: allwinner: a64: NanoPi-A64: Add Ethernet Andre Przywara
2018-07-06  8:52 ` [PATCH 08/10] arm64: dts: allwinner: a64: NanoPi-A64: Fix PortE voltage Andre Przywara
2018-07-06  9:03   ` Icenowy Zheng
2018-07-06  9:39     ` Andre Przywara
2018-07-06  9:45       ` Chen-Yu Tsai
2018-07-06  8:52 ` Andre Przywara [this message]
2018-07-06  9:04   ` [PATCH 09/10] arm64: dts: allwinner: a64: NanoPi-A64: Add Wifi/Bluetooth chip Icenowy Zheng
2018-07-06  9:38     ` Andre Przywara
2018-07-06 14:23   ` Sergey Suloev
2018-07-06 14:49     ` Andre Przywara
2018-07-06 14:49       ` [linux-sunxi] " Icenowy Zheng
2018-07-06 21:33       ` Sergey Suloev
2018-07-06  8:52 ` [PATCH 10/10] arm64: dts: allwinner: a64: NanoPi-A64: Add blue status LED Andre Przywara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180706085210.17952-10-andre.przywara@arm.com \
    --to=andre.przywara@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.