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