blob: 2076271ac9932b57efec895616e090e95615eb8e [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
Michal Simeke3157622024-01-08 10:24:45 +010046 si5332_1: si5332-1 { /* clk0_sgmii - u142 */
Michal Simek278a5382021-10-14 19:07:52 +020047 compatible = "fixed-clock";
48 #clock-cells = <0>;
49 clock-frequency = <125000000>;
50 };
51
Michal Simeke3157622024-01-08 10:24:45 +010052 si5332_2: si5332-2 { /* clk1_usb - u142 */
Michal Simek278a5382021-10-14 19:07:52 +020053 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;
Michal Simek0641df72023-09-22 12:35:36 +020091 mdio: mdio {
92 #address-cells = <1>;
93 #size-cells = <0>;
94 /* reset-gpios = <&gpio 142 GPIO_ACTIVE_LOW>; */
95 phy0: ethernet-phy@0 {
96 reg = <0>;
97 };
Michal Simek278a5382021-10-14 19:07:52 +020098 };
99};
100
101&gpio {
102 status = "okay";
103 gpio-line-names = "", "", "", "", "", /* 0 - 4 */
104 "", "", "", "", "", /* 5 - 9 */
105 "", "", "", "EMMC_DAT0", "EMMC_DAT1", /* 10 - 14 */
106 "EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", /* 15 - 19 */
107 "EMMC_DAT7", "EMMC_CMD", "EMMC_CLK", "EMMC_RST_B", "", /* 20 - 24 */
108 "", "DISP_SCL", "DISP_DC_B", "DISP_RES_B", "DISP_CS_B", /* 25 - 29 */
109 "", "DISP_SDI", "SYSTEM_RST_R_B", "", "I2C0_SCL", /* 30 - 34 */
110 "I2C0_SDA", "", "", "UART0_RXD_IN", "UART0_TXD_OUT", /* 35 - 39 */
111 "", "", "ETH_RESET_B", "", "", /* 40 - 44 */
112 "SD1_CD_B", "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3", /* 45 - 49 */
113 "SD1_CMD", "SD1_CLK", "USB0_CLK", "USB0_DIR", "USB0_DATA2", /* 50 - 54 */
114 "USB0_NXT", "USB0_DATA0", "USB0_DATA1", "USB0_STP", "USB0_DATA3", /* 55 - 59 */
115 "USB0_DATA4", "USB0_DATA5", "USB0_DATA6", "USB0_DATA7", "USB1_CLK", /* 60 - 64 */
116 "USB1_DIR", "USB1_DATA2", "USB1_NXT", "USB1_DATA0", "USB1_DATA1", /* 65 - 69 */
117 "USB1_STP", "USB1_DATA3", "USB1_DATA4", "USB1_DATA5", "USB1_DATA6", /* 70 - 74 */
118 "USB1_DATA7", "ETH_MDC", "ETH_MDIO", /* 75 - 77, MIO end and EMIO start */
119 "", "", /* 78 - 79 */
120 "", "", "", "", "", /* 80 - 84 */
121 "", "", "", "", "", /* 85 -89 */
122 "", "", "", "", "", /* 90 - 94 */
123 "", "VCCO_500_RBIAS", "VCCO_501_RBIAS", "VCCO_502_RBIAS", "VCCO_500_RBIAS_LED", /* 95 - 99 */
124 "VCCO_501_RBIAS_LED", "VCCO_502_RBIAS_LED", "SYSCTLR_VCCINT_EN", "SYSCTLR_VCC_IO_SOC_EN", "SYSCTLR_VCC_PMC_EN", /* 100 - 104 */
125 "", "", "", "", "", /* 105 - 109 */
126 "SYSCTLR_VCCO_500_EN", "SYSCTLR_VCCO_501_EN", "SYSCTLR_VCCO_502_EN", "SYSCTLR_VCCO_503_EN", "SYSCTLR_VCC1V8_EN", /* 110 - 114 */
127 "SYSCTLR_VCC3V3_EN", "SYSCTLR_VCC1V2_DDR4_EN", "SYSCTLR_VCC1V1_LP4_EN", "SYSCTLR_VDD1_1V8_LP4_EN", "SYSCTLR_VADJ_FMC_EN", /* 115 - 119 */
128 "", "", "", "SYSCTLR_UTIL_1V13_EN", "SYSCTLR_UTIL_1V8_EN", /* 120 - 124 */
129 "SYSCTLR_UTIL_2V5_EN", "", "", "", "", /* 125 - 129 */
130 "", "", "SYSCTLR_USBC_SBU1", "SYSCTLR_USBC_SBU2", "", /* 130 - 134 */
131 "", "SYSCTLR_MIC2005_EN_B", "SYSCTLR_MIC2005_FAULT_B", "SYSCTLR_TUSB320_INT_B", "SYSCTLR_TUSB320_ID", /* 135 - 139 */
132 "", "", "SYSCTLR_ETH_RESET_B", "", "", /* 140 - 144 */
133 "", "", "", "", "", /* 145 - 149 */
134 "", "", "", "", "", /* 150 - 154 */
135 "", "", "", "", "", /* 155 - 159 */
136 "", "", "", "", "", /* 160 - 164 */
137 "", "", "", "", "", /* 165 - 169 */
Michal Simekfdf3fc62023-07-10 14:37:31 +0200138 "", "", "", ""; /* 170 - 173 */
Michal Simek278a5382021-10-14 19:07:52 +0200139};
140
141&i2c0 { /* MIO34/35 */
142 status = "okay";
143 clock-frequency = <400000>;
144
145 jtag_vref: mcp4725@62 {
146 compatible = "microchip,mcp4725";
147 reg = <0x62>;
148 vref-millivolt = <3300>;
149 };
150
151 eeprom: eeprom@50 { /* u46 */
152 compatible = "atmel,24c32";
153 reg = <0x50>;
154 };
155 /* u138 - TUSB320IRWBR - for USB-C */
156};
157
Michal Simek278a5382021-10-14 19:07:52 +0200158&usb0 {
159 status = "okay";
Michal Simek278a5382021-10-14 19:07:52 +0200160};
161
162&dwc3_0 {
163 status = "okay";
164 dr_mode = "peripheral";
165 snps,dis_u2_susphy_quirk;
166 snps,dis_u3_susphy_quirk;
167 maximum-speed = "super-speed";
168 phy-names = "usb3-phy";
169 phys = <&psgtr 1 PHY_TYPE_USB3 0 1>;
170};
171
172&usb1 {
173 status = "disabled"; /* Any unknown issue with USB-C */
Michal Simek278a5382021-10-14 19:07:52 +0200174};
175
176&dwc3_1 {
177 /delete-property/ phy-names ;
178 /delete-property/ phys ;
179 dr_mode = "host";
180 maximum-speed = "high-speed";
181 snps,dis_u2_susphy_quirk ;
182 snps,dis_u3_susphy_quirk ;
183 status = "okay";
184};
185
186&xilinx_ams {
187 status = "okay";
188};
189
190&ams_ps {
191 status = "okay";
192};
193
194&ams_pl {
195 status = "okay";
196};
197
198&spi0 {
199 status = "okay";
200 is-decoded-cs = <0>;
201 num-cs = <1>;
Simon Glassd3a98cb2023-02-13 08:56:33 -0700202 bootph-all;
Michal Simek278a5382021-10-14 19:07:52 +0200203 displayspi@0 {
204 compatible = "syncoam,seps525";
Simon Glassd3a98cb2023-02-13 08:56:33 -0700205 bootph-all;
Michal Simek278a5382021-10-14 19:07:52 +0200206 reg = <0>;
207 status = "okay";
208 spi-max-frequency = <10000000>;
209 spi-cpol;
210 spi-cpha;
211 rotate = <0>;
212 fps = <50>;
213 buswidth = <8>;
214 txbuflen = <64000>;
215 reset-gpios = <&gpio 0x1c GPIO_ACTIVE_LOW>;
216 dc-gpios = <&gpio 0x1b GPIO_ACTIVE_HIGH>;
217 debug = <0>;
218 };
219};