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 |
| 4 | * SAMA5D2 Industrial Connectivity Board |
| 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 | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 51 | uart0: serial@f801c000 { /* mikrobus1 uart */ |
| 52 | pinctrl-names = "default"; |
| 53 | pinctrl-0 = <&pinctrl_mikrobus1_uart>; |
| 54 | status = "okay"; |
| 55 | }; |
| 56 | |
Razvan Stefanescu | 6afb333 | 2018-12-12 12:42:05 +0200 | [diff] [blame] | 57 | macb0: ethernet@f8008000 { |
| 58 | pinctrl-names = "default"; |
| 59 | pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq &pinctrl_macb0_rst>; |
| 60 | phy-mode = "internal"; |
| 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 | 07a8eff | 2020-12-07 09:30:59 +0200 | [diff] [blame] | 71 | compatible = "microchip,24aa02e48"; |
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 | 07a8eff | 2020-12-07 09:30:59 +0200 | [diff] [blame] | 77 | compatible = "microchip,24aa02e48"; |
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 | 07a8eff | 2020-12-07 09:30:59 +0200 | [diff] [blame] | 83 | compatible = "microchip,24aa02e48"; |
Eugen Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 84 | reg = <0x53>; |
| 85 | pagesize = <16>; |
| 86 | }; |
| 87 | }; |
| 88 | pioA: gpio@fc038000 { |
| 89 | status = "okay"; |
| 90 | pinctrl { |
| 91 | pinctrl_i2c1_default: i2c1_default { |
| 92 | pinmux = <PIN_PD19__TWD1>, |
| 93 | <PIN_PD20__TWCK1>; |
| 94 | bias-disable; |
| 95 | }; |
| 96 | |
Razvan Stefanescu | 6afb333 | 2018-12-12 12:42:05 +0200 | [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 | }; |
| 116 | |
| 117 | pinctrl_macb0_phy_irq: macb0_phy_irq { |
| 118 | pinmux = <PIN_PD3__GPIO>; |
| 119 | bias-disable; |
| 120 | }; |
| 121 | |
| 122 | pinctrl_macb0_rst: macb0_sw_rst { |
| 123 | pinmux = <PIN_PD4__GPIO>; |
| 124 | bias-pull-up; |
| 125 | }; |
| 126 | |
Mihai Sain | ae41d0f | 2021-08-17 13:29:22 +0300 | [diff] [blame^] | 127 | pinctrl_qspi1_sck_cs_default: qspi1_sck_cs_default { |
| 128 | pinmux = <PIN_PA6__QSPI1_SCK>, |
| 129 | <PIN_PA11__QSPI1_CS>; |
| 130 | bias-disable; |
| 131 | }; |
| 132 | |
| 133 | pinctrl_qspi1_dat_default: qspi1_dat_default { |
| 134 | pinmux = <PIN_PA7__QSPI1_IO0>, |
| 135 | <PIN_PA8__QSPI1_IO1>, |
| 136 | <PIN_PA9__QSPI1_IO2>, |
| 137 | <PIN_PA10__QSPI1_IO3>; |
| 138 | bias-pull-up; |
| 139 | }; |
| 140 | |
Eugen Hristev | 860d8ba | 2018-07-06 11:15:10 +0300 | [diff] [blame] | 141 | pinctrl_sdmmc0_default: sdmmc0_default { |
| 142 | pinmux = <PIN_PA1__SDMMC0_CMD>, |
| 143 | <PIN_PA2__SDMMC0_DAT0>, |
| 144 | <PIN_PA3__SDMMC0_DAT1>, |
| 145 | <PIN_PA4__SDMMC0_DAT2>, |
| 146 | <PIN_PA5__SDMMC0_DAT3>, |
| 147 | <PIN_PA0__SDMMC0_CK>, |
| 148 | <PIN_PA13__SDMMC0_CD>; |
| 149 | bias-disable; |
| 150 | }; |
| 151 | |
| 152 | pinctrl_mikrobus1_uart: mikrobus1_uart { |
| 153 | pinmux = <PIN_PB26__URXD0>, |
| 154 | <PIN_PB27__UTXD0>; |
| 155 | bias-disable; |
| 156 | }; |
| 157 | }; |
| 158 | }; |
| 159 | }; |
| 160 | }; |
| 161 | }; |