1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 /* 2 /* 3 * Copyright (C) 2016 PHYTEC Messtechnik 3 * Copyright (C) 2016 PHYTEC Messtechnik 4 * Author: Christian Hemp <c.hemp@phytec.de> 4 * Author: Christian Hemp <c.hemp@phytec.de> 5 */ 5 */ 6 6 7 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/input/input.h> 8 8 9 / { 9 / { 10 gpio_keys: gpio-keys { 10 gpio_keys: gpio-keys { 11 compatible = "gpio-key"; 11 compatible = "gpio-key"; 12 pinctrl-names = "default"; 12 pinctrl-names = "default"; 13 pinctrl-0 = <&pinctrl_gpio_key 13 pinctrl-0 = <&pinctrl_gpio_keys>; 14 status = "disabled"; 14 status = "disabled"; 15 15 16 power { 16 power { 17 label = "Power Button" 17 label = "Power Button"; 18 gpios = <&gpio5 0 GPIO 18 gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; 19 linux,code = <KEY_POWE 19 linux,code = <KEY_POWER>; 20 wakeup-source; 20 wakeup-source; 21 }; 21 }; 22 }; 22 }; 23 23 24 user_leds: user-leds { 24 user_leds: user-leds { 25 compatible = "gpio-leds"; 25 compatible = "gpio-leds"; 26 pinctrl-names = "default"; 26 pinctrl-names = "default"; 27 pinctrl-0 = <&pinctrl_user_led 27 pinctrl-0 = <&pinctrl_user_leds>; 28 status = "disabled"; 28 status = "disabled"; 29 29 30 user-led1 { 30 user-led1 { 31 gpios = <&gpio1 10 GPI 31 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; 32 linux,default-trigger 32 linux,default-trigger = "gpio"; 33 default-state = "on"; 33 default-state = "on"; 34 }; 34 }; 35 35 36 user-led2 { 36 user-led2 { 37 gpios = <&gpio1 1 GPIO 37 gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; 38 linux,default-trigger 38 linux,default-trigger = "gpio"; 39 default-state = "on"; 39 default-state = "on"; 40 }; 40 }; 41 }; 41 }; 42 }; 42 }; 43 43 44 &iomuxc { 44 &iomuxc { 45 pinctrl_gpio_keys: gpio_keysgrp { 45 pinctrl_gpio_keys: gpio_keysgrp { 46 fsl,pins = < 46 fsl,pins = < 47 MX6UL_PAD_SNVS_TAMPER0 47 MX6UL_PAD_SNVS_TAMPER0__GPIO5_IO00 0x79 48 >; 48 >; 49 }; 49 }; 50 50 51 pinctrl_user_leds: user_ledsgrp { 51 pinctrl_user_leds: user_ledsgrp { 52 fsl,pins = < 52 fsl,pins = < 53 MX6UL_PAD_JTAG_MOD__GP 53 MX6UL_PAD_JTAG_MOD__GPIO1_IO10 0x79 54 MX6UL_PAD_GPIO1_IO01__ 54 MX6UL_PAD_GPIO1_IO01__GPIO1_IO01 0x79 55 >; 55 >; 56 }; 56 }; 57 }; 57 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.