Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * dts file for KV260 revA Carrier Card |
| 4 | * |
Michal Simek | 8daa786 | 2023-09-22 12:35:41 +0200 | [diff] [blame] | 5 | * (C) Copyright 2020 - 2022, Xilinx, Inc. |
| 6 | * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc. |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 7 | * |
Michal Simek | 174d7284 | 2023-07-10 14:35:49 +0200 | [diff] [blame] | 8 | * Michal Simek <michal.simek@amd.com> |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 9 | */ |
| 10 | |
Michal Simek | 464f655 | 2021-08-06 11:12:29 +0200 | [diff] [blame] | 11 | #include <dt-bindings/gpio/gpio.h> |
| 12 | #include <dt-bindings/net/ti-dp83867.h> |
| 13 | #include <dt-bindings/phy/phy.h> |
| 14 | #include <dt-bindings/pinctrl/pinctrl-zynqmp.h> |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 15 | |
| 16 | /dts-v1/; |
| 17 | /plugin/; |
| 18 | |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 19 | &{/} { |
Michal Simek | efa1dde | 2023-07-10 14:37:34 +0200 | [diff] [blame] | 20 | compatible = "xlnx,zynqmp-sk-kv260-rev2", |
| 21 | "xlnx,zynqmp-sk-kv260-rev1", |
Michal Simek | 3dbd531 | 2021-06-10 18:52:14 +0200 | [diff] [blame] | 22 | "xlnx,zynqmp-sk-kv260-revB", |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 23 | "xlnx,zynqmp-sk-kv260", "xlnx,zynqmp"; |
Michal Simek | 8489b6d | 2023-01-18 13:04:14 +0100 | [diff] [blame] | 24 | model = "ZynqMP KV260 revB"; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 25 | }; |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 26 | |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 27 | &i2c1 { /* I2C_SCK C23/C24 - MIO from SOM */ |
| 28 | #address-cells = <1>; |
| 29 | #size-cells = <0>; |
| 30 | pinctrl-names = "default", "gpio"; |
| 31 | pinctrl-0 = <&pinctrl_i2c1_default>; |
| 32 | pinctrl-1 = <&pinctrl_i2c1_gpio>; |
Manikanta Guntupalli | 28dc356 | 2023-07-10 14:37:28 +0200 | [diff] [blame] | 33 | scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 34 | sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 35 | |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 36 | u14: ina260@40 { /* u14 */ |
| 37 | compatible = "ti,ina260"; |
| 38 | #io-channel-cells = <1>; |
| 39 | label = "ina260-u14"; |
| 40 | reg = <0x40>; |
| 41 | }; |
Michal Simek | c36dc24 | 2022-02-23 16:17:37 +0100 | [diff] [blame] | 42 | /* u43 - 0x2d - USB hub */ |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 43 | /* u27 - 0xe0 - STDP4320 DP/HDMI splitter */ |
| 44 | }; |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 45 | |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 46 | &amba { |
| 47 | ina260-u14 { |
| 48 | compatible = "iio-hwmon"; |
| 49 | io-channels = <&u14 0>, <&u14 1>, <&u14 2>; |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 50 | }; |
| 51 | |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 52 | si5332_0: si5332_0 { /* u17 */ |
| 53 | compatible = "fixed-clock"; |
| 54 | #clock-cells = <0>; |
| 55 | clock-frequency = <125000000>; |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 56 | }; |
| 57 | |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 58 | si5332_1: si5332_1 { /* u17 */ |
| 59 | compatible = "fixed-clock"; |
| 60 | #clock-cells = <0>; |
| 61 | clock-frequency = <25000000>; |
| 62 | }; |
| 63 | |
| 64 | si5332_2: si5332_2 { /* u17 */ |
| 65 | compatible = "fixed-clock"; |
| 66 | #clock-cells = <0>; |
| 67 | clock-frequency = <48000000>; |
| 68 | }; |
| 69 | |
| 70 | si5332_3: si5332_3 { /* u17 */ |
| 71 | compatible = "fixed-clock"; |
| 72 | #clock-cells = <0>; |
| 73 | clock-frequency = <24000000>; |
| 74 | }; |
| 75 | |
| 76 | si5332_4: si5332_4 { /* u17 */ |
| 77 | compatible = "fixed-clock"; |
| 78 | #clock-cells = <0>; |
| 79 | clock-frequency = <26000000>; |
| 80 | }; |
| 81 | |
| 82 | si5332_5: si5332_5 { /* u17 */ |
| 83 | compatible = "fixed-clock"; |
| 84 | #clock-cells = <0>; |
| 85 | clock-frequency = <27000000>; |
| 86 | }; |
| 87 | }; |
| 88 | |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 89 | /* DP/USB 3.0 */ |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 90 | &psgtr { |
| 91 | status = "okay"; |
| 92 | /* pcie, usb3, sata */ |
| 93 | clocks = <&si5332_5>, <&si5332_4>, <&si5332_0>; |
| 94 | clock-names = "ref0", "ref1", "ref2"; |
| 95 | }; |
| 96 | |
| 97 | &zynqmp_dpsub { |
Michal Simek | 8b82a3a | 2022-02-23 16:17:41 +0100 | [diff] [blame] | 98 | status = "okay"; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 99 | phy-names = "dp-phy0", "dp-phy1"; |
| 100 | phys = <&psgtr 1 PHY_TYPE_DP 0 0>, <&psgtr 0 PHY_TYPE_DP 1 0>; |
Michal Simek | 59e1bdd | 2022-02-23 16:17:38 +0100 | [diff] [blame] | 101 | assigned-clock-rates = <27000000>, <25000000>, <300000000>; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 102 | }; |
| 103 | |
| 104 | &zynqmp_dpdma { |
| 105 | status = "okay"; |
Michal Simek | 59e1bdd | 2022-02-23 16:17:38 +0100 | [diff] [blame] | 106 | assigned-clock-rates = <600000000>; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 107 | }; |
| 108 | |
| 109 | &usb0 { |
| 110 | status = "okay"; |
| 111 | pinctrl-names = "default"; |
| 112 | pinctrl-0 = <&pinctrl_usb0_default>; |
Manish Narani | 15ca9eb | 2021-07-14 06:17:19 -0600 | [diff] [blame] | 113 | phy-names = "usb3-phy"; |
| 114 | phys = <&psgtr 2 PHY_TYPE_USB3 0 1>; |
Michal Simek | a3efa53 | 2022-02-23 16:17:39 +0100 | [diff] [blame] | 115 | assigned-clock-rates = <250000000>, <20000000>; |
Michal Simek | c36dc24 | 2022-02-23 16:17:37 +0100 | [diff] [blame] | 116 | |
| 117 | usb5744: usb-hub { /* u43 */ |
| 118 | status = "okay"; |
| 119 | compatible = "microchip,usb5744"; |
| 120 | i2c-bus = <&i2c1>; |
Michal Simek | 2f6e1dd | 2022-02-23 16:17:42 +0100 | [diff] [blame] | 121 | reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>; |
Michal Simek | c36dc24 | 2022-02-23 16:17:37 +0100 | [diff] [blame] | 122 | }; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 123 | }; |
| 124 | |
| 125 | &dwc3_0 { |
| 126 | status = "okay"; |
| 127 | dr_mode = "host"; |
| 128 | snps,usb3_lpm_capable; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 129 | maximum-speed = "super-speed"; |
| 130 | }; |
| 131 | |
| 132 | &sdhci1 { /* on CC with tuned parameters */ |
| 133 | status = "okay"; |
| 134 | pinctrl-names = "default"; |
| 135 | pinctrl-0 = <&pinctrl_sdhci1_default>; |
| 136 | /* |
| 137 | * SD 3.0 requires level shifter and this property |
| 138 | * should be removed if the board has level shifter and |
| 139 | * need to work in UHS mode |
| 140 | */ |
| 141 | no-1-8-v; |
| 142 | disable-wp; |
| 143 | xlnx,mio-bank = <1>; |
| 144 | clk-phase-sd-hs = <126>, <60>; |
| 145 | clk-phase-uhs-sdr25 = <120>, <60>; |
| 146 | clk-phase-uhs-ddr50 = <126>, <48>; |
Michal Simek | a3efa53 | 2022-02-23 16:17:39 +0100 | [diff] [blame] | 147 | assigned-clock-rates = <187498123>; |
Michal Simek | 1b273a9 | 2023-09-22 12:35:34 +0200 | [diff] [blame] | 148 | bus-width = <4>; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 149 | }; |
| 150 | |
Michal Simek | dd0ebfe | 2023-02-20 09:09:04 +0100 | [diff] [blame] | 151 | &gem3 { |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 152 | status = "okay"; |
| 153 | pinctrl-names = "default"; |
| 154 | pinctrl-0 = <&pinctrl_gem3_default>; |
| 155 | phy-handle = <&phy0>; |
| 156 | phy-mode = "rgmii-id"; |
Harini Katakam | 6a251f2 | 2023-07-10 14:37:33 +0200 | [diff] [blame] | 157 | assigned-clock-rates = <250000000>; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 158 | |
| 159 | mdio: mdio { |
| 160 | #address-cells = <1>; |
| 161 | #size-cells = <0>; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 162 | |
| 163 | phy0: ethernet-phy@1 { |
| 164 | #phy-cells = <1>; |
| 165 | reg = <1>; |
Michal Simek | ff79448 | 2022-02-23 16:17:40 +0100 | [diff] [blame] | 166 | compatible = "ethernet-phy-id2000.a231"; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 167 | ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>; |
| 168 | ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>; |
| 169 | ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 170 | ti,dp83867-rxctrl-strap-quirk; |
Michal Simek | ff79448 | 2022-02-23 16:17:40 +0100 | [diff] [blame] | 171 | reset-assert-us = <100>; |
| 172 | reset-deassert-us = <280>; |
| 173 | reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 174 | }; |
| 175 | }; |
| 176 | }; |
| 177 | |
Michal Simek | dd0ebfe | 2023-02-20 09:09:04 +0100 | [diff] [blame] | 178 | &pinctrl0 { |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 179 | status = "okay"; |
| 180 | |
| 181 | pinctrl_uart1_default: uart1-default { |
| 182 | conf { |
| 183 | groups = "uart1_9_grp"; |
| 184 | slew-rate = <SLEW_RATE_SLOW>; |
| 185 | power-source = <IO_STANDARD_LVCMOS18>; |
| 186 | drive-strength = <12>; |
| 187 | }; |
| 188 | |
| 189 | conf-rx { |
| 190 | pins = "MIO37"; |
| 191 | bias-high-impedance; |
| 192 | }; |
| 193 | |
| 194 | conf-tx { |
| 195 | pins = "MIO36"; |
| 196 | bias-disable; |
Neal Frager | 771635f | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 197 | output-enable; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 198 | }; |
| 199 | |
| 200 | mux { |
| 201 | groups = "uart1_9_grp"; |
| 202 | function = "uart1"; |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 203 | }; |
| 204 | }; |
| 205 | |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 206 | pinctrl_i2c1_default: i2c1-default { |
| 207 | conf { |
| 208 | groups = "i2c1_6_grp"; |
| 209 | bias-pull-up; |
| 210 | slew-rate = <SLEW_RATE_SLOW>; |
| 211 | power-source = <IO_STANDARD_LVCMOS18>; |
| 212 | }; |
| 213 | |
| 214 | mux { |
| 215 | groups = "i2c1_6_grp"; |
| 216 | function = "i2c1"; |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 217 | }; |
| 218 | }; |
| 219 | |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 220 | pinctrl_i2c1_gpio: i2c1-gpio { |
| 221 | conf { |
| 222 | groups = "gpio0_24_grp", "gpio0_25_grp"; |
| 223 | slew-rate = <SLEW_RATE_SLOW>; |
| 224 | power-source = <IO_STANDARD_LVCMOS18>; |
| 225 | }; |
| 226 | |
| 227 | mux { |
| 228 | groups = "gpio0_24_grp", "gpio0_25_grp"; |
| 229 | function = "gpio0"; |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 230 | }; |
| 231 | }; |
| 232 | |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 233 | pinctrl_gem3_default: gem3-default { |
| 234 | conf { |
| 235 | groups = "ethernet3_0_grp"; |
| 236 | slew-rate = <SLEW_RATE_SLOW>; |
| 237 | power-source = <IO_STANDARD_LVCMOS18>; |
| 238 | }; |
| 239 | |
| 240 | conf-rx { |
| 241 | pins = "MIO70", "MIO72", "MIO74"; |
| 242 | bias-high-impedance; |
| 243 | low-power-disable; |
| 244 | }; |
| 245 | |
| 246 | conf-bootstrap { |
| 247 | pins = "MIO71", "MIO73", "MIO75"; |
| 248 | bias-disable; |
Neal Frager | 771635f | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 249 | output-enable; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 250 | low-power-disable; |
| 251 | }; |
| 252 | |
| 253 | conf-tx { |
| 254 | pins = "MIO64", "MIO65", "MIO66", |
| 255 | "MIO67", "MIO68", "MIO69"; |
| 256 | bias-disable; |
Neal Frager | 771635f | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 257 | output-enable; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 258 | low-power-enable; |
| 259 | }; |
| 260 | |
| 261 | conf-mdio { |
| 262 | groups = "mdio3_0_grp"; |
| 263 | slew-rate = <SLEW_RATE_SLOW>; |
| 264 | power-source = <IO_STANDARD_LVCMOS18>; |
| 265 | bias-disable; |
Neal Frager | 771635f | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 266 | output-enable; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 267 | }; |
| 268 | |
| 269 | mux-mdio { |
| 270 | function = "mdio3"; |
| 271 | groups = "mdio3_0_grp"; |
| 272 | }; |
| 273 | |
| 274 | mux { |
| 275 | function = "ethernet3"; |
| 276 | groups = "ethernet3_0_grp"; |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 277 | }; |
| 278 | }; |
| 279 | |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 280 | pinctrl_usb0_default: usb0-default { |
| 281 | conf { |
| 282 | groups = "usb0_0_grp"; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 283 | power-source = <IO_STANDARD_LVCMOS18>; |
| 284 | }; |
| 285 | |
| 286 | conf-rx { |
| 287 | pins = "MIO52", "MIO53", "MIO55"; |
| 288 | bias-high-impedance; |
Ashok Reddy Soma | b8745e7 | 2022-06-15 12:16:13 +0200 | [diff] [blame] | 289 | drive-strength = <12>; |
| 290 | slew-rate = <SLEW_RATE_FAST>; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 291 | }; |
| 292 | |
| 293 | conf-tx { |
| 294 | pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59", |
| 295 | "MIO60", "MIO61", "MIO62", "MIO63"; |
| 296 | bias-disable; |
Neal Frager | 771635f | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 297 | output-enable; |
Ashok Reddy Soma | b8745e7 | 2022-06-15 12:16:13 +0200 | [diff] [blame] | 298 | drive-strength = <4>; |
| 299 | slew-rate = <SLEW_RATE_SLOW>; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 300 | }; |
| 301 | |
| 302 | mux { |
| 303 | groups = "usb0_0_grp"; |
| 304 | function = "usb0"; |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 305 | }; |
| 306 | }; |
| 307 | |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 308 | pinctrl_sdhci1_default: sdhci1-default { |
| 309 | conf { |
| 310 | groups = "sdio1_0_grp"; |
| 311 | slew-rate = <SLEW_RATE_SLOW>; |
| 312 | power-source = <IO_STANDARD_LVCMOS18>; |
| 313 | bias-disable; |
| 314 | }; |
| 315 | |
| 316 | conf-cd { |
| 317 | groups = "sdio1_cd_0_grp"; |
| 318 | bias-high-impedance; |
| 319 | bias-pull-up; |
| 320 | slew-rate = <SLEW_RATE_SLOW>; |
| 321 | power-source = <IO_STANDARD_LVCMOS18>; |
| 322 | }; |
| 323 | |
| 324 | mux-cd { |
| 325 | groups = "sdio1_cd_0_grp"; |
| 326 | function = "sdio1_cd"; |
| 327 | }; |
| 328 | |
| 329 | mux { |
| 330 | groups = "sdio1_0_grp"; |
| 331 | function = "sdio1"; |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 332 | }; |
| 333 | }; |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 334 | }; |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 335 | |
Michal Simek | b6d8d4b | 2021-06-10 17:59:46 +0200 | [diff] [blame] | 336 | &uart1 { |
| 337 | status = "okay"; |
| 338 | pinctrl-names = "default"; |
| 339 | pinctrl-0 = <&pinctrl_uart1_default>; |
Michal Simek | a502a87 | 2021-05-10 16:02:15 +0200 | [diff] [blame] | 340 | }; |