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