| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (C) 2025 PHYTEC Messtechnik GmbH |
| 4 |
* Author: Andrej Picej <[email protected]> |
| 5 |
*/ |
| 6 |
|
| 7 |
/dts-v1/; |
| 8 |
/plugin/; |
| 9 |
|
| 10 |
#include <dt-bindings/gpio/gpio.h> |
| 11 |
#include <dt-bindings/input/input.h> |
| 12 |
#include "imx93-pinfunc.h" |
| 13 |
|
| 14 |
&{/} { |
| 15 |
gpio-keys { |
| 16 |
compatible = "gpio-keys"; |
| 17 |
pinctrl-names = "default"; |
| 18 |
pinctrl-0 = <&pinctrl_gpio_keys>; |
| 19 |
|
| 20 |
button-s2 { |
| 21 |
label = "sleep"; |
| 22 |
linux,code = <KEY_SLEEP>; |
| 23 |
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
| 24 |
wakeup-source; |
| 25 |
}; |
| 26 |
}; |
| 27 |
|
| 28 |
user-leds { |
| 29 |
compatible = "gpio-leds"; |
| 30 |
pinctrl-names = "default"; |
| 31 |
pinctrl-0 = <&pinctrl_user_leds>; |
| 32 |
|
| 33 |
user-led2 { |
| 34 |
gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>; |
| 35 |
default-state = "on"; |
| 36 |
}; |
| 37 |
}; |
| 38 |
}; |
| 39 |
|
| 40 |
&iomuxc { |
| 41 |
pinctrl_gpio_keys: gpiokeysgrp { |
| 42 |
fsl,pins = < |
| 43 |
MX93_PAD_PDM_BIT_STREAM1__GPIO1_IO10 0x31e |
| 44 |
>; |
| 45 |
}; |
| 46 |
|
| 47 |
pinctrl_user_leds: userledsgrp { |
| 48 |
fsl,pins = < |
| 49 |
MX93_PAD_ENET1_RD3__GPIO4_IO13 0x31e |
| 50 |
>; |
| 51 |
}; |
| 52 |
}; |