aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2016-09-04 07:04:19 -0400
committerKrzysztof Kozlowski <k.kozlowski@samsung.com>2016-09-16 07:32:23 -0400
commit930f2910dc770dd7690bb51988101821c17de2d8 (patch)
treef1a9c11eda9d97509067554fba71eb2e10a708ca /arch/arm/boot
parent293fea6f71dcb5c68b47f253c6f77ef5c030e2c3 (diff)
ARM: dts: s3c2416: Use macros for pinctrl configuration
Usage of DTS macros instead of hard-coded numbers makes code easier to read. One does not have to remember which value means pull-up/down or specific driver strength. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/dts/s3c2416-pinctrl.dtsi38
1 files changed, 20 insertions, 18 deletions
diff --git a/arch/arm/boot/dts/s3c2416-pinctrl.dtsi b/arch/arm/boot/dts/s3c2416-pinctrl.dtsi
index 527e3193817f..6274359fb323 100644
--- a/arch/arm/boot/dts/s3c2416-pinctrl.dtsi
+++ b/arch/arm/boot/dts/s3c2416-pinctrl.dtsi
@@ -8,6 +8,8 @@
8 * published by the Free Software Foundation. 8 * published by the Free Software Foundation.
9 */ 9 */
10 10
11#include <dt-bindings/pinctrl/samsung.h>
12
11&pinctrl_0 { 13&pinctrl_0 {
12 /* 14 /*
13 * Pin banks 15 * Pin banks
@@ -83,91 +85,91 @@
83 85
84 uart0_data: uart0-data { 86 uart0_data: uart0-data {
85 samsung,pins = "gph-0", "gph-1"; 87 samsung,pins = "gph-0", "gph-1";
86 samsung,pin-function = <2>; 88 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
87 }; 89 };
88 90
89 uart0_fctl: uart0-fctl { 91 uart0_fctl: uart0-fctl {
90 samsung,pins = "gph-8", "gph-9"; 92 samsung,pins = "gph-8", "gph-9";
91 samsung,pin-function = <2>; 93 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
92 }; 94 };
93 95
94 uart1_data: uart1-data { 96 uart1_data: uart1-data {
95 samsung,pins = "gph-2", "gph-3"; 97 samsung,pins = "gph-2", "gph-3";
96 samsung,pin-function = <2>; 98 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
97 }; 99 };
98 100
99 uart1_fctl: uart1-fctl { 101 uart1_fctl: uart1-fctl {
100 samsung,pins = "gph-10", "gph-11"; 102 samsung,pins = "gph-10", "gph-11";
101 samsung,pin-function = <2>; 103 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
102 }; 104 };
103 105
104 uart2_data: uart2-data { 106 uart2_data: uart2-data {
105 samsung,pins = "gph-4", "gph-5"; 107 samsung,pins = "gph-4", "gph-5";
106 samsung,pin-function = <2>; 108 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
107 }; 109 };
108 110
109 uart2_fctl: uart2-fctl { 111 uart2_fctl: uart2-fctl {
110 samsung,pins = "gph-6", "gph-7"; 112 samsung,pins = "gph-6", "gph-7";
111 samsung,pin-function = <2>; 113 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
112 }; 114 };
113 115
114 uart3_data: uart3-data { 116 uart3_data: uart3-data {
115 samsung,pins = "gph-6", "gph-7"; 117 samsung,pins = "gph-6", "gph-7";
116 samsung,pin-function = <2>; 118 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
117 }; 119 };
118 120
119 extuart_clk: extuart-clk { 121 extuart_clk: extuart-clk {
120 samsung,pins = "gph-12"; 122 samsung,pins = "gph-12";
121 samsung,pin-function = <2>; 123 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
122 }; 124 };
123 125
124 i2c0_bus: i2c0-bus { 126 i2c0_bus: i2c0-bus {
125 samsung,pins = "gpe-14", "gpe-15"; 127 samsung,pins = "gpe-14", "gpe-15";
126 samsung,pin-function = <2>; 128 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
127 }; 129 };
128 130
129 spi0_bus: spi0-bus { 131 spi0_bus: spi0-bus {
130 samsung,pins = "gpe-11", "gpe-12", "gpe-13"; 132 samsung,pins = "gpe-11", "gpe-12", "gpe-13";
131 samsung,pin-function = <2>; 133 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
132 }; 134 };
133 135
134 sd0_clk: sd0-clk { 136 sd0_clk: sd0-clk {
135 samsung,pins = "gpe-5"; 137 samsung,pins = "gpe-5";
136 samsung,pin-function = <2>; 138 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
137 }; 139 };
138 140
139 sd0_cmd: sd0-cmd { 141 sd0_cmd: sd0-cmd {
140 samsung,pins = "gpe-6"; 142 samsung,pins = "gpe-6";
141 samsung,pin-function = <2>; 143 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
142 }; 144 };
143 145
144 sd0_bus1: sd0-bus1 { 146 sd0_bus1: sd0-bus1 {
145 samsung,pins = "gpe-7"; 147 samsung,pins = "gpe-7";
146 samsung,pin-function = <2>; 148 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
147 }; 149 };
148 150
149 sd0_bus4: sd0-bus4 { 151 sd0_bus4: sd0-bus4 {
150 samsung,pins = "gpe-8", "gpe-9", "gpe-10"; 152 samsung,pins = "gpe-8", "gpe-9", "gpe-10";
151 samsung,pin-function = <2>; 153 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
152 }; 154 };
153 155
154 sd1_cmd: sd1-cmd { 156 sd1_cmd: sd1-cmd {
155 samsung,pins = "gpl-8"; 157 samsung,pins = "gpl-8";
156 samsung,pin-function = <2>; 158 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
157 }; 159 };
158 160
159 sd1_clk: sd1-clk { 161 sd1_clk: sd1-clk {
160 samsung,pins = "gpl-9"; 162 samsung,pins = "gpl-9";
161 samsung,pin-function = <2>; 163 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
162 }; 164 };
163 165
164 sd1_bus1: sd1-bus1 { 166 sd1_bus1: sd1-bus1 {
165 samsung,pins = "gpl-0"; 167 samsung,pins = "gpl-0";
166 samsung,pin-function = <2>; 168 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
167 }; 169 };
168 170
169 sd1_bus4: sd1-bus4 { 171 sd1_bus4: sd1-bus4 {
170 samsung,pins = "gpl-1", "gpl-2", "gpl-3"; 172 samsung,pins = "gpl-1", "gpl-2", "gpl-3";
171 samsung,pin-function = <2>; 173 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
172 }; 174 };
173}; 175};