xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/imx6qdl-phytec-mira-peb-eval-01.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2018 PHYTEC Messtechnik
4*f126890aSEmmanuel Vadot * Author: Christian Hemp <c.hemp@phytec.de>
5*f126890aSEmmanuel Vadot */
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot/ {
10*f126890aSEmmanuel Vadot	gpio-keys {
11*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
12*f126890aSEmmanuel Vadot		pinctrl-names = "default";
13*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_gpio_keys>;
14*f126890aSEmmanuel Vadot		status = "disabled";
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot		power {
17*f126890aSEmmanuel Vadot			label = "Power Button";
18*f126890aSEmmanuel Vadot			gpios = <&gpio5 28 GPIO_ACTIVE_LOW>;
19*f126890aSEmmanuel Vadot			linux,code = <KEY_WAKEUP>;
20*f126890aSEmmanuel Vadot			wakeup-source;
21*f126890aSEmmanuel Vadot		};
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot		sleep {
24*f126890aSEmmanuel Vadot			label = "Sleep Button";
25*f126890aSEmmanuel Vadot			gpios = <&gpio6 18 GPIO_ACTIVE_LOW>;
26*f126890aSEmmanuel Vadot			linux,code = <KEY_SLEEP>;
27*f126890aSEmmanuel Vadot		};
28*f126890aSEmmanuel Vadot	};
29*f126890aSEmmanuel Vadot
30*f126890aSEmmanuel Vadot	user_leds: user-leds {
31*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
32*f126890aSEmmanuel Vadot		pinctrl-names = "default";
33*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_user_leds>;
34*f126890aSEmmanuel Vadot		status = "disabled";
35*f126890aSEmmanuel Vadot
36*f126890aSEmmanuel Vadot		user-led1 {
37*f126890aSEmmanuel Vadot			gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
38*f126890aSEmmanuel Vadot			linux,default-trigger = "gpio";
39*f126890aSEmmanuel Vadot			default-state = "on";
40*f126890aSEmmanuel Vadot		};
41*f126890aSEmmanuel Vadot
42*f126890aSEmmanuel Vadot		user-led2 {
43*f126890aSEmmanuel Vadot			gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
44*f126890aSEmmanuel Vadot			linux,default-trigger = "gpio";
45*f126890aSEmmanuel Vadot			default-state = "on";
46*f126890aSEmmanuel Vadot		};
47*f126890aSEmmanuel Vadot
48*f126890aSEmmanuel Vadot		user-led3 {
49*f126890aSEmmanuel Vadot			gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
50*f126890aSEmmanuel Vadot			linux,default-trigger = "gpio";
51*f126890aSEmmanuel Vadot			default-state = "on";
52*f126890aSEmmanuel Vadot		};
53*f126890aSEmmanuel Vadot	};
54*f126890aSEmmanuel Vadot};
55*f126890aSEmmanuel Vadot
56*f126890aSEmmanuel Vadot&iomuxc {
57*f126890aSEmmanuel Vadot	pinctrl_gpio_keys: gpiokeysgrp {
58*f126890aSEmmanuel Vadot		fsl,pins = <
59*f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT6__GPIO6_IO18		0x1b0b0
60*f126890aSEmmanuel Vadot			MX6QDL_PAD_CSI0_DAT10__GPIO5_IO28	0x1b0b0
61*f126890aSEmmanuel Vadot		>;
62*f126890aSEmmanuel Vadot	};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot	pinctrl_user_leds: userledsgrp {
65*f126890aSEmmanuel Vadot		fsl,pins = <
66*f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT4__GPIO7_IO01		0x1b0b0
67*f126890aSEmmanuel Vadot			MX6QDL_PAD_SD3_DAT5__GPIO7_IO00		0x1b0b0
68*f126890aSEmmanuel Vadot			MX6QDL_PAD_CSI0_DAT11__GPIO5_IO29	0x1b0b0
69*f126890aSEmmanuel Vadot		>;
70*f126890aSEmmanuel Vadot	};
71*f126890aSEmmanuel Vadot};
72