]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: ti: k3-am62l: add initial reference board file
authorVignesh Raghavendra <vigneshr@ti.com>
Wed, 5 Nov 2025 15:46:44 +0000 (09:46 -0600)
committerVignesh Raghavendra <vigneshr@ti.com>
Thu, 13 Nov 2025 16:31:07 +0000 (22:01 +0530)
Add the initial board file for the AM62L3's Evaluation Module.

Reviewed-by: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Bryan Brattlof <bb@ti.com>
Link: https://patch.msgid.link/20251105-am62lx-v8-3-496f353e8237@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/Makefile
arch/arm64/boot/dts/ti/k3-am62l3-evm.dts [new file with mode: 0644]

index 38a93b689fe77f7f8ad846c93621e4ff277ae1bd..8a2f0530e7cc0a863e88266fdb2a70e95d760101 100644 (file)
@@ -37,6 +37,9 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62a7-phyboard-lyra-rdk.dtb
 # Boards with AM62Dx SoC
 dtb-$(CONFIG_ARCH_K3) += k3-am62d2-evm.dtb
 
+# Boards with AM62Lx SoCs
+dtb-$(CONFIG_ARCH_K3) += k3-am62l3-evm.dtb
+
 # Boards with AM62Px SoC
 dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb
 dtb-$(CONFIG_ARCH_K3) += k3-am62p5-var-som-symphony.dtb
