Eugen Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 | /* |
| 3 | * at91-sama5d2_icp.dts - Device Tree file for SAMA5D2 ICP board |
Eugen Hristev | f982e02 | 2021-08-17 13:29:23 +0300 | [diff] [blame] | 4 | * SAMA5D2 Industrial Connectivity Platform |
Eugen Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 5 | * |
| 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 Sain | ae41d0f | 2021-08-17 13:29:22 +0300 | [diff] [blame] | 36 | |
| 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 Hristev | f982e02 | 2021-08-17 13:29:23 +0300 | [diff] [blame] | 51 | macb0: ethernet@f8008000 { |
Eugen Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 52 | pinctrl-names = "default"; |
Eugen Hristev | f982e02 | 2021-08-17 13:29:23 +0300 | [diff] [blame] | 53 | pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq &pinctrl_macb0_rst>; |
| 54 | phy-mode = "internal"; |
Eugen Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 55 | status = "okay"; |
| 56 | }; |
| 57 | |
Eugen Hristev | f982e02 | 2021-08-17 13:29:23 +0300 | [diff] [blame] | 58 | uart0: serial@f801c000 { /* mikrobus1 uart */ |
Razvan Stefanescu | 6afb333 | 2018-12-12 12:42:05 +0200 | [diff] [blame] | 59 | pinctrl-names = "default"; |
Eugen Hristev | f982e02 | 2021-08-17 13:29:23 +0300 | [diff] [blame] | 60 | pinctrl-0 = <&pinctrl_mikrobus1_uart>; |
Razvan Stefanescu | 6afb333 | 2018-12-12 12:42:05 +0200 | [diff] [blame] | 61 | status = "okay"; |
| 62 | }; |
| 63 | |
Eugen Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 64 | 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 Hristev | d155a0c | 2022-05-26 17:04:54 +0300 | [diff] [blame] | 71 | compatible = "atmel,24c02"; /* EEPROM is 2Kbits microchip 24aa025e48, an at24c02 with page size of 16 */ |
Eugen Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 72 | reg = <0x50>; |
| 73 | pagesize = <16>; |
| 74 | }; |
| 75 | |
| 76 | eeprom@52 { |
Eugen Hristev | d155a0c | 2022-05-26 17:04:54 +0300 | [diff] [blame] | 77 | compatible = "atmel,24c02"; /* EEPROM is 2Kbits microchip 24aa025e48, an at24c02 with page size of 16 */ |
Eugen Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 78 | reg = <0x52>; |
| 79 | pagesize = <16>; |
| 80 | }; |
| 81 | |
| 82 | eeprom@53 { |
Eugen Hristev | d155a0c | 2022-05-26 17:04:54 +0300 | [diff] [blame] | 83 | compatible = "atmel,24c02"; /* EEPROM is 2Kbits microchip 24aa025e48, an at24c02 with page size of 16 */ |
Eugen Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 84 | reg = <0x53>; |
| 85 | pagesize = <16>; |
| 86 | }; |
| 87 | }; |
Eugen Hristev | f982e02 | 2021-08-17 13:29:23 +0300 | [diff] [blame] | 88 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 89 | pioA: pinctrl@fc038000 { |
Eugen Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 90 | status = "okay"; |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 91 | pinctrl_i2c1_default: i2c1_default { |
| 92 | pinmux = <PIN_PD19__TWD1>, |
| 93 | <PIN_PD20__TWCK1>; |
| 94 | bias-disable; |
| 95 | }; |
Eugen Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 96 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 97 | 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 Stefanescu | 6afb333 | 2018-12-12 12:42:05 +0200 | [diff] [blame] | 116 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 117 | pinctrl_macb0_phy_irq: macb0_phy_irq { |
| 118 | pinmux = <PIN_PD3__GPIO>; |
| 119 | bias-disable; |
| 120 | }; |
Razvan Stefanescu | 6afb333 | 2018-12-12 12:42:05 +0200 | [diff] [blame] | 121 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 122 | pinctrl_macb0_rst: macb0_sw_rst { |
| 123 | pinmux = <PIN_PD4__GPIO>; |
| 124 | bias-pull-up; |
| 125 | }; |
Razvan Stefanescu | 6afb333 | 2018-12-12 12:42:05 +0200 | [diff] [blame] | 126 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 127 | pinctrl_mikrobus1_uart: mikrobus1_uart { |
| 128 | pinmux = <PIN_PB26__URXD0>, |
| 129 | <PIN_PB27__UTXD0>; |
| 130 | bias-disable; |
| 131 | }; |
Eugen Hristev | f982e02 | 2021-08-17 13:29:23 +0300 | [diff] [blame] | 132 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 133 | 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 Sain | ae41d0f | 2021-08-17 13:29:22 +0300 | [diff] [blame] | 138 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 139 | 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 Sain | ae41d0f | 2021-08-17 13:29:22 +0300 | [diff] [blame] | 146 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 147 | 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 Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 156 | }; |
Sergiu Moga | d124ff1 | 2023-01-04 16:04:17 +0200 | [diff] [blame] | 157 | |
| 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 Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 167 | }; |
| 168 | }; |
| 169 | }; |
| 170 | }; |
Sergiu Moga | d124ff1 | 2023-01-04 16:04:17 +0200 | [diff] [blame] | 171 | |
| 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 | }; |