1/* 2 * Copyright (c) 2021 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_led; 11 sw0 = &user_bt; 12 }; 13 14 leds { 15 compatible = "gpio-leds"; 16 user_led: led_0 { 17 label = "LED_0"; 18 gpios = <&gpio_prt13 7 GPIO_ACTIVE_HIGH>; 19 }; 20 }; 21 22 gpio_keys { 23 compatible = "gpio-keys"; 24 25 user_bt: button_0 { 26 label = "SW_0"; 27 gpios = <&gpio_prt0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 28 zephyr,code = <INPUT_KEY_0>; 29 }; 30 }; 31}; 32 33&gpio_prt0 { 34 status = "okay"; 35}; 36 37&gpio_prt3 { 38 status = "okay"; 39}; 40 41&gpio_prt5 { 42 status = "okay"; 43}; 44 45&gpio_prt6 { 46 status = "okay"; 47}; 48 49&gpio_prt9 { 50 status = "okay"; 51}; 52 53&gpio_prt12 { 54 status = "okay"; 55}; 56 57&gpio_prt13 { 58 status = "okay"; 59}; 60