mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
6368ed1ae5
Use the new fitblk driver on the BananaPi R2 as well as UniElec U7623. Introduce boot device selection for fitblk's /chosen/rootdisk handle, similar to how it is already done on MT7622, MT7986 and MT7988. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
54 lines
1015 B
Diff
54 lines
1015 B
Diff
--- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
|
|
+++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
|
|
@@ -27,6 +27,8 @@
|
|
chosen {
|
|
stdout-path = "serial2:115200n8";
|
|
bootargs = "earlycon=uart8250,mmio32,0x11004000 console=ttyS2,115200n8 console=tty1";
|
|
+ rootdisk-emmc = <&emmc_rootdisk>;
|
|
+ rootdisk-sd = <&sd_rootdisk>;
|
|
};
|
|
|
|
connector {
|
|
@@ -315,6 +317,20 @@
|
|
vmmc-supply = <®_3p3v>;
|
|
vqmmc-supply = <®_1p8v>;
|
|
non-removable;
|
|
+
|
|
+ card@0 {
|
|
+ compatible = "mmc-card";
|
|
+ reg = <0>;
|
|
+
|
|
+ block {
|
|
+ compatible = "block-device";
|
|
+ partitions {
|
|
+ emmc_rootdisk: block-partition-fit {
|
|
+ partno = <3>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
&mmc1 {
|
|
@@ -328,6 +344,20 @@
|
|
cd-gpios = <&pio 261 GPIO_ACTIVE_LOW>;
|
|
vmmc-supply = <®_3p3v>;
|
|
vqmmc-supply = <®_3p3v>;
|
|
+
|
|
+ card@0 {
|
|
+ compatible = "mmc-card";
|
|
+ reg = <0>;
|
|
+
|
|
+ block {
|
|
+ compatible = "block-device";
|
|
+ partitions {
|
|
+ sd_rootdisk: block-partition-fit {
|
|
+ partno = <3>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
&mt6323_leds {
|