blob: 36a0db44fd288004dd6f37e09b00da6f67047db1 [file] [log] [blame]
Michal Simeke42840b2019-03-27 20:14:19 +01001// SPDX-License-Identifier: GPL-2.0
2/*
3 * dts file for Xilinx Versal a2197 RevA System Controller on MGT
4 *
5 * (C) Copyright 2019, Xilinx, Inc.
6 *
Michal Simeka8c94362023-07-10 14:35:49 +02007 * Michal Simek <michal.simek@amd.com>
Michal Simeke42840b2019-03-27 20:14:19 +01008 */
9/dts-v1/;
10
11#include "zynqmp.dtsi"
12#include "zynqmp-clk-ccf.dtsi"
13#include <dt-bindings/gpio/gpio.h>
14
15/ {
16 model = "Versal System Controller on a2197 MGT Char board RevA";
Michal Simek36aeb172019-06-28 13:16:10 +020017 compatible = "xlnx,zynqmp-g-a2197-00-revA", "xlnx,zynqmp-a2197-revA",
Michal Simeke42840b2019-03-27 20:14:19 +010018 "xlnx,zynqmp-a2197", "xlnx,zynqmp";
19
20 aliases {
21 ethernet0 = &gem0;
Michal Simeke42840b2019-03-27 20:14:19 +010022 i2c0 = &i2c0;
23 mmc0 = &sdhci0;
Michal Simek53b145d2021-06-03 11:46:50 +020024 nvmem0 = &eeprom;
Michal Simeke42840b2019-03-27 20:14:19 +010025 rtc0 = &rtc;
26 serial0 = &uart0;
27 serial1 = &dcc;
28 usb0 = &usb0;
29 };
30
31 chosen {
32 bootargs = "earlycon";
33 stdout-path = "serial0:115200n8";
Michal Simeke42840b2019-03-27 20:14:19 +010034 };
35
36 memory@0 {
37 device_type = "memory";
38 reg = <0x0 0x0 0x0 0x80000000>;
39 };
Michal Simekb99d7a82019-08-26 11:09:42 +020040
41 ina226-u74 {
42 compatible = "iio-hwmon";
43 io-channels = <&u74 0>, <&u74 1>, <&u74 2>, <&u74 3>;
44 };
45 ina226-u75 {
46 compatible = "iio-hwmon";
47 io-channels = <&u75 0>, <&u75 1>, <&u75 2>, <&u75 3>;
48 };
49 ina226-u78 {
50 compatible = "iio-hwmon";
51 io-channels = <&u78 0>, <&u78 1>, <&u78 2>, <&u78 3>;
52 };
53 ina226-u79 {
54 compatible = "iio-hwmon";
55 io-channels = <&u79 0>, <&u79 1>, <&u79 2>, <&u79 3>;
56 };
57 ina226-u82 {
58 compatible = "iio-hwmon";
59 io-channels = <&u82 0>, <&u82 1>, <&u82 2>, <&u82 3>;
60 };
61 ina226-u84 {
62 compatible = "iio-hwmon";
63 io-channels = <&u84 0>, <&u84 1>, <&u84 2>, <&u84 3>;
64 };
Michal Simeke42840b2019-03-27 20:14:19 +010065};
66
67&sdhci0 { /* emmc MIO 13-23 16GB */
68 status = "okay";
69 non-removable;
70 disable-wp;
71 bus-width = <8>;
Michal Simek3b662642020-07-22 17:42:43 +020072 xlnx,mio-bank = <0>;
Michal Simeke42840b2019-03-27 20:14:19 +010073};
74
75&uart0 { /* uart0 MIO38-39 */
76 status = "okay";
Michal Simeke42840b2019-03-27 20:14:19 +010077};
78
79&gem0 { /* eth MDIO 76/77 */
80 status = "okay";
81 phy-handle = <&phy0>;
82 phy-mode = "sgmii";
83 is-internal-pcspma;
Michal Simek0641df72023-09-22 12:35:36 +020084 mdio: mdio {
85 #address-cells = <1>;
86 #size-cells = <0>;
87 phy0: ethernet-phy@0 { /* marwell m88e1512 */
88 reg = <0>;
89 reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
Michal Simeke42840b2019-03-27 20:14:19 +010090/* xlnx,phy-type = <PHY_TYPE_SGMII>; */
Michal Simek0641df72023-09-22 12:35:36 +020091 };
Michal Simeke42840b2019-03-27 20:14:19 +010092 };
Michal Simeke42840b2019-03-27 20:14:19 +010093};
94
95&gpio {
96 status = "okay";
97 gpio-line-names = "", "", "", "", "", /* 0 - 4 */
98 "", "", "", "", "", /* 5 - 9 */
99 "", "", "", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */
100 "EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */
101 "EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST_B", "", /* 20 - 24 */
102 "", "", "", "", "", /* 25 - 29 */
103 "", "", "", "", "LP_I2C0_PMC_SCL", /* 30 - 34 */
104 "LP_I2C0_PMC_SDA", "", "", "UART0_RXD_IN", "UART0_TXD_OUT", /* 35 - 39 */
105 "", "", "ETH_RESET_B", "", "", /* 40 - 44 */
106 "", "", "", "", "", /* 45 - 49 */
107 "", "", "USB0_CLK", "USB0_DIR", "USB0_DATA2", /* 50 - 54 */
108 "USB0_NXT", "USB0_DATA0", "USB0_DATA1", "USB0_STP", "USB0_DATA3", /* 55 - 59 */
109 "USB0_DATA4", "USB0_DATA5", "USB0_DATA6", "USB0_DATA7", "", /* 60 - 64 */
110 "", "", "", "", "", /* 65 - 69 */
111 "", "", "", "", "", /* 70 - 74 */
112 "", "ETH_MDC", "ETH_MDIO", /* 75 - 77, MIO end and EMIO start */
113 "SYSCTLR_VERSAL_MODE0", "SYSCTLR_VERSAL_MODE1", /* 78 - 79 */
114 "SYSCTLR_VERSAL_MODE2", "SYSCTLR_VERSAL_MODE3", "SYSCTLR_POR_B_LS", "DC_PRSNT", "SYSCTLR_POWER_EN", /* 80 - 84 */
115 "SYSCTLR_JTAG_S0", "SYSCTLR_JTAG_S1", "SYSCTLR_IIC_MUX0_RESET_B", "SYSCTLR_IIC_MUX1_RESET_B", "SYSCTLR_LP_I2C_SM_ALERT", /* 85 -89 */
116 "SYSCTLR_GPIO0", "SYSCTLR_GPIO1", "SYSCTLR_GPIO2", "SYSCTLR_GPIO3", "SYSCTLR_GPIO4", /* 90 - 94 */
117 "SYSCTLR_GPIO5", "VCCO_500_RBIAS", "VCCO_501_RBIAS", "VCCO_502_RBIAS", "VCCO_500_RBIAS_LED", /* 95 - 99 */
118 "VCCO_501_RBIAS_LED", "VCCO_502_RBIAS_LED", "SYSCTLR_VCCINT_EN", "SYSCTLR_VCC_IO_SOC_EN", "SYSCTLR_VCC_PMC_EN", /* 100 - 104 */
119 "SYSCTLR_VCC_RAM_EN", "SYSCTLR_VCC_PSLP_EN", "SYSCTLR_VCC_PSFP_EN", "SYSCTLR_VCCAUX_EN", "SYSCTLR_VCCAUX_PMC_EN", /* 105 - 109 */
120 "SYSCTLR_VCCO_500_EN", "SYSCTLR_VCCO_501_EN", "SYSCTLR_VCCO_502_EN", "SYSCTLR_VCCO_503_EN", "SYSCTLR_VCC1V8_EN", /* 110 - 114 */
121 "SYSCTLR_VCC3V3_EN", "SYSCTLR_VCC1V2_DDR4_EN", "SYSCTLR_VCC1V1_LP4_EN", "SYSCTLR_VDD1_1V8_LP4_EN", "SYSCTLR_VADJ_FMC_EN", /* 115 - 119 */
122 "SYSCTLR_MGTYAVCC_EN", "SYSCTLR_MGTYAVTT_EN", "SYSCTLR_MGTYVCCAUX_EN", "SYSCTLR_UTIL_1V13_EN", "SYSCTLR_UTIL_1V8_EN", /* 120 - 124 */
123 "SYSCTLR_UTIL_2V5_EN", "FMCP1_FMC_PRSNT_M2C_B", "FMCP2_FMC_PRSNT_M2C_B", "FMCP1_FMCP_PRSNT_M2C_B", "FMCP2_FMCP_PRSNT_M2C_B", /* 125 - 129 */
124 "PMBUS1_INA226_ALERT", "PMBUS2_INA226_ALERT", "SYSCTLR_USBC_SBU1", "SYSCTLR_USBC_SBU2", "TI_CABLE1", /* 130 - 134 */
125 "TI_CABLE2", "SYSCTLR_MIC2005_EN_B", "SYSCTLR_MIC2005_FAULT_B", "SYSCTLR_TUSB320_INT_B", "SYSCTLR_TUSB320_ID", /* 135 - 139 */
126 "PMBUS1_ALERT", "PMBUS2_ALERT", "SYSCTLR_ETH_RESET_B", "SYSCTLR_VCC0V85_TG", "MAX6643_OT_B", /* 140 - 144 */
127 "MAX6643_FANFINAL_B", "MAX6643_FULLSPD", "", "", "", /* 145 - 149 */
128 "", "", "", "", "", /* 150 - 154 */
129 "", "", "", "", "", /* 155 - 159 */
130 "", "", "", "", "", /* 160 - 164 */
131 "", "", "", "", "", /* 165 - 169 */
Michal Simekfdf3fc62023-07-10 14:37:31 +0200132 "", "", "", ""; /* 170 - 173 */
Michal Simeke42840b2019-03-27 20:14:19 +0100133};
134
135&i2c0 { /* MIO 34-35 - can't stay here */
136 status = "okay";
137 clock-frequency = <400000>;
Manikanta Guntupallicc45c9c2023-07-10 14:37:28 +0200138 scl-gpios = <&gpio 34 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
139 sda-gpios = <&gpio 35 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Michal Simeke42840b2019-03-27 20:14:19 +0100140 i2c-mux@74 { /* u94 */
141 compatible = "nxp,pca9548";
142 #address-cells = <1>;
143 #size-cells = <0>;
144 reg = <0x74>;
145 /* FIXME reset connected to SYSCTRL_IIC_MUX0_RESET */
146 i2c@0 {
147 #address-cells = <1>;
148 #size-cells = <0>;
149 reg = <0>;
150 /* Use for storing information about SC board */
151 eeprom: eeprom@50 { /* u96 - 24LC32A - 256B */
152 compatible = "atmel,24c32";
153 reg = <0x50>;
154 };
155 };
156 i2c@1 { /* CM_I2C_SCL - Samtec */
157 #address-cells = <1>;
158 #size-cells = <0>;
159 reg = <1>;
160 };
161 i2c@2 { /* PMBUS - AFX_PMBUS */
162 #address-cells = <1>;
163 #size-cells = <0>;
164 reg = <2>;
165 tps544@d { /* u85 */
166 compatible = "ti,tps544b25";
167 reg = <0xd>;
168 };
169 tps544@10 { /* u73 */
170 compatible = "ti,tps544b25";
171 reg = <0x10>;
172 };
173 tps544@11 { /* u76 */
174 compatible = "ti,tps544b25";
175 reg = <0x11>;
176 };
177 tps544@12 { /* u77 */
178 compatible = "ti,tps544b25";
179 reg = <0x12>;
180 };
181 tps544@13 { /* u80 */
182 compatible = "ti,tps544b25";
183 reg = <0x13>;
184 };
185 tps544@14 { /* u81 */
186 compatible = "ti,tps544b25";
187 reg = <0x14>;
188 };
189 tps544@15 { /* u83 */
190 compatible = "ti,tps544b25";
191 reg = <0x15>;
192 };
193 tps544@16 { /* u63 */
194 compatible = "ti,tps544b25";
195 reg = <0x16>;
196 };
197 tps544@17 { /* u66 */
198 compatible = "ti,tps544b25";
199 reg = <0x17>;
200 };
201 tps544@18 { /* u67 */
202 compatible = "ti,tps544b25";
203 reg = <0x18>;
204 };
205 tps544@19 { /* u69 */
206 compatible = "ti,tps544b25";
207 reg = <0x19>;
208 };
209 tps544@1d { /* u88 */
210 compatible = "ti,tps544b25";
211 reg = <0x1d>;
212 };
213 tps544@1e { /* u89 */
214 compatible = "ti,tps544b25";
215 reg = <0x1e>;
216 };
217 tps544@1f { /* u87 */
218 compatible = "ti,tps544b25";
219 reg = <0x1f>;
220 };
221 tps544@20 { /* u71 */
222 compatible = "ti,tps544b25";
223 reg = <0x20>;
224 };
Michal Simekb99d7a82019-08-26 11:09:42 +0200225 u74: ina226@40 { /* u74 */
Michal Simeke42840b2019-03-27 20:14:19 +0100226 compatible = "ti,ina226";
Michal Simekb99d7a82019-08-26 11:09:42 +0200227 #io-channel-cells = <1>;
Michal Simek29498e42019-08-26 11:10:36 +0200228 label = "ina226-u74";
Michal Simeke42840b2019-03-27 20:14:19 +0100229 reg = <0x40>;
230 shunt-resistor = <1000>;
231 };
Michal Simekb99d7a82019-08-26 11:09:42 +0200232 u75: ina226@41 { /* u75 */
Michal Simeke42840b2019-03-27 20:14:19 +0100233 compatible = "ti,ina226";
Michal Simekb99d7a82019-08-26 11:09:42 +0200234 #io-channel-cells = <1>;
Michal Simek29498e42019-08-26 11:10:36 +0200235 label = "ina226-u75";
Michal Simeke42840b2019-03-27 20:14:19 +0100236 reg = <0x41>;
237 shunt-resistor = <1000>;
238 };
Michal Simekb99d7a82019-08-26 11:09:42 +0200239 u78: ina226@42 { /* u78 */
Michal Simeke42840b2019-03-27 20:14:19 +0100240 compatible = "ti,ina226";
Michal Simekb99d7a82019-08-26 11:09:42 +0200241 #io-channel-cells = <1>;
Michal Simek29498e42019-08-26 11:10:36 +0200242 label = "ina226-u78";
Michal Simeke42840b2019-03-27 20:14:19 +0100243 reg = <0x42>;
244 shunt-resistor = <5000>;
245 };
Michal Simekb99d7a82019-08-26 11:09:42 +0200246 u79: ina226@43 { /* u79 */
Michal Simeke42840b2019-03-27 20:14:19 +0100247 compatible = "ti,ina226";
Michal Simekb99d7a82019-08-26 11:09:42 +0200248 #io-channel-cells = <1>;
Michal Simek29498e42019-08-26 11:10:36 +0200249 label = "ina226-u79";
Michal Simeke42840b2019-03-27 20:14:19 +0100250 reg = <0x43>;
251 shunt-resistor = <1000>;
252 };
Michal Simekb99d7a82019-08-26 11:09:42 +0200253 u82: ina226@44 { /* u82 */
Michal Simeke42840b2019-03-27 20:14:19 +0100254 compatible = "ti,ina226";
Michal Simekb99d7a82019-08-26 11:09:42 +0200255 #io-channel-cells = <1>;
Michal Simek29498e42019-08-26 11:10:36 +0200256 label = "ina226-u82";
Michal Simeke42840b2019-03-27 20:14:19 +0100257 reg = <0x44>;
258 shunt-resistor = <1000>;
259 };
Michal Simekb99d7a82019-08-26 11:09:42 +0200260 u84: ina226@45 { /* u84 */
Michal Simeke42840b2019-03-27 20:14:19 +0100261 compatible = "ti,ina226";
Michal Simekb99d7a82019-08-26 11:09:42 +0200262 #io-channel-cells = <1>;
Michal Simek29498e42019-08-26 11:10:36 +0200263 label = "ina226-u84";
Michal Simeke42840b2019-03-27 20:14:19 +0100264 reg = <0x45>;
265 shunt-resistor = <5000>;
266 };
Michal Simekb6964242022-06-15 11:56:55 +0200267 tps53681@60 { /* u53 - 0xc0 - FIXME name - don't know what it does - also vcc_io_soc */
Nishant Mittalce2c40d2019-07-24 14:58:52 +0530268 compatible = "ti,tps53681", "ti,tps53679";
Michal Simekb6964242022-06-15 11:56:55 +0200269 reg = <0x60>;
Michal Simeke42840b2019-03-27 20:14:19 +0100270 };
271 };
272 i2c@3 { /* fmc1 via JA2G */
273 #address-cells = <1>;
274 #size-cells = <0>;
275 reg = <3>;
276 eeprom_fmc1: eeprom@50 { /* on FMC */
277 compatible = "atmel,24c04";
278 reg = <0x50>;
279 };
280 };
281 i2c@4 { /* fmc2 via JA3G */
282 #address-cells = <1>;
283 #size-cells = <0>;
284 reg = <4>;
285 eeprom_fmc2: eeprom@50 { /* on FMC */
286 compatible = "atmel,24c04";
287 reg = <0x50>;
288 };
289 };
290 i2c@5 { /* fmc3 via JA4G */
291 #address-cells = <1>;
292 #size-cells = <0>;
293 reg = <5>;
294 eeprom_fmc3: eeprom@50 { /* on FMC */
295 compatible = "atmel,24c04";
296 reg = <0x50>;
297 };
298 };
299 i2c@6 { /* ddr dimm */
300 #address-cells = <1>;
301 #size-cells = <0>;
302 reg = <7>;
303 };
304 /* 7 unused */
305 };
306};
307
308&usb0 { /* USB0 MIO52-63 */
309 status = "okay";
Michal Simeke42840b2019-03-27 20:14:19 +0100310};
311
312&dwc3_0 {
313 status = "okay";
314 dr_mode = "peripheral";
315 maximum-speed = "high-speed";
316};