Michal Simek | 278a538 | 2021-10-14 19:07:52 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * dts file for Xilinx ZynqMP DLC21 revA |
| 4 | * |
| 5 | * (C) Copyright 2019 - 2021, 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 | #include <dt-bindings/phy/phy.h> |
Michal Simek | 278a538 | 2021-10-14 19:07:52 +0200 | [diff] [blame] | 15 | |
| 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>; |
| 64 | xlnx,mio_bank = <0>; |
| 65 | }; |
| 66 | |
| 67 | &sdhci1 { /* sd1 MIO45-51 cd in place */ |
| 68 | status = "okay"; |
| 69 | no-1-8-v; |
| 70 | disable-wp; |
| 71 | xlnx,mio_bank = <1>; |
| 72 | }; |
| 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"; |
| 83 | u-boot,dm-pre-reloc; |
| 84 | }; |
| 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 */ |
| 134 | "", "", "", ""; /* 170 - 174 */ |
| 135 | }; |
| 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"; |
| 157 | xlnx,usb-polarity = <0>; |
| 158 | xlnx,usb-reset-mode = <0>; |
| 159 | }; |
| 160 | |
| 161 | &dwc3_0 { |
| 162 | status = "okay"; |
| 163 | dr_mode = "peripheral"; |
| 164 | snps,dis_u2_susphy_quirk; |
| 165 | snps,dis_u3_susphy_quirk; |
| 166 | maximum-speed = "super-speed"; |
| 167 | phy-names = "usb3-phy"; |
| 168 | phys = <&psgtr 1 PHY_TYPE_USB3 0 1>; |
| 169 | }; |
| 170 | |
| 171 | &usb1 { |
| 172 | status = "disabled"; /* Any unknown issue with USB-C */ |
| 173 | xlnx,usb-polarity = <0>; |
| 174 | xlnx,usb-reset-mode = <0>; |
| 175 | }; |
| 176 | |
| 177 | &dwc3_1 { |
| 178 | /delete-property/ phy-names ; |
| 179 | /delete-property/ phys ; |
| 180 | dr_mode = "host"; |
| 181 | maximum-speed = "high-speed"; |
| 182 | snps,dis_u2_susphy_quirk ; |
| 183 | snps,dis_u3_susphy_quirk ; |
| 184 | status = "okay"; |
| 185 | }; |
| 186 | |
| 187 | &xilinx_ams { |
| 188 | status = "okay"; |
| 189 | }; |
| 190 | |
| 191 | &ams_ps { |
| 192 | status = "okay"; |
| 193 | }; |
| 194 | |
| 195 | &ams_pl { |
| 196 | status = "okay"; |
| 197 | }; |
| 198 | |
| 199 | &spi0 { |
| 200 | status = "okay"; |
| 201 | is-decoded-cs = <0>; |
| 202 | num-cs = <1>; |
| 203 | u-boot,dm-pre-reloc; |
| 204 | displayspi@0 { |
| 205 | compatible = "syncoam,seps525"; |
| 206 | u-boot,dm-pre-reloc; |
| 207 | reg = <0>; |
| 208 | status = "okay"; |
| 209 | spi-max-frequency = <10000000>; |
| 210 | spi-cpol; |
| 211 | spi-cpha; |
| 212 | rotate = <0>; |
| 213 | fps = <50>; |
| 214 | buswidth = <8>; |
| 215 | txbuflen = <64000>; |
| 216 | reset-gpios = <&gpio 0x1c GPIO_ACTIVE_LOW>; |
| 217 | dc-gpios = <&gpio 0x1b GPIO_ACTIVE_HIGH>; |
| 218 | debug = <0>; |
| 219 | }; |
| 220 | }; |