/dts-v1/;
/plugin/;
#include <k3-pinctrl.h>
/ {
compatible = "toradex,verdin-am62";
//soc {
// main_uart6: serial@2860000 {
// compatible = "ti,am64-uart", "ti,am654-uart";
// reg = <0x00 0x02860000 0x00 0x100>;
// interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
// power-domains = <&k3_pds 158 TI_SCI_PD_EXCLUSIVE>;
// clocks = <&k3_clks 158 0>;
// clock-names = "fclk";
// status = "disabled";
// };
//};
//
//aliases {
// serial5 = &main_uart6;
//};
};
&main_pmx0 {
/* Locks */
pinctrl_gpio_locks: lock_grp {
pinctrl-single,pins = <
AM62X_IOPAD(0x01a8, PIN_OUTPUT, 7) /* (D20) MCASP0_AFSX.GPIO1_12 */ /* SODIMM 32 */ // upper enable
AM62X_IOPAD(0x01a0, PIN_INPUT, 7) /* (E18) MCASP0_AXR0.GPIO1_10 */ /* SODIMM 34 */ // upper feedback
AM62X_IOPAD(0x019c, PIN_OUTPUT, 7) /* (B18) MCASP0_AXR1.GPIO1_9 */ /* SODIMM 36 */ // lower enable
AM62X_IOPAD(0x0098, PIN_INPUT, 7) /* (U23) GPMC0_WAIT0.GPIO0_37 */ /* SODIMM 44 */ // lower feedback
AM62X_IOPAD(0x008c, PIN_OUTPUT, 7) /* (L25) GPMC0_WEn.GPIO0_34 */ /* SODIMM 46 */ // drawer enable
AM62X_IOPAD(0x0088, PIN_INPUT, 7) /* (L24) GPMC0_OEn_REn.GPIO0_33 */ /* SODIMM 48 */ // drawer feedback
>;
};
/* Phone charging */
pinctrl_gpio_charging: charging_grp {
pinctrl-single,pins = <
AM62X_IOPAD(0x0000, PIN_OUTPUT, 7) /* (H24) OSPI0_CLK.GPIO0_0 */ /* SODIMM 52 */
>;
};
/* NFC reader */
pinctrl_gpio_nfc_reader: nfc_grp{
pinctrl-single,pins = <
AM62X_IOPAD(0x01b0, PIN_OUTPUT, 7) /* (A20) MCASP0_ACLKR.GPIO1_14 */ /* SODIMM 131 */ // WD34 active low
AM62X_IOPAD(0x0198, PIN_INPUT, 7) /* (A19) MCASP0_AXR2.GPIO1_8 */ /* SODIMM 133 */ // WD0
AM62X_IOPAD(0x0194, PIN_INPUT, 7) /* (B19) MCASP0_AXR3.GPIO1_7 */ /* SODIMM 135 */ // WD1
AM62X_IOPAD(0x00a8, PIN_OUTPUT, 7) /* (M21) GPMC0_CSn0.GPIO0_41 */ /* SODIMM 220 */ // Reader LED
AM62X_IOPAD(0x00ac, PIN_OUTPUT, 7) /* (L21) GPMC0_CSn1.GPIO0_42 */ /* SODIMM 222 */ // Reader buzzer
>;
};
/* Verdin UART_6 */
pinctrl_uart6: main-uart6-pins-default {
pinctrl-single,pins = <
AM62X_IOPAD(0x0020, PIN_OUTPUT, 3) /* (J25) OSPI0_D5.UART6_TXD */ /* SODIMM 196 */
AM62X_IOPAD(0x001c, PIN_INPUT_PULLUP, 3) /* (J23) OSPI0_D4.UART6_RXD */ /* SODIMM 202 */
>;
};
};
&mcu_pmx0 {
/* Button */
pinctrl_gpio_button: button_grp {
pinctrl-single,pins = <
AM62X_MCU_IOPAD(0x0030, PIN_INPUT, 7) /* (A4) WKUP_UART0_RTSn.MCU_GPIO0_12 */ /* SODIMM 141 */
>;
};
/* 4G module reset */
pinctrl_gpio_4G_reset: 4G_grp {
pinctrl-single,pins = <
AM62X_MCU_IOPAD(0x0000, PIN_OUTPUT, 7) /* (E8) MCU_SPI0_CS0.MCU_GPIO0_0 */ /* SODIMM 244 */
>;
};
/* HW version bits */
pinctrl_gpio_HW_version: HW_ver_grp {
pinctrl-single,pins = <
AM62X_MCU_IOPAD(0x0004, PIN_INPUT, 7) /* (B8) MCU_SPI0_CS1.MCU_GPIO0_1 */ /* SODIMM 206 */ // bit 0
AM62X_MCU_IOPAD(0x0008, PIN_INPUT, 7) /* (A7) MCU_SPI0_CLK.MCU_GPIO0_2 */ /* SODIMM 208 */ // bit 1
AM62X_MCU_IOPAD(0x000c, PIN_INPUT, 7) /* (D9) MCU_SPI0_D0.MCU_GPIO0_3 */ /* SODIMM 210 */ // bit 2
AM62X_MCU_IOPAD(0x0010, PIN_INPUT, 7) /* (C9) MCU_SPI0_D1.MCU_GPIO0_4 */ /* SODIMM 212 */ // bit 3
>;
};
};
/* Verdin UART_1 */
&main_uart1 {
status = "disabled";
};
/* Verdin UART_2 */ // disabled, conflicts with button
&wkup_uart0 {
status = "disabled";
};
/* Verdin I2S_1 */ // disabled, conflicts with locks
&mcasp0 {
status = "disabled";
};
/* Verdin I2S_2 */ // disabled, conflicts with locks
&mcasp1 {
status = "disabled";
};
/* Verdin QSPI_1 */ // disabled, conflicts with phone charging
&ospi0 {
status = "disabled";
};
/* Verdin I2C_2_DSI */
&main_i2c2 {
status = "disabled";
};
/* Verdin SPI_1 */
&main_spi1 {
status = "disabled";
};
/* Verdin UART_6 */
&main_uart6 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart6>;
status = "okay";
};
&main_gpio0 {
gpio-line-names =
"SODIMM_52", /* 0 */
"",
"",
"SODIMM_56",
"SODIMM_58",
"SODIMM_60",
"SODIMM_62",
"",
"",
"",
"", /* 10 */
"SODIMM_54",
"SODIMM_64",
"",
"",
"SODIMM_174",
"SODIMM_172",
"",
"",
"",
"", /* 20 */
"",
"",
"",
"",
"",
"",
"",
"",
"SODIMM_76",
"SODIMM_21", /* 30 */
"SODIMM_256",
"SODIMM_252",
"SODIMM_48",
"SODIMM_46",
"SODIMM_42",
"SODIMM_218",
"SODIMM_44",
"SODIMM_189",
"",
"SODIMM_216", /* 40 */
"SODIMM_220",
"SODIMM_222",
"",
"",
"",
"",
"",
"",
"",
"", /* 50 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 60 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 70 */
"SODIMM_157",
"SODIMM_187",
"",
"",
"",
"",
"",
"",
"",
"", /* 80 */
"",
"",
"",
"",
"",
"";
};
&main_gpio0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_locks>,
<&pinctrl_gpio_charging>,
<&pinctrl_gpio_nfc_reader>,
<&pinctrl_gpio_button>,
<&pinctrl_gpio_4G_reset>,
<&pinctrl_gpio_HW_version>;
};
&main_gpio1 {
gpio-line-names =
"", /* 0 */
"",
"",
"",
"",
"",
"",
"SODIMM_135",
"SODIMM_133",
"SODIMM_36",
"SODIMM_34", /* 10 */
"",
"SODIMM_32",
"",
"SODIMM_131",
"SODIMM_15",
"SODIMM_16",
"SODIMM_19",
"SODIMM_66",
"SODIMM_161",
"", /* 20 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 30 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 40 */
"",
"",
"",
"",
"",
"",
"",
"",
"SODIMM_17",
"", /* 50 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 60 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 70 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 80 */
"",
"",
"",
"",
"",
"",
"";
};
&mcu_gpio0 {
gpio-line-names =
"SODIMM_244",
"SODIMM_206",
"SODIMM_208",
"SODIMM_210",
"SODIMM_212",
"",
"",
"",
"",
"SODIMM_137",
"SODIMM_139",
"SODIMM_143",
"SODIMM_141",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"";
};