-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy bcm2711-rpi-4-b.dtb (with UART path) from kernel build
related to gokrazy/gokrazy#48
- Loading branch information
1 parent
a9cac0c
commit 6412922
Showing
4 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
72 changes: 72 additions & 0 deletions
72
0103-expose-UART0-ttyAMA0-on-GPIO-14-15-disable-UART1-tty.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- ./arch/arm/boot/dts/bcm2711-rpi-4-b.dts.O 2020-04-04 13:55:20.803705272 +0200 | ||
+++ ./arch/arm/boot/dts/bcm2711-rpi-4-b.dts 2020-04-04 14:00:57.649047011 +0200 | ||
@@ -10,7 +10,8 @@ | ||
|
||
chosen { | ||
/* 8250 auxiliary UART instead of pl011 */ | ||
- stdout-path = "serial1:115200n8"; | ||
+ stdout-path = ""; | ||
+ bootargs = "earlyprintk console=tty1"; | ||
}; | ||
|
||
/* Will be filled by the bootloader */ | ||
@@ -37,6 +38,14 @@ | ||
}; | ||
}; | ||
|
||
+ aliases { | ||
+ /* required for the firmware as per | ||
+ * https://github.com/raspberrypi/firmware/issues/752#issuecomment-283331328 | ||
+ * */ | ||
+ uart0 = &uart0; | ||
+ uart1 = &uart1; | ||
+ }; | ||
+ | ||
wifi_pwrseq: wifi-pwrseq { | ||
compatible = "mmc-pwrseq-simple"; | ||
reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>; | ||
@@ -57,6 +66,14 @@ | ||
}; | ||
}; | ||
|
||
+&gpio { | ||
+ uart0_pins: uart0_pins { | ||
+ brcm,pins = <14 15>; | ||
+ brcm,function = <BCM2835_FSEL_ALT0>; | ||
+ brcm,pulls = <0 2>; | ||
+ }; | ||
+}; | ||
+ | ||
&firmware { | ||
expgpio: gpio { | ||
compatible = "raspberrypi,firmware-gpio"; | ||
@@ -117,25 +134,16 @@ | ||
}; | ||
}; | ||
|
||
-/* uart0 communicates with the BT module */ | ||
+/* uart0 is mapped to the pin header */ | ||
&uart0 { | ||
pinctrl-names = "default"; | ||
- pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32>; | ||
- uart-has-rtscts; | ||
+ pinctrl-0 = <&uart0_pins>; | ||
status = "okay"; | ||
- | ||
- bluetooth { | ||
- compatible = "brcm,bcm43438-bt"; | ||
- max-speed = <2000000>; | ||
- shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>; | ||
- }; | ||
}; | ||
|
||
-/* uart1 is mapped to the pin header */ | ||
+/* uart1 is disabled */ | ||
&uart1 { | ||
- pinctrl-names = "default"; | ||
- pinctrl-0 = <&uart1_gpio14>; | ||
- status = "okay"; | ||
+ status = "disabled"; | ||
}; | ||
|
||
&vchiq { |
Binary file not shown.
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
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