1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2016 PHYTEC Messtechnik
4 * Author: Christian Hemp <c.hemp@phytec.de>
7 #include <dt-bindings/input/input.h>
10 gpio_keys: gpio-keys {
11 compatible = "gpio-key";
12 pinctrl-names = "default";
13 pinctrl-0 = <&pinctrl_gpio_keys>;
17 label = "Power Button";
18 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_POWER>;
24 user_leds: user-leds {
25 compatible = "gpio-leds";
26 pinctrl-names = "default";
27 pinctrl-0 = <&pinctrl_user_leds>;
31 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
32 linux,default-trigger = "gpio";
37 gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
38 linux,default-trigger = "gpio";
45 pinctrl_gpio_keys: gpio_keysgrp {
47 MX6UL_PAD_SNVS_TAMPER0__GPIO5_IO00 0x79
51 pinctrl_user_leds: user_ledsgrp {
53 MX6UL_PAD_JTAG_MOD__GPIO1_IO10 0x79
54 MX6UL_PAD_GPIO1_IO01__GPIO1_IO01 0x79