devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Device tree node order sort tool
@ 2024-09-17 15:43 Frank Li
  2024-09-18  8:03 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Li @ 2024-09-17 15:43 UTC (permalink / raw)
  To: conor+dt, krzk, devicetree, imx, krzk+dt, robh, shawnguo,
	festevam

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-09-27  7:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-17 15:43 Device tree node order sort tool Frank Li
2024-09-18  8:03 ` Krzysztof Kozlowski
2024-09-18  8:17   ` Conor Dooley
2024-09-18 15:07     ` Frank Li
2024-09-26  9:04     ` Shawn Guo
2024-09-26 15:09       ` Frank Li
2024-09-27  7:32       ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).