/* * Copyright 2024 NXP * * SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include #include "frdm_ke17z-pinctrl.dtsi" #include #include / { model = "NXP Freedom KE17Z board"; compatible = "nxp,frdm-ke17z", "nxp,ke17z", "nxp,mke17z7"; aliases { watchdog0 = &wdog; led0 = &red_led; led1 = &green_led; led2 = &blue_led; sw0 = &user_button_0; sw1 = &user_button_1; pwm-led0 = &red_pwm_led; pwm-led1 = &green_pwm_led; pwm-led2 = &blue_pwm_led; mcuboot-button0 = &user_button_0; }; chosen { zephyr,sram = &sram_u; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zephyr,uart-mcumgr = &lpuart0; zephyr,console = &lpuart0; zephyr,shell-uart = &lpuart0; }; leds { compatible = "gpio-leds"; red_led: led_0 { gpios = <&gpiod 10 GPIO_ACTIVE_LOW>; label = "RGB RED"; }; green_led: led_1 { gpios = <&gpiod 11 GPIO_ACTIVE_LOW>; label = "RGB GREEN"; }; blue_led: led_2 { gpios = <&gpiod 12 GPIO_ACTIVE_LOW>; label = "RGB BLUE"; }; }; pwmleds { compatible = "pwm-leds"; red_pwm_led: led_pwm_0 { pwms = <&ftm2 0 PWM_HZ(20) PWM_POLARITY_INVERTED>; label = "RED RGB PWM LED"; }; green_pwm_led: led_pwm_1 { pwms = <&ftm2 1 PWM_MSEC(20) PWM_POLARITY_INVERTED>; label = "GREEN RGB PWM LED"; }; blue_pwm_led: led_pwm_2 { pwms = <&ftm2 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>; label = "BLUE RGB PWM LED"; }; }; gpio_keys { compatible = "gpio-keys"; user_button_0: button_0 { label = "User SW2"; gpios = <&gpiod 3 GPIO_ACTIVE_LOW>; zephyr,code = ; }; user_button_1: button_1 { label = "User SW3"; gpios = <&gpioe 14 GPIO_ACTIVE_LOW>; zephyr,code = ; }; }; }; &idle { min-residency-us = <1>; }; &stop { min-residency-us = <20000>; exit-latency-us = <13>; }; &lpuart0 { dmas = <&edma 1 2>, <&edma 2 3>; dma-names = "rx", "tx"; status = "okay"; current-speed = <115200>; pinctrl-0 = <&lpuart0_default>; pinctrl-names = "default"; }; &adc0 { status = "okay"; sample-time = <12>; vref-mv = <3300>; pinctrl-0 = <&adc0_default>; pinctrl-names = "default"; }; &lpi2c0 { status = "okay"; pinctrl-0 = <&lpi2c0_default>; pinctrl-names = "default"; }; &gpiod { status = "okay"; }; &gpioe { status = "okay"; }; &ftm2 { status = "okay"; compatible = "nxp,ftm-pwm"; #pwm-cells = <3>; clocks = <&scg KINETIS_SCG_SIRC_CLK>; prescaler = <128>; pinctrl-0 = <&ftm2_default>; pinctrl-names = "default"; clock-source = "system"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x0 DT_SIZE_K(44)>; }; /* The MCUBoot swap-move algorithm uses the last 2 sectors * of the primary slot0 for swap status and move. */ slot0_partition: partition@b000 { label = "image-0"; reg = <0xb000 (DT_SIZE_K(98) + DT_SIZE_K(4))>; }; slot1_partition: partition@24800 { label = "image-1"; reg = <0x24800 DT_SIZE_K(98)>; }; storage_partition: partition@3d000 { label = "storage"; reg = <0x3d000 DT_SIZE_K(12)>; }; }; }; &lpspi0 { dmas = <&edma 0 14>, <&edma 1 15>; dma-names = "rx", "tx"; status = "okay"; pinctrl-0 = <&lpspi0_default>; pinctrl-names = "default"; }; &edma { status = "okay"; }; &wdog { status = "okay"; };