blob: 016081ef7b99777a197453aeb3bfbf7c5511ed49 [file] [log] [blame]
Michal Simek278a5382021-10-14 19:07:52 +02001// SPDX-License-Identifier: GPL-2.0
2/*
3 * dts file for Xilinx ZynqMP DLC21 revA
4 *
5 * (C) Copyright 2019 - 2021, Xilinx, Inc.
6 *
Michal Simeka8c94362023-07-10 14:35:49 +02007 * Michal Simek <michal.simek@amd.com>
Michal Simek278a5382021-10-14 19:07:52 +02008 */
9/dts-v1/;
10
11#include "zynqmp.dtsi"
12#include "zynqmp-clk-ccf.dtsi"
13#include <dt-bindings/gpio/gpio.h>
14#include <dt-bindings/phy/phy.h>
Michal Simek278a5382021-10-14 19:07:52 +020015
16/ {
17 model = "Smartlynq+ DLC21 RevA";
18 compatible = "xlnx,zynqmp-dlc21-revA", "xlnx,zynqmp-dlc21",
19 "xlnx,zynqmp";
20
21 aliases {
22 ethernet0 = &gem0;
23 gpio0 = &gpio;
24 i2c0 = &i2c0;
25 mmc0 = &sdhci0;
26 mmc1 = &sdhci1;
27 rtc0 = &rtc;
28 serial0 = &uart0;
29 serial2 = &dcc;
30 usb0 = &usb0;
31 usb1 = &usb1;
32 spi0 = &spi0;
33 nvmem0 = &eeprom;
34 };
35
36 chosen {
37 bootargs = "earlycon";
38 stdout-path = "serial0:115200n8";
39 };
40
41 memory@0 {
42 device_type = "memory";
43 reg = <0 0 0 0x80000000>, <0x8 0 0x3 0x80000000>;
44 };
45
46 si5332_1: si5332_1 { /* clk0_sgmii - u142 */
47 compatible = "fixed-clock";
48 #clock-cells = <0>;
49 clock-frequency = <125000000>;
50 };
51
52 si5332_2: si5332_2 { /* clk1_usb - u142 */
53 compatible = "fixed-clock";
54 #clock-cells = <0>;
55 clock-frequency = <26000000>;
56 };
57};
58
59&sdhci0 { /* emmc MIO 13-23 - with some settings 16GB */
60 status = "okay";
61 non-removable;
62 disable-wp;
63 bus-width = <8>;
Michal Simeka436a4c2023-09-11 16:10:46 +020064 xlnx,mio-bank = <0>;
Michal Simek278a5382021-10-14 19:07:52 +020065};
66
67&sdhci1 { /* sd1 MIO45-51 cd in place */
68 status = "okay";
69 no-1-8-v;
70 disable-wp;
Michal Simeka436a4c2023-09-11 16:10:46 +020071 xlnx,mio-bank = <1>;
Michal Simek278a5382021-10-14 19:07:52 +020072};
73
74&psgtr {
75 status = "okay";
76 /* sgmii, usb3 */
77 clocks = <&si5332_1>, <&si5332_2>;
78 clock-names = "ref0", "ref1";
79};
80
81&uart0 { /* uart0 MIO38-39 */
82 status = "okay";
Simon Glassd3a98cb2023-02-13 08:56:33 -070083 bootph-all;
Michal Simek278a5382021-10-14 19:07:52 +020084};
85
86&gem0 {
87 status = "okay";
88 phy-handle = <&phy0>;
89 phy-mode = "sgmii"; /* DTG generates this properly 1512 */
90 is-internal-pcspma;
91 /* phy-reset-gpios = <&gpio 142 GPIO_ACTIVE_LOW>; */
92 phy0: ethernet-phy@0 {
93 reg = <0>;
94 };
95};
96
97&gpio {
98 status = "okay";
99 gpio-line-names = "", "", "", "", "", /* 0 - 4 */
100 "", "", "", "", "", /* 5 - 9 */
101 "", "", "", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */
102 "EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */
103 "EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST_B", "", /* 20 - 24 */
104 "", "DISP_SCL", "DISP_DC_B", "DISP_RES_B", "DISP_CS_B", /* 25 - 29 */
105 "", "DISP_SDI", "SYSTEM_RST_R_B", "", "I2C0_SCL", /* 30 - 34 */
106 "I2C0_SDA", "", "", "UART0_RXD_IN", "UART0_TXD_OUT", /* 35 - 39 */
107 "", "", "ETH_RESET_B", "", "", /* 40 - 44 */
108 "SD1_CD_B", "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3", /* 45 - 49 */
109 "SD1_CMD", "SD1_CLK", "USB0_CLK", "USB0_DIR", "USB0_DATA2", /* 50 - 54 */
110 "USB0_NXT", "USB0_DATA0", "USB0_DATA1", "USB0_STP", "USB0_DATA3", /* 55 - 59 */
111 "USB0_DATA4", "USB0_DATA5", "USB0_DATA6", "USB0_DATA7", "USB1_CLK", /* 60 - 64 */
112 "USB1_DIR", "USB1_DATA2", "USB1_NXT", "USB1_DATA0", "USB1_DATA1", /* 65 - 69 */
113 "USB1_STP", "USB1_DATA3", "USB1_DATA4", "USB1_DATA5", "USB1_DATA6", /* 70 - 74 */
114 "USB1_DATA7", "ETH_MDC", "ETH_MDIO", /* 75 - 77, MIO end and EMIO start */
115 "", "", /* 78 - 79 */
116 "", "", "", "", "", /* 80 - 84 */
117 "", "", "", "", "", /* 85 -89 */
118 "", "", "", "", "", /* 90 - 94 */
119 "", "VCCO_500_RBIAS", "VCCO_501_RBIAS", "VCCO_502_RBIAS", "VCCO_500_RBIAS_LED", /* 95 - 99 */
120 "VCCO_501_RBIAS_LED", "VCCO_502_RBIAS_LED", "SYSCTLR_VCCINT_EN", "SYSCTLR_VCC_IO_SOC_EN", "SYSCTLR_VCC_PMC_EN", /* 100 - 104 */
121 "", "", "", "", "", /* 105 - 109 */
122 "SYSCTLR_VCCO_500_EN", "SYSCTLR_VCCO_501_EN", "SYSCTLR_VCCO_502_EN", "SYSCTLR_VCCO_503_EN", "SYSCTLR_VCC1V8_EN", /* 110 - 114 */
123 "SYSCTLR_VCC3V3_EN", "SYSCTLR_VCC1V2_DDR4_EN", "SYSCTLR_VCC1V1_LP4_EN", "SYSCTLR_VDD1_1V8_LP4_EN", "SYSCTLR_VADJ_FMC_EN", /* 115 - 119 */
124 "", "", "", "SYSCTLR_UTIL_1V13_EN", "SYSCTLR_UTIL_1V8_EN", /* 120 - 124 */
125 "SYSCTLR_UTIL_2V5_EN", "", "", "", "", /* 125 - 129 */
126 "", "", "SYSCTLR_USBC_SBU1", "SYSCTLR_USBC_SBU2", "", /* 130 - 134 */
127 "", "SYSCTLR_MIC2005_EN_B", "SYSCTLR_MIC2005_FAULT_B", "SYSCTLR_TUSB320_INT_B", "SYSCTLR_TUSB320_ID", /* 135 - 139 */
128 "", "", "SYSCTLR_ETH_RESET_B", "", "", /* 140 - 144 */
129 "", "", "", "", "", /* 145 - 149 */
130 "", "", "", "", "", /* 150 - 154 */
131 "", "", "", "", "", /* 155 - 159 */
132 "", "", "", "", "", /* 160 - 164 */
133 "", "", "", "", "", /* 165 - 169 */
Michal Simekfdf3fc62023-07-10 14:37:31 +0200134 "", "", "", ""; /* 170 - 173 */
Michal Simek278a5382021-10-14 19:07:52 +0200135};
136
137&i2c0 { /* MIO34/35 */
138 status = "okay";
139 clock-frequency = <400000>;
140
141 jtag_vref: mcp4725@62 {
142 compatible = "microchip,mcp4725";
143 reg = <0x62>;
144 vref-millivolt = <3300>;
145 };
146
147 eeprom: eeprom@50 { /* u46 */
148 compatible = "atmel,24c32";
149 reg = <0x50>;
150 };
151 /* u138 - TUSB320IRWBR - for USB-C */
152};
153
154
155&usb0 {
156 status = "okay";
Michal Simek278a5382021-10-14 19:07:52 +0200157};
158
159&dwc3_0 {
160 status = "okay";
161 dr_mode = "peripheral";
162 snps,dis_u2_susphy_quirk;
163 snps,dis_u3_susphy_quirk;
164 maximum-speed = "super-speed";
165 phy-names = "usb3-phy";
166 phys = <&psgtr 1 PHY_TYPE_USB3 0 1>;
167};
168
169&usb1 {
170 status = "disabled"; /* Any unknown issue with USB-C */
Michal Simek278a5382021-10-14 19:07:52 +0200171};
172
173&dwc3_1 {
174 /delete-property/ phy-names ;
175 /delete-property/ phys ;
176 dr_mode = "host";
177 maximum-speed = "high-speed";
178 snps,dis_u2_susphy_quirk ;
179 snps,dis_u3_susphy_quirk ;
180 status = "okay";
181};
182
183&xilinx_ams {
184 status = "okay";
185};
186
187&ams_ps {
188 status = "okay";
189};
190
191&ams_pl {
192 status = "okay";
193};
194
195&spi0 {
196 status = "okay";
197 is-decoded-cs = <0>;
198 num-cs = <1>;
Simon Glassd3a98cb2023-02-13 08:56:33 -0700199 bootph-all;
Michal Simek278a5382021-10-14 19:07:52 +0200200 displayspi@0 {
201 compatible = "syncoam,seps525";
Simon Glassd3a98cb2023-02-13 08:56:33 -0700202 bootph-all;
Michal Simek278a5382021-10-14 19:07:52 +0200203 reg = <0>;
204 status = "okay";
205 spi-max-frequency = <10000000>;
206 spi-cpol;
207 spi-cpha;
208 rotate = <0>;
209 fps = <50>;
210 buswidth = <8>;
211 txbuflen = <64000>;
212 reset-gpios = <&gpio 0x1c GPIO_ACTIVE_LOW>;
213 dc-gpios = <&gpio 0x1b GPIO_ACTIVE_HIGH>;
214 debug = <0>;
215 };
216};