Commit 2df6b7fd authored by Emilio Benavente's avatar Emilio Benavente Committed by Benjamin Cabé
Browse files

boards: nxp: frdm_rw612: Added Button Support

Updated dts to add Button Support. SW2

Signed-off-by: default avatarEmilio Benavente <emilio.benavente@nxp.com>
parent c08edf7a
Loading
Loading
Loading
Loading
+12 −0
Changes for boards/nxp/frdm_rw612/frdm_rw612_common.dtsi: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
 */

#include "frdm_rw612-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>

/ {
	model = "nxp,frdm_rw612";
@@ -15,6 +16,7 @@
		usart-0 = &flexcomm3;
		i2c-0 = &flexcomm2;
		pwm-0 = &sctimer;
		sw0 = &user_button_0;
	};

	chosen {
@@ -33,6 +35,16 @@
			gpios = <&hsgpio0 12 GPIO_ACTIVE_LOW>;
		};
	};

	gpio_keys {
		compatible = "gpio-keys";
		user_button_0: button_0 {
			label = "User SW2";
			gpios = <&hsgpio0 11 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
			zephyr,code = <INPUT_KEY_0>;
			status = "okay";
		};
	};
};

&flexcomm3 {