Eugen Hristev | 1d463d6 | 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 | d65b84a | 2021-08-27 13:44:12 +0300 | [diff] [blame] | 11 | #include <dt-bindings/mfd/atmel-flexcom.h> |
Eugen Hristev | 1d463d6 | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 12 | #include "sama7g5.dtsi" |
| 13 | #include "sama7g5-pinfunc.h" |
Tudor Ambarus | e87afb6 | 2021-11-03 19:07:41 +0200 | [diff] [blame] | 14 | #include <dt-bindings/pinctrl/at91.h> |
Eugen Hristev | 1d463d6 | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 15 | |
| 16 | / { |
| 17 | model = "Microchip SAMA7G5 Evaluation Kit"; |
| 18 | compatible = "microchip,sama7g5ek", "microchip,sama7g54", "microchip,sama7g5", "microchip,sama7"; |
| 19 | |
| 20 | aliases { |
| 21 | serial0 = &uart0; |
Eugen Hristev | 9b614c8 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 22 | i2c0 = &i2c1; |
Eugen Hristev | e92ebf9 | 2022-01-04 18:23:36 +0200 | [diff] [blame] | 23 | i2c1 = &i2c8; |
Eugen Hristev | 1d463d6 | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | chosen { |
| 27 | stdout-path = "serial0:115200n8"; |
| 28 | }; |
| 29 | |
Claudiu Beznea | 3b86096 | 2020-06-02 15:19:19 +0300 | [diff] [blame] | 30 | clocks { |
| 31 | slow_xtal: slow_xtal { |
| 32 | clock-frequency = <32768>; |
| 33 | }; |
| 34 | |
| 35 | main_xtal: main_xtal { |
| 36 | clock-frequency = <24000000>; |
| 37 | }; |
| 38 | }; |
| 39 | |
Eugen Hristev | 1d463d6 | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 40 | ahb { |
| 41 | |
| 42 | apb { |
Eugen Hristev | 7f4c89c | 2020-07-30 15:52:51 +0300 | [diff] [blame] | 43 | sdmmc0: sdio-host@e1204000 { |
| 44 | bus-width = <8>; |
| 45 | non-removable; |
| 46 | pinctrl-names = "default"; |
| 47 | pinctrl-0 = <&pinctrl_sdmmc0_cmd_data_default |
| 48 | &pinctrl_sdmmc0_ck_rstn_ds_cd_default>; |
| 49 | status = "okay"; |
| 50 | }; |
| 51 | |
Eugen Hristev | 1d463d6 | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 52 | sdmmc1: sdio-host@e1208000 { |
| 53 | bus-width = <4>; |
Eugen Hristev | 7d41a8d | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 54 | pinctrl-names = "default"; |
| 55 | pinctrl-0 = <&pinctrl_sdmmc1_cmd_data_default |
| 56 | &pinctrl_sdmmc1_ck_cd_rstn_vddsel_default>; |
Eugen Hristev | 1d463d6 | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 57 | status = "okay"; |
| 58 | }; |
| 59 | |
| 60 | uart0: serial@e1824200 { |
Eugen Hristev | 7d41a8d | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 61 | pinctrl-names = "default"; |
| 62 | pinctrl-0 = <&pinctrl_flx3_default>; |
Eugen Hristev | 1d463d6 | 2020-03-10 11:56:38 +0200 | [diff] [blame] | 63 | status = "okay"; |
| 64 | }; |
| 65 | }; |
| 66 | }; |
| 67 | }; |
Eugen Hristev | 7d41a8d | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 68 | |
Tudor Ambarus | e87afb6 | 2021-11-03 19:07:41 +0200 | [diff] [blame] | 69 | &qspi0 { |
| 70 | pinctrl-names = "default"; |
| 71 | pinctrl-0 = <&pinctrl_qspi>; |
| 72 | status = "okay"; |
| 73 | |
| 74 | flash@0 { |
| 75 | #address-cells = <1>; |
| 76 | #size-cells = <1>; |
| 77 | compatible = "jedec,spi-nor"; |
| 78 | reg = <0>; |
| 79 | spi-max-frequency = <133000000>; |
| 80 | spi-tx-bus-width = <8>; |
| 81 | spi-rx-bus-width = <8>; |
| 82 | m25p,fast-read; |
| 83 | |
| 84 | }; |
| 85 | }; |
| 86 | |
Eugen Hristev | 9b614c8 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 87 | &flx1 { |
Eugen Hristev | d65b84a | 2021-08-27 13:44:12 +0300 | [diff] [blame] | 88 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; |
Eugen Hristev | 9b614c8 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 89 | status = "okay"; |
| 90 | }; |
| 91 | |
| 92 | &i2c1 { |
| 93 | pinctrl-names = "default"; |
| 94 | pinctrl-0 = <&pinctrl_flx1_default>; |
| 95 | status = "okay"; |
Eugen Hristev | e92ebf9 | 2022-01-04 18:23:36 +0200 | [diff] [blame] | 96 | }; |
Eugen Hristev | 9b614c8 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 97 | |
Eugen Hristev | e92ebf9 | 2022-01-04 18:23:36 +0200 | [diff] [blame] | 98 | &flx8 { |
| 99 | atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>; |
| 100 | status = "okay"; |
Eugen Hristev | 9b614c8 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 101 | |
Eugen Hristev | e92ebf9 | 2022-01-04 18:23:36 +0200 | [diff] [blame] | 102 | i2c8: i2c@600 { |
| 103 | pinctrl-names = "default"; |
| 104 | pinctrl-0 = <&pinctrl_i2c8_default>; |
| 105 | i2c-analog-filter; |
| 106 | i2c-digital-filter; |
| 107 | i2c-digital-filter-width-ns = <35>; |
| 108 | status = "okay"; |
| 109 | |
| 110 | eeprom@52 { |
| 111 | compatible = "microchip,24aa02e48"; |
| 112 | reg = <0x52>; |
| 113 | pagesize = <16>; |
| 114 | }; |
| 115 | |
| 116 | eeprom@53 { |
| 117 | compatible = "microchip,24aa02e48"; |
| 118 | reg = <0x53>; |
| 119 | pagesize = <16>; |
| 120 | }; |
Eugen Hristev | 9b614c8 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 121 | }; |
| 122 | }; |
| 123 | |
Claudiu Beznea | e95af87 | 2020-06-09 13:53:00 +0300 | [diff] [blame] | 124 | &gmac0 { |
| 125 | #address-cells = <1>; |
| 126 | #size-cells = <0>; |
| 127 | pinctrl-names = "default"; |
Nicolas Ferre | aeaef07 | 2020-10-30 18:33:14 +0100 | [diff] [blame] | 128 | pinctrl-0 = <&pinctrl_gmac0_default &pinctrl_gmac0_txc_default>; |
Claudiu Beznea | e95af87 | 2020-06-09 13:53:00 +0300 | [diff] [blame] | 129 | phy-mode = "rgmii-id"; |
| 130 | status = "okay"; |
| 131 | |
| 132 | ethernet-phy@7 { |
| 133 | reg = <0x7>; |
| 134 | }; |
| 135 | }; |
| 136 | |
Claudiu Beznea | 3e5853e | 2020-06-09 13:53:45 +0300 | [diff] [blame] | 137 | &gmac1 { |
| 138 | #address-cells = <1>; |
| 139 | #size-cells = <0>; |
| 140 | pinctrl-names = "default"; |
| 141 | pinctrl-0 = <&pinctrl_gmac1_default>; |
| 142 | phy-mode = "rmii"; |
| 143 | status = "okay"; |
| 144 | |
| 145 | ethernet-phy@0 { |
| 146 | reg = <0x0>; |
| 147 | }; |
| 148 | }; |
| 149 | |
Eugen Hristev | 7d41a8d | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 150 | &pinctrl { |
Eugen Hristev | 9b614c8 | 2020-07-31 15:20:01 +0300 | [diff] [blame] | 151 | pinctrl_flx1_default: flx1_default { |
| 152 | pinmux = <PIN_PC9__FLEXCOM1_IO0>, |
| 153 | <PIN_PC10__FLEXCOM1_IO1>; |
| 154 | bias-disable; |
| 155 | }; |
| 156 | |
Eugen Hristev | 7d41a8d | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 157 | pinctrl_flx3_default: flx3_default { |
| 158 | pinmux = <PIN_PD16__FLEXCOM3_IO0>, |
| 159 | <PIN_PD17__FLEXCOM3_IO1>; |
Eugen Hristev | 5dc68b0 | 2021-01-28 10:14:11 +0200 | [diff] [blame] | 160 | bias-pull-up; |
Eugen Hristev | 7d41a8d | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 161 | }; |
| 162 | |
Eugen Hristev | e92ebf9 | 2022-01-04 18:23:36 +0200 | [diff] [blame] | 163 | pinctrl_i2c8_default: i2c8_default { |
| 164 | pinmux = <PIN_PC14__FLEXCOM8_IO0>, |
| 165 | <PIN_PC13__FLEXCOM8_IO1>; |
| 166 | bias-disable; |
| 167 | }; |
| 168 | |
Tudor Ambarus | e87afb6 | 2021-11-03 19:07:41 +0200 | [diff] [blame] | 169 | pinctrl_qspi: qspi { |
| 170 | pinmux = <PIN_PB12__QSPI0_IO0>, |
| 171 | <PIN_PB11__QSPI0_IO1>, |
| 172 | <PIN_PB10__QSPI0_IO2>, |
| 173 | <PIN_PB9__QSPI0_IO3>, |
| 174 | <PIN_PB16__QSPI0_IO4>, |
| 175 | <PIN_PB17__QSPI0_IO5>, |
| 176 | <PIN_PB18__QSPI0_IO6>, |
| 177 | <PIN_PB19__QSPI0_IO7>, |
| 178 | <PIN_PB13__QSPI0_CS>, |
| 179 | <PIN_PB14__QSPI0_SCK>, |
| 180 | <PIN_PB15__QSPI0_SCKN>, |
| 181 | <PIN_PB20__QSPI0_DQS>, |
| 182 | <PIN_PB21__QSPI0_INT>; |
| 183 | bias-disable; |
| 184 | slew-rate = <0>; |
| 185 | atmel,drive-strength = <ATMEL_PIO_DRVSTR_HI>; |
| 186 | }; |
| 187 | |
Eugen Hristev | 7f4c89c | 2020-07-30 15:52:51 +0300 | [diff] [blame] | 188 | pinctrl_sdmmc0_cmd_data_default: sdmmc0_cmd_data_default { |
| 189 | pinmux = <PIN_PA1__SDMMC0_CMD>, |
| 190 | <PIN_PA3__SDMMC0_DAT0>, |
| 191 | <PIN_PA4__SDMMC0_DAT1>, |
| 192 | <PIN_PA5__SDMMC0_DAT2>, |
| 193 | <PIN_PA6__SDMMC0_DAT3>, |
| 194 | <PIN_PA7__SDMMC0_DAT4>, |
| 195 | <PIN_PA8__SDMMC0_DAT5>, |
| 196 | <PIN_PA9__SDMMC0_DAT6>, |
| 197 | <PIN_PA10__SDMMC0_DAT7>; |
| 198 | bias-pull-up; |
| 199 | }; |
| 200 | |
| 201 | pinctrl_sdmmc0_ck_rstn_ds_cd_default: sdmmc0_ck_rstn_ds_cd_default { |
| 202 | pinmux = <PIN_PA0__SDMMC0_CK>, |
| 203 | <PIN_PA2__SDMMC0_RSTN>, |
| 204 | <PIN_PA11__SDMMC0_DS>, |
| 205 | <PIN_PA14__SDMMC0_CD>; |
| 206 | bias-pull-up; |
| 207 | }; |
| 208 | |
Eugen Hristev | 7d41a8d | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 209 | pinctrl_sdmmc1_cmd_data_default: sdmmc1_cmd_data_default { |
| 210 | pinmux = <PIN_PB29__SDMMC1_CMD>, |
| 211 | <PIN_PB31__SDMMC1_DAT0>, |
| 212 | <PIN_PC0__SDMMC1_DAT1>, |
| 213 | <PIN_PC1__SDMMC1_DAT2>, |
| 214 | <PIN_PC2__SDMMC1_DAT3>; |
| 215 | bias-pull-up; |
| 216 | }; |
| 217 | |
| 218 | pinctrl_sdmmc1_ck_cd_rstn_vddsel_default: sdmmc1_ck_cd_rstn_vddsel_default { |
| 219 | pinmux = <PIN_PB30__SDMMC1_CK>, |
| 220 | <PIN_PB28__SDMMC1_RSTN>, |
| 221 | <PIN_PC5__SDMMC1_1V8SEL>, |
| 222 | <PIN_PC4__SDMMC1_CD>; |
| 223 | bias-pull-up; |
| 224 | }; |
Claudiu Beznea | e95af87 | 2020-06-09 13:53:00 +0300 | [diff] [blame] | 225 | |
| 226 | pinctrl_gmac0_default: gmac0_default { |
| 227 | pinmux = <PIN_PA16__G0_TX0>, |
| 228 | <PIN_PA17__G0_TX1>, |
| 229 | <PIN_PA26__G0_TX2>, |
| 230 | <PIN_PA27__G0_TX3>, |
| 231 | <PIN_PA19__G0_RX0>, |
| 232 | <PIN_PA20__G0_RX1>, |
| 233 | <PIN_PA28__G0_RX2>, |
| 234 | <PIN_PA29__G0_RX3>, |
| 235 | <PIN_PA15__G0_TXEN>, |
Claudiu Beznea | e95af87 | 2020-06-09 13:53:00 +0300 | [diff] [blame] | 236 | <PIN_PA30__G0_RXCK>, |
| 237 | <PIN_PA18__G0_RXDV>, |
| 238 | <PIN_PA22__G0_MDC>, |
| 239 | <PIN_PA23__G0_MDIO>, |
| 240 | <PIN_PA25__G0_125CK>; |
| 241 | bias-disable; |
| 242 | }; |
Claudiu Beznea | 3e5853e | 2020-06-09 13:53:45 +0300 | [diff] [blame] | 243 | |
Nicolas Ferre | aeaef07 | 2020-10-30 18:33:14 +0100 | [diff] [blame] | 244 | pinctrl_gmac0_txc_default: gmac0_txc_default { |
| 245 | pinmux = <PIN_PA24__G0_TXCK>; |
| 246 | bias-pull-up; |
| 247 | }; |
| 248 | |
Claudiu Beznea | 3e5853e | 2020-06-09 13:53:45 +0300 | [diff] [blame] | 249 | pinctrl_gmac1_default: gmac1_default { |
| 250 | pinmux = <PIN_PD30__G1_TXCK>, |
| 251 | <PIN_PD22__G1_TX0>, |
| 252 | <PIN_PD23__G1_TX1>, |
| 253 | <PIN_PD21__G1_TXEN>, |
| 254 | <PIN_PD25__G1_RX0>, |
| 255 | <PIN_PD26__G1_RX1>, |
| 256 | <PIN_PD27__G1_RXER>, |
| 257 | <PIN_PD24__G1_RXDV>, |
| 258 | <PIN_PD28__G1_MDC>, |
| 259 | <PIN_PD29__G1_MDIO>; |
| 260 | bias-disable; |
| 261 | }; |
Eugen Hristev | 7d41a8d | 2020-06-04 10:38:49 +0300 | [diff] [blame] | 262 | }; |