diff --git a/arch/arm64/boot/dts/ti/k3-am62l3-evm.dts b/arch/arm64/boot/dts/ti/k3-am62l3-evm.dts
new file mode 100644 (file)
index 0000000..cae04cc
--- /dev/null
@@ -0,0 +1,361 @@
+// SPDX-License-Identifier: GPL-2.0-only or MIT
+/*
+ * Device Tree file for the AM62L3 Evaluation Module
+ * Copyright (C) 2025 Texas Instruments Incorporated - https://www.ti.com/
+ *
+ * Technical Reference Manual: https://www.ti.com/lit/pdf/sprujb4
+ * Data Sheet: https://www.ti.com/lit/pdf/sprspa1
+ */
+
+/dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
+#include <dt-bindings/net/ti-dp83867.h>
+#include <dt-bindings/thermal/thermal.h>
+#include "k3-am62l3.dtsi"
+#include "k3-pinctrl.h"
+
+/ {
+       compatible = "ti,am62l3-evm", "ti,am62l3";
+       model = "Texas Instruments AM62L3 Evaluation Module";
+
+       chosen {
+               stdout-path = &uart0;
+       };
+
+       memory@80000000 {
+               reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
+               device_type = "memory";
+               bootph-all;
+       };
+
+       gpio_keys: gpio-keys {
+               compatible = "gpio-keys";
+               autorepeat;
+               pinctrl-names = "default";
+               pinctrl-0 = <&usr_button_pins_default>;
+
+               usr: button-usr {
+                       label = "User Key";
+                       linux,code = <BTN_0>;
+                       gpios = <&gpio0 90 GPIO_ACTIVE_LOW>;
+               };
+       };
+
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&usr_led_pins_default>;
+
+               led-0 {
+                       label = "am62-sk:green:heartbeat";
+                       gpios = <&gpio0 123 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "heartbeat";
+                       function = LED_FUNCTION_HEARTBEAT;
+                       default-state = "on";
+               };
+       };
+
+       thermal-zones {
+               wkup0-thermal {
+                       polling-delay-passive = <250>;  /* milliSeconds */
+                       polling-delay = <500>;          /* milliSeconds */
+                       thermal-sensors = <&vtm0 0>;
+
+                       trips {
+                               crit0 {
+                                       temperature = <125000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+       };
+
+       vmain_pd: regulator-0 {
+               /* TPS65988 PD CONTROLLER OUTPUT */
+               compatible = "regulator-fixed";
+               regulator-name = "vmain_pd";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-always-on;
+               regulator-boot-on;
+               bootph-all;
+       };
+
+       vcc_3v3_sys: regulator-1 {
+               /* output of LM61460-Q1 */
+               compatible = "regulator-fixed";
+               regulator-name = "vcc_3v3_sys";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               vin-supply = <&vmain_pd>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+
+       vdd_mmc1: regulator-2 {
+               /* TPS22918DBVR */
+               compatible = "regulator-fixed";
+               regulator-name = "vdd_mmc1";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-boot-on;
+               enable-active-high;
+               vin-supply = <&vcc_3v3_sys>;
+               gpio = <&exp1 3 GPIO_ACTIVE_HIGH>;
+               bootph-all;
+       };
+
+       vcc_1v8: regulator-3 {
+               /* output of TPS6282518DMQ */
+               compatible = "regulator-fixed";
+               regulator-name = "vcc_1v8";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               vin-supply = <&vcc_3v3_sys>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
+};
+
+&gpio0 {
+       bootph-all;
+};
+
+&i2c0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c0_pins_default>;
+       clock-frequency = <400000>;
+       status = "okay";
+
+       eeprom@51 {
+               /* AT24C512C-MAHM-T or M24512-DFMC6TG */
+               compatible = "atmel,24c512";
+               reg = <0x51>;
+       };
+};
+
+&i2c1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c1_pins_default>;
+       clock-frequency = <100000>;
+       status = "okay";
+
+       exp1: gpio@22 {
+               compatible = "ti,tca6424";
+               reg = <0x22>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               gpio-line-names = "", "",
+                                 "UART1_FET_SEL", "MMC1_SD_EN",
+                                 "VPP_LDO_EN", "EXP_PS_3V3_EN",
+                                 "UART1_FET_BUF_EN", "", "",
+                                 "", "DSI_GPIO0", "DSI_GPIO1",
+                                 "", "BT_UART_WAKE_SOC_3V3",
+                                 "USB_TYPEA_OC_INDICATION", "",
+                                 "", "WLAN_ALERTn", "", "",
+                                 "HDMI_INTn", "TEST_GPIO2",
+                                 "MCASP0_FET_EN", "MCASP0_BUF_BT_EN",
+                                 "MCASP0_FET_SEL", "DSI_EDID",
+                                 "PD_I2C_IRQ", "IO_EXP_TEST_LED";
+
+               interrupt-parent = <&gpio0>;
+               interrupts = <91 IRQ_TYPE_EDGE_FALLING>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&gpio0_ioexp_intr_pins_default>;
+               bootph-all;
+       };
+
+       exp2: gpio@23 {
+               compatible = "ti,tca6424";
+               reg = <0x23>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               gpio-line-names = "BT_EN_SOC", "VOUT0_FET_SEL0",
+                                 "", "",
+                                 "", "",
+                                 "", "",
+                                 "WL_LT_EN", "EXP_PS_5V0_EN",
+                                 "TP45", "TP48",
+                                 "TP46", "TP49",
+                                 "TP47", "TP50",
+                                 "GPIO_QSPI_NAND_RSTn", "GPIO_HDMI_RSTn",
+                                 "GPIO_CPSW1_RST", "GPIO_CPSW2_RST",
+                                 "", "GPIO_AUD_RSTn",
+                                 "GPIO_eMMC_RSTn", "SoC_WLAN_SDIO_RST";
+               bootph-all;
+       };
+
+};
+
+&i2c2 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c2_pins_default>;
+       clock-frequency = <400000>;
+       status = "okay";
+
+       typec_pd0: tps658x@3f {
+               compatible = "ti,tps6598x";
+               reg = <0x3f>;
+
+               connector {
+                       compatible = "usb-c-connector";
+                       label = "USB-C";
+                       self-powered;
+                       data-role = "dual";
+                       power-role = "sink";
+
+                       port {
+                               usb_con_hs: endpoint {
+                                       remote-endpoint = <&usb0_hs_ep>;
+                               };
+                       };
+               };
+       };
+};
+
+&pmx0 {
+       gpio0_ioexp_intr_pins_default: gpio0-ioexp-intr-default-pins {
+               pinctrl-single,pins = <
+                       AM62LX_IOPAD(0x01b0, PIN_INPUT, 7) /* (B12) SPI0_D1.GPIO0_91 */
+               >;
+               bootph-all;
+       };
+
+       i2c0_pins_default: i2c0-default-pins {
+               pinctrl-single,pins = <
+                       AM62LX_IOPAD(0x01cc, PIN_INPUT_PULLUP, 0) /* (B7) I2C0_SCL */
+                       AM62LX_IOPAD(0x01d0, PIN_INPUT_PULLUP, 0) /* (A7) I2C0_SDA */
+               >;
+               bootph-all;
+       };
+
+       i2c1_pins_default: i2c1-default-pins {
+               pinctrl-single,pins = <
+                       AM62LX_IOPAD(0x01d4, PIN_INPUT_PULLUP, 0) /* (D7) I2C1_SCL */
+                       AM62LX_IOPAD(0x01d8, PIN_INPUT_PULLUP, 0) /* (A6) I2C1_SDA */
+               >;
+               bootph-all;
+       };
+
+       i2c2_pins_default: i2c2-default-pins {
+               pinctrl-single,pins = <
+                       AM62LX_IOPAD(0x01dc, PIN_INPUT_PULLUP, 0) /* (B8) I2C2_SCL */
+                       AM62LX_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D8) I2C2_SDA */
+               >;
+       };
+
+       mmc0_pins_default: mmc0-default-pins {
+               pinctrl-single,pins = <
+                       AM62LX_IOPAD(0x0214, PIN_INPUT_PULLUP, 0) /* (D2) MMC0_CMD */
+                       AM62LX_IOPAD(0x020c, PIN_OUTPUT, 0) /* (B2) MMC0_CLK */
+                       AM62LX_IOPAD(0x0208, PIN_INPUT_PULLUP, 0) /* (D3) MMC0_DAT0 */
+                       AM62LX_IOPAD(0x0204, PIN_INPUT_PULLUP, 0) /* (D4) MMC0_DAT1 */
+                       AM62LX_IOPAD(0x0200, PIN_INPUT_PULLUP, 0) /* (C1) MMC0_DAT2 */
+                       AM62LX_IOPAD(0x01fc, PIN_INPUT_PULLUP, 0) /* (C2) MMC0_DAT3 */
+                       AM62LX_IOPAD(0x01f8, PIN_INPUT_PULLUP, 0) /* (C4) MMC0_DAT4 */
+                       AM62LX_IOPAD(0x01f4, PIN_INPUT_PULLUP, 0) /* (B3) MMC0_DAT5 */
+                       AM62LX_IOPAD(0x01f0, PIN_INPUT_PULLUP, 0) /* (A3) MMC0_DAT6 */
+                       AM62LX_IOPAD(0x01ec, PIN_INPUT_PULLUP, 0) /* (B4) MMC0_DAT7 */
+               >;
+               bootph-all;
+       };
+
+       mmc1_pins_default: mmc1-default-pins {
+               pinctrl-single,pins = <
+                       AM62LX_IOPAD(0x0230, PIN_INPUT, 0) /* (Y3) MMC1_CMD */
+                       AM62LX_IOPAD(0x0228, PIN_OUTPUT, 0) /* (Y2) MMC1_CLK */
+                       AM62LX_IOPAD(0x0224, PIN_INPUT, 0) /* (AA1) MMC1_DAT0 */
+                       AM62LX_IOPAD(0x0220, PIN_INPUT_PULLUP, 0) /* (Y4) MMC1_DAT1 */
+                       AM62LX_IOPAD(0x021c, PIN_INPUT_PULLUP, 0) /* (AA2) MMC1_DAT2 */
+                       AM62LX_IOPAD(0x0218, PIN_INPUT_PULLUP, 0) /* (AB2) MMC1_DAT3 */
+                       AM62LX_IOPAD(0x0234, PIN_INPUT, 0) /* (B6) MMC1_SDCD */
+               >;
+               bootph-all;
+       };
+
+       uart0_pins_default: uart0-default-pins {
+               pinctrl-single,pins = <
+                       AM62LX_IOPAD(0x01b4, PIN_INPUT, 0) /* (D13) UART0_RXD */
+                       AM62LX_IOPAD(0x01b8, PIN_OUTPUT, 0) /* (C13) UART0_TXD */
+               >;
+               bootph-all;
+       };
+
+       usb1_default_pins: usb1-default-pins {
+               pinctrl-single,pins = <
+                       AM62LX_IOPAD(0x0248, PIN_INPUT | PIN_DS_PULLUD_ENABLE | PIN_DS_PULL_UP, 0) /* (A5) USB1_DRVVBUS */
+               >;
+       };
+
+       usr_button_pins_default: usr-button-default-pins {
+               pinctrl-single,pins = <
+                       AM62LX_IOPAD(0x01ac, PIN_INPUT, 7) /* (E12) SPI0_D0.GPIO0_90 */
+               >;
+       };
+
+       usr_led_pins_default: usr-led-default-pins {
+               pinctrl-single,pins = <
+                       AM62LX_IOPAD(0x0238, PIN_OUTPUT, 7) /* (D24) MMC1_SDWP.GPIO0_123 */
+               >;
+       };
+
+};
+
+&sdhci0 {
+       /* eMMC */
+       pinctrl-names = "default";
+       pinctrl-0 = <&mmc0_pins_default>;
+       non-removable;
+       status = "okay";
+       bootph-all;
+};
+
+&sdhci1 {
+       /* SD/MMC */
+       pinctrl-names = "default";
+       pinctrl-0 = <&mmc1_pins_default>;
+       vmmc-supply = <&vdd_mmc1>;
+       disable-wp;
+       status = "okay";
+       bootph-all;
+};
+
+&uart0 {
+       pinctrl-0 = <&uart0_pins_default>;
+       pinctrl-names = "default";
+       status = "okay";
+       bootph-all;
+};
+
+&usbss0 {
+       status = "okay";
+       ti,vbus-divider;
+};
+
+&usb0 {
+       usb-role-switch;
+
+       port {
+               usb0_hs_ep: endpoint {
+                       remote-endpoint = <&usb_con_hs>;
+               };
+       };
+};
+
+&usbss1 {
+       status = "okay";
+       ti,vbus-divider;
+};
+
+&usb1 {
+       dr_mode = "host";
+       pinctrl-names = "default";
+       pinctrl-0 = <&usb1_default_pins>;
+};