public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: maxime.ripard@bootlin.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 17/18] arm64: dts: allwinner: a64: NanoPi-A64: Add Wifi/Bluetooth chip
Date: Thu, 26 Jul 2018 09:44:32 +0200	[thread overview]
Message-ID: <20180726074432.ewkncrohmofpywji@flea> (raw)
In-Reply-To: <20180726003532.18751-18-andre.przywara@arm.com>

On Thu, Jul 26, 2018 at 01:35:31AM +0100, Andre Przywara wrote:
> The NanoPi-A64 has an on-board WiFi/Bluetooth combo chip, connected
> to the usual MMC1 and UART1. The AXP power line is the always-on
> VDD_SYS_3.3V, but it uses pin L2 to enable the regulator.
> As the actual WiFi driver is not in mainline Linux, it doesn't have a
> compatible string, so we omit this from the node.
> 
> 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   | 31 ++++++++++++++++++++++
>  1 file changed, 31 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 bd35a093e6cd..705e0b23589e 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,17 @@
>  	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 +111,24 @@
>  	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";
> +
> +	rtl8189etv: wifi at 1 {
> +		reg = <1>;
> +		interrupt-parent = <&r_pio>;
> +		interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */
> +		interrupt-names = "host-wake";
> +	};
> +};
> +
>  &ohci0 {
>  	status = "okay";
>  };
> @@ -222,6 +246,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";
> +};

Same thing here, if it has serdev support, then it should have a real
node here.

Maxime

-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180726/78506723/attachment.sig>

  reply	other threads:[~2018-07-26  7:44 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-26  0:35 [PATCH v2 00/18] arm64: dts: allwinner: A64 boards DT updates Andre Przywara
2018-07-26  0:35 ` [PATCH v2 01/18] arm64: dts: allwinner: a64: Add L2 cache nodes Andre Przywara
2018-07-26  0:35 ` [PATCH v2 02/18] arm64: dts: allwinner: a64: Add Pine64-LTS device tree file Andre Przywara
2018-07-26  0:35 ` [PATCH v2 03/18] arm64: dts: allwinner: a64: Orange Pi Win: Fix SD card node Andre Przywara
2018-07-26  7:34   ` Maxime Ripard
2018-07-26  0:35 ` [PATCH v2 04/18] arm64: dts: allwinner: a64: Orange Pi Win: Fix USB Andre Przywara
2018-07-26  7:37   ` Maxime Ripard
2018-07-26  0:35 ` [PATCH v2 05/18] arm64: dts: allwinner: a64: Orange Pi Win: Add Ethernet node Andre Przywara
2018-07-26  0:35 ` [PATCH v2 06/18] arm64: dts: allwinner: a64: Orange Pi Win: Add UARTs Andre Przywara
2018-07-26  7:39   ` Maxime Ripard
2018-07-26  7:42     ` [linux-sunxi] " Icenowy Zheng
2018-07-26  8:30       ` Andre Przywara
2018-07-26  9:32         ` Maxime Ripard
2018-07-26 13:04           ` Andre Przywara
2018-07-27 10:33             ` Andre Przywara
2018-07-27 13:24               ` Maxime Ripard
2018-07-26  0:35 ` [PATCH v2 07/18] arm64: dts: allwinner: a64: Orange Pi Win: Add LED node Andre Przywara
2018-07-26  0:35 ` [PATCH v2 08/18] arm64: dts: allwinner: a64: Orange Pi Win: Add SDIO node Andre Przywara
2018-07-26  0:35 ` [PATCH v2 09/18] arm64: dts: allwinner: a64: Orange Pi Win: Add SPI flash node Andre Przywara
2018-07-26  0:35 ` [PATCH v2 10/18] arm64: dts: allwinner: a64: Orange Pi Win: Mark CPU supply regulator Andre Przywara
2018-07-26  7:41   ` Maxime Ripard
2018-07-26  0:35 ` [PATCH v2 11/18] arm64: dts: allwinner: a64: Orange Pi Win: Add missing power rails Andre Przywara
2018-07-26  7:43   ` Maxime Ripard
2018-07-26  0:35 ` [PATCH v2 12/18] arm64: dts: allwinner: a64: Olinuxino: fix DRAM voltage Andre Przywara
2018-07-26  0:35 ` [PATCH v2 13/18] arm64: dts: allwinner: a64: Olinuxino: add Ethernet nodes Andre Przywara
2018-07-26  0:35 ` [PATCH v2 14/18] arm64: dts: allwinner: a64: Olinuxino: enable USB Andre Przywara
2018-07-26  0:35 ` [PATCH v2 15/18] arm64: dts: allwinner: a64: NanoPi-A64: Fix DCDC1 voltage Andre Przywara
2018-07-26  0:35 ` [PATCH v2 16/18] arm64: dts: allwinner: a64: NanoPi-A64: Add Ethernet Andre Przywara
2018-07-26 13:39   ` Sergey Suloev
2018-07-26 13:41     ` Icenowy Zheng
2018-07-26 14:06       ` Andre Przywara
2018-07-26 14:59         ` Icenowy Zheng
2018-07-26 15:25         ` Sergey Suloev
2018-07-26 15:31           ` Andre Przywara
2018-07-26 17:25             ` Sergey Suloev
2018-07-26 17:48               ` Andre Przywara
2018-07-26 13:45     ` Chen-Yu Tsai
2018-07-26  0:35 ` [PATCH v2 17/18] arm64: dts: allwinner: a64: NanoPi-A64: Add Wifi/Bluetooth chip Andre Przywara
2018-07-26  7:44   ` Maxime Ripard [this message]
2018-07-26  7:48   ` Chen-Yu Tsai
2018-07-26  9:05     ` Andre Przywara
2018-07-26  0:35 ` [PATCH v2 18/18] 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=20180726074432.ewkncrohmofpywji@flea \
    --to=maxime.ripard@bootlin.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox