1/*
2 * Copyright 2024 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/**
8 * Apply this overlay to test RFU_BTN1 and RFU_BTN2 on PCAL6524.
9 *
10 * The user buttons RFU_BTN1 and RFU_BTN2 is connected to i.MX 93 GPIO by default,
11 * but can be changed to connect to onboard GPIO expander PCAL6524. To do this,
12 * switch SW1006 to 0000, then switch SW1005 to 0101.
13 */
14
15/* Remove default keys */
16/delete-node/ &btn_1;
17/delete-node/ &btn_2;
18
19/ {
20	keys {
21		compatible = "gpio-keys";
22
23		btn_1: btn_1{
24			label = "BTN1";
25			gpios = <&gpio_exp1 5 GPIO_ACTIVE_LOW>;
26			zephyr,code = <INPUT_KEY_0>;
27		};
28
29		btn_2: btn_2{
30			label = "BTN2";
31			gpios = <&gpio_exp1 6 GPIO_ACTIVE_LOW>;
32			zephyr,code = <INPUT_KEY_1>;
33		};
34	};
35};
36