1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (C) 2024 Heiko Schocher <[email protected]>
4 */
5
6/dts-v1/;
7
8#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/leds/common.h>
10#include "imx8mp-aristainetos3a-som-v1.dtsi"
11
12&{/} {
13	model = "Aristainetos3 proton2s carrier";
14	compatible = "abb,imx8mp-aristanetos3-proton2s",
15		     "abb,imx8mp-aristanetos3-som",
16		     "fsl,imx8mp";
17
18	watchdog {
19		/* MAX6371KA */
20		compatible = "linux,wdt-gpio";
21		pinctrl-names = "default";
22		pinctrl-0 = <&pinctrl_watchdog_gpio>;
23		always-running;
24		gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
25		hw_algo = "level";
26		/* Reset triggers in 3..9 seconds */
27		hw_margin_ms = <1500>;
28	};
29};
30
31&ethphy1 {
32	status = "disabled";
33};
34
35&eqos {
36	max-speed = <100>;
37};
38
39&ecspi1{
40	pinctrl-0 = <&pinctrl_ecspi1>;
41	cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
42};
43
44&fec {
45	status = "disabled";
46};
47
48&gpio1 {
49	pinctrl-names = "default";
50	pinctrl-0 = <&pinctrl_gpio_proton2s>;
51
52	gpio-line-names =
53		"", "", "", "", "", "", "", "POWER",
54		"", "", "", "", "", "", "", "",
55		"", "", "", "", "", "", "", "",
56		"", "", "", "", "", "", "", "";
57};
58
59&gpio6 {
60	gpio-line-names =
61		"RELAY0", "RELAY1", "RELAY2", "HEATER",
62		"FAN", "SPARE",	"CLEAR", "FAULT",
63		"", "", "", "", "", "", "", "", "";
64};
65
66&i2c2 {
67	tlc59108@40 {
68		compatible = "ti,tlc59108";
69		reg = <0x40>;
70		#address-cells = <1>;
71		#size-cells = <0>;
72
73		led@0 {
74			reg = <0x0>;
75			function = LED_FUNCTION_STATUS;
76			color = <LED_COLOR_ID_RED>;
77			function-enumerator = <20>;
78		};
79
80		led@1 {
81			reg = <0x1>;
82			function = LED_FUNCTION_STATUS;
83			color = <LED_COLOR_ID_GREEN>;
84			function-enumerator = <20>;
85		};
86
87		led@2 {
88			reg = <0x2>;
89			function = LED_FUNCTION_STATUS;
90			color = <LED_COLOR_ID_GREEN>;
91			function-enumerator = <21>;
92		};
93
94		led@3 {
95			reg = <0x3>;
96			function = LED_FUNCTION_STATUS;
97			color = <LED_COLOR_ID_RED>;
98			function-enumerator = <21>;
99		};
100
101		led@4 {
102			reg = <0x4>;
103			function = LED_FUNCTION_STATUS;
104			color = <LED_COLOR_ID_BLUE>;
105			function-enumerator = <21>;
106		};
107
108		led@5 {
109			reg = <0x5>;
110			function = LED_FUNCTION_STATUS;
111			color = <LED_COLOR_ID_RED>;
112			function-enumerator = <22>;
113		};
114
115		led@6 {
116			reg = <0x6>;
117			function = LED_FUNCTION_STATUS;
118			color = <LED_COLOR_ID_GREEN>;
119			function-enumerator = <22>;
120		};
121
122		led@7 {
123			reg = <0x7>;
124			function = LED_FUNCTION_STATUS;
125			color = <LED_COLOR_ID_BLUE>;
126			function-enumerator = <22>;
127		};
128	};
129
130	rtc1: rtc@68 {
131		compatible = "dallas,ds1339";
132		reg = <0x68>;
133	};
134};
135
136&uart1 {
137	pinctrl-0 = <&pinctrl_uart1>;
138};
139
140&uart2 {
141	pinctrl-0 = <&pinctrl_uart2>;
142};
143
144&uart3 {
145	pinctrl-0 = <&pinctrl_uart3>;
146};
147
148&uart4 {
149	linux,rs485-enabled-at-boot-time;
150	rs485-rts-active-low;
151	rs485-rts-delay = <0 0>;
152	rts-gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>;
153};
154
155&usdhc1 {
156	status = "disabled";
157};
158
159&wdog1 {
160	status = "okay";
161};
162