ARM: dts: Extend exynos5420-pinctrl nodes using labels instead of paths

A previously defined Device Tree node, can be extended either by defining
a node using the same full path or by creating a label for the node and
referencing to it.

Using full paths is more error prone since if there was a typo error, a
new node will be created instead of extending the node as it was desired.
This will lead to run-time errors that could be hard to detect.

A mistyped label on the other hand, will cause a dtc compile error which
makes it easier to detect the mistake since happens at build-time instead.

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>
This commit is contained in:
Javier Martinez Canillas 2015-07-07 22:46:29 -07:00 committed by Kukjin Kim
parent c07f827011
commit 5e080b078f

View File

@ -12,8 +12,7 @@
* published by the Free Software Foundation.
*/
/ {
pinctrl@13400000 {
&pinctrl_0 {
gpy7: gpy7 {
gpio-controller;
#gpio-cells = <2>;
@ -68,7 +67,7 @@
};
};
pinctrl@13410000 {
&pinctrl_1 {
gpc0: gpc0 {
gpio-controller;
#gpio-cells = <2>;
@ -286,7 +285,7 @@
};
};
pinctrl@14000000 {
&pinctrl_2 {
gpe0: gpe0 {
gpio-controller;
#gpio-cells = <2>;
@ -374,6 +373,7 @@
samsung,pin-pud = <3>;
samsung,pin-drv = <0>;
};
cam_spi1_bus: cam-spi1-bus {
samsung,pins = "gpe0-4", "gpe0-5", "gpf0-2", "gpf0-3";
samsung,pin-function = <4>;
@ -414,7 +414,7 @@
};
};
pinctrl@14010000 {
&pinctrl_3 {
gpa0: gpa0 {
gpio-controller;
#gpio-cells = <2>;
@ -702,7 +702,7 @@
};
};
pinctrl@03860000 {
&pinctrl_4 {
gpz: gpz {
gpio-controller;
#gpio-cells = <2>;
@ -719,4 +719,3 @@
samsung,pin-drv = <0>;
};
};
};