Created
April 17, 2020 09:44
-
-
Save DanielRIOT/9827b1dbdb7315dd5af7c0d02130612e to your computer and use it in GitHub Desktop.
Bananapi R64 5.4 kernel dts patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | |
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | |
@@ -22,7 +22,7 @@ | |
chosen { | |
stdout-path = "serial0:115200n8"; | |
- bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n1 swiotlb=512"; | |
+ bootargs = "console=ttyS0,115200n1 rootfstype=squashfs earlyprintk block2mtd.block2mtd=/dev/mmcblk0,65536,eMMC,5 mtdparts=eMMC:768k(preloader)ro,512k(uboot),512k(uboot-env),256k(Factory),64M(firmware),2048M(usrdata)"; | |
}; | |
cpus { | |
@@ -209,6 +209,49 @@ | |
assigned-clocks = <&topckgen CLK_TOP_MSDC30_0_SEL>; | |
assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>; | |
non-removable; | |
+ emmc@0 { | |
+ #address-cells = <1>; | |
+ #size-cells = <1>; | |
+ compatible = "mmc-card"; | |
+ reg = <0>; | |
+ | |
+ partitions { | |
+ compatible = "fixed-partitions"; | |
+ #address-cells = <1>; | |
+ #size-cells = <1>; | |
+ | |
+ partition@0 { | |
+ label = "preloader"; | |
+ reg = <0x0000000 0x000c0000>; | |
+ read-only; | |
+ }; | |
+ | |
+ partition@c0000 { | |
+ label = "uboot"; | |
+ reg = <0x00c0000 0x00140000>; | |
+ }; | |
+ | |
+ partition@140000 { | |
+ label = "uboot-env"; | |
+ reg = <0x0140000 0x001c0000>; | |
+ }; | |
+ | |
+ factory: partition@1c0000 { | |
+ label = "Factory"; | |
+ reg = <0x01c0000 0x00200000>; | |
+ }; | |
+ | |
+ partition@200000 { | |
+ label = "firmware"; | |
+ reg = <0x0200000 0x02200000>; | |
+ }; | |
+ | |
+ partition@2200000 { | |
+ label = "usrdata"; | |
+ reg = <0x2200000 0x82200000>; | |
+ }; | |
+ }; | |
+ }; | |
}; | |
&mmc1 { | |
@@ -520,6 +563,10 @@ | |
}; | |
}; | |
+&wmac { | |
+ status = "okay"; | |
+}; | |
+ | |
&pwm { | |
pinctrl-names = "default"; | |
pinctrl-0 = <&pwm7_pins>; | |
@@ -534,11 +581,11 @@ | |
}; | |
&sata { | |
- status = "disable"; | |
+ status = "okay"; | |
}; | |
&sata_phy { | |
- status = "disable"; | |
+ status = "okay"; | |
}; | |
&spi0 { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment