1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (C) 2016 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: gpio-keys { 11*f126890aSEmmanuel Vadot compatible = "gpio-key"; 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 0 GPIO_ACTIVE_LOW>; 19*f126890aSEmmanuel Vadot linux,code = <KEY_POWER>; 20*f126890aSEmmanuel Vadot wakeup-source; 21*f126890aSEmmanuel Vadot }; 22*f126890aSEmmanuel Vadot }; 23*f126890aSEmmanuel Vadot 24*f126890aSEmmanuel Vadot user_leds: user-leds { 25*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 26*f126890aSEmmanuel Vadot pinctrl-names = "default"; 27*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_user_leds>; 28*f126890aSEmmanuel Vadot status = "disabled"; 29*f126890aSEmmanuel Vadot 30*f126890aSEmmanuel Vadot user-led1 { 31*f126890aSEmmanuel Vadot gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; 32*f126890aSEmmanuel Vadot linux,default-trigger = "gpio"; 33*f126890aSEmmanuel Vadot default-state = "on"; 34*f126890aSEmmanuel Vadot }; 35*f126890aSEmmanuel Vadot 36*f126890aSEmmanuel Vadot user-led2 { 37*f126890aSEmmanuel Vadot gpios = <&gpio1 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}; 43*f126890aSEmmanuel Vadot 44*f126890aSEmmanuel Vadot&iomuxc { 45*f126890aSEmmanuel Vadot pinctrl_gpio_keys: gpio_keysgrp { 46*f126890aSEmmanuel Vadot fsl,pins = < 47*f126890aSEmmanuel Vadot MX6UL_PAD_SNVS_TAMPER0__GPIO5_IO00 0x79 48*f126890aSEmmanuel Vadot >; 49*f126890aSEmmanuel Vadot }; 50*f126890aSEmmanuel Vadot 51*f126890aSEmmanuel Vadot pinctrl_user_leds: user_ledsgrp { 52*f126890aSEmmanuel Vadot fsl,pins = < 53*f126890aSEmmanuel Vadot MX6UL_PAD_JTAG_MOD__GPIO1_IO10 0x79 54*f126890aSEmmanuel Vadot MX6UL_PAD_GPIO1_IO01__GPIO1_IO01 0x79 55*f126890aSEmmanuel Vadot >; 56*f126890aSEmmanuel Vadot }; 57*f126890aSEmmanuel Vadot}; 58