提交 5e080b07 编写于 作者: J Javier Martinez Canillas 提交者: 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: NJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: NKukjin Kim <kgene@kernel.org>
上级 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 @@
samsung,pin-pud = <0>;
samsung,pin-drv = <0>;
};
};
};
pinctrl@13410000 {
&pinctrl_1 {
gpc0: gpc0 {
gpio-controller;
#gpio-cells = <2>;
......@@ -284,9 +283,9 @@
samsung,pin-pud = <3>;
samsung,pin-drv = <3>;
};
};
};
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>;
......@@ -412,9 +412,9 @@
samsung,pin-pud = <0>;
samsung,pin-drv = <0>;
};
};
};
pinctrl@14010000 {
&pinctrl_3 {
gpa0: gpa0 {
gpio-controller;
#gpio-cells = <2>;
......@@ -700,9 +700,9 @@
samsung,pin-pud = <3>;
samsung,pin-drv = <0>;
};
};
};
pinctrl@03860000 {
&pinctrl_4 {
gpz: gpz {
gpio-controller;
#gpio-cells = <2>;
......@@ -718,5 +718,4 @@
samsung,pin-pud = <0>;
samsung,pin-drv = <0>;
};
};
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册