Skip to content

Commit

Permalink
dts: overlays-rockpis: support and enabled console on ttyS0
Browse files Browse the repository at this point in the history
Signed-off-by: brian <[email protected]>
  • Loading branch information
brian541 committed Jul 16, 2019
1 parent 05ed687 commit 97a64f2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/overlays-rockpis/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Overlays for the ROCK PI S platform

dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
console-on-ttyS0.dtbo \
console-on-ttyS2.dtbo

targets += dtbs dtbs_install
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Definitions for setting uart4 pins as ttyFIQ0 console pins
/dts-v1/;
/plugin/;

/ {
model = "ROCK PI S";
compatible = "rockchip,rockpis-rk3308", "rockchip,rk3308";

fragment@0 {
target = <&fiq_debugger>;

__overlay__ {
rockchip,serial-id = <0>;
status = "okay";
};
};
};
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/rockchip/overlays-rockpis/hw_intfc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ intfc:uart2=off
# Devicetree Overlay Enable, uncomment to enable .dtbo under /boot/overlays/.

# Disable ttyFIQ0 console
intfc:dtoverlay=console-on-ttyS2
#intfc:dtoverlay=console-on-ttyS2
intfc:dtoverlay=console-on-ttyS0

0 comments on commit 97a64f2

Please sign in to comment.