Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 | /* |
| 3 | * sama7g5ek.dts - Device Tree file for SAMA7G5 EK |
| 4 | * SAMA7G5 Evaluation Kit |
| 5 | * |
| 6 | * Copyright (c) 2020, Microchip Technology Inc. |
| 7 | * 2020, Eugen Hristev <eugen.hristev@microchip.com> |
| 8 | * 2020, Claudiu Beznea <claudiu.beznea@microchip.com> |
| 9 | */ |
| 10 | /dts-v1/; |
| 11 | #include "sama7g5.dtsi" |
| 12 | #include "sama7g5-pinfunc.h" |
| 13 | |
| 14 | / { |
| 15 | model = "Microchip SAMA7G5 Evaluation Kit"; |
| 16 | compatible = "microchip,sama7g5ek", "microchip,sama7g54", "microchip,sama7g5", "microchip,sama7"; |
| 17 | |
| 18 | aliases { |
| 19 | serial0 = &uart0; |
| 20 | }; |
| 21 | |
| 22 | chosen { |
| 23 | stdout-path = "serial0:115200n8"; |
| 24 | }; |
| 25 | |
Claudiu Beznea | edbf930 | 2020-06-02 15:19:19 +0300 | [diff] [blame] | 26 | clocks { |
| 27 | slow_xtal: slow_xtal { |
| 28 | clock-frequency = <32768>; |
| 29 | }; |
| 30 | |
| 31 | main_xtal: main_xtal { |
| 32 | clock-frequency = <24000000>; |
| 33 | }; |
| 34 | }; |
| 35 | |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 36 | ahb { |
| 37 | |
| 38 | apb { |
| 39 | sdmmc1: sdio-host@e1208000 { |
| 40 | bus-width = <4>; |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 41 | pinctrl-names = "default"; |
| 42 | pinctrl-0 = <&pinctrl_sdmmc1_cmd_data_default |
| 43 | &pinctrl_sdmmc1_ck_cd_rstn_vddsel_default>; |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 44 | status = "okay"; |
| 45 | }; |
| 46 | |
| 47 | uart0: serial@e1824200 { |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 48 | pinctrl-names = "default"; |
| 49 | pinctrl-0 = <&pinctrl_flx3_default>; |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 50 | status = "okay"; |
| 51 | }; |
| 52 | }; |
| 53 | }; |
| 54 | }; |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 55 | |
Claudiu Beznea | 45cca2b | 2020-06-09 13:53:00 +0300 | [diff] [blame^] | 56 | &gmac0 { |
| 57 | #address-cells = <1>; |
| 58 | #size-cells = <0>; |
| 59 | pinctrl-names = "default"; |
| 60 | pinctrl-0 = <&pinctrl_gmac0_default>; |
| 61 | phy-mode = "rgmii-id"; |
| 62 | status = "okay"; |
| 63 | |
| 64 | ethernet-phy@7 { |
| 65 | reg = <0x7>; |
| 66 | }; |
| 67 | }; |
| 68 | |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 69 | &pinctrl { |
| 70 | pinctrl_flx3_default: flx3_default { |
| 71 | pinmux = <PIN_PD16__FLEXCOM3_IO0>, |
| 72 | <PIN_PD17__FLEXCOM3_IO1>; |
| 73 | bias-disable; |
| 74 | }; |
| 75 | |
| 76 | pinctrl_sdmmc1_cmd_data_default: sdmmc1_cmd_data_default { |
| 77 | pinmux = <PIN_PB29__SDMMC1_CMD>, |
| 78 | <PIN_PB31__SDMMC1_DAT0>, |
| 79 | <PIN_PC0__SDMMC1_DAT1>, |
| 80 | <PIN_PC1__SDMMC1_DAT2>, |
| 81 | <PIN_PC2__SDMMC1_DAT3>; |
| 82 | bias-pull-up; |
| 83 | }; |
| 84 | |
| 85 | pinctrl_sdmmc1_ck_cd_rstn_vddsel_default: sdmmc1_ck_cd_rstn_vddsel_default { |
| 86 | pinmux = <PIN_PB30__SDMMC1_CK>, |
| 87 | <PIN_PB28__SDMMC1_RSTN>, |
| 88 | <PIN_PC5__SDMMC1_1V8SEL>, |
| 89 | <PIN_PC4__SDMMC1_CD>; |
| 90 | bias-pull-up; |
| 91 | }; |
Claudiu Beznea | 45cca2b | 2020-06-09 13:53:00 +0300 | [diff] [blame^] | 92 | |
| 93 | pinctrl_gmac0_default: gmac0_default { |
| 94 | pinmux = <PIN_PA16__G0_TX0>, |
| 95 | <PIN_PA17__G0_TX1>, |
| 96 | <PIN_PA26__G0_TX2>, |
| 97 | <PIN_PA27__G0_TX3>, |
| 98 | <PIN_PA19__G0_RX0>, |
| 99 | <PIN_PA20__G0_RX1>, |
| 100 | <PIN_PA28__G0_RX2>, |
| 101 | <PIN_PA29__G0_RX3>, |
| 102 | <PIN_PA15__G0_TXEN>, |
| 103 | <PIN_PA24__G0_TXCK>, |
| 104 | <PIN_PA30__G0_RXCK>, |
| 105 | <PIN_PA18__G0_RXDV>, |
| 106 | <PIN_PA22__G0_MDC>, |
| 107 | <PIN_PA23__G0_MDIO>, |
| 108 | <PIN_PA25__G0_125CK>; |
| 109 | bias-disable; |
| 110 | }; |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 111 | }; |