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