* [PATCH v2] arm64: allwinner: a64-amarula-relic: Enable AP6330 WiFi support
@ 2018-05-31 16:51 Jagan Teki
[not found] ` <20180531165109.8476-1-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Jagan Teki @ 2018-05-31 16:51 UTC (permalink / raw)
To: Maxime Ripard, Chen-Yu Tsai, Michael Trimarchi, Icenowy Zheng
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Jagan Teki
Enable AP6330 WiFi/BT combo chip on Amarula A64-Relic board:
- WiFi SDIO interface is connected to MMC1
- WiFi WL-PMU-EN pin connected to gpio PL2: attach to mmc-pwrseq
- WiFi WL-WAKE-AP pin connected to gpio PL3
- 32kHz external oscillator gate clock from RTC
Signed-off-by: Jagan Teki <jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
---
Changes for v2:
- Move external rtc clock nodes into main rtc node definition
of sun50i-a64.dtsi
.../dts/allwinner/sun50i-a64-amarula-relic.dts | 31 ++++++++++++++++++++++
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 3 +++
2 files changed, 34 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts
index ce4a256ff086..eac4793c8502 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts
@@ -21,12 +21,43 @@
chosen {
stdout-path = "serial0:115200n8";
};
+
+ wifi_pwrseq: wifi-pwrseq {
+ compatible = "mmc-pwrseq-simple";
+ clocks = <&rtc 1>;
+ clock-names = "ext_clock";
+ reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* WL-PMU-EN: PL2 */
+ };
};
&ehci0 {
status = "okay";
};
+&mmc1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc1_pins>;
+ vmmc-supply = <®_dcdc1>;
+ /*
+ * Schematic shows both dldo4 and eldo1 connected for vcc-io-wifi, but
+ * dldo4 connection shows DNP(Do Not Populate) and eldo1 connected with
+ * 0Ohm register to vcc-io-wifi so eldo1 is used.
+ */
+ vqmmc-supply = <®_eldo1>;
+ mmc-pwrseq = <&wifi_pwrseq>;
+ bus-width = <4>;
+ non-removable;
+ status = "okay";
+
+ brcmf: wifi@1 {
+ reg = <1>;
+ compatible = "brcm,bcm4329-fmac";
+ interrupt-parent = <&r_pio>;
+ interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* WL-WAKE-AP: PL3 */
+ interrupt-names = "host-wake";
+ };
+};
+
&mmc2 {
pinctrl-names = "default";
pinctrl-0 = <&mmc2_pins>;
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
index 1b2ef28c42bd..82516aec4153 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
@@ -634,6 +634,9 @@
reg = <0x01f00000 0x54>;
interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
+ clock-output-names = "rtc-osc32k", "rtc-osc32k-out";
+ clocks = <&osc32k>;
+ #clock-cells = <1>;
};
r_intc: interrupt-controller@1f00c00 {
--
2.14.3
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <20180531165109.8476-1-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>]
* Re: [PATCH v2] arm64: allwinner: a64-amarula-relic: Enable AP6330 WiFi support [not found] ` <20180531165109.8476-1-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> @ 2018-05-31 16:55 ` Christopher Obbard [not found] ` <CAP03XeoY8_-gG-2h8WP+3ZZFzxeyHERG=o7Y3Btk2svy5kco_Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2018-06-01 15:06 ` Maxime Ripard 1 sibling, 1 reply; 4+ messages in thread From: Christopher Obbard @ 2018-05-31 16:55 UTC (permalink / raw) To: jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/ Cc: Maxime Ripard, Chen-Yu Tsai, Michael Trimarchi, Icenowy Zheng, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, Linux ARM, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi Hi Jagan, I cannot find any information on this board online, so I am guessing it has not been released yet and you are developing software support now. Do you have any datasheet/overview document of the board? Rather than making a lot of noise on the various MLs, why not wait until all hardware has a driver written for it & bugs have been been smashed, then patch in one series? Christopher Obbard 64 Studio Ltd. On 31 May 2018 at 17:51, Jagan Teki <jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> wrote: > Enable AP6330 WiFi/BT combo chip on Amarula A64-Relic board: > - WiFi SDIO interface is connected to MMC1 > - WiFi WL-PMU-EN pin connected to gpio PL2: attach to mmc-pwrseq > - WiFi WL-WAKE-AP pin connected to gpio PL3 > - 32kHz external oscillator gate clock from RTC > > Signed-off-by: Jagan Teki <jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> > --- > Changes for v2: > - Move external rtc clock nodes into main rtc node definition > of sun50i-a64.dtsi > > .../dts/allwinner/sun50i-a64-amarula-relic.dts | 31 ++++++++++++++++++++++ > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 3 +++ > 2 files changed, 34 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts > index ce4a256ff086..eac4793c8502 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts > @@ -21,12 +21,43 @@ > chosen { > stdout-path = "serial0:115200n8"; > }; > + > + wifi_pwrseq: wifi-pwrseq { > + compatible = "mmc-pwrseq-simple"; > + clocks = <&rtc 1>; > + clock-names = "ext_clock"; > + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* WL-PMU-EN: PL2 */ > + }; > }; > > &ehci0 { > status = "okay"; > }; > > +&mmc1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc1_pins>; > + vmmc-supply = <®_dcdc1>; > + /* > + * Schematic shows both dldo4 and eldo1 connected for vcc-io-wifi, but > + * dldo4 connection shows DNP(Do Not Populate) and eldo1 connected with > + * 0Ohm register to vcc-io-wifi so eldo1 is used. > + */ > + vqmmc-supply = <®_eldo1>; > + mmc-pwrseq = <&wifi_pwrseq>; > + bus-width = <4>; > + non-removable; > + status = "okay"; > + > + brcmf: wifi@1 { > + reg = <1>; > + compatible = "brcm,bcm4329-fmac"; > + interrupt-parent = <&r_pio>; > + interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* WL-WAKE-AP: PL3 */ > + interrupt-names = "host-wake"; > + }; > +}; > + > &mmc2 { > pinctrl-names = "default"; > pinctrl-0 = <&mmc2_pins>; > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > index 1b2ef28c42bd..82516aec4153 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > @@ -634,6 +634,9 @@ > reg = <0x01f00000 0x54>; > interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, > <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; > + clock-output-names = "rtc-osc32k", "rtc-osc32k-out"; > + clocks = <&osc32k>; > + #clock-cells = <1>; > }; > > r_intc: interrupt-controller@1f00c00 { > -- > 2.14.3 > > -- > You received this message because you are subscribed to the Google Groups "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CAP03XeoY8_-gG-2h8WP+3ZZFzxeyHERG=o7Y3Btk2svy5kco_Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH v2] arm64: allwinner: a64-amarula-relic: Enable AP6330 WiFi support [not found] ` <CAP03XeoY8_-gG-2h8WP+3ZZFzxeyHERG=o7Y3Btk2svy5kco_Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2018-05-31 17:11 ` Jagan Teki 0 siblings, 0 replies; 4+ messages in thread From: Jagan Teki @ 2018-05-31 17:11 UTC (permalink / raw) To: Christopher Obbard Cc: Maxime Ripard, Chen-Yu Tsai, Michael Trimarchi, Icenowy Zheng, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, Linux ARM, linux-kernel, linux-sunxi On Thu, May 31, 2018 at 10:25 PM, Christopher Obbard <chris-ljUBoSVpJTpWk0Htik3J/w@public.gmane.org> wrote: > Hi Jagan, > > I cannot find any information on this board online, so I am guessing > it has not been released yet and you are developing software support > now. > > Do you have any datasheet/overview document of the board? It's an industrial board for a real product and not so different than what we supported a software for other A64 boards [1], I will update the wiki for the same in couple of days. [1] https://openedev.amarulasolutions.com/display/ODWIKI/A64 Jagan. -- Jagan Teki Senior Linux Kernel Engineer | Amarula Solutions U-Boot, Linux | Upstream Maintainer Hyderabad, India. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] arm64: allwinner: a64-amarula-relic: Enable AP6330 WiFi support [not found] ` <20180531165109.8476-1-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> 2018-05-31 16:55 ` Christopher Obbard @ 2018-06-01 15:06 ` Maxime Ripard 1 sibling, 0 replies; 4+ messages in thread From: Maxime Ripard @ 2018-06-01 15:06 UTC (permalink / raw) To: Jagan Teki Cc: Chen-Yu Tsai, Michael Trimarchi, Icenowy Zheng, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 690 bytes --] Hi, On Thu, May 31, 2018 at 10:21:09PM +0530, Jagan Teki wrote: > Enable AP6330 WiFi/BT combo chip on Amarula A64-Relic board: > - WiFi SDIO interface is connected to MMC1 > - WiFi WL-PMU-EN pin connected to gpio PL2: attach to mmc-pwrseq > - WiFi WL-WAKE-AP pin connected to gpio PL3 > - 32kHz external oscillator gate clock from RTC > > Signed-off-by: Jagan Teki <jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> > --- > Changes for v2: > - Move external rtc clock nodes into main rtc node definition > of sun50i-a64.dtsi Please make that a separate patch. Maxime -- Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-06-01 15:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-31 16:51 [PATCH v2] arm64: allwinner: a64-amarula-relic: Enable AP6330 WiFi support Jagan Teki
[not found] ` <20180531165109.8476-1-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
2018-05-31 16:55 ` Christopher Obbard
[not found] ` <CAP03XeoY8_-gG-2h8WP+3ZZFzxeyHERG=o7Y3Btk2svy5kco_Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-05-31 17:11 ` Jagan Teki
2018-06-01 15:06 ` Maxime Ripard
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox