Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * dts file for KR260 revA Carrier Card |
| 4 | * |
| 5 | * (C) Copyright 2021, Xilinx, Inc. |
| 6 | * |
Michal Simek | a8c9436 | 2023-07-10 14:35:49 +0200 | [diff] [blame] | 7 | * Michal Simek <michal.simek@amd.com> |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #include <dt-bindings/gpio/gpio.h> |
| 11 | #include <dt-bindings/net/ti-dp83867.h> |
| 12 | #include <dt-bindings/phy/phy.h> |
| 13 | #include <dt-bindings/pinctrl/pinctrl-zynqmp.h> |
| 14 | |
| 15 | /dts-v1/; |
| 16 | /plugin/; |
| 17 | |
| 18 | &{/} { |
| 19 | compatible = "xlnx,zynqmp-sk-kr260-revA", |
| 20 | "xlnx,zynqmp-sk-kr260", "xlnx,zynqmp"; |
Michal Simek | f2d270d | 2023-01-18 13:04:14 +0100 | [diff] [blame] | 21 | model = "ZynqMP KR260 revA"; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 22 | |
| 23 | ina260-u14 { |
| 24 | compatible = "iio-hwmon"; |
| 25 | io-channels = <&u14 0>, <&u14 1>, <&u14 2>; |
| 26 | }; |
| 27 | |
Michal Simek | a7f1ab1 | 2024-01-30 15:51:06 +0100 | [diff] [blame] | 28 | clk_27: clock0 { /* u86 - DP */ |
| 29 | compatible = "fixed-clock"; |
| 30 | #clock-cells = <0>; |
| 31 | clock-frequency = <27000000>; |
| 32 | }; |
| 33 | |
Michal Simek | 62fc45b | 2024-01-26 08:24:41 +0100 | [diff] [blame] | 34 | clk_125: si5332-0 { /* u17 - GEM0/1 */ |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 35 | compatible = "fixed-clock"; |
| 36 | #clock-cells = <0>; |
| 37 | clock-frequency = <125000000>; |
| 38 | }; |
| 39 | |
Michal Simek | a7f1ab1 | 2024-01-30 15:51:06 +0100 | [diff] [blame] | 40 | clk_74: si5332-5 { /* u17 - SLVC-EC */ |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 41 | compatible = "fixed-clock"; |
| 42 | #clock-cells = <0>; |
Michal Simek | a7f1ab1 | 2024-01-30 15:51:06 +0100 | [diff] [blame] | 43 | clock-frequency = <74250000>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 44 | }; |
| 45 | |
Michal Simek | 62fc45b | 2024-01-26 08:24:41 +0100 | [diff] [blame] | 46 | clk_26: si5332-2 { /* u17 - USB */ |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 47 | compatible = "fixed-clock"; |
| 48 | #clock-cells = <0>; |
| 49 | clock-frequency = <26000000>; |
| 50 | }; |
| 51 | |
Michal Simek | 62fc45b | 2024-01-26 08:24:41 +0100 | [diff] [blame] | 52 | clk_156: si5332-3 { /* u17 - SFP+ */ |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 53 | compatible = "fixed-clock"; |
| 54 | #clock-cells = <0>; |
| 55 | clock-frequency = <156250000>; |
| 56 | }; |
| 57 | |
Michal Simek | a7f1ab1 | 2024-01-30 15:51:06 +0100 | [diff] [blame] | 58 | clk_25_0: si5332-1 { /* u17 - GEM2 */ |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 59 | compatible = "fixed-clock"; |
| 60 | #clock-cells = <0>; |
| 61 | clock-frequency = <25000000>; |
| 62 | }; |
| 63 | |
Michal Simek | a7f1ab1 | 2024-01-30 15:51:06 +0100 | [diff] [blame] | 64 | clk_25_1: si5332-4 { /* u17 - GEM3 */ |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 65 | compatible = "fixed-clock"; |
| 66 | #clock-cells = <0>; |
| 67 | clock-frequency = <25000000>; |
| 68 | }; |
| 69 | }; |
| 70 | |
| 71 | &i2c1 { /* I2C_SCK C26/C27 - MIO from SOM */ |
| 72 | #address-cells = <1>; |
| 73 | #size-cells = <0>; |
| 74 | pinctrl-names = "default", "gpio"; |
| 75 | pinctrl-0 = <&pinctrl_i2c1_default>; |
| 76 | pinctrl-1 = <&pinctrl_i2c1_gpio>; |
Manikanta Guntupalli | cc45c9c | 2023-07-10 14:37:28 +0200 | [diff] [blame] | 77 | scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 78 | sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 79 | |
| 80 | u14: ina260@40 { /* u14 */ |
| 81 | compatible = "ti,ina260"; |
| 82 | #io-channel-cells = <1>; |
| 83 | label = "ina260-u14"; |
| 84 | reg = <0x40>; |
| 85 | }; |
| 86 | |
| 87 | slg7xl45106: gpio@11 { /* u19 - reset logic */ |
| 88 | compatible = "dlg,slg7xl45106"; |
| 89 | reg = <0x11>; |
| 90 | label = "resetchip"; |
| 91 | gpio-controller; |
| 92 | #gpio-cells = <2>; |
| 93 | gpio-line-names = "USB0_PHY_RESET_B", "USB1_PHY_RESET_B", |
| 94 | "SD_RESET_B", "USB0_HUB_RESET_B", |
| 95 | "USB1_HUB_RESET_B", "PS_GEM0_RESET_B", |
| 96 | "PS_GEM1_RESET_B", ""; |
| 97 | }; |
| 98 | |
| 99 | i2c-mux@74 { /* u18 */ |
| 100 | compatible = "nxp,pca9546"; |
| 101 | #address-cells = <1>; |
| 102 | #size-cells = <0>; |
| 103 | reg = <0x74>; |
| 104 | usbhub_i2c0: i2c@0 { |
| 105 | #address-cells = <1>; |
| 106 | #size-cells = <0>; |
| 107 | reg = <0>; |
| 108 | }; |
| 109 | usbhub_i2c1: i2c@1 { |
| 110 | #address-cells = <1>; |
| 111 | #size-cells = <0>; |
| 112 | reg = <1>; |
| 113 | }; |
| 114 | /* Bus 2/3 are not connected */ |
| 115 | }; |
| 116 | |
| 117 | /* si5332@6a - u17 - clock-generator */ |
| 118 | }; |
| 119 | |
| 120 | /* GEM SGMII/DP and USB 3.0 */ |
| 121 | &psgtr { |
| 122 | status = "okay"; |
| 123 | /* gem0/1, dp, usb */ |
Michal Simek | 62fc45b | 2024-01-26 08:24:41 +0100 | [diff] [blame] | 124 | clocks = <&clk_125>, <&clk_27>, <&clk_26>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 125 | clock-names = "ref0", "ref1", "ref2"; |
| 126 | }; |
| 127 | |
| 128 | &zynqmp_dpsub { |
| 129 | status = "okay"; |
| 130 | phy-names = "dp-phy0"; |
| 131 | phys = <&psgtr 1 PHY_TYPE_DP 0 1>; |
| 132 | assigned-clock-rates = <27000000>, <25000000>, <300000000>; |
| 133 | }; |
| 134 | |
| 135 | &zynqmp_dpdma { |
| 136 | status = "okay"; |
| 137 | assigned-clock-rates = <600000000>; |
| 138 | }; |
| 139 | |
| 140 | &usb0 { /* mio52 - mio63 */ |
| 141 | status = "okay"; |
| 142 | pinctrl-names = "default"; |
| 143 | pinctrl-0 = <&pinctrl_usb0_default>; |
| 144 | phy-names = "usb3-phy"; |
| 145 | phys = <&psgtr 2 PHY_TYPE_USB3 0 2>; |
| 146 | reset-gpios = <&slg7xl45106 0 GPIO_ACTIVE_LOW>; |
| 147 | assigned-clock-rates = <250000000>, <20000000>; |
Michal Simek | 30d1dfc | 2023-11-06 16:55:48 +0100 | [diff] [blame] | 148 | #if 0 |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 149 | usbhub0: usb-hub { /* u43 */ |
| 150 | i2c-bus = <&usbhub_i2c0>; |
| 151 | compatible = "microchip,usb5744"; |
| 152 | reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>; |
| 153 | }; |
| 154 | |
| 155 | usb2244: usb-sd { /* u38 */ |
| 156 | compatible = "microchip,usb2244"; |
| 157 | reset-gpios = <&slg7xl45106 2 GPIO_ACTIVE_LOW>; |
| 158 | }; |
Michal Simek | 30d1dfc | 2023-11-06 16:55:48 +0100 | [diff] [blame] | 159 | #endif |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 160 | }; |
| 161 | |
| 162 | &dwc3_0 { |
| 163 | status = "okay"; |
| 164 | dr_mode = "host"; |
| 165 | snps,usb3_lpm_capable; |
| 166 | maximum-speed = "super-speed"; |
| 167 | }; |
| 168 | |
| 169 | &usb1 { /* mio64 - mio75 */ |
| 170 | status = "okay"; |
| 171 | pinctrl-names = "default"; |
| 172 | pinctrl-0 = <&pinctrl_usb1_default>; |
| 173 | phy-names = "usb3-phy"; |
| 174 | phys = <&psgtr 3 PHY_TYPE_USB3 1 2>; |
| 175 | reset-gpios = <&slg7xl45106 1 GPIO_ACTIVE_LOW>; |
| 176 | assigned-clock-rates = <250000000>, <20000000>; |
Michal Simek | ee1e025 | 2024-02-01 13:38:43 +0100 | [diff] [blame] | 177 | #if 0 |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 178 | usbhub1: usb-hub { /* u84 */ |
| 179 | i2c-bus = <&usbhub_i2c1>; |
| 180 | compatible = "microchip,usb5744"; |
| 181 | reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_LOW>; |
| 182 | }; |
Michal Simek | ee1e025 | 2024-02-01 13:38:43 +0100 | [diff] [blame] | 183 | #endif |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 184 | }; |
| 185 | |
| 186 | &dwc3_1 { |
| 187 | status = "okay"; |
| 188 | dr_mode = "host"; |
| 189 | snps,usb3_lpm_capable; |
| 190 | maximum-speed = "super-speed"; |
| 191 | }; |
| 192 | |
| 193 | &gem0 { /* mdio mio50/51 */ |
| 194 | status = "okay"; |
| 195 | phys = <&psgtr 0 PHY_TYPE_SGMII 0 0>; |
| 196 | phy-handle = <&phy0>; |
| 197 | phy-mode = "sgmii"; |
Harini Katakam | 14d5fee | 2023-07-10 14:37:30 +0200 | [diff] [blame] | 198 | assigned-clock-rates = <250000000>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 199 | }; |
| 200 | |
| 201 | &gem1 { /* mdio mio50/51, gem mio38 - mio49 */ |
| 202 | status = "okay"; |
| 203 | pinctrl-names = "default"; |
| 204 | pinctrl-0 = <&pinctrl_gem1_default>; |
| 205 | phy-handle = <&phy1>; |
| 206 | phy-mode = "rgmii-id"; |
Harini Katakam | 14d5fee | 2023-07-10 14:37:30 +0200 | [diff] [blame] | 207 | assigned-clock-rates = <250000000>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 208 | |
| 209 | mdio: mdio { |
| 210 | #address-cells = <1>; |
| 211 | #size-cells = <0>; |
| 212 | phy0: ethernet-phy@4 { /* u81 */ |
| 213 | #phy-cells = <1>; |
| 214 | compatible = "ethernet-phy-id2000.a231"; |
| 215 | reg = <4>; |
| 216 | ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>; |
| 217 | ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>; |
| 218 | ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 219 | ti,dp83867-rxctrl-strap-quirk; |
Harini Katakam | f5a2d0c | 2023-07-10 14:37:32 +0200 | [diff] [blame] | 220 | reset-assert-us = <300>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 221 | reset-deassert-us = <280>; |
| 222 | reset-gpios = <&slg7xl45106 5 GPIO_ACTIVE_LOW>; |
| 223 | }; |
| 224 | phy1: ethernet-phy@8 { /* u36 */ |
| 225 | #phy-cells = <1>; |
| 226 | compatible = "ethernet-phy-id2000.a231"; |
| 227 | reg = <8>; |
| 228 | ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>; |
| 229 | ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>; |
| 230 | ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 231 | ti,dp83867-rxctrl-strap-quirk; |
| 232 | reset-assert-us = <100>; |
| 233 | reset-deassert-us = <280>; |
| 234 | reset-gpios = <&slg7xl45106 6 GPIO_ACTIVE_LOW>; |
| 235 | }; |
| 236 | }; |
| 237 | }; |
| 238 | |
| 239 | /* gem2/gem3 via PL with phys u79@2 and u80@3 */ |
| 240 | |
Michal Simek | 9398734 | 2023-02-20 09:09:04 +0100 | [diff] [blame] | 241 | &pinctrl0 { |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 242 | status = "okay"; |
| 243 | |
| 244 | pinctrl_uart1_default: uart1-default { |
| 245 | conf { |
| 246 | groups = "uart1_9_grp"; |
| 247 | slew-rate = <SLEW_RATE_SLOW>; |
| 248 | power-source = <IO_STANDARD_LVCMOS18>; |
| 249 | drive-strength = <12>; |
| 250 | }; |
| 251 | |
| 252 | conf-rx { |
| 253 | pins = "MIO37"; |
| 254 | bias-high-impedance; |
| 255 | }; |
| 256 | |
| 257 | conf-tx { |
| 258 | pins = "MIO36"; |
| 259 | bias-disable; |
Neal Frager | a299b66 | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 260 | output-enable; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 261 | }; |
| 262 | |
| 263 | mux { |
| 264 | groups = "uart1_9_grp"; |
| 265 | function = "uart1"; |
| 266 | }; |
| 267 | }; |
| 268 | |
| 269 | pinctrl_i2c1_default: i2c1-default { |
| 270 | conf { |
| 271 | groups = "i2c1_6_grp"; |
| 272 | bias-pull-up; |
| 273 | slew-rate = <SLEW_RATE_SLOW>; |
| 274 | power-source = <IO_STANDARD_LVCMOS18>; |
| 275 | }; |
| 276 | |
| 277 | mux { |
| 278 | groups = "i2c1_6_grp"; |
| 279 | function = "i2c1"; |
| 280 | }; |
| 281 | }; |
| 282 | |
Michal Simek | cf3cd80 | 2023-12-19 17:16:50 +0100 | [diff] [blame] | 283 | pinctrl_i2c1_gpio: i2c1-gpio-grp { |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 284 | conf { |
| 285 | groups = "gpio0_24_grp", "gpio0_25_grp"; |
| 286 | slew-rate = <SLEW_RATE_SLOW>; |
| 287 | power-source = <IO_STANDARD_LVCMOS18>; |
| 288 | }; |
| 289 | |
| 290 | mux { |
| 291 | groups = "gpio0_24_grp", "gpio0_25_grp"; |
| 292 | function = "gpio0"; |
| 293 | }; |
| 294 | }; |
| 295 | |
| 296 | pinctrl_gem1_default: gem1-default { |
| 297 | conf { |
| 298 | groups = "ethernet1_0_grp"; |
| 299 | slew-rate = <SLEW_RATE_SLOW>; |
| 300 | power-source = <IO_STANDARD_LVCMOS18>; |
| 301 | }; |
| 302 | |
| 303 | conf-rx { |
| 304 | pins = "MIO44", "MIO46", "MIO48"; |
| 305 | bias-high-impedance; |
| 306 | low-power-disable; |
| 307 | }; |
| 308 | |
| 309 | conf-bootstrap { |
| 310 | pins = "MIO45", "MIO47", "MIO49"; |
| 311 | bias-disable; |
Neal Frager | a299b66 | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 312 | output-enable; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 313 | low-power-disable; |
| 314 | }; |
| 315 | |
| 316 | conf-tx { |
| 317 | pins = "MIO38", "MIO39", "MIO40", |
| 318 | "MIO41", "MIO42", "MIO43"; |
| 319 | bias-disable; |
Neal Frager | a299b66 | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 320 | output-enable; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 321 | low-power-enable; |
| 322 | }; |
| 323 | |
| 324 | conf-mdio { |
| 325 | groups = "mdio1_0_grp"; |
| 326 | slew-rate = <SLEW_RATE_SLOW>; |
| 327 | power-source = <IO_STANDARD_LVCMOS18>; |
| 328 | bias-disable; |
Neal Frager | a299b66 | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 329 | output-enable; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 330 | }; |
| 331 | |
| 332 | mux-mdio { |
| 333 | function = "mdio1"; |
| 334 | groups = "mdio1_0_grp"; |
| 335 | }; |
| 336 | |
| 337 | mux { |
| 338 | function = "ethernet1"; |
| 339 | groups = "ethernet1_0_grp"; |
| 340 | }; |
| 341 | }; |
| 342 | |
| 343 | pinctrl_usb0_default: usb0-default { |
| 344 | conf { |
| 345 | groups = "usb0_0_grp"; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 346 | power-source = <IO_STANDARD_LVCMOS18>; |
| 347 | }; |
| 348 | |
| 349 | conf-rx { |
| 350 | pins = "MIO52", "MIO53", "MIO55"; |
| 351 | bias-high-impedance; |
Ashok Reddy Soma | 4d0ecf6 | 2022-06-15 12:16:13 +0200 | [diff] [blame] | 352 | drive-strength = <12>; |
| 353 | slew-rate = <SLEW_RATE_FAST>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 354 | }; |
| 355 | |
| 356 | conf-tx { |
| 357 | pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59", |
| 358 | "MIO60", "MIO61", "MIO62", "MIO63"; |
| 359 | bias-disable; |
Neal Frager | a299b66 | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 360 | output-enable; |
Ashok Reddy Soma | 4d0ecf6 | 2022-06-15 12:16:13 +0200 | [diff] [blame] | 361 | drive-strength = <4>; |
| 362 | slew-rate = <SLEW_RATE_SLOW>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 363 | }; |
| 364 | |
| 365 | mux { |
| 366 | groups = "usb0_0_grp"; |
| 367 | function = "usb0"; |
| 368 | }; |
| 369 | }; |
| 370 | |
| 371 | pinctrl_usb1_default: usb1-default { |
| 372 | conf { |
| 373 | groups = "usb1_0_grp"; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 374 | power-source = <IO_STANDARD_LVCMOS18>; |
| 375 | }; |
| 376 | |
| 377 | conf-rx { |
| 378 | pins = "MIO64", "MIO65", "MIO67"; |
| 379 | bias-high-impedance; |
Ashok Reddy Soma | 4d0ecf6 | 2022-06-15 12:16:13 +0200 | [diff] [blame] | 380 | drive-strength = <12>; |
| 381 | slew-rate = <SLEW_RATE_FAST>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 382 | }; |
| 383 | |
| 384 | conf-tx { |
| 385 | pins = "MIO66", "MIO68", "MIO69", "MIO70", "MIO71", |
| 386 | "MIO72", "MIO73", "MIO74", "MIO75"; |
| 387 | bias-disable; |
Neal Frager | a299b66 | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 388 | output-enable; |
Ashok Reddy Soma | 4d0ecf6 | 2022-06-15 12:16:13 +0200 | [diff] [blame] | 389 | drive-strength = <4>; |
| 390 | slew-rate = <SLEW_RATE_SLOW>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 391 | }; |
| 392 | |
| 393 | mux { |
| 394 | groups = "usb1_0_grp"; |
| 395 | function = "usb1"; |
| 396 | }; |
| 397 | }; |
| 398 | }; |
| 399 | |
| 400 | &uart1 { |
| 401 | status = "okay"; |
| 402 | pinctrl-names = "default"; |
| 403 | pinctrl-0 = <&pinctrl_uart1_default>; |
| 404 | }; |