1*01950c46SEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only OR MIT 2c9ccf3a3SEmmanuel Vadot/* 3c9ccf3a3SEmmanuel Vadot * AM625 SK: https://www.ti.com/lit/zip/sprr448 4c9ccf3a3SEmmanuel Vadot * 5*01950c46SEmmanuel Vadot * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/ 6c9ccf3a3SEmmanuel Vadot */ 7c9ccf3a3SEmmanuel Vadot 8c9ccf3a3SEmmanuel Vadot/dts-v1/; 9c9ccf3a3SEmmanuel Vadot 10fac71e4eSEmmanuel Vadot#include "k3-am62x-sk-common.dtsi" 11c9ccf3a3SEmmanuel Vadot 12c9ccf3a3SEmmanuel Vadot/ { 13c9ccf3a3SEmmanuel Vadot compatible = "ti,am625-sk", "ti,am625"; 14c9ccf3a3SEmmanuel Vadot model = "Texas Instruments AM625 SK"; 15c9ccf3a3SEmmanuel Vadot 168bab661aSEmmanuel Vadot opp-table { 178bab661aSEmmanuel Vadot /* Add 1.4GHz OPP for am625-sk board. Requires VDD_CORE to be at 0.85V */ 188bab661aSEmmanuel Vadot opp-1400000000 { 198bab661aSEmmanuel Vadot opp-hz = /bits/ 64 <1400000000>; 208bab661aSEmmanuel Vadot opp-supported-hw = <0x01 0x0004>; 218bab661aSEmmanuel Vadot clock-latency-ns = <6000000>; 228bab661aSEmmanuel Vadot }; 238bab661aSEmmanuel Vadot }; 248bab661aSEmmanuel Vadot 25c9ccf3a3SEmmanuel Vadot memory@80000000 { 26c9ccf3a3SEmmanuel Vadot device_type = "memory"; 27c9ccf3a3SEmmanuel Vadot /* 2G RAM */ 28c9ccf3a3SEmmanuel Vadot reg = <0x00000000 0x80000000 0x00000000 0x80000000>; 29c9ccf3a3SEmmanuel Vadot 30c9ccf3a3SEmmanuel Vadot }; 31c9ccf3a3SEmmanuel Vadot 32c9ccf3a3SEmmanuel Vadot vmain_pd: regulator-0 { 33c9ccf3a3SEmmanuel Vadot /* TPS65988 PD CONTROLLER OUTPUT */ 3484943d6fSEmmanuel Vadot bootph-all; 35c9ccf3a3SEmmanuel Vadot compatible = "regulator-fixed"; 36c9ccf3a3SEmmanuel Vadot regulator-name = "vmain_pd"; 37c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <5000000>; 38c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <5000000>; 39c9ccf3a3SEmmanuel Vadot regulator-always-on; 40c9ccf3a3SEmmanuel Vadot regulator-boot-on; 41c9ccf3a3SEmmanuel Vadot }; 42c9ccf3a3SEmmanuel Vadot 43c9ccf3a3SEmmanuel Vadot vcc_5v0: regulator-1 { 44c9ccf3a3SEmmanuel Vadot /* Output of LM34936 */ 4584943d6fSEmmanuel Vadot bootph-all; 46c9ccf3a3SEmmanuel Vadot compatible = "regulator-fixed"; 47c9ccf3a3SEmmanuel Vadot regulator-name = "vcc_5v0"; 48c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <5000000>; 49c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <5000000>; 50c9ccf3a3SEmmanuel Vadot vin-supply = <&vmain_pd>; 51c9ccf3a3SEmmanuel Vadot regulator-always-on; 52c9ccf3a3SEmmanuel Vadot regulator-boot-on; 53c9ccf3a3SEmmanuel Vadot }; 54c9ccf3a3SEmmanuel Vadot 55c9ccf3a3SEmmanuel Vadot vcc_3v3_sys: regulator-2 { 56c9ccf3a3SEmmanuel Vadot /* output of LM61460-Q1 */ 5784943d6fSEmmanuel Vadot bootph-all; 58c9ccf3a3SEmmanuel Vadot compatible = "regulator-fixed"; 59c9ccf3a3SEmmanuel Vadot regulator-name = "vcc_3v3_sys"; 60c9ccf3a3SEmmanuel Vadot regulator-min-microvolt = <3300000>; 61c9ccf3a3SEmmanuel Vadot regulator-max-microvolt = <3300000>; 62c9ccf3a3SEmmanuel Vadot vin-supply = <&vmain_pd>; 63c9ccf3a3SEmmanuel Vadot regulator-always-on; 64c9ccf3a3SEmmanuel Vadot regulator-boot-on; 65c9ccf3a3SEmmanuel Vadot }; 66c9ccf3a3SEmmanuel Vadot 67d5b0e70fSEmmanuel Vadot vdd_mmc1: regulator-3 { 68d5b0e70fSEmmanuel Vadot /* TPS22918DBVR */ 6984943d6fSEmmanuel Vadot bootph-all; 70d5b0e70fSEmmanuel Vadot compatible = "regulator-fixed"; 71d5b0e70fSEmmanuel Vadot regulator-name = "vdd_mmc1"; 72d5b0e70fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 73d5b0e70fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 74d5b0e70fSEmmanuel Vadot regulator-boot-on; 75d5b0e70fSEmmanuel Vadot enable-active-high; 76d5b0e70fSEmmanuel Vadot vin-supply = <&vcc_3v3_sys>; 77d5b0e70fSEmmanuel Vadot gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; 78d5b0e70fSEmmanuel Vadot }; 79d5b0e70fSEmmanuel Vadot 80d5b0e70fSEmmanuel Vadot vdd_sd_dv: regulator-4 { 81d5b0e70fSEmmanuel Vadot /* Output of TLV71033 */ 8284943d6fSEmmanuel Vadot bootph-all; 83d5b0e70fSEmmanuel Vadot compatible = "regulator-gpio"; 84d5b0e70fSEmmanuel Vadot regulator-name = "tlv71033"; 85d5b0e70fSEmmanuel Vadot pinctrl-names = "default"; 86d5b0e70fSEmmanuel Vadot pinctrl-0 = <&vdd_sd_dv_pins_default>; 87d5b0e70fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 88d5b0e70fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 89d5b0e70fSEmmanuel Vadot regulator-boot-on; 90d5b0e70fSEmmanuel Vadot vin-supply = <&vcc_5v0>; 91d5b0e70fSEmmanuel Vadot gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>; 92d5b0e70fSEmmanuel Vadot states = <1800000 0x0>, 93d5b0e70fSEmmanuel Vadot <3300000 0x1>; 94d5b0e70fSEmmanuel Vadot }; 95d5b0e70fSEmmanuel Vadot 96fac71e4eSEmmanuel Vadot vcc_1v8: regulator-5 { 97fac71e4eSEmmanuel Vadot /* output of TPS6282518DMQ */ 98fac71e4eSEmmanuel Vadot compatible = "regulator-fixed"; 99fac71e4eSEmmanuel Vadot regulator-name = "vcc_1v8"; 100fac71e4eSEmmanuel Vadot regulator-min-microvolt = <1800000>; 101fac71e4eSEmmanuel Vadot regulator-max-microvolt = <1800000>; 102fac71e4eSEmmanuel Vadot vin-supply = <&vcc_3v3_sys>; 103fac71e4eSEmmanuel Vadot regulator-always-on; 104fac71e4eSEmmanuel Vadot regulator-boot-on; 105c9ccf3a3SEmmanuel Vadot }; 106c9ccf3a3SEmmanuel Vadot}; 107c9ccf3a3SEmmanuel Vadot 108c9ccf3a3SEmmanuel Vadot&main_pmx0 { 109f126890aSEmmanuel Vadot main_rgmii2_pins_default: main-rgmii2-default-pins { 11084943d6fSEmmanuel Vadot bootph-all; 111d5b0e70fSEmmanuel Vadot pinctrl-single,pins = < 112d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x184, PIN_INPUT, 0) /* (AE23) RGMII2_RD0 */ 113d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x188, PIN_INPUT, 0) /* (AB20) RGMII2_RD1 */ 114d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x18c, PIN_INPUT, 0) /* (AC21) RGMII2_RD2 */ 115d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x190, PIN_INPUT, 0) /* (AE22) RGMII2_RD3 */ 116d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x180, PIN_INPUT, 0) /* (AD23) RGMII2_RXC */ 117d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x17c, PIN_INPUT, 0) /* (AD22) RGMII2_RX_CTL */ 118d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x16c, PIN_OUTPUT, 0) /* (Y18) RGMII2_TD0 */ 119d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x170, PIN_OUTPUT, 0) /* (AA18) RGMII2_TD1 */ 120d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x174, PIN_OUTPUT, 0) /* (AD21) RGMII2_TD2 */ 121d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x178, PIN_OUTPUT, 0) /* (AC20) RGMII2_TD3 */ 122d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x168, PIN_OUTPUT, 0) /* (AE21) RGMII2_TXC */ 123d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x164, PIN_OUTPUT, 0) /* (AA19) RGMII2_TX_CTL */ 124d5b0e70fSEmmanuel Vadot >; 125d5b0e70fSEmmanuel Vadot }; 126d5b0e70fSEmmanuel Vadot 127f126890aSEmmanuel Vadot ospi0_pins_default: ospi0-default-pins { 12884943d6fSEmmanuel Vadot bootph-all; 129d5b0e70fSEmmanuel Vadot pinctrl-single,pins = < 130d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x000, PIN_OUTPUT, 0) /* (H24) OSPI0_CLK */ 131d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x02c, PIN_OUTPUT, 0) /* (F23) OSPI0_CSn0 */ 132d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x00c, PIN_INPUT, 0) /* (E25) OSPI0_D0 */ 133d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x010, PIN_INPUT, 0) /* (G24) OSPI0_D1 */ 134d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x014, PIN_INPUT, 0) /* (F25) OSPI0_D2 */ 135d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x018, PIN_INPUT, 0) /* (F24) OSPI0_D3 */ 136d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x01c, PIN_INPUT, 0) /* (J23) OSPI0_D4 */ 137d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x020, PIN_INPUT, 0) /* (J25) OSPI0_D5 */ 138d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x024, PIN_INPUT, 0) /* (H25) OSPI0_D6 */ 139d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x028, PIN_INPUT, 0) /* (J22) OSPI0_D7 */ 140d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x008, PIN_INPUT, 0) /* (J24) OSPI0_DQS */ 141d5b0e70fSEmmanuel Vadot >; 142d5b0e70fSEmmanuel Vadot }; 143d5b0e70fSEmmanuel Vadot 144f126890aSEmmanuel Vadot vdd_sd_dv_pins_default: vdd-sd-dv-default-pins { 14584943d6fSEmmanuel Vadot bootph-all; 146d5b0e70fSEmmanuel Vadot pinctrl-single,pins = < 147d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x07c, PIN_OUTPUT, 7) /* (P25) GPMC0_CLK.GPIO0_31 */ 148d5b0e70fSEmmanuel Vadot >; 149d5b0e70fSEmmanuel Vadot }; 150d5b0e70fSEmmanuel Vadot 151f126890aSEmmanuel Vadot main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-default-pins { 15284943d6fSEmmanuel Vadot bootph-all; 153d5b0e70fSEmmanuel Vadot pinctrl-single,pins = < 154d5b0e70fSEmmanuel Vadot AM62X_IOPAD(0x01d4, PIN_INPUT, 7) /* (B15) UART0_RTSn.GPIO1_23 */ 155d5b0e70fSEmmanuel Vadot >; 156d5b0e70fSEmmanuel Vadot }; 157c9ccf3a3SEmmanuel Vadot}; 158c9ccf3a3SEmmanuel Vadot 15984943d6fSEmmanuel Vadot&main_gpio0 { 16084943d6fSEmmanuel Vadot bootph-all; 16184943d6fSEmmanuel Vadot}; 16284943d6fSEmmanuel Vadot 16384943d6fSEmmanuel Vadot&main_gpio1 { 16484943d6fSEmmanuel Vadot bootph-all; 16584943d6fSEmmanuel Vadot}; 16684943d6fSEmmanuel Vadot 167c9ccf3a3SEmmanuel Vadot&main_i2c1 { 16884943d6fSEmmanuel Vadot bootph-all; 169d5b0e70fSEmmanuel Vadot exp1: gpio@22 { 17084943d6fSEmmanuel Vadot bootph-all; 171d5b0e70fSEmmanuel Vadot compatible = "ti,tca6424"; 172d5b0e70fSEmmanuel Vadot reg = <0x22>; 173d5b0e70fSEmmanuel Vadot gpio-controller; 174d5b0e70fSEmmanuel Vadot #gpio-cells = <2>; 175d5b0e70fSEmmanuel Vadot gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST", 176d5b0e70fSEmmanuel Vadot "PRU_DETECT", "MMC1_SD_EN", 177d5b0e70fSEmmanuel Vadot "VPP_LDO_EN", "EXP_PS_3V3_En", 178d5b0e70fSEmmanuel Vadot "EXP_PS_5V0_En", "EXP_HAT_DETECT", 179d5b0e70fSEmmanuel Vadot "GPIO_AUD_RSTn", "GPIO_eMMC_RSTn", 180d5b0e70fSEmmanuel Vadot "UART1_FET_BUF_EN", "WL_LT_EN", 181d5b0e70fSEmmanuel Vadot "GPIO_HDMI_RSTn", "CSI_GPIO1", 182d5b0e70fSEmmanuel Vadot "CSI_GPIO2", "PRU_3V3_EN", 183f126890aSEmmanuel Vadot "HDMI_INTn", "PD_I2C_IRQ", 184d5b0e70fSEmmanuel Vadot "MCASP1_FET_EN", "MCASP1_BUF_BT_EN", 185d5b0e70fSEmmanuel Vadot "MCASP1_FET_SEL", "UART1_FET_SEL", 186d5b0e70fSEmmanuel Vadot "TSINT#", "IO_EXP_TEST_LED"; 187d5b0e70fSEmmanuel Vadot 188d5b0e70fSEmmanuel Vadot interrupt-parent = <&main_gpio1>; 189d5b0e70fSEmmanuel Vadot interrupts = <23 IRQ_TYPE_EDGE_FALLING>; 190d5b0e70fSEmmanuel Vadot interrupt-controller; 191d5b0e70fSEmmanuel Vadot #interrupt-cells = <2>; 192d5b0e70fSEmmanuel Vadot 193d5b0e70fSEmmanuel Vadot pinctrl-names = "default"; 194d5b0e70fSEmmanuel Vadot pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>; 195d5b0e70fSEmmanuel Vadot }; 196c9ccf3a3SEmmanuel Vadot}; 197c9ccf3a3SEmmanuel Vadot 198d5b0e70fSEmmanuel Vadot&sdhci1 { 199d5b0e70fSEmmanuel Vadot vmmc-supply = <&vdd_mmc1>; 200d5b0e70fSEmmanuel Vadot vqmmc-supply = <&vdd_sd_dv>; 201d5b0e70fSEmmanuel Vadot}; 202d5b0e70fSEmmanuel Vadot 203d5b0e70fSEmmanuel Vadot&cpsw3g { 204d5b0e70fSEmmanuel Vadot pinctrl-names = "default"; 205f126890aSEmmanuel Vadot pinctrl-0 = <&main_rgmii1_pins_default>, <&main_rgmii2_pins_default>; 206d5b0e70fSEmmanuel Vadot}; 207d5b0e70fSEmmanuel Vadot 208d5b0e70fSEmmanuel Vadot&cpsw_port2 { 209d5b0e70fSEmmanuel Vadot phy-mode = "rgmii-rxid"; 210d5b0e70fSEmmanuel Vadot phy-handle = <&cpsw3g_phy1>; 211d5b0e70fSEmmanuel Vadot}; 212d5b0e70fSEmmanuel Vadot 213d5b0e70fSEmmanuel Vadot&cpsw3g_mdio { 214d5b0e70fSEmmanuel Vadot cpsw3g_phy1: ethernet-phy@1 { 215d5b0e70fSEmmanuel Vadot reg = <1>; 216d5b0e70fSEmmanuel Vadot ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; 217d5b0e70fSEmmanuel Vadot ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; 218d5b0e70fSEmmanuel Vadot ti,min-output-impedance; 219d5b0e70fSEmmanuel Vadot }; 220d5b0e70fSEmmanuel Vadot}; 221d5b0e70fSEmmanuel Vadot 222c9ccf3a3SEmmanuel Vadot&mailbox0_cluster0 { 223c9ccf3a3SEmmanuel Vadot mbox_m4_0: mbox-m4-0 { 224c9ccf3a3SEmmanuel Vadot ti,mbox-rx = <0 0 0>; 225c9ccf3a3SEmmanuel Vadot ti,mbox-tx = <1 0 0>; 226c9ccf3a3SEmmanuel Vadot }; 227c9ccf3a3SEmmanuel Vadot}; 228d5b0e70fSEmmanuel Vadot 22984943d6fSEmmanuel Vadot&fss { 23084943d6fSEmmanuel Vadot bootph-all; 23184943d6fSEmmanuel Vadot}; 23284943d6fSEmmanuel Vadot 233d5b0e70fSEmmanuel Vadot&ospi0 { 23484943d6fSEmmanuel Vadot bootph-all; 2358bab661aSEmmanuel Vadot status = "okay"; 236d5b0e70fSEmmanuel Vadot pinctrl-names = "default"; 237d5b0e70fSEmmanuel Vadot pinctrl-0 = <&ospi0_pins_default>; 238d5b0e70fSEmmanuel Vadot 239d5b0e70fSEmmanuel Vadot flash@0 { 24084943d6fSEmmanuel Vadot bootph-all; 241d5b0e70fSEmmanuel Vadot compatible = "jedec,spi-nor"; 242d5b0e70fSEmmanuel Vadot reg = <0x0>; 243d5b0e70fSEmmanuel Vadot spi-tx-bus-width = <8>; 244d5b0e70fSEmmanuel Vadot spi-rx-bus-width = <8>; 245d5b0e70fSEmmanuel Vadot spi-max-frequency = <25000000>; 246d5b0e70fSEmmanuel Vadot cdns,tshsl-ns = <60>; 247d5b0e70fSEmmanuel Vadot cdns,tsd2d-ns = <60>; 248d5b0e70fSEmmanuel Vadot cdns,tchsh-ns = <60>; 249d5b0e70fSEmmanuel Vadot cdns,tslch-ns = <60>; 250d5b0e70fSEmmanuel Vadot cdns,read-delay = <4>; 251d5b0e70fSEmmanuel Vadot 252d5b0e70fSEmmanuel Vadot partitions { 25384943d6fSEmmanuel Vadot bootph-all; 254d5b0e70fSEmmanuel Vadot compatible = "fixed-partitions"; 255d5b0e70fSEmmanuel Vadot #address-cells = <1>; 256d5b0e70fSEmmanuel Vadot #size-cells = <1>; 257d5b0e70fSEmmanuel Vadot 258d5b0e70fSEmmanuel Vadot partition@0 { 259d5b0e70fSEmmanuel Vadot label = "ospi.tiboot3"; 260d5b0e70fSEmmanuel Vadot reg = <0x0 0x80000>; 261d5b0e70fSEmmanuel Vadot }; 262d5b0e70fSEmmanuel Vadot 263d5b0e70fSEmmanuel Vadot partition@80000 { 264d5b0e70fSEmmanuel Vadot label = "ospi.tispl"; 265d5b0e70fSEmmanuel Vadot reg = <0x80000 0x200000>; 266d5b0e70fSEmmanuel Vadot }; 267d5b0e70fSEmmanuel Vadot 268d5b0e70fSEmmanuel Vadot partition@280000 { 269d5b0e70fSEmmanuel Vadot label = "ospi.u-boot"; 270d5b0e70fSEmmanuel Vadot reg = <0x280000 0x400000>; 271d5b0e70fSEmmanuel Vadot }; 272d5b0e70fSEmmanuel Vadot 273d5b0e70fSEmmanuel Vadot partition@680000 { 274d5b0e70fSEmmanuel Vadot label = "ospi.env"; 275d5b0e70fSEmmanuel Vadot reg = <0x680000 0x40000>; 276d5b0e70fSEmmanuel Vadot }; 277d5b0e70fSEmmanuel Vadot 278d5b0e70fSEmmanuel Vadot partition@6c0000 { 279d5b0e70fSEmmanuel Vadot label = "ospi.env.backup"; 280d5b0e70fSEmmanuel Vadot reg = <0x6c0000 0x40000>; 281d5b0e70fSEmmanuel Vadot }; 282d5b0e70fSEmmanuel Vadot 283d5b0e70fSEmmanuel Vadot partition@800000 { 284d5b0e70fSEmmanuel Vadot label = "ospi.rootfs"; 285d5b0e70fSEmmanuel Vadot reg = <0x800000 0x37c0000>; 286d5b0e70fSEmmanuel Vadot }; 287d5b0e70fSEmmanuel Vadot 288d5b0e70fSEmmanuel Vadot partition@3fc0000 { 28984943d6fSEmmanuel Vadot bootph-pre-ram; 290d5b0e70fSEmmanuel Vadot label = "ospi.phypattern"; 291d5b0e70fSEmmanuel Vadot reg = <0x3fc0000 0x40000>; 292d5b0e70fSEmmanuel Vadot }; 293d5b0e70fSEmmanuel Vadot }; 294d5b0e70fSEmmanuel Vadot }; 295d5b0e70fSEmmanuel Vadot}; 296cb7aa33aSEmmanuel Vadot 297fac71e4eSEmmanuel Vadot&tlv320aic3106 { 298fac71e4eSEmmanuel Vadot DVDD-supply = <&vcc_1v8>; 299cb7aa33aSEmmanuel Vadot}; 300