Device tree node order sort tool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All:
	I write a simple tools to sort device tree to make sure nodes and
properties sort as correct order.
	https://github.com/lznuaa/dt-format

	There are many dt files, which have node order trivial issue, when
try to upstream. To reduce reviewer's time, dt-format can help correct the
order.

	I just want to make sure my understand about node order is correct.

	Rule 1: node@hexvalue,  	order by hexvalue
	Rule 2: label: node,  		order by node name
	Rule 3: node, 			order by node name
	Rule 3: &label			order by label
	Rule 4: children node already after property
	Rule 5: "status" always is last one.
	Rule 6: property order as below list[unfinished], otherwise, order
	        by name.

compatible
reg
reg-names
ranges
#interrupt-cells
interrupt-controller
interrupts
interrupt-names
#gpio-cells
gpio-controller
gpio-ranges
#address-cells
#size-cells
clocks
clock-names
assigned-clocks
assigned-clock-parents
assigned-clock-rates
dmas
dma-names

Frank




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux