[PATCH] arm64: freescale/imx8mp-evk.dts: reorder nodes alphabetically

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Wed Jul 7 06:54:37 PDT 2021


Hello Ahmad,

On Wed, Jul 07, 2021 at 01:06:19PM +0200, Ahmad Fatoum wrote:
> On 07.07.21 12:53, Uwe Kleine-König wrote:
> > The nodes after the root nodes are supposed to be ordered
> > alphabetically. So move &flexcan1, &flexcan2 and &pinctrl to their
> > proper place.
> 
> At least for i.MX, it seems to be convention to have iomuxc at the end
> of the file.

Oh, that's news to me. Looking at next/master and the output of

$ for f in $(git grep -l \&iomux arch/arm/boot/dts/imx* arch/arm64/boot/dts/freescale/*); do awk '/^&/ { handle = $1; } END { if ( handle == "&iomuxc" ) { print "end" } else { print "middle" } }' "$f"; done | sort | uniq -c
    158 end
    143 middle

(i.e. among the files that have a &iomux node, iomuxc is at the end for
158, and for 143 is isn't)

So that convention is either new or not very binding.

Note: In the end case there are a few (e.g.
arch/arm/boot/dts/imx6qdl-pico-dwarf.dtsi and
arch/arm/boot/dts/imx6qdl-pico-pi.dtsi) where iomuxc is at the end and
the file is sorted.

> I'd not reorder it, file is easier to browse when it's not in the
> middle.

Seems to be subjective :-)
I would consider it easier to browse if each pinmux define would be near
the device node that makes use of it, but iomuxc being at the end
doesn't have an advantage for me.

I don't feel like resending to only fix the flexcan ordering.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210707/3ad5fa62/attachment.sig>


More information about the linux-arm-kernel mailing list