mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 17:22:22 +02:00
sandbox: dts: Add a serial console node
If the sandbox device tree is provided to U-Boot (with the -d flag) then it will use the device tree version in preference to the built-in device. The only difference is the colour. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -1,6 +1,16 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
chosen {
|
||||||
|
stdout-path = "/serial";
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Needs to be available prior to relocation */
|
||||||
|
uart0: serial {
|
||||||
|
compatible = "sandbox,serial";
|
||||||
|
sandbox,text-colour = "cyan";
|
||||||
|
};
|
||||||
|
|
||||||
triangle {
|
triangle {
|
||||||
compatible = "demo-shape";
|
compatible = "demo-shape";
|
||||||
colour = "cyan";
|
colour = "cyan";
|
||||||
|
13
doc/device-tree-bindings/serial/sandbox-serial.txt
Normal file
13
doc/device-tree-bindings/serial/sandbox-serial.txt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Sandbox serial
|
||||||
|
|
||||||
|
The sandbox serial device is an emulated device which displays its output
|
||||||
|
on the host machine's console, and accepts input from its keyboard.
|
||||||
|
|
||||||
|
Required properties:
|
||||||
|
compatible: "sandbox,serial"
|
||||||
|
|
||||||
|
Optional properties:
|
||||||
|
sandbox,text-colour: If present, this is the colour of the console text.
|
||||||
|
Supported values are:
|
||||||
|
"black", "red", "green", "yellow", "blue", "megenta", "cyan",
|
||||||
|
"white"
|
Reference in New Issue
Block a user