device tree node/property order change

63 views
Skip to first unread message

real time

unread,
Aug 3, 2016, 10:23:18 AM8/3/16
to inside...@googlegroups.com
Hi AnilSir/All ,

I have one top level(board level) .dtsi file which overrides the low level(soc level) .dtsi file .

now my board dtsi includes the soc dtsi file . 

in soc dtsi file , uart sequence is uart a, uart b , uart c and uart d .

i want to change the sequence to uart b , uart a , uart c and uart d without modifying soc level dtsi file . becuase my driver assume first uart is console which is uart b . what should i do ?

because upto i know properties can be overriden , not the sequence .

can any one comment one this please....someone told me about plugin manager , but by google , i could not find any useful.!!!



Regards,
Mehul 

Vineeth

unread,
Aug 3, 2016, 11:09:38 AM8/3/16
to inside...@googlegroups.com
What if we reorder the nodes in the dtsi file ?

One easy method is to add an extra property for the console node and use this property to identify the same from UART driver! lets say, before registering the node as console, check if (of_property_read_bool(uart_dev, "console-node")) is TRUE or not !

just a thought.

--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

real time

unread,
Aug 3, 2016, 1:21:37 PM8/3/16
to inside...@googlegroups.com
I am not allowed to change the driver ....

real time

unread,
Aug 3, 2016, 1:35:40 PM8/3/16
to inside...@googlegroups.com
if i change the order in the top level dtsi , it is over written by low level (soc dtsi) . so i am not getting expected sequence.

Vineeth

unread,
Aug 3, 2016, 10:36:59 PM8/3/16
to inside...@googlegroups.com
Where do you have the console node info ? Is it part of the low level dtsi ?
von meinem Iphone gesendet

real time

unread,
Aug 4, 2016, 1:44:57 AM8/4/16
to inside...@googlegroups.com
no , in low level initialization , only entry of the UARTs and default initialization is there ; in high level , i am over writing it . in high level dtsi one of the property UART B is console-port . so we are telling to kernel this is the uart is for console . however in the order wise it is second. on the other end , in bootloader we are telling that ttyS0 as console port .

Vineeth

unread,
Aug 4, 2016, 1:53:30 AM8/4/16
to inside...@googlegroups.com
Cant you mention the console port from the boot parameters ? So that kernel will know which uart to consider as console port.

real time

unread,
Aug 4, 2016, 1:56:08 AM8/4/16
to inside...@googlegroups.com
boot code i can not chagne

Vineeth

unread,
Aug 4, 2016, 2:01:09 AM8/4/16
to inside...@googlegroups.com
whats the bootloader ?

real time

unread,
Aug 4, 2016, 2:04:38 AM8/4/16
to inside...@googlegroups.com
quick boot
Reply all
Reply to author
Forward
0 new messages