update
This commit is contained in:
parent
170dad2e99
commit
b1cce2d02f
@ -2,23 +2,21 @@ diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
|
|||||||
index 72d6696c..6126a060 100644
|
index 72d6696c..6126a060 100644
|
||||||
--- a/arch/arm/dts/Makefile
|
--- a/arch/arm/dts/Makefile
|
||||||
+++ b/arch/arm/dts/Makefile
|
+++ b/arch/arm/dts/Makefile
|
||||||
@@ -655,7 +655,8 @@ dtb-$(CONFIG_MACH_SUN50I_H6) += \
|
@@ -655,7 +655,7 @@ dtb-$(CONFIG_MACH_SUN50I_H6) += \
|
||||||
sun50i-h6-pine-h64-model-b.dtb \
|
sun50i-h6-pine-h64-model-b.dtb \
|
||||||
sun50i-h6-tanix-tx6.dtb
|
sun50i-h6-tanix-tx6.dtb
|
||||||
dtb-$(CONFIG_MACH_SUN50I_H616) += \
|
dtb-$(CONFIG_MACH_SUN50I_H616) += \
|
||||||
- sun50i-h616-orangepi-zero2.dtb
|
- sun50i-h616-orangepi-zero2.dtb
|
||||||
+ sun50i-h616-orangepi-zero2.dtb \
|
|
||||||
+ sun50i-h616-mangopi-mcore.dtb \
|
|
||||||
+ sun50i-h618-bananapi-m4b.dtb
|
+ sun50i-h618-bananapi-m4b.dtb
|
||||||
dtb-$(CONFIG_MACH_SUN50I) += \
|
dtb-$(CONFIG_MACH_SUN50I) += \
|
||||||
sun50i-a64-amarula-relic.dtb \
|
sun50i-a64-amarula-relic.dtb \
|
||||||
sun50i-a64-bananapi-m64.dtb \
|
sun50i-a64-bananapi-m64.dtb \
|
||||||
diff --git a/arch/arm/dts/sun50i-h616-mangopi-mcore.dts b/arch/arm/dts/sun50i-h616-mangopi-mcore.dts
|
diff --git a/arch/arm/dts/sun50i-h618-bananapi-m4b.dts b/arch/arm/dts/sun50i-h618-bananapi-m4b.dts
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 00000000..177bcc74
|
index 00000000..177bcc74
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/arch/arm/dts/sun50i-h616-mangopi-mcore.dts
|
+++ b/arch/arm/dts/sun50i-h618-bananapi-m4b.dts
|
||||||
@@ -0,0 +1,242 @@
|
@@ -0,0 +1,196 @@
|
||||||
+// SPDX-License-Identifier: (GPL-2.0+ or MIT)
|
+// SPDX-License-Identifier: (GPL-2.0+ or MIT)
|
||||||
+/*
|
+/*
|
||||||
+ * Copyright (C) 2020 Arm Ltd.
|
+ * Copyright (C) 2020 Arm Ltd.
|
||||||
@ -33,11 +31,11 @@ index 00000000..177bcc74
|
|||||||
+#include <dt-bindings/leds/common.h>
|
+#include <dt-bindings/leds/common.h>
|
||||||
+
|
+
|
||||||
+/ {
|
+/ {
|
||||||
+ model = "MangoPi Mcore";
|
+ model = "BananaPi M4 Berry";
|
||||||
+ compatible = "mgcc,mangopi-mcore", "allwinner,sun50i-h616";
|
+ compatible = "BiPai,bananapi-m4b", "allwinner,sun50i-h618";
|
||||||
+
|
+
|
||||||
+ aliases {
|
+ aliases {
|
||||||
+ ethernet0 = &emac1;
|
+ ethernet0 = &emac0;
|
||||||
+ serial0 = &uart0;
|
+ serial0 = &uart0;
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
@ -94,7 +92,7 @@ index 00000000..177bcc74
|
|||||||
+/* USB 2 & 3 are on headers only. */
|
+/* USB 2 & 3 are on headers only. */
|
||||||
+
|
+
|
||||||
+&emac1 {
|
+&emac1 {
|
||||||
+ pinctrl-names = "default";
|
+ pinctrl-names = "default";
|
||||||
+ pinctrl-0 = <&rmii_pins>;
|
+ pinctrl-0 = <&rmii_pins>;
|
||||||
+ phy-mode = "rmii";
|
+ phy-mode = "rmii";
|
||||||
+ phy-handle = <&rmii_phy>;
|
+ phy-handle = <&rmii_phy>;
|
||||||
@ -104,15 +102,14 @@ index 00000000..177bcc74
|
|||||||
+ status = "okay";
|
+ status = "okay";
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
+&mdio1 {
|
+&mdio0 {
|
||||||
+ rmii_phy: ethernet-phy@16 {
|
+ ext_rgmii_phy: ethernet-phy@1 {
|
||||||
+ compatible = "ethernet-phy-ieee802.3-c22";
|
+ compatible = "ethernet-phy-ieee802.3-c22";
|
||||||
+ reg = <16>;
|
+ reg = <1>;
|
||||||
+ };
|
+ };
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
+&mmc0 {
|
+&mmc0 {
|
||||||
+ vmmc-supply = <®_dcdce>;
|
|
||||||
+ cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
+ cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
||||||
+ bus-width = <4>;
|
+ bus-width = <4>;
|
||||||
+ status = "okay";
|
+ status = "okay";
|
||||||
@ -126,109 +123,64 @@ index 00000000..177bcc74
|
|||||||
+ status = "okay";
|
+ status = "okay";
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
+&r_rsb {
|
+&r_i2c {
|
||||||
+ status = "okay";
|
+ status = "okay";
|
||||||
+
|
+
|
||||||
+ axp305: pmic@745 {
|
+ axp313a: pmic@36 {
|
||||||
+ compatible = "x-powers,axp305", "x-powers,axp805",
|
+ compatible = "x-powers,axp313a";
|
||||||
+ "x-powers,axp806";
|
+ status = "okay";
|
||||||
+ interrupt-controller;
|
+ reg = <0x36>;
|
||||||
+ #interrupt-cells = <1>;
|
+ wakeup-source;
|
||||||
+ reg = <0x745>;
|
|
||||||
+
|
+
|
||||||
+ x-powers,self-working-mode;
|
+ standby_param: standby_param {
|
||||||
+ vina-supply = <®_vcc5v>;
|
+ vcc-dram = <0x4>;
|
||||||
+ vinb-supply = <®_vcc5v>;
|
+ };
|
||||||
+ vinc-supply = <®_vcc5v>;
|
+
|
||||||
+ vind-supply = <®_vcc5v>;
|
+ regulators{
|
||||||
+ vine-supply = <®_vcc5v>;
|
+ reg_dcdc1: dcdc1 {
|
||||||
+ aldoin-supply = <®_vcc5v>;
|
+ regulator-name = "axp313a-dcdc1";
|
||||||
+ bldoin-supply = <®_vcc5v>;
|
+ regulator-min-microvolt = <500000>;
|
||||||
+ cldoin-supply = <®_vcc5v>;
|
+ regulator-max-microvolt = <3400000>;
|
||||||
|
+ regulator-step-delay-us = <25>;
|
||||||
|
+ regulator-final-delay-us = <50>;
|
||||||
|
+ regulator-always-on;
|
||||||
|
+ };
|
||||||
|
+
|
||||||
|
+ reg_dcdc2: dcdc2 {
|
||||||
|
+ regulator-name = "axp313a-dcdc2";
|
||||||
|
+ regulator-min-microvolt = <500000>;
|
||||||
|
+ regulator-max-microvolt = <1540000>;
|
||||||
|
+ regulator-step-delay-us = <25>;
|
||||||
|
+ regulator-final-delay-us = <50>;
|
||||||
|
+ regulator-ramp-delay = <200>;
|
||||||
|
+ regulator-always-on;
|
||||||
|
+ };
|
||||||
|
+
|
||||||
|
+ reg_dcdc3: dcdc3 {
|
||||||
|
+ regulator-name = "axp313a-dcdc3";
|
||||||
|
+ regulator-min-microvolt = <1100000>;
|
||||||
|
+ regulator-max-microvolt = <1100000>;
|
||||||
|
+ regulator-step-delay-us = <25>;
|
||||||
|
+ regulator-final-delay-us = <50>;
|
||||||
|
+ regulator-always-on;
|
||||||
|
+ };
|
||||||
+
|
+
|
||||||
+ regulators {
|
|
||||||
+ reg_aldo1: aldo1 {
|
+ reg_aldo1: aldo1 {
|
||||||
+ regulator-always-on;
|
+ regulator-name = "axp313a-aldo1";
|
||||||
+ regulator-min-microvolt = <3300000>;
|
|
||||||
+ regulator-max-microvolt = <3300000>;
|
|
||||||
+ regulator-name = "vcc-sys";
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ reg_aldo2: aldo2 { /* 3.3V on headers */
|
|
||||||
+ regulator-always-on;
|
|
||||||
+ regulator-min-microvolt = <3300000>;
|
|
||||||
+ regulator-max-microvolt = <3300000>;
|
|
||||||
+ regulator-name = "vcc3v3-ext";
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ reg_aldo3: aldo3 { /* 3.3V on headers */
|
|
||||||
+ regulator-always-on;
|
|
||||||
+ regulator-min-microvolt = <3300000>;
|
|
||||||
+ regulator-max-microvolt = <3300000>;
|
|
||||||
+ regulator-name = "vcc3v3-ext2";
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ reg_bldo1: bldo1 {
|
|
||||||
+ regulator-always-on;
|
|
||||||
+ regulator-min-microvolt = <1800000>;
|
+ regulator-min-microvolt = <1800000>;
|
||||||
+ regulator-max-microvolt = <1800000>;
|
+ regulator-max-microvolt = <1800000>;
|
||||||
+ regulator-name = "vcc1v8";
|
+ regulator-step-delay-us = <25>;
|
||||||
+ };
|
+ regulator-final-delay-us = <50>;
|
||||||
+
|
|
||||||
+ bldo2 {
|
|
||||||
+ /* unused */
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ bldo3 {
|
|
||||||
+ /* unused */
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ bldo4 {
|
|
||||||
+ /* unused */
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ cldo1 {
|
|
||||||
+ /* reserved */
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ cldo2 {
|
|
||||||
+ /* unused */
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ cldo3 {
|
|
||||||
+ /* unused */
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ reg_dcdca: dcdca {
|
|
||||||
+ regulator-always-on;
|
+ regulator-always-on;
|
||||||
+ regulator-min-microvolt = <810000>;
|
|
||||||
+ regulator-max-microvolt = <1080000>;
|
|
||||||
+ regulator-name = "vdd-cpu";
|
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
+ reg_dcdcc: dcdcc {
|
+ reg_dldo1: dldo1 {
|
||||||
+ regulator-always-on;
|
+ regulator-name = "axp313a-dldo1";
|
||||||
+ regulator-min-microvolt = <810000>;
|
|
||||||
+ regulator-max-microvolt = <1080000>;
|
|
||||||
+ regulator-name = "vdd-gpu-sys";
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ reg_dcdcd: dcdcd {
|
|
||||||
+ regulator-always-on;
|
|
||||||
+ regulator-min-microvolt = <1500000>;
|
|
||||||
+ regulator-max-microvolt = <1500000>;
|
|
||||||
+ regulator-name = "vdd-dram";
|
|
||||||
+ };
|
|
||||||
+
|
|
||||||
+ reg_dcdce: dcdce {
|
|
||||||
+ regulator-boot-on;
|
|
||||||
+ regulator-min-microvolt = <3300000>;
|
+ regulator-min-microvolt = <3300000>;
|
||||||
+ regulator-max-microvolt = <3300000>;
|
+ regulator-max-microvolt = <3300000>;
|
||||||
+ regulator-name = "vcc-eth-mmc";
|
+ regulator-step-delay-us = <25>;
|
||||||
+ };
|
+ regulator-final-delay-us = <50>;
|
||||||
+
|
+ regulator-always-on;
|
||||||
+ sw {
|
|
||||||
+ /* unused */
|
|
||||||
+ };
|
+ };
|
||||||
+ };
|
+ };
|
||||||
+ };
|
+ };
|
||||||
@ -261,6 +213,7 @@ index 00000000..177bcc74
|
|||||||
+ usb1_vbus-supply = <®_usb1_vbus>;
|
+ usb1_vbus-supply = <®_usb1_vbus>;
|
||||||
+ status = "okay";
|
+ status = "okay";
|
||||||
+};
|
+};
|
||||||
|
|
||||||
diff --git a/arch/arm/dts/sun50i-h616.dtsi b/arch/arm/dts/sun50i-h616.dtsi
|
diff --git a/arch/arm/dts/sun50i-h616.dtsi b/arch/arm/dts/sun50i-h616.dtsi
|
||||||
index dd4d2f31..84b80156 100644
|
index dd4d2f31..84b80156 100644
|
||||||
--- a/arch/arm/dts/sun50i-h616.dtsi
|
--- a/arch/arm/dts/sun50i-h616.dtsi
|
||||||
@ -416,15 +369,15 @@ index c4f69966..38f9a6ba 100644
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
diff --git a/configs/mangopi_mcore_defconfig b/configs/mangopi_mcore_defconfig
|
diff --git a/configs/bananapi_m4b_defconfig b/configs/bananapi_m4b_defconfig
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 00000000..20cbdbb1
|
index 00000000..20cbdbb1
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/configs/mangopi_mcore_defconfig
|
+++ b/configs/bananapi_m4b_defconfig
|
||||||
@@ -0,0 +1,16 @@
|
@@ -0,0 +1,16 @@
|
||||||
+CONFIG_ARM=y
|
+CONFIG_ARM=y
|
||||||
+CONFIG_ARCH_SUNXI=y
|
+CONFIG_ARCH_SUNXI=y
|
||||||
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-h616-mangopi-mcore"
|
+CONFIG_DEFAULT_DEVICE_TREE="sun50i-h618-bananapi-m4b"
|
||||||
+CONFIG_SPL=y
|
+CONFIG_SPL=y
|
||||||
+CONFIG_DRAM_SUN50I_H616_WRITE_LEVELING=y
|
+CONFIG_DRAM_SUN50I_H616_WRITE_LEVELING=y
|
||||||
+CONFIG_DRAM_SUN50I_H616_READ_CALIBRATION=y
|
+CONFIG_DRAM_SUN50I_H616_READ_CALIBRATION=y
|
||||||
@ -3,7 +3,7 @@ image bootfs.vfat {
|
|||||||
files = {
|
files = {
|
||||||
"boot.scr",
|
"boot.scr",
|
||||||
"Image",
|
"Image",
|
||||||
"sun50i-h616-mangopi-mcore.dtb"
|
"sun50i-h618-bananapi-m4b.dtb"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
size = 32M
|
size = 32M
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user