xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/imx6qdl-dhcom-picoitx.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2021 DH electronics GmbH
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot#include <dt-bindings/leds/common.h>
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/ {
9*f126890aSEmmanuel Vadot	chosen {
10*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
11*f126890aSEmmanuel Vadot	};
12*f126890aSEmmanuel Vadot
13*f126890aSEmmanuel Vadot	led {
14*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot		led-0 {
17*f126890aSEmmanuel Vadot			color = <LED_COLOR_ID_YELLOW>;
18*f126890aSEmmanuel Vadot			default-state = "off";
19*f126890aSEmmanuel Vadot			function = LED_FUNCTION_INDICATOR;
20*f126890aSEmmanuel Vadot			gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* GPIO I */
21*f126890aSEmmanuel Vadot			pinctrl-0 = <&pinctrl_dhcom_i>;
22*f126890aSEmmanuel Vadot			pinctrl-names = "default";
23*f126890aSEmmanuel Vadot		};
24*f126890aSEmmanuel Vadot	};
25*f126890aSEmmanuel Vadot};
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot&gpio1 {
28*f126890aSEmmanuel Vadot	gpio-line-names =
29*f126890aSEmmanuel Vadot		"", "", "DHCOM-A", "", "DHCOM-B", "PicoITX-In2", "", "",
30*f126890aSEmmanuel Vadot		"", "", "", "", "", "", "", "",
31*f126890aSEmmanuel Vadot		"DHCOM-R", "DHCOM-S", "DHCOM-Q", "DHCOM-T", "DHCOM-U", "", "", "",
32*f126890aSEmmanuel Vadot		"", "", "", "", "", "", "", "";
33*f126890aSEmmanuel Vadot};
34*f126890aSEmmanuel Vadot
35*f126890aSEmmanuel Vadot&gpio4 {
36*f126890aSEmmanuel Vadot	gpio-line-names =
37*f126890aSEmmanuel Vadot		"", "", "", "", "", "PicoITX-In1", "DHCOM-INT", "DHCOM-H",
38*f126890aSEmmanuel Vadot		"DHCOM-I", "PicoITX-HW2", "", "", "", "", "", "",
39*f126890aSEmmanuel Vadot		"", "", "", "", "PicoITX-Out1", "", "", "",
40*f126890aSEmmanuel Vadot		"", "", "", "", "", "", "", "";
41*f126890aSEmmanuel Vadot};
42*f126890aSEmmanuel Vadot
43*f126890aSEmmanuel Vadot&gpio6 {
44*f126890aSEmmanuel Vadot	gpio-line-names =
45*f126890aSEmmanuel Vadot		"", "", "", "PicoITX-Out2", "", "", "SOM-HW1", "",
46*f126890aSEmmanuel Vadot		"", "", "", "", "", "", "PicoITX-HW0", "PicoITX-HW1",
47*f126890aSEmmanuel Vadot		"", "", "", "", "", "", "", "",
48*f126890aSEmmanuel Vadot		"", "", "", "", "", "", "", "";
49*f126890aSEmmanuel Vadot};
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot&iomuxc {
52*f126890aSEmmanuel Vadot	pinctrl-0 = <
53*f126890aSEmmanuel Vadot			/*
54*f126890aSEmmanuel Vadot			 * The following DHCOM GPIOs are used on this board.
55*f126890aSEmmanuel Vadot			 * Therefore, they have been removed from the list below.
56*f126890aSEmmanuel Vadot			 * I: yellow led
57*f126890aSEmmanuel Vadot			 */
58*f126890aSEmmanuel Vadot			&pinctrl_hog_base
59*f126890aSEmmanuel Vadot			&pinctrl_dhcom_a &pinctrl_dhcom_b &pinctrl_dhcom_c
60*f126890aSEmmanuel Vadot			&pinctrl_dhcom_d &pinctrl_dhcom_e &pinctrl_dhcom_f
61*f126890aSEmmanuel Vadot			&pinctrl_dhcom_g &pinctrl_dhcom_h
62*f126890aSEmmanuel Vadot			&pinctrl_dhcom_j &pinctrl_dhcom_k &pinctrl_dhcom_l
63*f126890aSEmmanuel Vadot			&pinctrl_dhcom_m &pinctrl_dhcom_n &pinctrl_dhcom_o
64*f126890aSEmmanuel Vadot			&pinctrl_dhcom_p &pinctrl_dhcom_q &pinctrl_dhcom_r
65*f126890aSEmmanuel Vadot			&pinctrl_dhcom_s &pinctrl_dhcom_t &pinctrl_dhcom_u
66*f126890aSEmmanuel Vadot			&pinctrl_dhcom_v &pinctrl_dhcom_w &pinctrl_dhcom_int
67*f126890aSEmmanuel Vadot		>;
68*f126890aSEmmanuel Vadot	pinctrl-names = "default";
69*f126890aSEmmanuel Vadot};
70