diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-07-05 04:56:09 -0400 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-10-12 21:21:44 -0400 |
commit | ec6754a7b9e90a1eba7f3b2812003bb51d3dcf30 (patch) | |
tree | 568b5afbb394672e99521d1407e9e8b5be592dd6 /arch/arm/boot/dts/at91sam9n12.dtsi | |
parent | 5314ec8e52263b56edd6a37d089b3b675d50e3f1 (diff) |
arm: at91: dt: at91sam9 add serial pinctrl support
Set the dbgu pinctrl config by default as we have only one possible config
For other uart set the rxd/txd by default.
For at91sam9x5ek create soc based dts as we need to include specific soc dtsi.
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/boot/dts/at91sam9n12.dtsi')
-rw-r--r-- | arch/arm/boot/dts/at91sam9n12.dtsi | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/at91sam9n12.dtsi b/arch/arm/boot/dts/at91sam9n12.dtsi index 8b5276499aaf..e057f660296f 100644 --- a/arch/arm/boot/dts/at91sam9n12.dtsi +++ b/arch/arm/boot/dts/at91sam9n12.dtsi | |||
@@ -117,6 +117,79 @@ | |||
117 | >; | 117 | >; |
118 | 118 | ||
119 | /* shared pinctrl settings */ | 119 | /* shared pinctrl settings */ |
120 | dbgu { | ||
121 | pinctrl_dbgu: dbgu-0 { | ||
122 | atmel,pins = | ||
123 | <0 9 0x1 0x0 /* PA9 periph A */ | ||
124 | 0 10 0x1 0x1>; /* PA10 periph with pullup */ | ||
125 | }; | ||
126 | }; | ||
127 | |||
128 | uart0 { | ||
129 | pinctrl_uart0: uart0-0 { | ||
130 | atmel,pins = | ||
131 | <0 1 0x1 0x1 /* PA1 periph A with pullup */ | ||
132 | 0 0 0x1 0x0>; /* PA0 periph A */ | ||
133 | }; | ||
134 | |||
135 | pinctrl_uart0_rts_cts: uart0_rts_cts-0 { | ||
136 | atmel,pins = | ||
137 | <0 2 0x1 0x0 /* PA2 periph A */ | ||
138 | 0 3 0x1 0x0>; /* PA3 periph A */ | ||
139 | }; | ||
140 | }; | ||
141 | |||
142 | uart1 { | ||
143 | pinctrl_uart1: uart1-0 { | ||
144 | atmel,pins = | ||
145 | <0 6 0x1 0x1 /* PA6 periph A with pullup */ | ||
146 | 0 5 0x1 0x0>; /* PA5 periph A */ | ||
147 | }; | ||
148 | }; | ||
149 | |||
150 | uart2 { | ||
151 | pinctrl_uart2: uart2-0 { | ||
152 | atmel,pins = | ||
153 | <0 8 0x1 0x1 /* PA8 periph A with pullup */ | ||
154 | 0 7 0x1 0x0>; /* PA7 periph A */ | ||
155 | }; | ||
156 | |||
157 | pinctrl_uart2_rts_cts: uart2_rts_cts-0 { | ||
158 | atmel,pins = | ||
159 | <1 0 0x2 0x0 /* PB0 periph B */ | ||
160 | 1 1 0x2 0x0>; /* PB1 periph B */ | ||
161 | }; | ||
162 | }; | ||
163 | |||
164 | uart3 { | ||
165 | pinctrl_uart3: uart3-0 { | ||
166 | atmel,pins = | ||
167 | <2 23 0x2 0x1 /* PC23 periph B with pullup */ | ||
168 | 2 22 0x2 0x0>; /* PC22 periph B */ | ||
169 | }; | ||
170 | |||
171 | pinctrl_uart3_rts_cts: uart3_rts_cts-0 { | ||
172 | atmel,pins = | ||
173 | <2 24 0x2 0x0 /* PC24 periph B */ | ||
174 | 2 25 0x2 0x0>; /* PC25 periph B */ | ||
175 | }; | ||
176 | }; | ||
177 | |||
178 | usart0 { | ||
179 | pinctrl_usart0: usart0-0 { | ||
180 | atmel,pins = | ||
181 | <2 9 0x3 0x1 /* PC9 periph C with pullup */ | ||
182 | 2 8 0x3 0x0>; /* PC8 periph C */ | ||
183 | }; | ||
184 | }; | ||
185 | |||
186 | usart1 { | ||
187 | pinctrl_usart1: usart1-0 { | ||
188 | atmel,pins = | ||
189 | <2 16 0x3 0x1 /* PC17 periph C with pullup */ | ||
190 | 2 17 0x3 0x0>; /* PC16 periph C */ | ||
191 | }; | ||
192 | }; | ||
120 | 193 | ||
121 | pioA: gpio@fffff400 { | 194 | pioA: gpio@fffff400 { |
122 | compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; | 195 | compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; |
@@ -163,6 +236,8 @@ | |||
163 | compatible = "atmel,at91sam9260-usart"; | 236 | compatible = "atmel,at91sam9260-usart"; |
164 | reg = <0xfffff200 0x200>; | 237 | reg = <0xfffff200 0x200>; |
165 | interrupts = <1 4 7>; | 238 | interrupts = <1 4 7>; |
239 | pinctrl-names = "default"; | ||
240 | pinctrl-0 = <&pinctrl_dbgu>; | ||
166 | status = "disabled"; | 241 | status = "disabled"; |
167 | }; | 242 | }; |
168 | 243 | ||
@@ -172,6 +247,8 @@ | |||
172 | interrupts = <5 4 5>; | 247 | interrupts = <5 4 5>; |
173 | atmel,use-dma-rx; | 248 | atmel,use-dma-rx; |
174 | atmel,use-dma-tx; | 249 | atmel,use-dma-tx; |
250 | pinctrl-names = "default"; | ||
251 | pinctrl-0 = <&pinctrl_uart0>; | ||
175 | status = "disabled"; | 252 | status = "disabled"; |
176 | }; | 253 | }; |
177 | 254 | ||
@@ -181,6 +258,8 @@ | |||
181 | interrupts = <6 4 5>; | 258 | interrupts = <6 4 5>; |
182 | atmel,use-dma-rx; | 259 | atmel,use-dma-rx; |
183 | atmel,use-dma-tx; | 260 | atmel,use-dma-tx; |
261 | pinctrl-names = "default"; | ||
262 | pinctrl-0 = <&pinctrl_uart1>; | ||
184 | status = "disabled"; | 263 | status = "disabled"; |
185 | }; | 264 | }; |
186 | 265 | ||
@@ -190,6 +269,8 @@ | |||
190 | interrupts = <7 4 5>; | 269 | interrupts = <7 4 5>; |
191 | atmel,use-dma-rx; | 270 | atmel,use-dma-rx; |
192 | atmel,use-dma-tx; | 271 | atmel,use-dma-tx; |
272 | pinctrl-names = "default"; | ||
273 | pinctrl-0 = <&pinctrl_uart2>; | ||
193 | status = "disabled"; | 274 | status = "disabled"; |
194 | }; | 275 | }; |
195 | 276 | ||
@@ -199,6 +280,8 @@ | |||
199 | interrupts = <8 4 5>; | 280 | interrupts = <8 4 5>; |
200 | atmel,use-dma-rx; | 281 | atmel,use-dma-rx; |
201 | atmel,use-dma-tx; | 282 | atmel,use-dma-tx; |
283 | pinctrl-names = "default"; | ||
284 | pinctrl-0 = <&pinctrl_uart3>; | ||
202 | status = "disabled"; | 285 | status = "disabled"; |
203 | }; | 286 | }; |
204 | 287 | ||