|
45 | 45 | /dts-v1/; |
46 | 46 | #include "sama5d2.dtsi" |
47 | 47 | #include "sama5d2-pinfunc.h" |
| 48 | +#include <dt-bindings/mfd/atmel-flexcom.h> |
48 | 49 |
|
49 | 50 | / { |
50 | 51 | model = "Atmel SAMA5D2 Xplained"; |
|
59 | 60 | }; |
60 | 61 |
|
61 | 62 | clocks { |
62 | | - #address-cells = <1>; |
63 | | - #size-cells = <1>; |
64 | | - ranges; |
65 | | - |
66 | | - main_clock: clock@0 { |
67 | | - compatible = "atmel,osc", "fixed-clock"; |
68 | | - clock-frequency = <12000000>; |
69 | | - }; |
70 | | - |
71 | 63 | slow_xtal { |
72 | 64 | clock-frequency = <32768>; |
73 | 65 | }; |
|
91 | 83 | status = "okay"; |
92 | 84 | }; |
93 | 85 |
|
| 86 | + sdmmc0: sdio-host@a0000000 { |
| 87 | + bus-width = <8>; |
| 88 | + pinctrl-names = "default"; |
| 89 | + pinctrl-0 = <&pinctrl_sdmmc0_default>; |
| 90 | + non-removable; |
| 91 | + mmc-ddr-1_8v; |
| 92 | + status = "okay"; |
| 93 | + }; |
| 94 | + |
| 95 | + sdmmc1: sdio-host@b0000000 { |
| 96 | + bus-width = <4>; |
| 97 | + pinctrl-names = "default"; |
| 98 | + pinctrl-0 = <&pinctrl_sdmmc1_default>; |
| 99 | + status = "okay"; /* conflict with qspi0 */ |
| 100 | + }; |
| 101 | + |
94 | 102 | apb { |
95 | 103 | spi0: spi@f8000000 { |
96 | 104 | pinctrl-names = "default"; |
|
181 | 189 | }; |
182 | 190 | }; |
183 | 191 |
|
| 192 | + flx0: flexcom@f8034000 { |
| 193 | + atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>; |
| 194 | + status = "disabled"; /* conflict with ISC_D2 & ISC_D3 data pins */ |
| 195 | + |
| 196 | + uart5: serial@200 { |
| 197 | + compatible = "atmel,at91sam9260-usart"; |
| 198 | + reg = <0x200 0x200>; |
| 199 | + interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>; |
| 200 | + clocks = <&flx0_clk>; |
| 201 | + clock-names = "usart"; |
| 202 | + pinctrl-names = "default"; |
| 203 | + pinctrl-0 = <&pinctrl_flx0_default>; |
| 204 | + atmel,fifo-size = <32>; |
| 205 | + status = "okay"; |
| 206 | + }; |
| 207 | + }; |
| 208 | + |
184 | 209 | uart3: serial@fc008000 { |
185 | 210 | pinctrl-names = "default"; |
186 | 211 | pinctrl-0 = <&pinctrl_uart3_default>; |
187 | 212 | status = "okay"; |
188 | 213 | }; |
189 | 214 |
|
| 215 | + flx4: flexcom@fc018000 { |
| 216 | + atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; |
| 217 | + status = "okay"; |
| 218 | + |
| 219 | + i2c2: i2c@600 { |
| 220 | + compatible = "atmel,sama5d2-i2c"; |
| 221 | + reg = <0x600 0x200>; |
| 222 | + interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>; |
| 223 | + dmas = <0>, <0>; |
| 224 | + dma-names = "tx", "rx"; |
| 225 | + #address-cells = <1>; |
| 226 | + #size-cells = <0>; |
| 227 | + clocks = <&flx4_clk>; |
| 228 | + pinctrl-names = "default"; |
| 229 | + pinctrl-0 = <&pinctrl_flx4_default>; |
| 230 | + atmel,fifo-size = <16>; |
| 231 | + status = "okay"; |
| 232 | + }; |
| 233 | + }; |
| 234 | + |
190 | 235 | i2c1: i2c@fc028000 { |
191 | 236 | dmas = <0>, <0>; |
192 | 237 | pinctrl-names = "default"; |
|
201 | 246 | }; |
202 | 247 |
|
203 | 248 | pinctrl@fc038000 { |
| 249 | + pinctrl_flx0_default: flx0_default { |
| 250 | + pinmux = <PIN_PB28__FLEXCOM0_IO0>, |
| 251 | + <PIN_PB29__FLEXCOM0_IO1>; |
| 252 | + bias-disable; |
| 253 | + }; |
| 254 | + |
| 255 | + pinctrl_flx4_default: flx4_default { |
| 256 | + pinmux = <PIN_PD12__FLEXCOM4_IO0>, |
| 257 | + <PIN_PD13__FLEXCOM4_IO1>; |
| 258 | + bias-disable; |
| 259 | + }; |
| 260 | + |
204 | 261 | pinctrl_i2c0_default: i2c0_default { |
205 | 262 | pinmux = <PIN_PD21__TWD0>, |
206 | 263 | <PIN_PD22__TWCK0>; |
|
227 | 284 | bias-disable; |
228 | 285 | }; |
229 | 286 |
|
| 287 | + pinctrl_sdmmc0_default: sdmmc0_default { |
| 288 | + cmd_data { |
| 289 | + pinmux = <PIN_PA1__SDMMC0_CMD>, |
| 290 | + <PIN_PA2__SDMMC0_DAT0>, |
| 291 | + <PIN_PA3__SDMMC0_DAT1>, |
| 292 | + <PIN_PA4__SDMMC0_DAT2>, |
| 293 | + <PIN_PA5__SDMMC0_DAT3>, |
| 294 | + <PIN_PA6__SDMMC0_DAT4>, |
| 295 | + <PIN_PA7__SDMMC0_DAT5>, |
| 296 | + <PIN_PA8__SDMMC0_DAT6>, |
| 297 | + <PIN_PA9__SDMMC0_DAT7>; |
| 298 | + bias-pull-up; |
| 299 | + }; |
| 300 | + |
| 301 | + ck_cd_rstn_vddsel { |
| 302 | + pinmux = <PIN_PA0__SDMMC0_CK>, |
| 303 | + <PIN_PA10__SDMMC0_RSTN>, |
| 304 | + <PIN_PA11__SDMMC0_VDDSEL>, |
| 305 | + <PIN_PA13__SDMMC0_CD>; |
| 306 | + bias-disable; |
| 307 | + }; |
| 308 | + }; |
| 309 | + |
| 310 | + pinctrl_sdmmc1_default: sdmmc1_default { |
| 311 | + cmd_data { |
| 312 | + pinmux = <PIN_PA28__SDMMC1_CMD>, |
| 313 | + <PIN_PA18__SDMMC1_DAT0>, |
| 314 | + <PIN_PA19__SDMMC1_DAT1>, |
| 315 | + <PIN_PA20__SDMMC1_DAT2>, |
| 316 | + <PIN_PA21__SDMMC1_DAT3>; |
| 317 | + bias-pull-up; |
| 318 | + }; |
| 319 | + |
| 320 | + conf-ck_cd { |
| 321 | + pinmux = <PIN_PA22__SDMMC1_CK>, |
| 322 | + <PIN_PA30__SDMMC1_CD>; |
| 323 | + bias-disable; |
| 324 | + }; |
| 325 | + }; |
| 326 | + |
230 | 327 | pinctrl_spi0_default: spi0_default { |
231 | 328 | pinmux = <PIN_PA14__SPI0_SPCK>, |
232 | 329 | <PIN_PA15__SPI0_MOSI>, |
|
0 commit comments