1/* 2 * Copyright (c) 2019 Henrik Brix Andersen <henrik@brixandersen.dk> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <nordic/nrf52832_qfaa.dtsi> 9#include <nordic/nrf52840_partition.dtsi> 10#include "holyiot_yj16019-pinctrl.dtsi" 11#include <zephyr/dt-bindings/input/input-event-codes.h> 12 13/ { 14 model = "Holyiot YJ-16019"; 15 compatible = "holyiot,yj-16019"; 16 17 leds { 18 compatible = "gpio-leds"; 19 led0: led_0 { 20 gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; 21 label = "LED"; 22 }; 23 }; 24 25 buttons { 26 compatible = "gpio-keys"; 27 button0: button_0 { 28 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; 29 label = "Push button switch"; 30 zephyr,code = <INPUT_KEY_0>; 31 }; 32 }; 33 34 /* These aliases are provided for compatibility with samples */ 35 aliases { 36 sw0 = &button0; 37 led0 = &led0; 38 watchdog0 = &wdt0; 39 }; 40}; 41 42&gpiote { 43 status = "okay"; 44}; 45 46&gpio0 { 47 status = "okay"; 48}; 49 50&pwm0 { 51 status = "okay"; 52 pinctrl-0 = <&pwm0_default>; 53 pinctrl-1 = <&pwm0_sleep>; 54 pinctrl-names = "default", "sleep"; 55}; 56