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/; |
Eugen Hristev | eecfff0 | 2021-08-27 13:44:12 +0300 | [diff] [blame] | 11 | #include <dt-bindings/mfd/atmel-flexcom.h> |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 12 | #include "sama7g5.dtsi" |
| 13 | #include "sama7g5-pinfunc.h" |
| 14 | |
| 15 | / { |
| 16 | model = "Microchip SAMA7G5 Evaluation Kit"; |
| 17 | compatible = "microchip,sama7g5ek", "microchip,sama7g54", "microchip,sama7g5", "microchip,sama7"; |
| 18 | |
| 19 | aliases { |
| 20 | serial0 = &uart0; |
Eugen Hristev | cb02654 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 21 | i2c0 = &i2c1; |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | chosen { |
| 25 | stdout-path = "serial0:115200n8"; |
| 26 | }; |
| 27 | |
Claudiu Beznea | edbf930 | 2020-06-02 15:19:19 +0300 | [diff] [blame] | 28 | clocks { |
| 29 | slow_xtal: slow_xtal { |
| 30 | clock-frequency = <32768>; |
| 31 | }; |
| 32 | |
| 33 | main_xtal: main_xtal { |
| 34 | clock-frequency = <24000000>; |
| 35 | }; |
| 36 | }; |
| 37 | |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 38 | ahb { |
| 39 | |
| 40 | apb { |
Eugen Hristev | fea6b4e | 2020-07-30 15:52:51 +0300 | [diff] [blame] | 41 | sdmmc0: sdio-host@e1204000 { |
| 42 | bus-width = <8>; |
| 43 | non-removable; |
| 44 | pinctrl-names = "default"; |
| 45 | pinctrl-0 = <&pinctrl_sdmmc0_cmd_data_default |
| 46 | &pinctrl_sdmmc0_ck_rstn_ds_cd_default>; |
| 47 | status = "okay"; |
| 48 | }; |
| 49 | |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 50 | sdmmc1: sdio-host@e1208000 { |
| 51 | bus-width = <4>; |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 52 | pinctrl-names = "default"; |
| 53 | pinctrl-0 = <&pinctrl_sdmmc1_cmd_data_default |
| 54 | &pinctrl_sdmmc1_ck_cd_rstn_vddsel_default>; |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 55 | status = "okay"; |
| 56 | }; |
| 57 | |
| 58 | uart0: serial@e1824200 { |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 59 | pinctrl-names = "default"; |
| 60 | pinctrl-0 = <&pinctrl_flx3_default>; |
Eugen Hristev | 0de35aa | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 61 | status = "okay"; |
| 62 | }; |
| 63 | }; |
| 64 | }; |
| 65 | }; |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 66 | |
Eugen Hristev | cb02654 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 67 | &flx1 { |
Eugen Hristev | eecfff0 | 2021-08-27 13:44:12 +0300 | [diff] [blame] | 68 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; |
Eugen Hristev | cb02654 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 69 | status = "okay"; |
| 70 | }; |
| 71 | |
| 72 | &i2c1 { |
| 73 | pinctrl-names = "default"; |
| 74 | pinctrl-0 = <&pinctrl_flx1_default>; |
| 75 | status = "okay"; |
| 76 | |
| 77 | eeprom@52 { |
| 78 | compatible = "microchip,24aa02e48"; |
| 79 | reg = <0x52>; |
| 80 | pagesize = <16>; |
| 81 | }; |
| 82 | |
| 83 | eeprom@53 { |
| 84 | compatible = "microchip,24aa02e48"; |
| 85 | reg = <0x53>; |
| 86 | pagesize = <16>; |
| 87 | }; |
| 88 | }; |
| 89 | |
Claudiu Beznea | 45cca2b | 2020-06-09 13:53:00 +0300 | [diff] [blame] | 90 | &gmac0 { |
| 91 | #address-cells = <1>; |
| 92 | #size-cells = <0>; |
| 93 | pinctrl-names = "default"; |
Nicolas Ferre | 8c011dd | 2020-10-30 18:33:14 +0100 | [diff] [blame] | 94 | pinctrl-0 = <&pinctrl_gmac0_default &pinctrl_gmac0_txc_default>; |
Claudiu Beznea | 45cca2b | 2020-06-09 13:53:00 +0300 | [diff] [blame] | 95 | phy-mode = "rgmii-id"; |
| 96 | status = "okay"; |
| 97 | |
| 98 | ethernet-phy@7 { |
| 99 | reg = <0x7>; |
| 100 | }; |
| 101 | }; |
| 102 | |
Claudiu Beznea | 4455012 | 2020-06-09 13:53:45 +0300 | [diff] [blame] | 103 | &gmac1 { |
| 104 | #address-cells = <1>; |
| 105 | #size-cells = <0>; |
| 106 | pinctrl-names = "default"; |
| 107 | pinctrl-0 = <&pinctrl_gmac1_default>; |
| 108 | phy-mode = "rmii"; |
| 109 | status = "okay"; |
| 110 | |
| 111 | ethernet-phy@0 { |
| 112 | reg = <0x0>; |
| 113 | }; |
| 114 | }; |
| 115 | |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 116 | &pinctrl { |
Eugen Hristev | cb02654 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 117 | pinctrl_flx1_default: flx1_default { |
| 118 | pinmux = <PIN_PC9__FLEXCOM1_IO0>, |
| 119 | <PIN_PC10__FLEXCOM1_IO1>; |
| 120 | bias-disable; |
| 121 | }; |
| 122 | |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 123 | pinctrl_flx3_default: flx3_default { |
| 124 | pinmux = <PIN_PD16__FLEXCOM3_IO0>, |
| 125 | <PIN_PD17__FLEXCOM3_IO1>; |
Eugen Hristev | 996812f | 2021-01-28 10:14:11 +0200 | [diff] [blame] | 126 | bias-pull-up; |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 127 | }; |
| 128 | |
Eugen Hristev | fea6b4e | 2020-07-30 15:52:51 +0300 | [diff] [blame] | 129 | pinctrl_sdmmc0_cmd_data_default: sdmmc0_cmd_data_default { |
| 130 | pinmux = <PIN_PA1__SDMMC0_CMD>, |
| 131 | <PIN_PA3__SDMMC0_DAT0>, |
| 132 | <PIN_PA4__SDMMC0_DAT1>, |
| 133 | <PIN_PA5__SDMMC0_DAT2>, |
| 134 | <PIN_PA6__SDMMC0_DAT3>, |
| 135 | <PIN_PA7__SDMMC0_DAT4>, |
| 136 | <PIN_PA8__SDMMC0_DAT5>, |
| 137 | <PIN_PA9__SDMMC0_DAT6>, |
| 138 | <PIN_PA10__SDMMC0_DAT7>; |
| 139 | bias-pull-up; |
| 140 | }; |
| 141 | |
| 142 | pinctrl_sdmmc0_ck_rstn_ds_cd_default: sdmmc0_ck_rstn_ds_cd_default { |
| 143 | pinmux = <PIN_PA0__SDMMC0_CK>, |
| 144 | <PIN_PA2__SDMMC0_RSTN>, |
| 145 | <PIN_PA11__SDMMC0_DS>, |
| 146 | <PIN_PA14__SDMMC0_CD>; |
| 147 | bias-pull-up; |
| 148 | }; |
| 149 | |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 150 | pinctrl_sdmmc1_cmd_data_default: sdmmc1_cmd_data_default { |
| 151 | pinmux = <PIN_PB29__SDMMC1_CMD>, |
| 152 | <PIN_PB31__SDMMC1_DAT0>, |
| 153 | <PIN_PC0__SDMMC1_DAT1>, |
| 154 | <PIN_PC1__SDMMC1_DAT2>, |
| 155 | <PIN_PC2__SDMMC1_DAT3>; |
| 156 | bias-pull-up; |
| 157 | }; |
| 158 | |
| 159 | pinctrl_sdmmc1_ck_cd_rstn_vddsel_default: sdmmc1_ck_cd_rstn_vddsel_default { |
| 160 | pinmux = <PIN_PB30__SDMMC1_CK>, |
| 161 | <PIN_PB28__SDMMC1_RSTN>, |
| 162 | <PIN_PC5__SDMMC1_1V8SEL>, |
| 163 | <PIN_PC4__SDMMC1_CD>; |
| 164 | bias-pull-up; |
| 165 | }; |
Claudiu Beznea | 45cca2b | 2020-06-09 13:53:00 +0300 | [diff] [blame] | 166 | |
| 167 | pinctrl_gmac0_default: gmac0_default { |
| 168 | pinmux = <PIN_PA16__G0_TX0>, |
| 169 | <PIN_PA17__G0_TX1>, |
| 170 | <PIN_PA26__G0_TX2>, |
| 171 | <PIN_PA27__G0_TX3>, |
| 172 | <PIN_PA19__G0_RX0>, |
| 173 | <PIN_PA20__G0_RX1>, |
| 174 | <PIN_PA28__G0_RX2>, |
| 175 | <PIN_PA29__G0_RX3>, |
| 176 | <PIN_PA15__G0_TXEN>, |
Claudiu Beznea | 45cca2b | 2020-06-09 13:53:00 +0300 | [diff] [blame] | 177 | <PIN_PA30__G0_RXCK>, |
| 178 | <PIN_PA18__G0_RXDV>, |
| 179 | <PIN_PA22__G0_MDC>, |
| 180 | <PIN_PA23__G0_MDIO>, |
| 181 | <PIN_PA25__G0_125CK>; |
| 182 | bias-disable; |
| 183 | }; |
Claudiu Beznea | 4455012 | 2020-06-09 13:53:45 +0300 | [diff] [blame] | 184 | |
Nicolas Ferre | 8c011dd | 2020-10-30 18:33:14 +0100 | [diff] [blame] | 185 | pinctrl_gmac0_txc_default: gmac0_txc_default { |
| 186 | pinmux = <PIN_PA24__G0_TXCK>; |
| 187 | bias-pull-up; |
| 188 | }; |
| 189 | |
Claudiu Beznea | 4455012 | 2020-06-09 13:53:45 +0300 | [diff] [blame] | 190 | pinctrl_gmac1_default: gmac1_default { |
| 191 | pinmux = <PIN_PD30__G1_TXCK>, |
| 192 | <PIN_PD22__G1_TX0>, |
| 193 | <PIN_PD23__G1_TX1>, |
| 194 | <PIN_PD21__G1_TXEN>, |
| 195 | <PIN_PD25__G1_RX0>, |
| 196 | <PIN_PD26__G1_RX1>, |
| 197 | <PIN_PD27__G1_RXER>, |
| 198 | <PIN_PD24__G1_RXDV>, |
| 199 | <PIN_PD28__G1_MDC>, |
| 200 | <PIN_PD29__G1_MDIO>; |
| 201 | bias-disable; |
| 202 | }; |
Eugen Hristev | 8395365 | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 203 | }; |