]>
Commit | Line | Data |
---|---|---|
1 | // SPDX-License-Identifier: GPL-2.0 | |
2 | /* | |
3 | * Copyright (C) 2016 PHYTEC Messtechnik | |
4 | * Author: Christian Hemp <c.hemp@phytec.de> | |
5 | */ | |
6 | ||
7 | #include <dt-bindings/input/input.h> | |
8 | ||
9 | / { | |
10 | gpio_keys: gpio-keys { | |
11 | compatible = "gpio-key"; | |
12 | pinctrl-names = "default"; | |
13 | pinctrl-0 = <&pinctrl_gpio_keys>; | |
14 | status = "disabled"; | |
15 | ||
16 | power { | |
17 | label = "Power Button"; | |
18 | gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; | |
19 | linux,code = <KEY_POWER>; | |
20 | wakeup-source; | |
21 | }; | |
22 | }; | |
23 | ||
24 | user_leds: leds { | |
25 | compatible = "gpio-leds"; | |
26 | pinctrl-names = "default"; | |
27 | pinctrl-0 = <&pinctrl_user_leds>; | |
28 | status = "disabled"; | |
29 | ||
30 | led_yellow { | |
31 | gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; | |
32 | linux,default-trigger = "default-on"; | |
33 | }; | |
34 | ||
35 | led_red { | |
36 | gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; | |
37 | linux,default-trigger = "default-on"; | |
38 | }; | |
39 | }; | |
40 | }; | |
41 | ||
42 | &iomuxc { | |
43 | pinctrl_gpio_keys: gpio_keysgrp { | |
44 | fsl,pins = < | |
45 | MX6UL_PAD_SNVS_TAMPER0__GPIO5_IO00 0x79 | |
46 | >; | |
47 | }; | |
48 | ||
49 | pinctrl_user_leds: user_ledsgrp { | |
50 | fsl,pins = < | |
51 | MX6UL_PAD_JTAG_MOD__GPIO1_IO10 0x79 | |
52 | MX6UL_PAD_GPIO1_IO01__GPIO1_IO01 0x79 | |
53 | >; | |
54 | }; | |
55 | }; |