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