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