Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 2 | /* |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 3 | * at91-sama7g5ek.dts - Device Tree file for SAMA7G5-EK board |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 4 | * |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 5 | * Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries |
| 6 | * |
| 7 | * Author: Eugen Hristev <eugen.hristev@microchip.com> |
| 8 | * Author: Claudiu Beznea <claudiu.beznea@microchip.com> |
| 9 | * |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 10 | */ |
| 11 | /dts-v1/; |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 12 | #include "sama7g5-pinfunc.h" |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 13 | #include "sama7g5.dtsi" |
| 14 | #include <dt-bindings/mfd/atmel-flexcom.h> |
| 15 | #include <dt-bindings/input/input.h> |
Tudor Ambarus | d9a21d0 | 2021-11-03 19:07:41 +0200 | [diff] [blame] | 16 | #include <dt-bindings/pinctrl/at91.h> |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 17 | |
| 18 | / { |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 19 | model = "Microchip SAMA7G5-EK"; |
| 20 | compatible = "microchip,sama7g5ek", "microchip,sama7g5", "microchip,sama7"; |
| 21 | |
| 22 | chosen { |
| 23 | bootargs = "rw root=/dev/mmcblk1p2 rootfstype=ext4 rootwait"; |
| 24 | stdout-path = "serial0:115200n8"; |
| 25 | }; |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 26 | |
| 27 | aliases { |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 28 | serial0 = &uart3; |
| 29 | serial1 = &uart4; |
| 30 | serial2 = &uart7; |
| 31 | serial3 = &uart0; |
Eugen Hristev | cb02654 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 32 | i2c0 = &i2c1; |
Eugen Hristev | 5e158ae | 2022-01-04 18:23:36 +0200 | [diff] [blame] | 33 | i2c1 = &i2c8; |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 34 | i2c2 = &i2c9; |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 35 | }; |
| 36 | |
Claudiu Beznea | edbf930 | 2020-06-02 15:19:19 +0300 | [diff] [blame] | 37 | clocks { |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 38 | slow_xtal { |
Claudiu Beznea | edbf930 | 2020-06-02 15:19:19 +0300 | [diff] [blame] | 39 | clock-frequency = <32768>; |
| 40 | }; |
| 41 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 42 | main_xtal { |
Claudiu Beznea | edbf930 | 2020-06-02 15:19:19 +0300 | [diff] [blame] | 43 | clock-frequency = <24000000>; |
| 44 | }; |
| 45 | }; |
| 46 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 47 | gpio_keys { |
| 48 | compatible = "gpio-keys"; |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 49 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 50 | pinctrl-names = "default"; |
| 51 | pinctrl-0 = <&pinctrl_key_gpio_default>; |
Eugen Hristev | fea6b4e | 2020-07-30 15:52:51 +0300 | [diff] [blame] | 52 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 53 | bp1 { |
| 54 | label = "PB_USER"; |
| 55 | gpios = <&pioA PIN_PA12 GPIO_ACTIVE_LOW>; |
| 56 | linux,code = <KEY_PROG1>; |
| 57 | wakeup-source; |
| 58 | }; |
| 59 | }; |
| 60 | |
| 61 | leds { |
| 62 | compatible = "gpio-leds"; |
| 63 | pinctrl-names = "default"; |
| 64 | pinctrl-0 = <&pinctrl_led_gpio_default>; |
| 65 | status = "okay"; /* Conflict with pwm. */ |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 66 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 67 | red_led { |
| 68 | label = "red"; |
| 69 | gpios = <&pioA PIN_PB8 GPIO_ACTIVE_HIGH>; |
| 70 | }; |
| 71 | |
| 72 | green_led { |
| 73 | label = "green"; |
| 74 | gpios = <&pioA PIN_PA13 GPIO_ACTIVE_HIGH>; |
| 75 | }; |
| 76 | |
| 77 | blue_led { |
| 78 | label = "blue"; |
| 79 | gpios = <&pioA PIN_PD20 GPIO_ACTIVE_HIGH>; |
| 80 | linux,default-trigger = "heartbeat"; |
| 81 | }; |
| 82 | }; |
| 83 | |
| 84 | /* 512 M */ |
| 85 | memory@60000000 { |
| 86 | device_type = "memory"; |
| 87 | reg = <0x60000000 0x20000000>; |
| 88 | }; |
| 89 | |
| 90 | sound: sound { |
| 91 | compatible = "simple-audio-card"; |
| 92 | simple-audio-card,name = "sama7g5ek audio"; |
| 93 | #address-cells = <1>; |
| 94 | #size-cells = <0>; |
| 95 | simple-audio-card,dai-link@0 { |
| 96 | reg = <0>; |
| 97 | cpu { |
| 98 | sound-dai = <&spdiftx>; |
| 99 | }; |
| 100 | codec { |
| 101 | sound-dai = <&spdif_out>; |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 102 | }; |
| 103 | }; |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 104 | simple-audio-card,dai-link@1 { |
| 105 | reg = <1>; |
| 106 | cpu { |
| 107 | sound-dai = <&spdifrx>; |
| 108 | }; |
| 109 | codec { |
| 110 | sound-dai = <&spdif_in>; |
| 111 | }; |
| 112 | }; |
| 113 | }; |
| 114 | |
| 115 | spdif_in: spdif-in { |
| 116 | #sound-dai-cells = <0>; |
| 117 | compatible = "linux,spdif-dir"; |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 118 | }; |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 119 | |
| 120 | spdif_out: spdif-out { |
| 121 | #sound-dai-cells = <0>; |
| 122 | compatible = "linux,spdif-dit"; |
| 123 | }; |
| 124 | }; |
| 125 | |
| 126 | &adc { |
| 127 | vddana-supply = <&vddout25>; |
| 128 | vref-supply = <&vddout25>; |
| 129 | pinctrl-names = "default"; |
| 130 | pinctrl-0 = <&pinctrl_mikrobus1_an_default &pinctrl_mikrobus2_an_default>; |
| 131 | status = "okay"; |
| 132 | }; |
| 133 | |
| 134 | &can0 { |
| 135 | pinctrl-names = "default"; |
| 136 | pinctrl-0 = <&pinctrl_can0_default>; |
| 137 | status = "okay"; |
| 138 | }; |
| 139 | |
| 140 | &can1 { |
| 141 | pinctrl-names = "default"; |
| 142 | pinctrl-0 = <&pinctrl_can1_default>; |
| 143 | status = "okay"; |
| 144 | }; |
| 145 | |
| 146 | &cpu0 { |
| 147 | cpu-supply = <&vddcpu>; |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 148 | }; |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 149 | |
Tudor Ambarus | d9a21d0 | 2021-11-03 19:07:41 +0200 | [diff] [blame] | 150 | &qspi0 { |
| 151 | pinctrl-names = "default"; |
| 152 | pinctrl-0 = <&pinctrl_qspi>; |
| 153 | status = "okay"; |
| 154 | |
| 155 | flash@0 { |
| 156 | #address-cells = <1>; |
| 157 | #size-cells = <1>; |
| 158 | compatible = "jedec,spi-nor"; |
| 159 | reg = <0>; |
| 160 | spi-max-frequency = <133000000>; |
| 161 | spi-tx-bus-width = <8>; |
| 162 | spi-rx-bus-width = <8>; |
| 163 | m25p,fast-read; |
| 164 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 165 | at91bootstrap@0 { |
| 166 | label = "ospi: at91bootstrap"; |
| 167 | reg = <0x0 0x40000>; |
| 168 | }; |
| 169 | |
| 170 | bootloader@40000 { |
| 171 | label = "ospi: bootloader"; |
| 172 | reg = <0x40000 0xc0000>; |
| 173 | }; |
| 174 | |
| 175 | bootloaderenvred@100000 { |
| 176 | label = "ospi: bootloader env redundant"; |
| 177 | reg = <0x100000 0x40000>; |
| 178 | }; |
| 179 | |
| 180 | bootloaderenv@140000 { |
| 181 | label = "ospi: bootloader env"; |
| 182 | reg = <0x140000 0x40000>; |
| 183 | }; |
| 184 | |
| 185 | dtb@180000 { |
| 186 | label = "ospi: device tree"; |
| 187 | reg = <0x180000 0x80000>; |
| 188 | }; |
| 189 | |
| 190 | kernel@200000 { |
| 191 | label = "ospi: kernel"; |
| 192 | reg = <0x200000 0x600000>; |
| 193 | }; |
| 194 | |
| 195 | rootfs@800000 { |
| 196 | label = "ospi: rootfs"; |
| 197 | reg = <0x800000 0x7800000>; |
| 198 | }; |
| 199 | |
Tudor Ambarus | d9a21d0 | 2021-11-03 19:07:41 +0200 | [diff] [blame] | 200 | }; |
| 201 | }; |
| 202 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 203 | &dma0 { |
| 204 | status = "okay"; |
| 205 | }; |
| 206 | |
| 207 | &dma1 { |
| 208 | status = "okay"; |
| 209 | }; |
| 210 | |
| 211 | &dma2 { |
| 212 | status = "okay"; |
| 213 | }; |
| 214 | |
| 215 | &flx0 { |
| 216 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>; |
| 217 | status = "disabled"; |
| 218 | |
| 219 | uart0: serial@200 { |
| 220 | pinctrl-names = "default"; |
| 221 | pinctrl-0 = <&pinctrl_flx0_default>; |
| 222 | status = "disabled"; |
| 223 | }; |
| 224 | }; |
| 225 | |
Eugen Hristev | cb02654 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 226 | &flx1 { |
Eugen Hristev | eecfff0 | 2021-08-27 13:44:12 +0300 | [diff] [blame] | 227 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; |
Eugen Hristev | cb02654 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 228 | status = "okay"; |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 229 | |
| 230 | i2c1: i2c@600 { |
| 231 | pinctrl-names = "default"; |
| 232 | pinctrl-0 = <&pinctrl_i2c1_default>; |
| 233 | i2c-analog-filter; |
| 234 | i2c-digital-filter; |
| 235 | i2c-digital-filter-width-ns = <35>; |
| 236 | status = "okay"; |
| 237 | |
| 238 | mcp16502@5b { |
| 239 | compatible = "microchip,mcp16502"; |
| 240 | reg = <0x5b>; |
| 241 | status = "okay"; |
| 242 | |
| 243 | regulators { |
| 244 | vdd_3v3: VDD_IO { |
| 245 | regulator-name = "VDD_IO"; |
| 246 | regulator-min-microvolt = <1200000>; |
| 247 | regulator-max-microvolt = <3700000>; |
| 248 | regulator-initial-mode = <2>; |
| 249 | regulator-allowed-modes = <2>, <4>; |
| 250 | regulator-always-on; |
| 251 | |
| 252 | regulator-state-standby { |
| 253 | regulator-on-in-suspend; |
| 254 | regulator-suspend-microvolt = <3300000>; |
| 255 | regulator-mode = <4>; |
| 256 | }; |
| 257 | |
| 258 | regulator-state-mem { |
| 259 | regulator-off-in-suspend; |
| 260 | regulator-mode = <4>; |
| 261 | }; |
| 262 | }; |
| 263 | |
| 264 | vddioddr: VDD_DDR { |
| 265 | regulator-name = "VDD_DDR"; |
| 266 | regulator-min-microvolt = <1300000>; |
| 267 | regulator-max-microvolt = <1450000>; |
| 268 | regulator-initial-mode = <2>; |
| 269 | regulator-allowed-modes = <2>, <4>; |
| 270 | regulator-always-on; |
| 271 | |
| 272 | regulator-state-standby { |
| 273 | regulator-on-in-suspend; |
| 274 | regulator-suspend-microvolt = <1350000>; |
| 275 | regulator-mode = <4>; |
| 276 | }; |
| 277 | |
| 278 | regulator-state-mem { |
| 279 | regulator-on-in-suspend; |
| 280 | regulator-suspend-microvolt = <1350000>; |
| 281 | regulator-mode = <4>; |
| 282 | }; |
| 283 | }; |
| 284 | |
| 285 | vddcore: VDD_CORE { |
| 286 | regulator-name = "VDD_CORE"; |
| 287 | regulator-min-microvolt = <1100000>; |
| 288 | regulator-max-microvolt = <1850000>; |
| 289 | regulator-initial-mode = <2>; |
| 290 | regulator-allowed-modes = <2>, <4>; |
| 291 | regulator-always-on; |
| 292 | |
| 293 | regulator-state-standby { |
| 294 | regulator-on-in-suspend; |
| 295 | regulator-suspend-voltage = <1150000>; |
| 296 | regulator-mode = <4>; |
| 297 | }; |
| 298 | |
| 299 | regulator-state-mem { |
| 300 | regulator-off-in-suspend; |
| 301 | regulator-mode = <4>; |
| 302 | }; |
| 303 | }; |
| 304 | |
| 305 | vddcpu: VDD_OTHER { |
| 306 | regulator-name = "VDD_OTHER"; |
| 307 | regulator-min-microvolt = <1050000>; |
| 308 | regulator-max-microvolt = <1850000>; |
| 309 | regulator-initial-mode = <2>; |
| 310 | regulator-allowed-modes = <2>, <4>; |
| 311 | regulator-ramp-delay = <3125>; |
| 312 | regulator-always-on; |
| 313 | |
| 314 | regulator-state-standby { |
| 315 | regulator-on-in-suspend; |
| 316 | regulator-suspend-voltage = <1050000>; |
| 317 | regulator-mode = <4>; |
| 318 | }; |
| 319 | |
| 320 | regulator-state-mem { |
| 321 | regulator-off-in-suspend; |
| 322 | regulator-mode = <4>; |
| 323 | }; |
| 324 | }; |
| 325 | |
| 326 | vldo1: LDO1 { |
| 327 | regulator-name = "LDO1"; |
| 328 | regulator-min-microvolt = <1200000>; |
| 329 | regulator-max-microvolt = <3700000>; |
| 330 | regulator-always-on; |
| 331 | |
| 332 | regulator-state-standby { |
| 333 | regulator-suspend-voltage = <1800000>; |
| 334 | regulator-on-in-suspend; |
| 335 | }; |
| 336 | |
| 337 | regulator-state-mem { |
| 338 | regulator-off-in-suspend; |
| 339 | }; |
| 340 | }; |
| 341 | |
| 342 | vldo2: LDO2 { |
| 343 | regulator-name = "LDO2"; |
| 344 | regulator-min-microvolt = <1200000>; |
| 345 | regulator-max-microvolt = <3700000>; |
| 346 | |
| 347 | regulator-state-standby { |
| 348 | regulator-suspend-voltage = <1800000>; |
| 349 | regulator-on-in-suspend; |
| 350 | }; |
| 351 | |
| 352 | regulator-state-mem { |
| 353 | regulator-off-in-suspend; |
| 354 | }; |
| 355 | }; |
| 356 | }; |
| 357 | }; |
| 358 | }; |
Eugen Hristev | cb02654 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 359 | }; |
| 360 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 361 | &flx3 { |
| 362 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>; |
Eugen Hristev | cb02654 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 363 | status = "okay"; |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 364 | |
| 365 | uart3: serial@200 { |
| 366 | pinctrl-names = "default"; |
| 367 | pinctrl-0 = <&pinctrl_flx3_default>; |
| 368 | status = "okay"; |
| 369 | }; |
Eugen Hristev | 5e158ae | 2022-01-04 18:23:36 +0200 | [diff] [blame] | 370 | }; |
Eugen Hristev | cb02654 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 371 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 372 | &flx4 { |
| 373 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>; |
| 374 | status = "okay"; |
| 375 | |
| 376 | uart4: serial@200 { |
| 377 | pinctrl-names = "default"; |
| 378 | pinctrl-0 = <&pinctrl_flx4_default>; |
| 379 | status = "okay"; |
| 380 | }; |
| 381 | }; |
| 382 | |
| 383 | &flx7 { |
| 384 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>; |
| 385 | status = "okay"; |
| 386 | |
| 387 | uart7: serial@200 { |
| 388 | pinctrl-names = "default"; |
| 389 | pinctrl-0 = <&pinctrl_flx7_default>; |
| 390 | status = "okay"; |
| 391 | }; |
| 392 | }; |
| 393 | |
Eugen Hristev | 5e158ae | 2022-01-04 18:23:36 +0200 | [diff] [blame] | 394 | &flx8 { |
| 395 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; |
| 396 | status = "okay"; |
| 397 | |
| 398 | i2c8: i2c@600 { |
| 399 | pinctrl-names = "default"; |
| 400 | pinctrl-0 = <&pinctrl_i2c8_default>; |
| 401 | i2c-analog-filter; |
| 402 | i2c-digital-filter; |
| 403 | i2c-digital-filter-width-ns = <35>; |
| 404 | status = "okay"; |
Eugen Hristev | cb02654 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 405 | |
Eugen Hristev | 5e158ae | 2022-01-04 18:23:36 +0200 | [diff] [blame] | 406 | eeprom@52 { |
| 407 | compatible = "microchip,24aa02e48"; |
| 408 | reg = <0x52>; |
| 409 | pagesize = <16>; |
| 410 | }; |
| 411 | |
| 412 | eeprom@53 { |
| 413 | compatible = "microchip,24aa02e48"; |
| 414 | reg = <0x53>; |
| 415 | pagesize = <16>; |
| 416 | }; |
Eugen Hristev | cb02654 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 417 | }; |
| 418 | }; |
| 419 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 420 | &flx9 { |
| 421 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; |
| 422 | status = "okay"; |
| 423 | |
| 424 | i2c9: i2c@600 { |
| 425 | pinctrl-names = "default"; |
| 426 | pinctrl-0 = <&pinctrl_i2c9_default>; |
| 427 | i2c-analog-filter; |
| 428 | i2c-digital-filter; |
| 429 | i2c-digital-filter-width-ns = <35>; |
| 430 | status = "okay"; |
| 431 | }; |
| 432 | }; |
| 433 | |
| 434 | &flx11 { |
| 435 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>; |
| 436 | status = "okay"; |
| 437 | |
| 438 | spi11: spi@400 { |
| 439 | pinctrl-names = "default"; |
| 440 | pinctrl-0 = <&pinctrl_mikrobus1_spi &pinctrl_mikrobus1_spi_cs>; |
| 441 | status = "okay"; |
| 442 | }; |
| 443 | }; |
| 444 | |
Claudiu Beznea | 45cca2b | 2020-06-09 13:53:00 +0300 | [diff] [blame] | 445 | &gmac0 { |
| 446 | #address-cells = <1>; |
| 447 | #size-cells = <0>; |
| 448 | pinctrl-names = "default"; |
Codrin Ciubotariu | de10404 | 2022-01-28 13:10:10 +0200 | [diff] [blame] | 449 | pinctrl-0 = <&pinctrl_gmac0_default |
| 450 | &pinctrl_gmac0_mdio_default |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 451 | &pinctrl_gmac0_txck_default |
| 452 | &pinctrl_gmac0_phy_irq>; |
Claudiu Beznea | 45cca2b | 2020-06-09 13:53:00 +0300 | [diff] [blame] | 453 | phy-mode = "rgmii-id"; |
| 454 | status = "okay"; |
| 455 | |
| 456 | ethernet-phy@7 { |
| 457 | reg = <0x7>; |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 458 | interrupt-parent = <&pioA>; |
| 459 | interrupts = <PIN_PA31 IRQ_TYPE_LEVEL_LOW>; |
Claudiu Beznea | 45cca2b | 2020-06-09 13:53:00 +0300 | [diff] [blame] | 460 | }; |
| 461 | }; |
| 462 | |
Claudiu Beznea | 4455012 | 2020-06-09 13:53:45 +0300 | [diff] [blame] | 463 | &gmac1 { |
| 464 | #address-cells = <1>; |
| 465 | #size-cells = <0>; |
| 466 | pinctrl-names = "default"; |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 467 | pinctrl-0 = <&pinctrl_gmac1_default |
| 468 | &pinctrl_gmac1_mdio_default |
| 469 | &pinctrl_gmac1_phy_irq>; |
Claudiu Beznea | 4455012 | 2020-06-09 13:53:45 +0300 | [diff] [blame] | 470 | phy-mode = "rmii"; |
| 471 | status = "okay"; |
| 472 | |
| 473 | ethernet-phy@0 { |
| 474 | reg = <0x0>; |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 475 | interrupt-parent = <&pioA>; |
| 476 | interrupts = <PIN_PA21 IRQ_TYPE_LEVEL_LOW>; |
Claudiu Beznea | 4455012 | 2020-06-09 13:53:45 +0300 | [diff] [blame] | 477 | }; |
| 478 | }; |
| 479 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 480 | &i2s0 { |
| 481 | pinctrl-names = "default"; |
| 482 | pinctrl-0 = <&pinctrl_i2s0_default>; |
| 483 | }; |
| 484 | |
| 485 | &pioA { |
| 486 | |
| 487 | pinctrl_can0_default: can0_default { |
| 488 | pinmux = <PIN_PD12__CANTX0>, |
| 489 | <PIN_PD13__CANRX0 >; |
| 490 | bias-disable; |
| 491 | }; |
| 492 | |
| 493 | pinctrl_can1_default: can1_default { |
| 494 | pinmux = <PIN_PD14__CANTX1>, |
| 495 | <PIN_PD15__CANRX1 >; |
| 496 | bias-disable; |
| 497 | }; |
| 498 | |
| 499 | pinctrl_flx0_default: flx0_default { |
| 500 | pinmux = <PIN_PE3__FLEXCOM0_IO0>, |
| 501 | <PIN_PE4__FLEXCOM0_IO1>, |
| 502 | <PIN_PE6__FLEXCOM0_IO3>, |
| 503 | <PIN_PE7__FLEXCOM0_IO4>; |
Eugen Hristev | cb02654 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 504 | bias-disable; |
| 505 | }; |
| 506 | |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 507 | pinctrl_flx3_default: flx3_default { |
| 508 | pinmux = <PIN_PD16__FLEXCOM3_IO0>, |
| 509 | <PIN_PD17__FLEXCOM3_IO1>; |
Eugen Hristev | 996812f | 2021-01-28 10:14:11 +0200 | [diff] [blame] | 510 | bias-pull-up; |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 511 | }; |
| 512 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 513 | pinctrl_flx4_default: flx4_default { |
| 514 | pinmux = <PIN_PD18__FLEXCOM4_IO0>, |
| 515 | <PIN_PD19__FLEXCOM4_IO1>; |
| 516 | bias-disable; |
| 517 | }; |
| 518 | |
| 519 | pinctrl_flx7_default: flx7_default { |
| 520 | pinmux = <PIN_PC23__FLEXCOM7_IO0>, |
| 521 | <PIN_PC24__FLEXCOM7_IO1>; |
| 522 | bias-disable; |
| 523 | }; |
| 524 | |
| 525 | pinctrl_gmac0_default: gmac0_default { |
| 526 | pinmux = <PIN_PA16__G0_TX0>, |
| 527 | <PIN_PA17__G0_TX1>, |
| 528 | <PIN_PA26__G0_TX2>, |
| 529 | <PIN_PA27__G0_TX3>, |
| 530 | <PIN_PA19__G0_RX0>, |
| 531 | <PIN_PA20__G0_RX1>, |
| 532 | <PIN_PA28__G0_RX2>, |
| 533 | <PIN_PA29__G0_RX3>, |
| 534 | <PIN_PA15__G0_TXEN>, |
| 535 | <PIN_PA30__G0_RXCK>, |
| 536 | <PIN_PA18__G0_RXDV>, |
| 537 | <PIN_PA25__G0_125CK>; |
| 538 | slew-rate = <0>; |
| 539 | bias-disable; |
| 540 | }; |
| 541 | |
| 542 | pinctrl_gmac0_mdio_default: gmac0_mdio_default { |
| 543 | pinmux = <PIN_PA22__G0_MDC>, |
| 544 | <PIN_PA23__G0_MDIO>; |
| 545 | bias-disable; |
| 546 | }; |
| 547 | |
| 548 | pinctrl_gmac0_txck_default: gmac0_txck_default { |
| 549 | pinmux = <PIN_PA24__G0_TXCK>; |
| 550 | slew-rate = <0>; |
| 551 | bias-pull-up; |
| 552 | }; |
| 553 | |
| 554 | pinctrl_gmac0_phy_irq: gmac0_phy_irq { |
| 555 | pinmux = <PIN_PA31__GPIO>; |
| 556 | bias-disable; |
| 557 | }; |
| 558 | |
| 559 | pinctrl_gmac1_default: gmac1_default { |
| 560 | pinmux = <PIN_PD30__G1_TXCK>, |
| 561 | <PIN_PD22__G1_TX0>, |
| 562 | <PIN_PD23__G1_TX1>, |
| 563 | <PIN_PD21__G1_TXEN>, |
| 564 | <PIN_PD25__G1_RX0>, |
| 565 | <PIN_PD26__G1_RX1>, |
| 566 | <PIN_PD27__G1_RXER>, |
| 567 | <PIN_PD24__G1_RXDV>; |
| 568 | slew-rate = <0>; |
| 569 | bias-disable; |
| 570 | }; |
| 571 | |
| 572 | pinctrl_gmac1_mdio_default: gmac1_mdio_default { |
| 573 | pinmux = <PIN_PD28__G1_MDC>, |
| 574 | <PIN_PD29__G1_MDIO>; |
| 575 | bias-disable; |
| 576 | }; |
| 577 | |
| 578 | pinctrl_gmac1_phy_irq: gmac1_phy_irq { |
| 579 | pinmux = <PIN_PA21__GPIO>; |
| 580 | bias-disable; |
| 581 | }; |
| 582 | |
| 583 | pinctrl_i2c1_default: i2c1_default { |
| 584 | pinmux = <PIN_PC9__FLEXCOM1_IO0>, |
| 585 | <PIN_PC10__FLEXCOM1_IO1>; |
| 586 | bias-disable; |
| 587 | }; |
| 588 | |
Eugen Hristev | 5e158ae | 2022-01-04 18:23:36 +0200 | [diff] [blame] | 589 | pinctrl_i2c8_default: i2c8_default { |
| 590 | pinmux = <PIN_PC14__FLEXCOM8_IO0>, |
| 591 | <PIN_PC13__FLEXCOM8_IO1>; |
| 592 | bias-disable; |
| 593 | }; |
| 594 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 595 | pinctrl_i2c9_default: i2c9_default { |
| 596 | pinmux = <PIN_PC18__FLEXCOM9_IO0>, |
| 597 | <PIN_PC19__FLEXCOM9_IO1>; |
| 598 | bias-disable; |
| 599 | }; |
| 600 | |
| 601 | pinctrl_i2s0_default: i2s0_default { |
| 602 | pinmux = <PIN_PB23__I2SMCC0_CK>, |
| 603 | <PIN_PB24__I2SMCC0_WS>, |
| 604 | <PIN_PB25__I2SMCC0_DOUT1>, |
| 605 | <PIN_PB26__I2SMCC0_DOUT0>, |
| 606 | <PIN_PB27__I2SMCC0_MCK>; |
| 607 | bias-disable; |
| 608 | }; |
| 609 | |
| 610 | pinctrl_key_gpio_default: key_gpio_default { |
| 611 | pinmux = <PIN_PA12__GPIO>; |
| 612 | bias-pull-up; |
| 613 | }; |
| 614 | |
| 615 | pinctrl_led_gpio_default: led_gpio_default { |
| 616 | pinmux = <PIN_PA13__GPIO>, |
| 617 | <PIN_PB8__GPIO>, |
| 618 | <PIN_PD20__GPIO>; |
| 619 | bias-pull-up; |
| 620 | }; |
| 621 | |
| 622 | pinctrl_mikrobus1_an_default: mikrobus1_an_default { |
| 623 | pinmux = <PIN_PD0__GPIO>; |
| 624 | bias-disable; |
| 625 | }; |
| 626 | |
| 627 | pinctrl_mikrobus2_an_default: mikrobus2_an_default { |
| 628 | pinmux = <PIN_PD1__GPIO>; |
| 629 | bias-disable; |
| 630 | }; |
| 631 | |
| 632 | pinctrl_mikrobus1_pwm2_default: mikrobus1_pwm2_default { |
| 633 | pinmux = <PIN_PA13__PWMH2>; |
| 634 | bias-disable; |
| 635 | }; |
| 636 | |
| 637 | pinctrl_mikrobus2_pwm3_default: mikrobus2_pwm3_default { |
| 638 | pinmux = <PIN_PD20__PWMH3>; |
| 639 | bias-disable; |
| 640 | }; |
| 641 | |
| 642 | pinctrl_mikrobus1_spi_cs: mikrobus1_spi_cs { |
| 643 | pinmux = <PIN_PB6__FLEXCOM11_IO3>; |
| 644 | bias-disable; |
| 645 | }; |
| 646 | |
| 647 | pinctrl_mikrobus1_spi: mikrobus1_spi { |
| 648 | pinmux = <PIN_PB3__FLEXCOM11_IO0>, |
| 649 | <PIN_PB4__FLEXCOM11_IO1>, |
| 650 | <PIN_PB5__FLEXCOM11_IO2>; |
| 651 | bias-disable; |
| 652 | }; |
| 653 | |
Tudor Ambarus | d9a21d0 | 2021-11-03 19:07:41 +0200 | [diff] [blame] | 654 | pinctrl_qspi: qspi { |
| 655 | pinmux = <PIN_PB12__QSPI0_IO0>, |
| 656 | <PIN_PB11__QSPI0_IO1>, |
| 657 | <PIN_PB10__QSPI0_IO2>, |
| 658 | <PIN_PB9__QSPI0_IO3>, |
| 659 | <PIN_PB16__QSPI0_IO4>, |
| 660 | <PIN_PB17__QSPI0_IO5>, |
| 661 | <PIN_PB18__QSPI0_IO6>, |
| 662 | <PIN_PB19__QSPI0_IO7>, |
| 663 | <PIN_PB13__QSPI0_CS>, |
| 664 | <PIN_PB14__QSPI0_SCK>, |
| 665 | <PIN_PB15__QSPI0_SCKN>, |
| 666 | <PIN_PB20__QSPI0_DQS>, |
| 667 | <PIN_PB21__QSPI0_INT>; |
| 668 | bias-disable; |
| 669 | slew-rate = <0>; |
| 670 | atmel,drive-strength = <ATMEL_PIO_DRVSTR_HI>; |
| 671 | }; |
| 672 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 673 | pinctrl_sdmmc0_default: sdmmc0_default { |
Eugen Hristev | fea6b4e | 2020-07-30 15:52:51 +0300 | [diff] [blame] | 674 | pinmux = <PIN_PA1__SDMMC0_CMD>, |
| 675 | <PIN_PA3__SDMMC0_DAT0>, |
| 676 | <PIN_PA4__SDMMC0_DAT1>, |
| 677 | <PIN_PA5__SDMMC0_DAT2>, |
| 678 | <PIN_PA6__SDMMC0_DAT3>, |
| 679 | <PIN_PA7__SDMMC0_DAT4>, |
| 680 | <PIN_PA8__SDMMC0_DAT5>, |
| 681 | <PIN_PA9__SDMMC0_DAT6>, |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 682 | <PIN_PA10__SDMMC0_DAT7>, |
| 683 | <PIN_PA0__SDMMC0_CK>, |
Eugen Hristev | fea6b4e | 2020-07-30 15:52:51 +0300 | [diff] [blame] | 684 | <PIN_PA2__SDMMC0_RSTN>, |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 685 | <PIN_PA14__SDMMC0_CD>, |
| 686 | <PIN_PA11__SDMMC0_DS>; |
| 687 | slew-rate = <0>; |
| 688 | bias-pull-up; |
Eugen Hristev | fea6b4e | 2020-07-30 15:52:51 +0300 | [diff] [blame] | 689 | }; |
| 690 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 691 | pinctrl_sdmmc1_default: sdmmc1_default { |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 692 | pinmux = <PIN_PB29__SDMMC1_CMD>, |
| 693 | <PIN_PB31__SDMMC1_DAT0>, |
| 694 | <PIN_PC0__SDMMC1_DAT1>, |
| 695 | <PIN_PC1__SDMMC1_DAT2>, |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 696 | <PIN_PC2__SDMMC1_DAT3>, |
| 697 | <PIN_PB30__SDMMC1_CK>, |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 698 | <PIN_PB28__SDMMC1_RSTN>, |
| 699 | <PIN_PC5__SDMMC1_1V8SEL>, |
| 700 | <PIN_PC4__SDMMC1_CD>; |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 701 | slew-rate = <0>; |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 702 | bias-pull-up; |
| 703 | }; |
Claudiu Beznea | 45cca2b | 2020-06-09 13:53:00 +0300 | [diff] [blame] | 704 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 705 | pinctrl_sdmmc2_default: sdmmc2_default { |
| 706 | pinmux = <PIN_PD3__SDMMC2_CMD>, |
| 707 | <PIN_PD5__SDMMC2_DAT0>, |
| 708 | <PIN_PD6__SDMMC2_DAT1>, |
| 709 | <PIN_PD7__SDMMC2_DAT2>, |
| 710 | <PIN_PD8__SDMMC2_DAT3>, |
| 711 | <PIN_PD4__SDMMC2_CK>; |
Codrin Ciubotariu | de10404 | 2022-01-28 13:10:10 +0200 | [diff] [blame] | 712 | slew-rate = <0>; |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 713 | bias-pull-up; |
| 714 | }; |
| 715 | |
| 716 | pinctrl_spdifrx_default: spdifrx_default { |
| 717 | pinmux = <PIN_PB0__SPDIF_RX>; |
Claudiu Beznea | 45cca2b | 2020-06-09 13:53:00 +0300 | [diff] [blame] | 718 | bias-disable; |
| 719 | }; |
Claudiu Beznea | 4455012 | 2020-06-09 13:53:45 +0300 | [diff] [blame] | 720 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 721 | pinctrl_spdiftx_default: spdiftx_default { |
| 722 | pinmux = <PIN_PB1__SPDIF_TX>; |
Codrin Ciubotariu | de10404 | 2022-01-28 13:10:10 +0200 | [diff] [blame] | 723 | bias-disable; |
| 724 | }; |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 725 | }; |
Codrin Ciubotariu | de10404 | 2022-01-28 13:10:10 +0200 | [diff] [blame] | 726 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 727 | &pwm { |
| 728 | pinctrl-names = "default"; |
| 729 | pinctrl-0 = <&pinctrl_mikrobus1_pwm2_default &pinctrl_mikrobus2_pwm3_default>; |
| 730 | status = "disabled"; /* Conflict with leds. */ |
| 731 | }; |
| 732 | |
| 733 | &rtt { |
| 734 | atmel,rtt-rtc-time-reg = <&gpbr 0x0>; |
| 735 | }; |
| 736 | |
| 737 | &sdmmc0 { |
| 738 | bus-width = <8>; |
| 739 | non-removable; |
| 740 | no-1-8-v; |
| 741 | sdhci-caps-mask = <0x0 0x00200000>; |
| 742 | pinctrl-names = "default"; |
| 743 | pinctrl-0 = <&pinctrl_sdmmc0_default>; |
| 744 | status = "okay"; |
| 745 | }; |
| 746 | |
| 747 | &sdmmc1 { |
| 748 | bus-width = <4>; |
| 749 | no-1-8-v; |
| 750 | sdhci-caps-mask = <0x0 0x00200000>; |
| 751 | pinctrl-names = "default"; |
| 752 | pinctrl-0 = <&pinctrl_sdmmc1_default>; |
| 753 | status = "okay"; |
| 754 | }; |
| 755 | |
| 756 | &sdmmc2 { |
| 757 | bus-width = <4>; |
| 758 | no-1-8-v; |
| 759 | sdhci-caps-mask = <0x0 0x00200000>; |
| 760 | pinctrl-names = "default"; |
| 761 | pinctrl-0 = <&pinctrl_sdmmc2_default>; |
| 762 | }; |
| 763 | |
| 764 | &shdwc { |
| 765 | atmel,shdwc-debouncer = <976>; |
| 766 | status = "okay"; |
| 767 | |
| 768 | input@0 { |
| 769 | reg = <0>; |
Nicolas Ferre | 8c011dd | 2020-10-30 18:33:14 +0100 | [diff] [blame] | 770 | }; |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 771 | }; |
Nicolas Ferre | 8c011dd | 2020-10-30 18:33:14 +0100 | [diff] [blame] | 772 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 773 | &spdifrx { |
| 774 | pinctrl-names = "default"; |
| 775 | pinctrl-0 = <&pinctrl_spdifrx_default>; |
| 776 | status = "okay"; |
| 777 | }; |
| 778 | |
| 779 | &spdiftx { |
| 780 | pinctrl-names = "default"; |
| 781 | pinctrl-0 = <&pinctrl_spdiftx_default>; |
| 782 | status = "okay"; |
| 783 | }; |
| 784 | |
| 785 | &tcb0 { |
| 786 | timer0: timer@0 { |
| 787 | compatible = "atmel,tcb-timer"; |
| 788 | reg = <0>; |
Codrin Ciubotariu | de10404 | 2022-01-28 13:10:10 +0200 | [diff] [blame] | 789 | }; |
| 790 | |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 791 | timer1: timer@1 { |
| 792 | compatible = "atmel,tcb-timer"; |
| 793 | reg = <1>; |
Claudiu Beznea | 4455012 | 2020-06-09 13:53:45 +0300 | [diff] [blame] | 794 | }; |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 795 | }; |
Eugen Hristev | db55fd6 | 2022-03-07 16:29:42 +0200 | [diff] [blame] | 796 | |
| 797 | &trng { |
| 798 | status = "okay"; |
| 799 | }; |
| 800 | |
| 801 | &vddout25 { |
| 802 | vin-supply = <&vdd_3v3>; |
| 803 | status = "okay"; |
| 804 | }; |