1/* 2 * Copyright 2024 NXP 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8 9#include <nxp/nxp_ke17z.dtsi> 10#include "frdm_ke17z-pinctrl.dtsi" 11#include <zephyr/dt-bindings/input/input-event-codes.h> 12 13/ { 14 model = "NXP Freedom KE17Z board"; 15 compatible = "nxp,frdm-ke17z", "nxp,ke17z", "nxp,mke17z7"; 16 17 aliases { 18 led0 = &red_led; 19 led1 = &green_led; 20 led2 = &blue_led; 21 sw0 = &user_button_0; 22 sw1 = &user_button_1; 23 }; 24 25 chosen { 26 zephyr,sram = &sram_u; 27 zephyr,flash = &flash0; 28 zephyr,console = &lpuart0; 29 zephyr,shell-uart = &lpuart0; 30 }; 31 32 leds { 33 compatible = "gpio-leds"; 34 red_led: led_0 { 35 gpios = <&gpiod 10 GPIO_ACTIVE_LOW>; 36 label = "RGB RED"; 37 }; 38 green_led: led_1 { 39 gpios = <&gpiod 11 GPIO_ACTIVE_LOW>; 40 label = "RGB GREEN"; 41 }; 42 blue_led: led_2 { 43 gpios = <&gpiod 12 GPIO_ACTIVE_LOW>; 44 label = "RGB BLUE"; 45 }; 46 }; 47 48 gpio_keys { 49 compatible = "gpio-keys"; 50 user_button_0: button_0 { 51 label = "User SW2"; 52 gpios = <&gpiod 3 GPIO_ACTIVE_LOW>; 53 zephyr,code = <INPUT_KEY_0>; 54 }; 55 user_button_1: button_1 { 56 label = "User SW3"; 57 gpios = <&gpioe 14 GPIO_ACTIVE_LOW>; 58 zephyr,code = <INPUT_KEY_1>; 59 }; 60 }; 61}; 62 63&lpuart0 { 64 status = "okay"; 65 current-speed = <115200>; 66 pinctrl-0 = <&lpuart0_default>; 67 pinctrl-names = "default"; 68}; 69 70&lpi2c0 { 71 status = "okay"; 72 pinctrl-0 = <&lpi2c0_default>; 73 pinctrl-names = "default"; 74}; 75 76&gpiod { 77 status = "okay"; 78}; 79 80&gpioe { 81 status = "okay"; 82}; 83 84&flash0 { 85 partitions { 86 compatible = "fixed-partitions"; 87 #address-cells = <1>; 88 #size-cells = <1>; 89 90 boot_partition: partition@0 { 91 label = "mcuboot"; 92 reg = <0x0 DT_SIZE_K(44)>; 93 }; 94 /* The MCUBoot swap-move algorithm uses the last 2 sectors 95 * of the primary slot0 for swap status and move. 96 */ 97 slot0_partition: partition@b000 { 98 label = "image-0"; 99 reg = <0xb000 (DT_SIZE_K(98) + DT_SIZE_K(4))>; 100 }; 101 slot1_partition: partition@24800 { 102 label = "image-1"; 103 reg = <0x24800 DT_SIZE_K(98)>; 104 }; 105 storage_partition: partition@3d000 { 106 label = "storage"; 107 reg = <0x3d000 DT_SIZE_K(12)>; 108 }; 109 }; 110}; 111