blob: c439f778ca4604758294ff849262251e0a4b7b0d [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";
Michal Simek0641df72023-09-22 12:35:36 +020083 mdio: mdio {
84 #address-cells = <1>;
85 #size-cells = <0>;
86 phy0: ethernet-phy@0 { /* marwell m88e1512 */
87 reg = <0>;
88 reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
Michal Simeke42840b2019-03-27 20:14:19 +010089/* xlnx,phy-type = <PHY_TYPE_SGMII>; */
Michal Simek0641df72023-09-22 12:35:36 +020090 };
Michal Simeke42840b2019-03-27 20:14:19 +010091 };
Michal Simeke42840b2019-03-27 20:14:19 +010092};
93
94&gpio {
95 status = "okay";
96 gpio-line-names = "", "", "", "", "", /* 0 - 4 */
97 "", "", "", "", "", /* 5 - 9 */
98 "", "", "", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */
99 "EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */
100 "EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST_B", "", /* 20 - 24 */
101 "", "", "", "", "", /* 25 - 29 */
102 "", "", "", "", "LP_I2C0_PMC_SCL", /* 30 - 34 */
103 "LP_I2C0_PMC_SDA", "", "", "UART0_RXD_IN", "UART0_TXD_OUT", /* 35 - 39 */
104 "", "", "ETH_RESET_B", "", "", /* 40 - 44 */
105 "", "", "", "", "", /* 45 - 49 */
106 "", "", "USB0_CLK", "USB0_DIR", "USB0_DATA2", /* 50 - 54 */
107 "USB0_NXT", "USB0_DATA0", "USB0_DATA1", "USB0_STP", "USB0_DATA3", /* 55 - 59 */
108 "USB0_DATA4", "USB0_DATA5", "USB0_DATA6", "USB0_DATA7", "", /* 60 - 64 */
109 "", "", "", "", "", /* 65 - 69 */
110 "", "", "", "", "", /* 70 - 74 */
111 "", "ETH_MDC", "ETH_MDIO", /* 75 - 77, MIO end and EMIO start */
112 "SYSCTLR_VERSAL_MODE0", "SYSCTLR_VERSAL_MODE1", /* 78 - 79 */
113 "SYSCTLR_VERSAL_MODE2", "SYSCTLR_VERSAL_MODE3", "SYSCTLR_POR_B_LS", "DC_PRSNT", "SYSCTLR_POWER_EN", /* 80 - 84 */
Michal Simeka8c5ce42024-09-13 11:28:46 +0200114 "SYSCTLR_JTAG_S0", "SYSCTLR_JTAG_S1", "SYSCTLR_IIC_MUX0_RESET_B", "SYSCTLR_IIC_MUX1_RESET_B", "SYSCTLR_LP_I2C_SM_ALERT", /* 85 - 89 */
Michal Simeke42840b2019-03-27 20:14:19 +0100115 "SYSCTLR_GPIO0", "SYSCTLR_GPIO1", "SYSCTLR_GPIO2", "SYSCTLR_GPIO3", "SYSCTLR_GPIO4", /* 90 - 94 */
116 "SYSCTLR_GPIO5", "VCCO_500_RBIAS", "VCCO_501_RBIAS", "VCCO_502_RBIAS", "VCCO_500_RBIAS_LED", /* 95 - 99 */
117 "VCCO_501_RBIAS_LED", "VCCO_502_RBIAS_LED", "SYSCTLR_VCCINT_EN", "SYSCTLR_VCC_IO_SOC_EN", "SYSCTLR_VCC_PMC_EN", /* 100 - 104 */
118 "SYSCTLR_VCC_RAM_EN", "SYSCTLR_VCC_PSLP_EN", "SYSCTLR_VCC_PSFP_EN", "SYSCTLR_VCCAUX_EN", "SYSCTLR_VCCAUX_PMC_EN", /* 105 - 109 */
119 "SYSCTLR_VCCO_500_EN", "SYSCTLR_VCCO_501_EN", "SYSCTLR_VCCO_502_EN", "SYSCTLR_VCCO_503_EN", "SYSCTLR_VCC1V8_EN", /* 110 - 114 */
120 "SYSCTLR_VCC3V3_EN", "SYSCTLR_VCC1V2_DDR4_EN", "SYSCTLR_VCC1V1_LP4_EN", "SYSCTLR_VDD1_1V8_LP4_EN", "SYSCTLR_VADJ_FMC_EN", /* 115 - 119 */
121 "SYSCTLR_MGTYAVCC_EN", "SYSCTLR_MGTYAVTT_EN", "SYSCTLR_MGTYVCCAUX_EN", "SYSCTLR_UTIL_1V13_EN", "SYSCTLR_UTIL_1V8_EN", /* 120 - 124 */
122 "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 */
123 "PMBUS1_INA226_ALERT", "PMBUS2_INA226_ALERT", "SYSCTLR_USBC_SBU1", "SYSCTLR_USBC_SBU2", "TI_CABLE1", /* 130 - 134 */
124 "TI_CABLE2", "SYSCTLR_MIC2005_EN_B", "SYSCTLR_MIC2005_FAULT_B", "SYSCTLR_TUSB320_INT_B", "SYSCTLR_TUSB320_ID", /* 135 - 139 */
125 "PMBUS1_ALERT", "PMBUS2_ALERT", "SYSCTLR_ETH_RESET_B", "SYSCTLR_VCC0V85_TG", "MAX6643_OT_B", /* 140 - 144 */
126 "MAX6643_FANFINAL_B", "MAX6643_FULLSPD", "", "", "", /* 145 - 149 */
127 "", "", "", "", "", /* 150 - 154 */
128 "", "", "", "", "", /* 155 - 159 */
129 "", "", "", "", "", /* 160 - 164 */
130 "", "", "", "", "", /* 165 - 169 */
Michal Simekfdf3fc62023-07-10 14:37:31 +0200131 "", "", "", ""; /* 170 - 173 */
Michal Simeke42840b2019-03-27 20:14:19 +0100132};
133
134&i2c0 { /* MIO 34-35 - can't stay here */
135 status = "okay";
136 clock-frequency = <400000>;
Manikanta Guntupallicc45c9c2023-07-10 14:37:28 +0200137 scl-gpios = <&gpio 34 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
138 sda-gpios = <&gpio 35 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Michal Simeke42840b2019-03-27 20:14:19 +0100139 i2c-mux@74 { /* u94 */
140 compatible = "nxp,pca9548";
141 #address-cells = <1>;
142 #size-cells = <0>;
143 reg = <0x74>;
144 /* FIXME reset connected to SYSCTRL_IIC_MUX0_RESET */
145 i2c@0 {
146 #address-cells = <1>;
147 #size-cells = <0>;
148 reg = <0>;
149 /* Use for storing information about SC board */
150 eeprom: eeprom@50 { /* u96 - 24LC32A - 256B */
151 compatible = "atmel,24c32";
152 reg = <0x50>;
153 };
154 };
155 i2c@1 { /* CM_I2C_SCL - Samtec */
156 #address-cells = <1>;
157 #size-cells = <0>;
158 reg = <1>;
159 };
160 i2c@2 { /* PMBUS - AFX_PMBUS */
161 #address-cells = <1>;
162 #size-cells = <0>;
163 reg = <2>;
164 tps544@d { /* u85 */
165 compatible = "ti,tps544b25";
166 reg = <0xd>;
167 };
168 tps544@10 { /* u73 */
169 compatible = "ti,tps544b25";
170 reg = <0x10>;
171 };
172 tps544@11 { /* u76 */
173 compatible = "ti,tps544b25";
174 reg = <0x11>;
175 };
176 tps544@12 { /* u77 */
177 compatible = "ti,tps544b25";
178 reg = <0x12>;
179 };
180 tps544@13 { /* u80 */
181 compatible = "ti,tps544b25";
182 reg = <0x13>;
183 };
184 tps544@14 { /* u81 */
185 compatible = "ti,tps544b25";
186 reg = <0x14>;
187 };
188 tps544@15 { /* u83 */
189 compatible = "ti,tps544b25";
190 reg = <0x15>;
191 };
192 tps544@16 { /* u63 */
193 compatible = "ti,tps544b25";
194 reg = <0x16>;
195 };
196 tps544@17 { /* u66 */
197 compatible = "ti,tps544b25";
198 reg = <0x17>;
199 };
200 tps544@18 { /* u67 */
201 compatible = "ti,tps544b25";
202 reg = <0x18>;
203 };
204 tps544@19 { /* u69 */
205 compatible = "ti,tps544b25";
206 reg = <0x19>;
207 };
208 tps544@1d { /* u88 */
209 compatible = "ti,tps544b25";
210 reg = <0x1d>;
211 };
212 tps544@1e { /* u89 */
213 compatible = "ti,tps544b25";
214 reg = <0x1e>;
215 };
216 tps544@1f { /* u87 */
217 compatible = "ti,tps544b25";
218 reg = <0x1f>;
219 };
220 tps544@20 { /* u71 */
221 compatible = "ti,tps544b25";
222 reg = <0x20>;
223 };
Michal Simekb99d7a82019-08-26 11:09:42 +0200224 u74: ina226@40 { /* u74 */
Michal Simeke42840b2019-03-27 20:14:19 +0100225 compatible = "ti,ina226";
Michal Simekb99d7a82019-08-26 11:09:42 +0200226 #io-channel-cells = <1>;
Michal Simek29498e42019-08-26 11:10:36 +0200227 label = "ina226-u74";
Michal Simeke42840b2019-03-27 20:14:19 +0100228 reg = <0x40>;
229 shunt-resistor = <1000>;
230 };
Michal Simekb99d7a82019-08-26 11:09:42 +0200231 u75: ina226@41 { /* u75 */
Michal Simeke42840b2019-03-27 20:14:19 +0100232 compatible = "ti,ina226";
Michal Simekb99d7a82019-08-26 11:09:42 +0200233 #io-channel-cells = <1>;
Michal Simek29498e42019-08-26 11:10:36 +0200234 label = "ina226-u75";
Michal Simeke42840b2019-03-27 20:14:19 +0100235 reg = <0x41>;
236 shunt-resistor = <1000>;
237 };
Michal Simekb99d7a82019-08-26 11:09:42 +0200238 u78: ina226@42 { /* u78 */
Michal Simeke42840b2019-03-27 20:14:19 +0100239 compatible = "ti,ina226";
Michal Simekb99d7a82019-08-26 11:09:42 +0200240 #io-channel-cells = <1>;
Michal Simek29498e42019-08-26 11:10:36 +0200241 label = "ina226-u78";
Michal Simeke42840b2019-03-27 20:14:19 +0100242 reg = <0x42>;
243 shunt-resistor = <5000>;
244 };
Michal Simekb99d7a82019-08-26 11:09:42 +0200245 u79: ina226@43 { /* u79 */
Michal Simeke42840b2019-03-27 20:14:19 +0100246 compatible = "ti,ina226";
Michal Simekb99d7a82019-08-26 11:09:42 +0200247 #io-channel-cells = <1>;
Michal Simek29498e42019-08-26 11:10:36 +0200248 label = "ina226-u79";
Michal Simeke42840b2019-03-27 20:14:19 +0100249 reg = <0x43>;
250 shunt-resistor = <1000>;
251 };
Michal Simekb99d7a82019-08-26 11:09:42 +0200252 u82: ina226@44 { /* u82 */
Michal Simeke42840b2019-03-27 20:14:19 +0100253 compatible = "ti,ina226";
Michal Simekb99d7a82019-08-26 11:09:42 +0200254 #io-channel-cells = <1>;
Michal Simek29498e42019-08-26 11:10:36 +0200255 label = "ina226-u82";
Michal Simeke42840b2019-03-27 20:14:19 +0100256 reg = <0x44>;
257 shunt-resistor = <1000>;
258 };
Michal Simekb99d7a82019-08-26 11:09:42 +0200259 u84: ina226@45 { /* u84 */
Michal Simeke42840b2019-03-27 20:14:19 +0100260 compatible = "ti,ina226";
Michal Simekb99d7a82019-08-26 11:09:42 +0200261 #io-channel-cells = <1>;
Michal Simek29498e42019-08-26 11:10:36 +0200262 label = "ina226-u84";
Michal Simeke42840b2019-03-27 20:14:19 +0100263 reg = <0x45>;
264 shunt-resistor = <5000>;
265 };
Michal Simekb6964242022-06-15 11:56:55 +0200266 tps53681@60 { /* u53 - 0xc0 - FIXME name - don't know what it does - also vcc_io_soc */
Nishant Mittalce2c40d2019-07-24 14:58:52 +0530267 compatible = "ti,tps53681", "ti,tps53679";
Michal Simekb6964242022-06-15 11:56:55 +0200268 reg = <0x60>;
Michal Simeke42840b2019-03-27 20:14:19 +0100269 };
270 };
271 i2c@3 { /* fmc1 via JA2G */
272 #address-cells = <1>;
273 #size-cells = <0>;
274 reg = <3>;
275 eeprom_fmc1: eeprom@50 { /* on FMC */
276 compatible = "atmel,24c04";
277 reg = <0x50>;
278 };
279 };
280 i2c@4 { /* fmc2 via JA3G */
281 #address-cells = <1>;
282 #size-cells = <0>;
283 reg = <4>;
284 eeprom_fmc2: eeprom@50 { /* on FMC */
285 compatible = "atmel,24c04";
286 reg = <0x50>;
287 };
288 };
289 i2c@5 { /* fmc3 via JA4G */
290 #address-cells = <1>;
291 #size-cells = <0>;
292 reg = <5>;
293 eeprom_fmc3: eeprom@50 { /* on FMC */
294 compatible = "atmel,24c04";
295 reg = <0x50>;
296 };
297 };
298 i2c@6 { /* ddr dimm */
299 #address-cells = <1>;
300 #size-cells = <0>;
301 reg = <7>;
302 };
303 /* 7 unused */
304 };
305};
306
307&usb0 { /* USB0 MIO52-63 */
308 status = "okay";
Michal Simeke42840b2019-03-27 20:14:19 +0100309};
310
311&dwc3_0 {
312 status = "okay";
313 dr_mode = "peripheral";
314 maximum-speed = "high-speed";
315};