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"; |
| 198 | is-internal-pcspma; |
Harini Katakam | 14d5fee | 2023-07-10 14:37:30 +0200 | [diff] [blame] | 199 | assigned-clock-rates = <250000000>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 200 | }; |
| 201 | |
| 202 | &gem1 { /* mdio mio50/51, gem mio38 - mio49 */ |
| 203 | status = "okay"; |
| 204 | pinctrl-names = "default"; |
| 205 | pinctrl-0 = <&pinctrl_gem1_default>; |
| 206 | phy-handle = <&phy1>; |
| 207 | phy-mode = "rgmii-id"; |
Harini Katakam | 14d5fee | 2023-07-10 14:37:30 +0200 | [diff] [blame] | 208 | assigned-clock-rates = <250000000>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 209 | |
| 210 | mdio: mdio { |
| 211 | #address-cells = <1>; |
| 212 | #size-cells = <0>; |
| 213 | phy0: ethernet-phy@4 { /* u81 */ |
| 214 | #phy-cells = <1>; |
| 215 | compatible = "ethernet-phy-id2000.a231"; |
| 216 | reg = <4>; |
| 217 | ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>; |
| 218 | ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>; |
| 219 | ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 220 | ti,dp83867-rxctrl-strap-quirk; |
Harini Katakam | f5a2d0c | 2023-07-10 14:37:32 +0200 | [diff] [blame] | 221 | reset-assert-us = <300>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 222 | reset-deassert-us = <280>; |
| 223 | reset-gpios = <&slg7xl45106 5 GPIO_ACTIVE_LOW>; |
| 224 | }; |
| 225 | phy1: ethernet-phy@8 { /* u36 */ |
| 226 | #phy-cells = <1>; |
| 227 | compatible = "ethernet-phy-id2000.a231"; |
| 228 | reg = <8>; |
| 229 | ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>; |
| 230 | ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>; |
| 231 | ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 232 | ti,dp83867-rxctrl-strap-quirk; |
| 233 | reset-assert-us = <100>; |
| 234 | reset-deassert-us = <280>; |
| 235 | reset-gpios = <&slg7xl45106 6 GPIO_ACTIVE_LOW>; |
| 236 | }; |
| 237 | }; |
| 238 | }; |
| 239 | |
| 240 | /* gem2/gem3 via PL with phys u79@2 and u80@3 */ |
| 241 | |
Michal Simek | 9398734 | 2023-02-20 09:09:04 +0100 | [diff] [blame] | 242 | &pinctrl0 { |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 243 | status = "okay"; |
| 244 | |
| 245 | pinctrl_uart1_default: uart1-default { |
| 246 | conf { |
| 247 | groups = "uart1_9_grp"; |
| 248 | slew-rate = <SLEW_RATE_SLOW>; |
| 249 | power-source = <IO_STANDARD_LVCMOS18>; |
| 250 | drive-strength = <12>; |
| 251 | }; |
| 252 | |
| 253 | conf-rx { |
| 254 | pins = "MIO37"; |
| 255 | bias-high-impedance; |
| 256 | }; |
| 257 | |
| 258 | conf-tx { |
| 259 | pins = "MIO36"; |
| 260 | bias-disable; |
Neal Frager | a299b66 | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 261 | output-enable; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 262 | }; |
| 263 | |
| 264 | mux { |
| 265 | groups = "uart1_9_grp"; |
| 266 | function = "uart1"; |
| 267 | }; |
| 268 | }; |
| 269 | |
| 270 | pinctrl_i2c1_default: i2c1-default { |
| 271 | conf { |
| 272 | groups = "i2c1_6_grp"; |
| 273 | bias-pull-up; |
| 274 | slew-rate = <SLEW_RATE_SLOW>; |
| 275 | power-source = <IO_STANDARD_LVCMOS18>; |
| 276 | }; |
| 277 | |
| 278 | mux { |
| 279 | groups = "i2c1_6_grp"; |
| 280 | function = "i2c1"; |
| 281 | }; |
| 282 | }; |
| 283 | |
Michal Simek | cf3cd80 | 2023-12-19 17:16:50 +0100 | [diff] [blame] | 284 | pinctrl_i2c1_gpio: i2c1-gpio-grp { |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 285 | conf { |
| 286 | groups = "gpio0_24_grp", "gpio0_25_grp"; |
| 287 | slew-rate = <SLEW_RATE_SLOW>; |
| 288 | power-source = <IO_STANDARD_LVCMOS18>; |
| 289 | }; |
| 290 | |
| 291 | mux { |
| 292 | groups = "gpio0_24_grp", "gpio0_25_grp"; |
| 293 | function = "gpio0"; |
| 294 | }; |
| 295 | }; |
| 296 | |
| 297 | pinctrl_gem1_default: gem1-default { |
| 298 | conf { |
| 299 | groups = "ethernet1_0_grp"; |
| 300 | slew-rate = <SLEW_RATE_SLOW>; |
| 301 | power-source = <IO_STANDARD_LVCMOS18>; |
| 302 | }; |
| 303 | |
| 304 | conf-rx { |
| 305 | pins = "MIO44", "MIO46", "MIO48"; |
| 306 | bias-high-impedance; |
| 307 | low-power-disable; |
| 308 | }; |
| 309 | |
| 310 | conf-bootstrap { |
| 311 | pins = "MIO45", "MIO47", "MIO49"; |
| 312 | bias-disable; |
Neal Frager | a299b66 | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 313 | output-enable; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 314 | low-power-disable; |
| 315 | }; |
| 316 | |
| 317 | conf-tx { |
| 318 | pins = "MIO38", "MIO39", "MIO40", |
| 319 | "MIO41", "MIO42", "MIO43"; |
| 320 | bias-disable; |
Neal Frager | a299b66 | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 321 | output-enable; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 322 | low-power-enable; |
| 323 | }; |
| 324 | |
| 325 | conf-mdio { |
| 326 | groups = "mdio1_0_grp"; |
| 327 | slew-rate = <SLEW_RATE_SLOW>; |
| 328 | power-source = <IO_STANDARD_LVCMOS18>; |
| 329 | bias-disable; |
Neal Frager | a299b66 | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 330 | output-enable; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 331 | }; |
| 332 | |
| 333 | mux-mdio { |
| 334 | function = "mdio1"; |
| 335 | groups = "mdio1_0_grp"; |
| 336 | }; |
| 337 | |
| 338 | mux { |
| 339 | function = "ethernet1"; |
| 340 | groups = "ethernet1_0_grp"; |
| 341 | }; |
| 342 | }; |
| 343 | |
| 344 | pinctrl_usb0_default: usb0-default { |
| 345 | conf { |
| 346 | groups = "usb0_0_grp"; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 347 | power-source = <IO_STANDARD_LVCMOS18>; |
| 348 | }; |
| 349 | |
| 350 | conf-rx { |
| 351 | pins = "MIO52", "MIO53", "MIO55"; |
| 352 | bias-high-impedance; |
Ashok Reddy Soma | 4d0ecf6 | 2022-06-15 12:16:13 +0200 | [diff] [blame] | 353 | drive-strength = <12>; |
| 354 | slew-rate = <SLEW_RATE_FAST>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 355 | }; |
| 356 | |
| 357 | conf-tx { |
| 358 | pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59", |
| 359 | "MIO60", "MIO61", "MIO62", "MIO63"; |
| 360 | bias-disable; |
Neal Frager | a299b66 | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 361 | output-enable; |
Ashok Reddy Soma | 4d0ecf6 | 2022-06-15 12:16:13 +0200 | [diff] [blame] | 362 | drive-strength = <4>; |
| 363 | slew-rate = <SLEW_RATE_SLOW>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 364 | }; |
| 365 | |
| 366 | mux { |
| 367 | groups = "usb0_0_grp"; |
| 368 | function = "usb0"; |
| 369 | }; |
| 370 | }; |
| 371 | |
| 372 | pinctrl_usb1_default: usb1-default { |
| 373 | conf { |
| 374 | groups = "usb1_0_grp"; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 375 | power-source = <IO_STANDARD_LVCMOS18>; |
| 376 | }; |
| 377 | |
| 378 | conf-rx { |
| 379 | pins = "MIO64", "MIO65", "MIO67"; |
| 380 | bias-high-impedance; |
Ashok Reddy Soma | 4d0ecf6 | 2022-06-15 12:16:13 +0200 | [diff] [blame] | 381 | drive-strength = <12>; |
| 382 | slew-rate = <SLEW_RATE_FAST>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 383 | }; |
| 384 | |
| 385 | conf-tx { |
| 386 | pins = "MIO66", "MIO68", "MIO69", "MIO70", "MIO71", |
| 387 | "MIO72", "MIO73", "MIO74", "MIO75"; |
| 388 | bias-disable; |
Neal Frager | a299b66 | 2023-08-31 16:27:53 +0200 | [diff] [blame] | 389 | output-enable; |
Ashok Reddy Soma | 4d0ecf6 | 2022-06-15 12:16:13 +0200 | [diff] [blame] | 390 | drive-strength = <4>; |
| 391 | slew-rate = <SLEW_RATE_SLOW>; |
Michal Simek | ae022cf | 2022-05-18 12:49:26 +0200 | [diff] [blame] | 392 | }; |
| 393 | |
| 394 | mux { |
| 395 | groups = "usb1_0_grp"; |
| 396 | function = "usb1"; |
| 397 | }; |
| 398 | }; |
| 399 | }; |
| 400 | |
| 401 | &uart1 { |
| 402 | status = "okay"; |
| 403 | pinctrl-names = "default"; |
| 404 | pinctrl-0 = <&pinctrl_uart1_default>; |
| 405 | }; |