2675aa2589abd06764c58346099c6354ab90cdb1
[openwrt/staging/981213.git] / target / linux / mediatek / patches-6.6 / 164-dts-mt7623-bpi-r2-rootdisk-for-fitblk.patch
1 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
2 +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
3 @@ -26,7 +26,9 @@
4
5 chosen {
6 stdout-path = "serial2:115200n8";
7 - bootargs = "earlycon=uart8250,mmio32,0x11004000 console=ttyS2,115200n8 console=tty1";
8 + bootargs = "root=/dev/fit0 earlycon=uart8250,mmio32,0x11004000 console=ttyS2,115200n8 console=tty1";
9 + rootdisk-emmc = <&emmc_rootdisk>;
10 + rootdisk-sd = <&sd_rootdisk>;
11 };
12
13 connector {
14 @@ -315,6 +317,20 @@
15 vmmc-supply = <&reg_3p3v>;
16 vqmmc-supply = <&reg_1p8v>;
17 non-removable;
18 +
19 + card@0 {
20 + compatible = "mmc-card";
21 + reg = <0>;
22 +
23 + block {
24 + compatible = "block-device";
25 + partitions {
26 + emmc_rootdisk: block-partition-fit {
27 + partno = <3>;
28 + };
29 + };
30 + };
31 + };
32 };
33
34 &mmc1 {
35 @@ -328,6 +344,20 @@
36 cd-gpios = <&pio 261 GPIO_ACTIVE_LOW>;
37 vmmc-supply = <&reg_3p3v>;
38 vqmmc-supply = <&reg_3p3v>;
39 +
40 + card@0 {
41 + compatible = "mmc-card";
42 + reg = <0>;
43 +
44 + block {
45 + compatible = "block-device";
46 + partitions {
47 + sd_rootdisk: block-partition-fit {
48 + partno = <3>;
49 + };
50 + };
51 + };
52 + };
53 };
54
55 &mt6323_leds {