105 lines
2.2 KiB
Plaintext
105 lines
2.2 KiB
Plaintext
diff --git a/arch/arm/boot/dts/sun7i-a20-bananapi.dts b/arch/arm/boot/dts/sun7i-a20-bananapi.dts
|
|
index fd7594f..197d521 100644
|
|
--- a/arch/arm/boot/dts/sun7i-a20-bananapi.dts
|
|
+++ b/arch/arm/boot/dts/sun7i-a20-bananapi.dts
|
|
@@ -51,7 +51,7 @@
|
|
#include <dt-bindings/pinctrl/sun4i-a10.h>
|
|
|
|
/ {
|
|
- model = "LeMaker Banana Pi";
|
|
+ model = "Banana Pi";
|
|
compatible = "lemaker,bananapi", "allwinner,sun7i-a20";
|
|
|
|
aliases {
|
|
@@ -72,6 +72,7 @@
|
|
green {
|
|
label = "bananapi:green:usr";
|
|
gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>;
|
|
+ linux,default-trigger = "mmc0";
|
|
};
|
|
};
|
|
|
|
@@ -86,12 +87,29 @@
|
|
enable-active-high;
|
|
gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
+
|
|
+ reg_vmmc3: vmmc3 {
|
|
+ compatible = "regulator-fixed";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&vmmc3_pin_bananapi>;
|
|
+ regulator-name = "vmmc3";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-always-on;
|
|
+ regulator-boot-on;
|
|
+ enable-active-high;
|
|
+ gpio = <&pio 7 22 GPIO_ACTIVE_HIGH>;
|
|
+ };
|
|
};
|
|
|
|
&ahci {
|
|
status = "okay";
|
|
};
|
|
|
|
+&codec {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&cpu0 {
|
|
cpu-supply = <®_dcdc2>;
|
|
operating-points = <
|
|
@@ -156,11 +174,37 @@
|
|
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bananapi>;
|
|
vmmc-supply = <®_vcc3v3>;
|
|
bus-width = <4>;
|
|
- cd-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */
|
|
+ cd-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 and PH22 for Wifi*/
|
|
cd-inverted;
|
|
status = "okay";
|
|
+
|
|
};
|
|
|
|
+
|
|
+&mmc3 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&mmc3_pins_a>;
|
|
+ vmmc-supply = <®_vmmc3>;
|
|
+ bus-width = <4>;
|
|
+ non-removable;
|
|
+ enable-sdio-wakeup;
|
|
+ status = "okay";
|
|
+
|
|
+/*
|
|
+ brcmf: bcrmf@1 {
|
|
+ reg = <1>;
|
|
+ compatible = "brcm,bcm4329-fmac";
|
|
+ interrupt-parent = <&pio>;
|
|
+ interrupts = <15 8>;
|
|
+ interrupt-names = "host-wake";
|
|
+ };
|
|
+*/
|
|
+};
|
|
+
|
|
+
|
|
+
|
|
&ohci0 {
|
|
status = "okay";
|
|
};
|
|
@@ -194,7 +238,12 @@
|
|
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
};
|
|
-
|
|
+ vmmc3_pin_bananapi: vmmc3_pin@0 {
|
|
+ allwinner,pins = "PH22";
|
|
+ allwinner,function = "gpio_out";
|
|
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
|
|
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
|
+ };
|
|
led_pins_bananapi: led_pins@0 {
|
|
allwinner,pins = "PH24";
|
|
allwinner,function = "gpio_out";
|