public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Nicolas Boulenguez <nicolas@debian.org>
To: u-boot@lists.denx.de
Subject: [PATCH] arm: dts: sun50i-a64-pinephone: fix random wifi mac address
Date: Sat, 20 Feb 2021 13:14:16 +0100	[thread overview]
Message-ID: <20210220121416.15215-5-nicolas@debian.org> (raw)
In-Reply-To: <20210220121416.15215-1-nicolas@debian.org>

From: Arnaud Ferraris <arnaud.ferraris@collabora.com>

The wi-fi mac-address was previously changing at every reboot.

---
 arch/arm/dts/sun50i-a64-pinephone.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/arm/dts/sun50i-a64-pinephone.dtsi b/arch/arm/dts/sun50i-a64-pinephone.dtsi
index 25150aba74..86d55e38d8 100644
--- a/arch/arm/dts/sun50i-a64-pinephone.dtsi
+++ b/arch/arm/dts/sun50i-a64-pinephone.dtsi
@@ -14,6 +14,7 @@
 / {
 	aliases {
 		serial0 = &uart0;
+		ethernet0 = &rtl8723cs;
 	};
 
 	backlight: backlight {
@@ -49,6 +50,13 @@
 		};
 	};
 
+	reg_vbat_wifi: vbat-wifi {
+		compatible = "regulator-fixed";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-name = "vbat-wifi";
+	};
+
 	speaker_amp: audio-amplifier {
 		compatible = "simple-audio-amplifier";
 		enable-gpios = <&pio 2 7 GPIO_ACTIVE_HIGH>; /* PC7 */
@@ -195,6 +203,20 @@
 	status = "okay";
 };
 
+&mmc1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc1_pins>;
+	vmmc-supply = <&reg_vbat_wifi>;
+	vqmmc-supply = <&reg_dldo4>;
+	bus-width = <4>;
+	non-removable;
+	status = "okay";
+
+	rtl8723cs: wifi at 1 {
+		reg = <1>;
+	};
+};
+
 &mmc2 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc2_pins>;
-- 
2.29.2

  parent reply	other threads:[~2021-02-20 12:14 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-20 12:14 [PATCH 2/4] pinephone_defconfig: reduce boot delay Nicolas Boulenguez
2021-02-20 12:14 ` [PATCH 20/20] Enable led on boot to notify user of boot status Nicolas Boulenguez
2021-02-25 15:15   ` André Przywara
2021-02-25 17:19     ` Peter Robinson
2021-02-20 12:14 ` [PATCH] sunxi: support asymmetric dual rank DRAM on A64/R40 Nicolas Boulenguez
2021-02-25 17:08   ` André Przywara
2021-02-20 12:14 ` [PATCH] sunxi-common: support loading compressed kernel images on ARMv8 Nicolas Boulenguez
2021-02-25 15:20   ` André Przywara
2021-03-31 15:39   ` Andre Przywara
2021-04-17 17:47     ` Samuel Holland
2021-04-17 18:23       ` Andre Przywara
2021-04-18  7:21         ` Samuel Holland
2021-06-03 10:10         ` Arnaud Ferraris
2021-02-20 12:14 ` Nicolas Boulenguez [this message]
2021-02-25 14:34   ` [PATCH] arm: dts: sun50i-a64-pinephone: fix random wifi mac address André Przywara
2021-02-25 17:02 ` [PATCH 2/4] pinephone_defconfig: reduce boot delay André Przywara
2021-02-25 20:58   ` Maxime Ripard
2021-02-28 15:22     ` Andre Przywara
2021-03-01 10:53       ` Nicolas Boulenguez
2021-03-13 14:56     ` Arnaud Ferraris

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=20210220121416.15215-5-nicolas@debian.org \
    --to=nicolas@debian.org \
    --cc=u-boot@lists.denx.de \
    /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