1/* 2 * Copyright (c) 2024 Cypress Semiconductor Corporation. 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6#include <zephyr/dt-bindings/input/input-event-codes.h> 7 8/ { 9 aliases { 10 led0 = &user_led0; 11 led1 = &user_led1; 12 sw0 = &user_bt0; 13 sw1 = &user_bt1; 14 }; 15 16 leds { 17 compatible = "gpio-leds"; 18 user_led0: led_0 { 19 label = "LED_0"; 20 gpios = <&gpio_prt1 1 GPIO_ACTIVE_LOW>; 21 }; 22 23 user_led1: led_1 { 24 label = "LED_1"; 25 gpios = <&gpio_prt5 2 GPIO_ACTIVE_LOW>; 26 }; 27 }; 28 29 gpio_keys { 30 compatible = "gpio-keys"; 31 32 user_bt0: user_btn0 { 33 label = "SW_1"; 34 gpios = <&gpio_prt0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 35 zephyr,code = <INPUT_KEY_0>; 36 }; 37 38 user_bt1: user_btn1 { 39 label = "SW_2"; 40 gpios = <&gpio_prt1 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 41 zephyr,code = <INPUT_KEY_1>; 42 }; 43 }; 44}; 45 46&gpio_prt0 { 47 status = "okay"; 48}; 49 50&gpio_prt1 { 51 status = "okay"; 52}; 53 54&gpio_prt3 { 55 status = "okay"; 56}; 57 58&gpio_prt5 { 59 status = "okay"; 60}; 61