Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 1 | // 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 | * |
| 7 | * Michal Simek <michal.simek@xilinx.com> |
| 8 | */ |
| 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 Simek | 36aeb17 | 2019-06-28 13:16:10 +0200 | [diff] [blame] | 17 | compatible = "xlnx,zynqmp-g-a2197-00-revA", "xlnx,zynqmp-a2197-revA", |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 18 | "xlnx,zynqmp-a2197", "xlnx,zynqmp"; |
| 19 | |
| 20 | aliases { |
| 21 | ethernet0 = &gem0; |
| 22 | gpio0 = &gpio; |
| 23 | i2c0 = &i2c0; |
| 24 | mmc0 = &sdhci0; |
| 25 | rtc0 = &rtc; |
| 26 | serial0 = &uart0; |
| 27 | serial1 = &dcc; |
| 28 | usb0 = &usb0; |
| 29 | }; |
| 30 | |
| 31 | chosen { |
| 32 | bootargs = "earlycon"; |
| 33 | stdout-path = "serial0:115200n8"; |
| 34 | xlnx,eeprom = <&eeprom>; |
| 35 | }; |
| 36 | |
| 37 | memory@0 { |
| 38 | device_type = "memory"; |
| 39 | reg = <0x0 0x0 0x0 0x80000000>; |
| 40 | }; |
Michal Simek | b99d7a8 | 2019-08-26 11:09:42 +0200 | [diff] [blame] | 41 | |
| 42 | ina226-u74 { |
| 43 | compatible = "iio-hwmon"; |
| 44 | io-channels = <&u74 0>, <&u74 1>, <&u74 2>, <&u74 3>; |
| 45 | }; |
| 46 | ina226-u75 { |
| 47 | compatible = "iio-hwmon"; |
| 48 | io-channels = <&u75 0>, <&u75 1>, <&u75 2>, <&u75 3>; |
| 49 | }; |
| 50 | ina226-u78 { |
| 51 | compatible = "iio-hwmon"; |
| 52 | io-channels = <&u78 0>, <&u78 1>, <&u78 2>, <&u78 3>; |
| 53 | }; |
| 54 | ina226-u79 { |
| 55 | compatible = "iio-hwmon"; |
| 56 | io-channels = <&u79 0>, <&u79 1>, <&u79 2>, <&u79 3>; |
| 57 | }; |
| 58 | ina226-u82 { |
| 59 | compatible = "iio-hwmon"; |
| 60 | io-channels = <&u82 0>, <&u82 1>, <&u82 2>, <&u82 3>; |
| 61 | }; |
| 62 | ina226-u84 { |
| 63 | compatible = "iio-hwmon"; |
| 64 | io-channels = <&u84 0>, <&u84 1>, <&u84 2>, <&u84 3>; |
| 65 | }; |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 66 | }; |
| 67 | |
| 68 | &sdhci0 { /* emmc MIO 13-23 16GB */ |
| 69 | status = "okay"; |
| 70 | non-removable; |
| 71 | disable-wp; |
| 72 | bus-width = <8>; |
Michal Simek | 3b66264 | 2020-07-22 17:42:43 +0200 | [diff] [blame] | 73 | xlnx,mio-bank = <0>; |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 74 | }; |
| 75 | |
| 76 | &uart0 { /* uart0 MIO38-39 */ |
| 77 | status = "okay"; |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 78 | }; |
| 79 | |
| 80 | &gem0 { /* eth MDIO 76/77 */ |
| 81 | status = "okay"; |
| 82 | phy-handle = <&phy0>; |
| 83 | phy-mode = "sgmii"; |
| 84 | is-internal-pcspma; |
Michal Simek | 393decf | 2019-08-08 12:44:22 +0200 | [diff] [blame] | 85 | phy0: ethernet-phy@0 { /* marwell m88e1512 */ |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 86 | reg = <0>; |
| 87 | reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>; |
| 88 | /* xlnx,phy-type = <PHY_TYPE_SGMII>; */ |
| 89 | }; |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 90 | }; |
| 91 | |
| 92 | &gpio { |
| 93 | status = "okay"; |
| 94 | gpio-line-names = "", "", "", "", "", /* 0 - 4 */ |
| 95 | "", "", "", "", "", /* 5 - 9 */ |
| 96 | "", "", "", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */ |
| 97 | "EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */ |
| 98 | "EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST_B", "", /* 20 - 24 */ |
| 99 | "", "", "", "", "", /* 25 - 29 */ |
| 100 | "", "", "", "", "LP_I2C0_PMC_SCL", /* 30 - 34 */ |
| 101 | "LP_I2C0_PMC_SDA", "", "", "UART0_RXD_IN", "UART0_TXD_OUT", /* 35 - 39 */ |
| 102 | "", "", "ETH_RESET_B", "", "", /* 40 - 44 */ |
| 103 | "", "", "", "", "", /* 45 - 49 */ |
| 104 | "", "", "USB0_CLK", "USB0_DIR", "USB0_DATA2", /* 50 - 54 */ |
| 105 | "USB0_NXT", "USB0_DATA0", "USB0_DATA1", "USB0_STP", "USB0_DATA3", /* 55 - 59 */ |
| 106 | "USB0_DATA4", "USB0_DATA5", "USB0_DATA6", "USB0_DATA7", "", /* 60 - 64 */ |
| 107 | "", "", "", "", "", /* 65 - 69 */ |
| 108 | "", "", "", "", "", /* 70 - 74 */ |
| 109 | "", "ETH_MDC", "ETH_MDIO", /* 75 - 77, MIO end and EMIO start */ |
| 110 | "SYSCTLR_VERSAL_MODE0", "SYSCTLR_VERSAL_MODE1", /* 78 - 79 */ |
| 111 | "SYSCTLR_VERSAL_MODE2", "SYSCTLR_VERSAL_MODE3", "SYSCTLR_POR_B_LS", "DC_PRSNT", "SYSCTLR_POWER_EN", /* 80 - 84 */ |
| 112 | "SYSCTLR_JTAG_S0", "SYSCTLR_JTAG_S1", "SYSCTLR_IIC_MUX0_RESET_B", "SYSCTLR_IIC_MUX1_RESET_B", "SYSCTLR_LP_I2C_SM_ALERT", /* 85 -89 */ |
| 113 | "SYSCTLR_GPIO0", "SYSCTLR_GPIO1", "SYSCTLR_GPIO2", "SYSCTLR_GPIO3", "SYSCTLR_GPIO4", /* 90 - 94 */ |
| 114 | "SYSCTLR_GPIO5", "VCCO_500_RBIAS", "VCCO_501_RBIAS", "VCCO_502_RBIAS", "VCCO_500_RBIAS_LED", /* 95 - 99 */ |
| 115 | "VCCO_501_RBIAS_LED", "VCCO_502_RBIAS_LED", "SYSCTLR_VCCINT_EN", "SYSCTLR_VCC_IO_SOC_EN", "SYSCTLR_VCC_PMC_EN", /* 100 - 104 */ |
| 116 | "SYSCTLR_VCC_RAM_EN", "SYSCTLR_VCC_PSLP_EN", "SYSCTLR_VCC_PSFP_EN", "SYSCTLR_VCCAUX_EN", "SYSCTLR_VCCAUX_PMC_EN", /* 105 - 109 */ |
| 117 | "SYSCTLR_VCCO_500_EN", "SYSCTLR_VCCO_501_EN", "SYSCTLR_VCCO_502_EN", "SYSCTLR_VCCO_503_EN", "SYSCTLR_VCC1V8_EN", /* 110 - 114 */ |
| 118 | "SYSCTLR_VCC3V3_EN", "SYSCTLR_VCC1V2_DDR4_EN", "SYSCTLR_VCC1V1_LP4_EN", "SYSCTLR_VDD1_1V8_LP4_EN", "SYSCTLR_VADJ_FMC_EN", /* 115 - 119 */ |
| 119 | "SYSCTLR_MGTYAVCC_EN", "SYSCTLR_MGTYAVTT_EN", "SYSCTLR_MGTYVCCAUX_EN", "SYSCTLR_UTIL_1V13_EN", "SYSCTLR_UTIL_1V8_EN", /* 120 - 124 */ |
| 120 | "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 */ |
| 121 | "PMBUS1_INA226_ALERT", "PMBUS2_INA226_ALERT", "SYSCTLR_USBC_SBU1", "SYSCTLR_USBC_SBU2", "TI_CABLE1", /* 130 - 134 */ |
| 122 | "TI_CABLE2", "SYSCTLR_MIC2005_EN_B", "SYSCTLR_MIC2005_FAULT_B", "SYSCTLR_TUSB320_INT_B", "SYSCTLR_TUSB320_ID", /* 135 - 139 */ |
| 123 | "PMBUS1_ALERT", "PMBUS2_ALERT", "SYSCTLR_ETH_RESET_B", "SYSCTLR_VCC0V85_TG", "MAX6643_OT_B", /* 140 - 144 */ |
| 124 | "MAX6643_FANFINAL_B", "MAX6643_FULLSPD", "", "", "", /* 145 - 149 */ |
| 125 | "", "", "", "", "", /* 150 - 154 */ |
| 126 | "", "", "", "", "", /* 155 - 159 */ |
| 127 | "", "", "", "", "", /* 160 - 164 */ |
| 128 | "", "", "", "", "", /* 165 - 169 */ |
| 129 | "", "", "", ""; /* 170 - 174 */ |
| 130 | }; |
| 131 | |
| 132 | &i2c0 { /* MIO 34-35 - can't stay here */ |
| 133 | status = "okay"; |
| 134 | clock-frequency = <400000>; |
| 135 | scl-gpios = <&gpio 34 GPIO_ACTIVE_HIGH>; |
| 136 | sda-gpios = <&gpio 35 GPIO_ACTIVE_HIGH>; |
| 137 | i2c-mux@74 { /* u94 */ |
| 138 | compatible = "nxp,pca9548"; |
| 139 | #address-cells = <1>; |
| 140 | #size-cells = <0>; |
| 141 | reg = <0x74>; |
| 142 | /* FIXME reset connected to SYSCTRL_IIC_MUX0_RESET */ |
| 143 | i2c@0 { |
| 144 | #address-cells = <1>; |
| 145 | #size-cells = <0>; |
| 146 | reg = <0>; |
| 147 | /* Use for storing information about SC board */ |
| 148 | eeprom: eeprom@50 { /* u96 - 24LC32A - 256B */ |
| 149 | compatible = "atmel,24c32"; |
| 150 | reg = <0x50>; |
| 151 | }; |
| 152 | }; |
| 153 | i2c@1 { /* CM_I2C_SCL - Samtec */ |
| 154 | #address-cells = <1>; |
| 155 | #size-cells = <0>; |
| 156 | reg = <1>; |
| 157 | }; |
| 158 | i2c@2 { /* PMBUS - AFX_PMBUS */ |
| 159 | #address-cells = <1>; |
| 160 | #size-cells = <0>; |
| 161 | reg = <2>; |
| 162 | tps544@d { /* u85 */ |
| 163 | compatible = "ti,tps544b25"; |
| 164 | reg = <0xd>; |
| 165 | }; |
| 166 | tps544@10 { /* u73 */ |
| 167 | compatible = "ti,tps544b25"; |
| 168 | reg = <0x10>; |
| 169 | }; |
| 170 | tps544@11 { /* u76 */ |
| 171 | compatible = "ti,tps544b25"; |
| 172 | reg = <0x11>; |
| 173 | }; |
| 174 | tps544@12 { /* u77 */ |
| 175 | compatible = "ti,tps544b25"; |
| 176 | reg = <0x12>; |
| 177 | }; |
| 178 | tps544@13 { /* u80 */ |
| 179 | compatible = "ti,tps544b25"; |
| 180 | reg = <0x13>; |
| 181 | }; |
| 182 | tps544@14 { /* u81 */ |
| 183 | compatible = "ti,tps544b25"; |
| 184 | reg = <0x14>; |
| 185 | }; |
| 186 | tps544@15 { /* u83 */ |
| 187 | compatible = "ti,tps544b25"; |
| 188 | reg = <0x15>; |
| 189 | }; |
| 190 | tps544@16 { /* u63 */ |
| 191 | compatible = "ti,tps544b25"; |
| 192 | reg = <0x16>; |
| 193 | }; |
| 194 | tps544@17 { /* u66 */ |
| 195 | compatible = "ti,tps544b25"; |
| 196 | reg = <0x17>; |
| 197 | }; |
| 198 | tps544@18 { /* u67 */ |
| 199 | compatible = "ti,tps544b25"; |
| 200 | reg = <0x18>; |
| 201 | }; |
| 202 | tps544@19 { /* u69 */ |
| 203 | compatible = "ti,tps544b25"; |
| 204 | reg = <0x19>; |
| 205 | }; |
| 206 | tps544@1d { /* u88 */ |
| 207 | compatible = "ti,tps544b25"; |
| 208 | reg = <0x1d>; |
| 209 | }; |
| 210 | tps544@1e { /* u89 */ |
| 211 | compatible = "ti,tps544b25"; |
| 212 | reg = <0x1e>; |
| 213 | }; |
| 214 | tps544@1f { /* u87 */ |
| 215 | compatible = "ti,tps544b25"; |
| 216 | reg = <0x1f>; |
| 217 | }; |
| 218 | tps544@20 { /* u71 */ |
| 219 | compatible = "ti,tps544b25"; |
| 220 | reg = <0x20>; |
| 221 | }; |
Michal Simek | b99d7a8 | 2019-08-26 11:09:42 +0200 | [diff] [blame] | 222 | u74: ina226@40 { /* u74 */ |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 223 | compatible = "ti,ina226"; |
Michal Simek | b99d7a8 | 2019-08-26 11:09:42 +0200 | [diff] [blame] | 224 | #io-channel-cells = <1>; |
Michal Simek | 29498e4 | 2019-08-26 11:10:36 +0200 | [diff] [blame] | 225 | label = "ina226-u74"; |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 226 | reg = <0x40>; |
| 227 | shunt-resistor = <1000>; |
| 228 | }; |
Michal Simek | b99d7a8 | 2019-08-26 11:09:42 +0200 | [diff] [blame] | 229 | u75: ina226@41 { /* u75 */ |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 230 | compatible = "ti,ina226"; |
Michal Simek | b99d7a8 | 2019-08-26 11:09:42 +0200 | [diff] [blame] | 231 | #io-channel-cells = <1>; |
Michal Simek | 29498e4 | 2019-08-26 11:10:36 +0200 | [diff] [blame] | 232 | label = "ina226-u75"; |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 233 | reg = <0x41>; |
| 234 | shunt-resistor = <1000>; |
| 235 | }; |
Michal Simek | b99d7a8 | 2019-08-26 11:09:42 +0200 | [diff] [blame] | 236 | u78: ina226@42 { /* u78 */ |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 237 | compatible = "ti,ina226"; |
Michal Simek | b99d7a8 | 2019-08-26 11:09:42 +0200 | [diff] [blame] | 238 | #io-channel-cells = <1>; |
Michal Simek | 29498e4 | 2019-08-26 11:10:36 +0200 | [diff] [blame] | 239 | label = "ina226-u78"; |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 240 | reg = <0x42>; |
| 241 | shunt-resistor = <5000>; |
| 242 | }; |
Michal Simek | b99d7a8 | 2019-08-26 11:09:42 +0200 | [diff] [blame] | 243 | u79: ina226@43 { /* u79 */ |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 244 | compatible = "ti,ina226"; |
Michal Simek | b99d7a8 | 2019-08-26 11:09:42 +0200 | [diff] [blame] | 245 | #io-channel-cells = <1>; |
Michal Simek | 29498e4 | 2019-08-26 11:10:36 +0200 | [diff] [blame] | 246 | label = "ina226-u79"; |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 247 | reg = <0x43>; |
| 248 | shunt-resistor = <1000>; |
| 249 | }; |
Michal Simek | b99d7a8 | 2019-08-26 11:09:42 +0200 | [diff] [blame] | 250 | u82: ina226@44 { /* u82 */ |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 251 | compatible = "ti,ina226"; |
Michal Simek | b99d7a8 | 2019-08-26 11:09:42 +0200 | [diff] [blame] | 252 | #io-channel-cells = <1>; |
Michal Simek | 29498e4 | 2019-08-26 11:10:36 +0200 | [diff] [blame] | 253 | label = "ina226-u82"; |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 254 | reg = <0x44>; |
| 255 | shunt-resistor = <1000>; |
| 256 | }; |
Michal Simek | b99d7a8 | 2019-08-26 11:09:42 +0200 | [diff] [blame] | 257 | u84: ina226@45 { /* u84 */ |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 258 | compatible = "ti,ina226"; |
Michal Simek | b99d7a8 | 2019-08-26 11:09:42 +0200 | [diff] [blame] | 259 | #io-channel-cells = <1>; |
Michal Simek | 29498e4 | 2019-08-26 11:10:36 +0200 | [diff] [blame] | 260 | label = "ina226-u84"; |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 261 | reg = <0x45>; |
| 262 | shunt-resistor = <5000>; |
| 263 | }; |
| 264 | tps53681@c0 { /* u53 - FIXME name - don't know what it does - also vcc_io_soc */ |
Nishant Mittal | ce2c40d | 2019-07-24 14:58:52 +0530 | [diff] [blame] | 265 | compatible = "ti,tps53681", "ti,tps53679"; |
Michal Simek | e42840b | 2019-03-27 20:14:19 +0100 | [diff] [blame] | 266 | reg = <0xc0>; |
| 267 | }; |
| 268 | }; |
| 269 | i2c@3 { /* fmc1 via JA2G */ |
| 270 | #address-cells = <1>; |
| 271 | #size-cells = <0>; |
| 272 | reg = <3>; |
| 273 | eeprom_fmc1: eeprom@50 { /* on FMC */ |
| 274 | compatible = "atmel,24c04"; |
| 275 | reg = <0x50>; |
| 276 | }; |
| 277 | }; |
| 278 | i2c@4 { /* fmc2 via JA3G */ |
| 279 | #address-cells = <1>; |
| 280 | #size-cells = <0>; |
| 281 | reg = <4>; |
| 282 | eeprom_fmc2: eeprom@50 { /* on FMC */ |
| 283 | compatible = "atmel,24c04"; |
| 284 | reg = <0x50>; |
| 285 | }; |
| 286 | }; |
| 287 | i2c@5 { /* fmc3 via JA4G */ |
| 288 | #address-cells = <1>; |
| 289 | #size-cells = <0>; |
| 290 | reg = <5>; |
| 291 | eeprom_fmc3: eeprom@50 { /* on FMC */ |
| 292 | compatible = "atmel,24c04"; |
| 293 | reg = <0x50>; |
| 294 | }; |
| 295 | }; |
| 296 | i2c@6 { /* ddr dimm */ |
| 297 | #address-cells = <1>; |
| 298 | #size-cells = <0>; |
| 299 | reg = <7>; |
| 300 | }; |
| 301 | /* 7 unused */ |
| 302 | }; |
| 303 | }; |
| 304 | |
| 305 | &usb0 { /* USB0 MIO52-63 */ |
| 306 | status = "okay"; |
| 307 | xlnx,usb-polarity = <0>; |
| 308 | xlnx,usb-reset-mode = <0>; |
| 309 | }; |
| 310 | |
| 311 | &dwc3_0 { |
| 312 | status = "okay"; |
| 313 | dr_mode = "peripheral"; |
| 314 | maximum-speed = "high-speed"; |
| 315 | }; |