1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
4 */
5
6/dts-v1/;
7
8#include "k3-j721e-som-p0.dtsi"
9#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/input/input.h>
11
12/ {
13	chosen {
14		stdout-path = "serial2:115200n8";
15		bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
16	};
17
18	gpio_keys: gpio-keys {
19		compatible = "gpio-keys";
20		autorepeat;
21		pinctrl-names = "default";
22		pinctrl-0 = <&sw10_button_pins_default &sw11_button_pins_default>;
23
24		sw10: sw10 {
25			label = "GPIO Key USER1";
26			linux,code = <BTN_0>;
27			gpios = <&main_gpio0 0 GPIO_ACTIVE_LOW>;
28		};
29
30		sw11: sw11 {
31			label = "GPIO Key USER2";
32			linux,code = <BTN_1>;
33			gpios = <&wkup_gpio0 7 GPIO_ACTIVE_LOW>;
34		};
35	};
36};
37
38&main_pmx0 {
39	sw10_button_pins_default: sw10_button_pins_default {
40		pinctrl-single,pins = <
41			J721E_IOPAD(0x0, PIN_INPUT, 7) /* (AC18) EXTINTn.GPIO0_0 */
42		>;
43	};
44};
45
46&wkup_pmx0 {
47	sw11_button_pins_default: sw11_button_pins_default {
48		pinctrl-single,pins = <
49			J721E_WKUP_IOPAD(0xcc, PIN_INPUT, 7) /* (G28) WKUP_GPIO0_7 */
50		>;
51	};
52};
53
54&wkup_uart0 {
55	/* Wakeup UART is used by System firmware */
56	status = "disabled";
57};
58
59&main_uart0 {
60	power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
61};
62
63&main_uart3 {
64	/* UART not brought out */
65	status = "disabled";
66};
67
68&main_uart5 {
69	/* UART not brought out */
70	status = "disabled";
71};
72
73&main_uart6 {
74	/* UART not brought out */
75	status = "disabled";
76};
77
78&main_uart7 {
79	/* UART not brought out */
80	status = "disabled";
81};
82
83&main_uart8 {
84	/* UART not brought out */
85	status = "disabled";
86};
87
88&main_uart9 {
89	/* UART not brought out */
90	status = "disabled";
91};
92
93&main_gpio2 {
94	status = "disabled";
95};
96
97&main_gpio3 {
98	status = "disabled";
99};
100
101&main_gpio4 {
102	status = "disabled";
103};
104
105&main_gpio5 {
106	status = "disabled";
107};
108
109&main_gpio6 {
110	status = "disabled";
111};
112
113&main_gpio7 {
114	status = "disabled";
115};
116
117&wkup_gpio1 {
118	status = "disabled";
119};
120