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