Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * dts file for Xilinx ZynqMP zc1751-xm017-dc3 |
| 4 | * |
Michal Simek | 8676f51 | 2021-06-03 10:47:04 +0200 | [diff] [blame] | 5 | * (C) Copyright 2016 - 2021, Xilinx, Inc. |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 6 | * |
| 7 | * Michal Simek <michal.simek@xilinx.com> |
| 8 | */ |
| 9 | |
| 10 | /dts-v1/; |
| 11 | |
| 12 | #include "zynqmp.dtsi" |
| 13 | #include "zynqmp-clk-ccf.dtsi" |
Piyush Mehta | f2a532e | 2021-06-21 10:11:27 +0530 | [diff] [blame] | 14 | #include <dt-bindings/phy/phy.h> |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 15 | |
| 16 | / { |
| 17 | model = "ZynqMP zc1751-xm017-dc3 RevA"; |
| 18 | compatible = "xlnx,zynqmp-zc1751", "xlnx,zynqmp"; |
| 19 | |
| 20 | aliases { |
| 21 | ethernet0 = &gem0; |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 22 | i2c0 = &i2c0; |
| 23 | i2c1 = &i2c1; |
| 24 | mmc0 = &sdhci1; |
| 25 | rtc0 = &rtc; |
| 26 | serial0 = &uart0; |
| 27 | serial1 = &uart1; |
| 28 | usb0 = &usb0; |
| 29 | usb1 = &usb1; |
| 30 | }; |
| 31 | |
| 32 | chosen { |
| 33 | bootargs = "earlycon"; |
| 34 | stdout-path = "serial0:115200n8"; |
| 35 | }; |
| 36 | |
| 37 | memory@0 { |
| 38 | device_type = "memory"; |
| 39 | reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>; |
| 40 | }; |
Piyush Mehta | f2a532e | 2021-06-21 10:11:27 +0530 | [diff] [blame] | 41 | |
| 42 | clock_si5338_2: clk26 { |
| 43 | compatible = "fixed-clock"; |
| 44 | #clock-cells = <0>; |
| 45 | clock-frequency = <26000000>; |
| 46 | }; |
| 47 | |
| 48 | clock_si5338_3: clk125 { |
| 49 | compatible = "fixed-clock"; |
| 50 | #clock-cells = <0>; |
| 51 | clock-frequency = <125000000>; |
| 52 | }; |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 53 | }; |
| 54 | |
| 55 | &fpd_dma_chan1 { |
| 56 | status = "okay"; |
| 57 | }; |
| 58 | |
| 59 | &fpd_dma_chan2 { |
| 60 | status = "okay"; |
| 61 | }; |
| 62 | |
| 63 | &fpd_dma_chan3 { |
| 64 | status = "okay"; |
| 65 | }; |
| 66 | |
| 67 | &fpd_dma_chan4 { |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | |
| 71 | &fpd_dma_chan5 { |
| 72 | status = "okay"; |
| 73 | }; |
| 74 | |
| 75 | &fpd_dma_chan6 { |
| 76 | status = "okay"; |
| 77 | }; |
| 78 | |
| 79 | &fpd_dma_chan7 { |
| 80 | status = "okay"; |
| 81 | }; |
| 82 | |
| 83 | &fpd_dma_chan8 { |
| 84 | status = "okay"; |
| 85 | }; |
| 86 | |
| 87 | &gem0 { |
| 88 | status = "okay"; |
| 89 | phy-handle = <&phy0>; |
| 90 | phy-mode = "rgmii-id"; |
Michal Simek | 393decf | 2019-08-08 12:44:22 +0200 | [diff] [blame] | 91 | phy0: ethernet-phy@0 { /* VSC8211 */ |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 92 | reg = <0>; |
| 93 | }; |
| 94 | }; |
| 95 | |
| 96 | &gpio { |
| 97 | status = "okay"; |
| 98 | }; |
| 99 | |
| 100 | /* just eeprom here */ |
| 101 | &i2c0 { |
| 102 | status = "okay"; |
| 103 | clock-frequency = <400000>; |
| 104 | |
| 105 | tca6416_u26: gpio@20 { |
| 106 | compatible = "ti,tca6416"; |
| 107 | reg = <0x20>; |
| 108 | gpio-controller; |
| 109 | #gpio-cells = <2>; |
| 110 | /* IRQ not connected */ |
| 111 | }; |
| 112 | |
| 113 | rtc@68 { |
| 114 | compatible = "dallas,ds1339"; |
| 115 | reg = <0x68>; |
| 116 | }; |
| 117 | }; |
| 118 | |
| 119 | /* eeprom24c02 and SE98A temp chip pca9306 */ |
| 120 | &i2c1 { |
| 121 | status = "okay"; |
| 122 | clock-frequency = <400000>; |
| 123 | }; |
| 124 | |
| 125 | /* MT29F64G08AECDBJ4-6 */ |
| 126 | &nand0 { |
| 127 | status = "okay"; |
| 128 | arasan,has-mdma; |
| 129 | num-cs = <2>; |
| 130 | |
Ashok Reddy Soma | 10363f9 | 2023-02-23 22:07:08 -0700 | [diff] [blame^] | 131 | nand@0 { |
| 132 | reg = <0x0>; |
| 133 | #address-cells = <0x2>; |
| 134 | #size-cells = <0x1>; |
| 135 | nand-ecc-mode = "soft"; |
| 136 | nand-ecc-algo = "bch"; |
| 137 | nand-rb = <0>; |
| 138 | label = "main-storage-0"; |
| 139 | nand-ecc-step-size = <1024>; |
| 140 | nand-ecc-strength = <24>; |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 141 | |
Ashok Reddy Soma | 10363f9 | 2023-02-23 22:07:08 -0700 | [diff] [blame^] | 142 | partition@0 { /* for testing purpose */ |
| 143 | label = "nand-fsbl-uboot"; |
| 144 | reg = <0x0 0x0 0x400000>; |
| 145 | }; |
| 146 | partition@1 { /* for testing purpose */ |
| 147 | label = "nand-linux"; |
| 148 | reg = <0x0 0x400000 0x1400000>; |
| 149 | }; |
| 150 | partition@2 { /* for testing purpose */ |
| 151 | label = "nand-device-tree"; |
| 152 | reg = <0x0 0x1800000 0x400000>; |
| 153 | }; |
| 154 | partition@3 { /* for testing purpose */ |
| 155 | label = "nand-rootfs"; |
| 156 | reg = <0x0 0x1C00000 0x1400000>; |
| 157 | }; |
| 158 | partition@4 { /* for testing purpose */ |
| 159 | label = "nand-bitstream"; |
| 160 | reg = <0x0 0x3000000 0x400000>; |
| 161 | }; |
| 162 | partition@5 { /* for testing purpose */ |
| 163 | label = "nand-misc"; |
| 164 | reg = <0x0 0x3400000 0xFCC00000>; |
| 165 | }; |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 166 | }; |
Ashok Reddy Soma | 10363f9 | 2023-02-23 22:07:08 -0700 | [diff] [blame^] | 167 | nand@1 { |
| 168 | reg = <0x1>; |
| 169 | #address-cells = <0x2>; |
| 170 | #size-cells = <0x1>; |
| 171 | nand-ecc-mode = "soft"; |
| 172 | nand-ecc-algo = "bch"; |
| 173 | nand-rb = <0>; |
| 174 | label = "main-storage-1"; |
| 175 | nand-ecc-step-size = <1024>; |
| 176 | nand-ecc-strength = <24>; |
| 177 | |
| 178 | partition@0 { /* for testing purpose */ |
| 179 | label = "nand1-fsbl-uboot"; |
| 180 | reg = <0x0 0x0 0x400000>; |
| 181 | }; |
| 182 | partition@1 { /* for testing purpose */ |
| 183 | label = "nand1-linux"; |
| 184 | reg = <0x0 0x400000 0x1400000>; |
| 185 | }; |
| 186 | partition@2 { /* for testing purpose */ |
| 187 | label = "nand1-device-tree"; |
| 188 | reg = <0x0 0x1800000 0x400000>; |
| 189 | }; |
| 190 | partition@3 { /* for testing purpose */ |
| 191 | label = "nand1-rootfs"; |
| 192 | reg = <0x0 0x1C00000 0x1400000>; |
| 193 | }; |
| 194 | partition@4 { /* for testing purpose */ |
| 195 | label = "nand1-bitstream"; |
| 196 | reg = <0x0 0x3000000 0x400000>; |
| 197 | }; |
| 198 | partition@5 { /* for testing purpose */ |
| 199 | label = "nand1-misc"; |
| 200 | reg = <0x0 0x3400000 0xFCC00000>; |
| 201 | }; |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 202 | }; |
| 203 | }; |
| 204 | |
Piyush Mehta | f2a532e | 2021-06-21 10:11:27 +0530 | [diff] [blame] | 205 | &psgtr { |
| 206 | status = "okay"; |
| 207 | /* usb3, sata */ |
| 208 | clocks = <&clock_si5338_2>, <&clock_si5338_3>; |
| 209 | clock-names = "ref2", "ref3"; |
| 210 | }; |
| 211 | |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 212 | &rtc { |
| 213 | status = "okay"; |
| 214 | }; |
| 215 | |
| 216 | &sata { |
| 217 | status = "okay"; |
| 218 | /* SATA phy OOB timing settings */ |
| 219 | ceva,p0-cominit-params = /bits/ 8 <0x1B 0x4D 0x18 0x28>; |
| 220 | ceva,p0-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>; |
| 221 | ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>; |
| 222 | ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>; |
| 223 | ceva,p1-cominit-params = /bits/ 8 <0x1B 0x4D 0x18 0x28>; |
| 224 | ceva,p1-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>; |
| 225 | ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>; |
| 226 | ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>; |
Piyush Mehta | f2a532e | 2021-06-21 10:11:27 +0530 | [diff] [blame] | 227 | phy-names = "sata-phy"; |
| 228 | phys = <&psgtr 2 PHY_TYPE_SATA 0 3>; |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 229 | }; |
| 230 | |
| 231 | &sdhci1 { /* emmc with some settings */ |
| 232 | status = "okay"; |
| 233 | }; |
| 234 | |
| 235 | /* main */ |
| 236 | &uart0 { |
| 237 | status = "okay"; |
| 238 | }; |
| 239 | |
| 240 | /* DB9 */ |
| 241 | &uart1 { |
| 242 | status = "okay"; |
| 243 | }; |
| 244 | |
| 245 | &usb0 { |
| 246 | status = "okay"; |
Manish Narani | f3c6338 | 2021-07-14 06:17:19 -0600 | [diff] [blame] | 247 | phy-names = "usb3-phy"; |
| 248 | phys = <&psgtr 0 PHY_TYPE_USB3 0 2>; |
Michal Simek | 06c5e0f | 2021-06-11 08:52:25 +0200 | [diff] [blame] | 249 | }; |
| 250 | |
| 251 | &dwc3_0 { |
| 252 | status = "okay"; |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 253 | dr_mode = "host"; |
Michal Simek | 06c5e0f | 2021-06-11 08:52:25 +0200 | [diff] [blame] | 254 | snps,usb3_lpm_capable; |
| 255 | maximum-speed = "super-speed"; |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 256 | }; |
| 257 | |
| 258 | /* ULPI SMSC USB3320 */ |
| 259 | &usb1 { |
| 260 | status = "okay"; |
Manish Narani | f3c6338 | 2021-07-14 06:17:19 -0600 | [diff] [blame] | 261 | phy-names = "usb3-phy"; |
| 262 | phys = <&psgtr 3 PHY_TYPE_USB3 1 2>; |
Michal Simek | 06c5e0f | 2021-06-11 08:52:25 +0200 | [diff] [blame] | 263 | }; |
| 264 | |
| 265 | &dwc3_1 { |
| 266 | status = "okay"; |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 267 | dr_mode = "host"; |
Michal Simek | 06c5e0f | 2021-06-11 08:52:25 +0200 | [diff] [blame] | 268 | snps,usb3_lpm_capable; |
| 269 | maximum-speed = "super-speed"; |
Michal Simek | 316a9f2 | 2018-03-28 15:00:25 +0200 | [diff] [blame] | 270 | }; |