]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: dts: Include exynos5420-pinctrl after the nodes were defined for exynos5420
authorJavier Martinez Canillas <javier@osg.samsung.com>
Wed, 8 Jul 2015 05:36:29 +0000 (22:36 -0700)
committerKukjin Kim <kgene@kernel.org>
Tue, 21 Jul 2015 04:00:49 +0000 (13:00 +0900)
commitc07f8270116d7c66379ce9d5f8d3609fe79fd999
treeb2051029e94c0c1967b1ad4b1286366eeea956f0
parenteb8b8b03ca8ac0f06a2c16bf27601a1ac2aa2d8b
ARM: dts: Include exynos5420-pinctrl after the nodes were defined for exynos5420

The dtc compiler combines all the defined nodes that have the same path
so a device node definition can be in one file and later be extended in
another one.

That's the case of the Exynos5420 pinctrl device nodes that are defined
in the exynos5420.dtsi file and extended in exynos5420-pinctrl.dtsi.

But since the exynos5420.dtsi file includes the exynos5420-pinctrl.dtsi
before the pinctrl device nodes are actually defined, the definition of
the pinctrl device nodes happens in exynos5420-pinctrl.dtsi and are
extended in exynos5420.dtsi.

That is the opposite of the original intention so even when there is no
difference in practice, the exynos5420-pinctrl.dtsi include should be
moved at the end of the exynos5420.dtsi file after the pinctrl device
nodes have been already defined.

This will also allow to later change the exynos5420-pinctrl.dtsi file
to use labels instead of full paths to extend the pinctrl nodes. Since
keeping the include at the top, would cause a dtc build error due the
pinctrl labels not being defined yet.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/boot/dts/exynos5420.dtsi