mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 13:27:25 -04:00
arm64: dts: allwinner: pinephone: Add WiFi support
The PinePhone has a Realtek rtl8723cs WiFi module. On mainboard revisions 1.0 and 1.1, the reset input is always pulled high, so no power sequence is needed. On mainboard revision 1.2, the reset input is connected to PL2. Signed-off-by: Ondrej Jirman <megous@megous.com> Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://lore.kernel.org/r/20201105054135.24860-6-samuel@sholland.org
This commit is contained in:
committed by
Maxime Ripard
parent
a966ef6297
commit
4fcf6f3487
@@ -8,6 +8,11 @@
|
||||
/ {
|
||||
model = "Pine64 PinePhone (1.2)";
|
||||
compatible = "pine64,pinephone-1.2", "allwinner,sun50i-a64";
|
||||
|
||||
wifi_pwrseq: wifi-pwrseq {
|
||||
compatible = "mmc-pwrseq-simple";
|
||||
reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
|
||||
};
|
||||
};
|
||||
|
||||
&backlight {
|
||||
@@ -39,6 +44,10 @@ &lis3mdl {
|
||||
interrupts = <1 1 IRQ_TYPE_EDGE_RISING>; /* PB1 */
|
||||
};
|
||||
|
||||
&mmc1 {
|
||||
mmc-pwrseq = <&wifi_pwrseq>;
|
||||
};
|
||||
|
||||
&sgm3140 {
|
||||
enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
|
||||
flash-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
ethernet0 = &rtl8723cs;
|
||||
serial0 = &uart0;
|
||||
};
|
||||
|
||||
@@ -49,6 +50,13 @@ red {
|
||||
};
|
||||
};
|
||||
|
||||
reg_vbat_wifi: vbat-wifi {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-name = "vbat-wifi";
|
||||
};
|
||||
|
||||
sgm3140: led-controller {
|
||||
compatible = "sgmicro,sgm3140";
|
||||
vin-supply = <®_dcdc1>;
|
||||
@@ -216,6 +224,20 @@ &mmc0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&mmc1 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&mmc1_pins>;
|
||||
vmmc-supply = <®_vbat_wifi>;
|
||||
vqmmc-supply = <®_dldo4>;
|
||||
bus-width = <4>;
|
||||
non-removable;
|
||||
status = "okay";
|
||||
|
||||
rtl8723cs: wifi@1 {
|
||||
reg = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
&mmc2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&mmc2_pins>;
|
||||
|
||||
Reference in New Issue
Block a user