From: Hans de Goede <hdegoede@redhat.com>
To: Chen-Yu Tsai <wens@csie.org>,
Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: devicetree <devicetree@vger.kernel.org>,
linux-arm-kernel@lists.infradead.org,
Hans de Goede <hdegoede@redhat.com>
Subject: [PATCH 1/3] ARM: dts: sun8i: Add dt node for esp8089 wifi chip on polaroid-mid2407
Date: Fri, 26 Aug 2016 16:52:34 +0200 [thread overview]
Message-ID: <20160826145236.30210-2-hdegoede@redhat.com> (raw)
In-Reply-To: <20160826145236.30210-1-hdegoede@redhat.com>
The polaroid-mid2407 tablet has an esp8089 wifi chip,
add a dt node describing it.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
.../boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts | 42 ++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts b/arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts
index e300442..4789aac 100644
--- a/arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts
+++ b/arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dts
@@ -47,4 +47,46 @@
/ {
model = "Polaroid MID2407PXE03 tablet";
compatible = "polaroid,mid2407pxe03", "allwinner,sun8i-a23";
+
+ aliases {
+ ethernet0 = &esp8089;
+ };
+
+ wifi_pwrseq: wifi_pwrseq {
+ compatible = "mmc-pwrseq-simple";
+ pinctrl-names = "default";
+ pinctrl-0 = <&wifi_pwrseq_pin_mid2407>;
+ reset-gpios = <&r_pio 0 6 GPIO_ACTIVE_LOW>; /* PL6 */
+ /* The esp8089 needs 200 ms after driving wifi-en high */
+ post-power-on-delay-ms = <200>;
+ };
+};
+
+&mmc1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc1_pins_a>;
+ vmmc-supply = <®_dldo1>;
+ mmc-pwrseq = <&wifi_pwrseq>;
+ bus-width = <4>;
+ non-removable;
+ status = "okay";
+
+ esp8089: sdio_wifi@1 {
+ compatible = "esp,esp8089";
+ reg = <1>;
+ esp,crystal-26M-en = <2>;
+ };
+};
+
+&mmc1_pins_a {
+ allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
+};
+
+&r_pio {
+ wifi_pwrseq_pin_mid2407: wifi_pwrseq_pin@0 {
+ allwinner,pins = "PL6";
+ allwinner,function = "gpio_out";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
};
--
2.9.3
next prev parent reply other threads:[~2016-08-26 14:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-26 14:52 [PATCH 0/3] ARM: dts: sun8i: Add dt nodes for sdio wifi Hans de Goede
2016-08-26 14:52 ` Hans de Goede [this message]
[not found] ` <20160826145236.30210-2-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-26 22:35 ` [PATCH 1/3] ARM: dts: sun8i: Add dt node for esp8089 wifi chip on polaroid-mid2407 Maxime Ripard
2016-08-26 14:52 ` [PATCH 2/3] ARM: dts: sun8i: Add dt node for esp8089 wifi chip on polaroid-mid2809 Hans de Goede
2016-08-26 22:36 ` Maxime Ripard
2016-08-26 14:52 ` [PATCH 3/3] ARM: dts: sun8i-q8-common: Add support for SDIO wifi controllers Hans de Goede
2016-08-29 6:56 ` Maxime Ripard
2016-08-29 9:46 ` Hans de Goede
2016-09-01 20:37 ` Maxime Ripard
2016-09-03 11:33 ` Hans de Goede
[not found] ` <1efbd549-a05b-713e-cbe2-7a5458beaaeb-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-09-05 19:58 ` Maxime Ripard
2016-08-26 15:00 ` [PATCH 0/3] ARM: dts: sun8i: Add dt nodes for sdio wifi Icenowy Zheng
2016-08-26 15:52 ` Hans de Goede
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=20160826145236.30210-2-hdegoede@redhat.com \
--to=hdegoede@redhat.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=maxime.ripard@free-electrons.com \
--cc=wens@csie.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;
as well as URLs for NNTP newsgroup(s).