1/* 2 * Copyright (c) 2019 SEAL AG 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8 9#include <nxp/nxp_kv58f1m0vlx24.dtsi> 10#include "twr_kv58f220m-pinctrl.dtsi" 11#include <zephyr/dt-bindings/input/input-event-codes.h> 12 13/ { 14 model = "NXP Kinetis KV58 MCU Tower System Module"; 15 compatible = "nxp,mkv58f24", "nxp,kv58", "nxp,kv5x"; 16 17 aliases { 18 led0 = &red_led; 19 led1 = &green_led; 20 led2 = &blue_led; 21 led3 = &orange_led; 22 sw0 = &user_button_0; 23 sw1 = &user_button_1; 24 sw2 = &user_button_2; 25 sw3 = &user_button_3; 26 magn0 = &fxos8700; 27 accel0 = &fxos8700; 28 }; 29 30 chosen { 31 zephyr,sram = &sram0; 32 zephyr,flash = &flash0; 33 zephyr,code-partition = &slot0_partition; 34 zephyr,console = &uart0; 35 zephyr,shell-uart = &uart0; 36 zephyr,uart-pipe = &uart0; 37 }; 38 39 leds { 40 compatible = "gpio-leds"; 41 red_led: led_0 { 42 gpios = <&gpioe 11 0>; 43 label = "User LED D4"; 44 }; 45 green_led: led_1 { 46 gpios = <&gpioe 12 0>; 47 label = "User LED D3"; 48 }; 49 blue_led: led_2 { 50 gpios = <&gpioe 29 0>; 51 label = "User LED D2"; 52 }; 53 orange_led: led_3 { 54 gpios = <&gpioe 30 0>; 55 label = "User LED D1"; 56 }; 57 }; 58 59 gpio_keys { 60 compatible = "gpio-keys"; 61 user_button_0: button_0 { 62 label = "User SW2"; 63 gpios = <&gpioa 4 GPIO_ACTIVE_LOW>; 64 zephyr,code = <INPUT_KEY_0>; 65 }; 66 user_button_1: button_1 { 67 label = "User SW3"; 68 gpios = <&gpioe 4 GPIO_ACTIVE_LOW>; 69 zephyr,code = <INPUT_KEY_1>; 70 }; 71 user_button_2: button_2 { 72 label = "User SW4"; 73 gpios = <&gpiob 5 GPIO_ACTIVE_LOW>; 74 zephyr,code = <INPUT_KEY_2>; 75 }; 76 user_button_3: button_3 { 77 label = "User SW5"; 78 gpios = <&gpiob 4 GPIO_ACTIVE_LOW>; 79 zephyr,code = <INPUT_KEY_3>; 80 }; 81 }; 82}; 83 84&sim { 85 pllfll-select = <KINETIS_SIM_PLLFLLSEL_MCGPLLCLK>; 86 er32k-select = <KINETIS_SIM_ER32KSEL_OSC32KCLK>; 87}; 88 89 90&gpioa { 91 status = "okay"; 92}; 93 94&gpiob { 95 status = "okay"; 96}; 97 98&gpioc { 99 status = "okay"; 100}; 101 102&gpiod { 103 status = "okay"; 104}; 105 106&gpioe { 107 status = "okay"; 108}; 109 110&flash0 { 111 112 partitions { 113 compatible = "fixed-partitions"; 114 #address-cells = <1>; 115 #size-cells = <1>; 116 117 boot_partition: partition@0 { 118 label = "mcuboot"; 119 reg = <0x00000000 0x10000>; 120 }; 121 storage_partition: partition@10000 { 122 label = "storage"; 123 reg = <0x00010000 0x10000>; 124 }; 125 slot0_partition: partition@20000 { 126 label = "image-0"; 127 reg = <0x00020000 0x60000>; 128 }; 129 slot1_partition: partition@80000 { 130 label = "image-1"; 131 reg = <0x00080000 0x60000>; 132 }; 133 scratch_partition: partition@e0000 { 134 label = "image-scratch"; 135 reg = <0x000e0000 0x20000>; 136 }; 137 }; 138}; 139 140&i2c1 { 141 status = "okay"; 142 pinctrl-0 = <&i2c1_default>; 143 pinctrl-names = "default"; 144 145 fxos8700: fxos8700@1c { 146 compatible = "nxp,fxos8700"; 147 reg = <0x1c>; 148 int1-gpios = <&gpioc 18 GPIO_ACTIVE_LOW>; 149 int2-gpios = <&gpioc 19 GPIO_ACTIVE_LOW>; 150 }; 151}; 152 153&uart0 { 154 status = "okay"; 155 current-speed = <115200>; 156 pinctrl-0 = <&uart0_default>; 157 pinctrl-names = "default"; 158}; 159