Linux dev-4.7 tree: Request for testing

Xo Wang xow at google.com
Wed Aug 17 09:55:44 AEST 2016


 > We need to use a mechanism to tell userspace which device is the
 > vuart. udev? systemd?

I think that's covered by this userspace configuration file: 
https://github.com/openbmc/openbmc/blob/master/meta-phosphor/common/recipes-phosphor/obmc-console/obmc-console/obmc-console.conf 


It specifies the VUART console device as ttyS5, which doesn't exist 
using our current DTS for the EVB.

 > $ ls /sys/devices/platform/ahb/ahb:apb/1e787000.vuart/tty
 > ttyS0
 >
 > We could also set an alias in the device tree?

That's how I did my testing for AST2500 EVB connected to an LPC host. 
This enabled and aliased the vuart for me (please note s/uart6/vuart/g 
for dev-4.7):

diff --git a/arch/arm/boot/dts/aspeed-ast2500-evb.dts 
b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
index 28b0045..51b032d 100644
--- a/arch/arm/boot/dts/aspeed-ast2500-evb.dts
+++ b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
@@ -8,6 +8,7 @@

         aliases {
                 serial4 = &uart5;
+               serial5 = &uart6;
         };

         chosen {
@@ -39,6 +40,10 @@
         status = "okay";
  };

+&uart6 {
+       status = "okay";
+};
+
  &mac0 {
         status = "okay";
  };




cheers
xo


More information about the openbmc mailing list