mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-13 10:24:51 +00:00
mediatek: use updated device tree overlay mechanism for BPi-R64
Use new device tree overlay mechanism for the BananaPi BPi-R64 board. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
ec50d2d366
commit
34bb33094a
@ -96,6 +96,8 @@ define Device/bananapi_bpi-r64
|
|||||||
KERNEL := kernel-bin | gzip
|
KERNEL := kernel-bin | gzip
|
||||||
KERNEL_INITRAMFS := kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb with-initrd | pad-to 128k
|
KERNEL_INITRAMFS := kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb with-initrd | pad-to 128k
|
||||||
IMAGE/sysupgrade.itb := append-kernel | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb external-static-with-rootfs | append-metadata
|
IMAGE/sysupgrade.itb := append-kernel | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb external-static-with-rootfs | append-metadata
|
||||||
|
DEVICE_COMPAT_VERSION := 1.1
|
||||||
|
DEVICE_COMPAT_MESSAGE := Device tree overlay mechanism needs bootloader update
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += bananapi_bpi-r64
|
TARGET_DEVICES += bananapi_bpi-r64
|
||||||
|
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
. /lib/functions.sh
|
||||||
|
. /lib/functions/uci-defaults.sh
|
||||||
|
|
||||||
|
board_config_update
|
||||||
|
|
||||||
|
case "$(board_name)" in
|
||||||
|
bananapi,bpi-r64)
|
||||||
|
ucidef_set_compat_version "1.1"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
board_config_flush
|
||||||
|
|
||||||
|
exit 0
|
@ -10,7 +10,7 @@
|
|||||||
gpios = <90 GPIO_ACTIVE_HIGH>;
|
gpios = <90 GPIO_ACTIVE_HIGH>;
|
||||||
output-high;
|
output-high;
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-sata.dts
|
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-sata.dtso
|
||||||
@@ -0,0 +1,31 @@
|
@@ -0,0 +1,31 @@
|
||||||
+/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
|
+/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
|
||||||
+
|
+
|
||||||
@ -44,7 +44,7 @@
|
|||||||
+ };
|
+ };
|
||||||
+};
|
+};
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-pcie1.dts
|
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-pcie1.dtso
|
||||||
@@ -0,0 +1,17 @@
|
@@ -0,0 +1,17 @@
|
||||||
+/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
|
+/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user