blob: 4f796c6c9493efc6c4e10ee47d59a30e3380cc57 [file] [log] [blame]
Eugen Hristev860d8ba2018-07-06 11:15:10 +03001// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * at91-sama5d2_icp.dts - Device Tree file for SAMA5D2 ICP board
Eugen Hristevf982e022021-08-17 13:29:23 +03004 * SAMA5D2 Industrial Connectivity Platform
Eugen Hristev860d8ba2018-07-06 11:15:10 +03005 *
6 * Copyright (c) 2018, Microchip Technology Inc.
7 * 2018, Eugen Hristev <eugen.hristev@microchip.com>
8 */
9/dts-v1/;
10#include "sama5d2.dtsi"
11#include "sama5d2-pinfunc.h"
12
13/ {
14 model = "Microchip SAMA5D2 ICP";
15 compatible = "atmel,sama5d2-icp", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";
16
17 aliases {
18 serial0 = &uart0;
19 i2c1 = &i2c1;
20 };
21
22 chosen {
23 stdout-path = "serial0:115200n8";
24 };
25
26 ahb {
27
28 sdmmc0: sdio-host@a0000000 {
29 bus-width = <4>;
30 pinctrl-names = "default";
31 pinctrl-0 = <&pinctrl_sdmmc0_default>;
32 status = "okay";
33 };
34
35 apb {
Mihai Sainae41d0f2021-08-17 13:29:22 +030036
37 qspi1: spi@f0024000 {
38 pinctrl-names = "default";
39 pinctrl-0 = <&pinctrl_qspi1_sck_cs_default &pinctrl_qspi1_dat_default>;
40 status = "okay";
41
42 flash@0 {
43 compatible = "jedec,spi-nor";
44 reg = <0>;
45 spi-max-frequency = <83000000>;
46 spi-rx-bus-width = <4>;
47 spi-tx-bus-width = <4>;
48 };
49 };
50
Eugen Hristevf982e022021-08-17 13:29:23 +030051 macb0: ethernet@f8008000 {
Eugen Hristev860d8ba2018-07-06 11:15:10 +030052 pinctrl-names = "default";
Eugen Hristevf982e022021-08-17 13:29:23 +030053 pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq &pinctrl_macb0_rst>;
54 phy-mode = "internal";
Eugen Hristev860d8ba2018-07-06 11:15:10 +030055 status = "okay";
56 };
57
Eugen Hristevf982e022021-08-17 13:29:23 +030058 uart0: serial@f801c000 { /* mikrobus1 uart */
Razvan Stefanescu6afb3332018-12-12 12:42:05 +020059 pinctrl-names = "default";
Eugen Hristevf982e022021-08-17 13:29:23 +030060 pinctrl-0 = <&pinctrl_mikrobus1_uart>;
Razvan Stefanescu6afb3332018-12-12 12:42:05 +020061 status = "okay";
62 };
63
Eugen Hristev860d8ba2018-07-06 11:15:10 +030064 i2c1: i2c@fc028000 {
65 dmas = <0>, <0>;
66 pinctrl-names = "default";
67 pinctrl-0 = <&pinctrl_i2c1_default>;
68 status = "okay";
69
70 eeprom@50 {
Eugen Hristevd155a0c2022-05-26 17:04:54 +030071 compatible = "atmel,24c02"; /* EEPROM is 2Kbits microchip 24aa025e48, an at24c02 with page size of 16 */
Eugen Hristev860d8ba2018-07-06 11:15:10 +030072 reg = <0x50>;
73 pagesize = <16>;
74 };
75
76 eeprom@52 {
Eugen Hristevd155a0c2022-05-26 17:04:54 +030077 compatible = "atmel,24c02"; /* EEPROM is 2Kbits microchip 24aa025e48, an at24c02 with page size of 16 */
Eugen Hristev860d8ba2018-07-06 11:15:10 +030078 reg = <0x52>;
79 pagesize = <16>;
80 };
81
82 eeprom@53 {
Eugen Hristevd155a0c2022-05-26 17:04:54 +030083 compatible = "atmel,24c02"; /* EEPROM is 2Kbits microchip 24aa025e48, an at24c02 with page size of 16 */
Eugen Hristev860d8ba2018-07-06 11:15:10 +030084 reg = <0x53>;
85 pagesize = <16>;
86 };
87 };
Eugen Hristevf982e022021-08-17 13:29:23 +030088
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +030089 pioA: pinctrl@fc038000 {
Eugen Hristev860d8ba2018-07-06 11:15:10 +030090 status = "okay";
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +030091 pinctrl_i2c1_default: i2c1_default {
92 pinmux = <PIN_PD19__TWD1>,
93 <PIN_PD20__TWCK1>;
94 bias-disable;
95 };
Eugen Hristev860d8ba2018-07-06 11:15:10 +030096
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +030097 pinctrl_macb0_rmii: macb0_rmii {
98 pinmux = <PIN_PD1__GRXCK>,
99 <PIN_PD2__GTXER>,
100 <PIN_PD5__GRX2>,
101 <PIN_PD6__GRX3>,
102 <PIN_PD7__GTX2>,
103 <PIN_PD8__GTX3>,
104 <PIN_PD9__GTXCK>,
105 <PIN_PD10__GTXEN>,
106 <PIN_PD11__GRXDV>,
107 <PIN_PD12__GRXER>,
108 <PIN_PD13__GRX0>,
109 <PIN_PD14__GRX1>,
110 <PIN_PD15__GTX0>,
111 <PIN_PD16__GTX1>,
112 <PIN_PD17__GMDC>,
113 <PIN_PD18__GMDIO>;
114 bias-disable;
115 };
Razvan Stefanescu6afb3332018-12-12 12:42:05 +0200116
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +0300117 pinctrl_macb0_phy_irq: macb0_phy_irq {
118 pinmux = <PIN_PD3__GPIO>;
119 bias-disable;
120 };
Razvan Stefanescu6afb3332018-12-12 12:42:05 +0200121
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +0300122 pinctrl_macb0_rst: macb0_sw_rst {
123 pinmux = <PIN_PD4__GPIO>;
124 bias-pull-up;
125 };
Razvan Stefanescu6afb3332018-12-12 12:42:05 +0200126
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +0300127 pinctrl_mikrobus1_uart: mikrobus1_uart {
128 pinmux = <PIN_PB26__URXD0>,
129 <PIN_PB27__UTXD0>;
130 bias-disable;
131 };
Eugen Hristevf982e022021-08-17 13:29:23 +0300132
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +0300133 pinctrl_qspi1_sck_cs_default: qspi1_sck_cs_default {
134 pinmux = <PIN_PA6__QSPI1_SCK>,
135 <PIN_PA11__QSPI1_CS>;
136 bias-disable;
137 };
Mihai Sainae41d0f2021-08-17 13:29:22 +0300138
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +0300139 pinctrl_qspi1_dat_default: qspi1_dat_default {
140 pinmux = <PIN_PA7__QSPI1_IO0>,
141 <PIN_PA8__QSPI1_IO1>,
142 <PIN_PA9__QSPI1_IO2>,
143 <PIN_PA10__QSPI1_IO3>;
144 bias-pull-up;
145 };
Mihai Sainae41d0f2021-08-17 13:29:22 +0300146
Sergiu Moga7c8ad0e2022-09-01 17:22:39 +0300147 pinctrl_sdmmc0_default: sdmmc0_default {
148 pinmux = <PIN_PA1__SDMMC0_CMD>,
149 <PIN_PA2__SDMMC0_DAT0>,
150 <PIN_PA3__SDMMC0_DAT1>,
151 <PIN_PA4__SDMMC0_DAT2>,
152 <PIN_PA5__SDMMC0_DAT3>,
153 <PIN_PA0__SDMMC0_CK>,
154 <PIN_PA13__SDMMC0_CD>;
155 bias-disable;
Eugen Hristev860d8ba2018-07-06 11:15:10 +0300156 };
Sergiu Mogad124ff12023-01-04 16:04:17 +0200157
158 pinctrl_usb_default: usb_default {
159 pinmux = <PIN_PC17__GPIO>;
160 bias-disable;
161 };
162
163 pinctrl_usba_vbus: usba_vbus {
164 pinmux = <PIN_PD23__GPIO>;
165 bias-disable;
166 };
Eugen Hristev860d8ba2018-07-06 11:15:10 +0300167 };
168 };
169 };
170};
Sergiu Mogad124ff12023-01-04 16:04:17 +0200171
172&usb1 {
173 num-ports = <3>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&pinctrl_usb_default>;
176 status = "okay";
177};
178
179&usb2 {
180 phy_type = "hsic";
181 status = "okay";
182};