Commit 5e080b07 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Kukjin Kim

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: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene@kernel.org>
parent c07f8270
......@@ -12,8 +12,7 @@
* published by the Free Software Foundation.
*/
/ {
pinctrl@13400000 {
&pinctrl_0 {
gpy7: gpy7 {
gpio-controller;
#gpio-cells = <2>;
......@@ -66,9 +65,9 @@ dp_hpd: dp_hpd {
samsung,pin-pud = <0>;
samsung,pin-drv = <0>;
};
};
};
pinctrl@13410000 {
&pinctrl_1 {
gpc0: gpc0 {
gpio-controller;
#gpio-cells = <2>;
......@@ -284,9 +283,9 @@ sd2_bus4: sd2-bus-width4 {
samsung,pin-pud = <3>;
samsung,pin-drv = <3>;
};
};
};
pinctrl@14000000 {
&pinctrl_2 {
gpe0: gpe0 {
gpio-controller;
#gpio-cells = <2>;
......@@ -374,6 +373,7 @@ cam_i2c2_bus: cam-i2c2-bus {
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>;
......@@ -412,9 +412,9 @@ cam_bayrgb_bus: cam-bayrgb-bus {
samsung,pin-pud = <0>;
samsung,pin-drv = <0>;
};
};
};
pinctrl@14010000 {
&pinctrl_3 {
gpa0: gpa0 {
gpio-controller;
#gpio-cells = <2>;
......@@ -700,9 +700,9 @@ i2c10_hs_bus: i2c10-hs-bus {
samsung,pin-pud = <3>;
samsung,pin-drv = <0>;
};
};
};
pinctrl@03860000 {
&pinctrl_4 {
gpz: gpz {
gpio-controller;
#gpio-cells = <2>;
......@@ -718,5 +718,4 @@ i2s0_bus: i2s0-bus {
samsung,pin-pud = <0>;
samsung,pin-drv = <0>;
};
};
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment