/* SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include #include #include "hexiwear_mk64f12-pinctrl.dtsi" / { model = "Hexiwear K64 board"; compatible = "nxp,hexiwear", "nxp,k64f", "nxp,k6x"; aliases { led0 = &green_led; led1 = &blue_led; led2 = &red_led; pwm-led0 = &green_pwm_led; red-pwm-led = &red_pwm_led; green-pwm-led = &green_pwm_led; blue-pwm-led = &blue_pwm_led; magn0 = &fxos8700; accel0 = &fxos8700; }; chosen { zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zephyr,uart-mcumgr = &uart0; zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,bt-hci = &bt_hci_uart; }; leds { compatible = "gpio-leds"; red_led: led_0 { gpios = <&gpioc 8 GPIO_ACTIVE_LOW>; label = "User LD1"; }; green_led: led_1 { gpios = <&gpiod 0 GPIO_ACTIVE_LOW>; label = "User LD2"; }; blue_led: led_2 { gpios = <&gpioc 9 GPIO_ACTIVE_LOW>; label = "User LD3"; }; }; pwmleds { compatible = "pwm-leds"; red_pwm_led: red_pwm_led { pwms = <&ftm3 4 15625000 PWM_POLARITY_INVERTED>; }; green_pwm_led: green_pwm_led { pwms = <&ftm3 0 15625000 PWM_POLARITY_INVERTED>; }; blue_pwm_led: blue_pwm_led { pwms = <&ftm3 5 15625000 PWM_POLARITY_INVERTED>; }; }; en_bat_sens: enable-battery-sense { compatible = "regulator-fixed"; regulator-name = "en_bat_sens"; enable-gpios = <&gpioc 14 GPIO_ACTIVE_LOW>; regulator-boot-on; }; en_ldo: enable-ldo { compatible = "regulator-fixed"; regulator-name = "en_ldo"; enable-gpios = <&gpioa 29 GPIO_ACTIVE_HIGH>; regulator-boot-on; }; en_3v3b: enable-3v3b { compatible = "regulator-fixed"; regulator-name = "en_3v3b"; enable-gpios = <&gpiob 12 GPIO_ACTIVE_LOW>; regulator-boot-on; }; }; &sim { pllfll-select = ; er32k-select = ; }; &cpu0 { clock-frequency = <120000000>; }; &adc0 { status = "okay"; }; &adc1 { status = "okay"; }; &ftm3 { status = "okay"; compatible = "nxp,ftm-pwm"; #pwm-cells = <3>; pinctrl-0 = <&ftm3_default>; pinctrl-names = "default"; clock-source = "fixed"; }; &i2c0 { status = "okay"; pinctrl-0 = <&i2c0_default>; pinctrl-names = "default"; max30101@57 { status = "disabled"; compatible = "maxim,max30101"; reg = <0x57>; }; }; &i2c1 { status = "okay"; pinctrl-0 = <&i2c1_default>; pinctrl-names = "default"; fxos8700: fxos8700@1e { compatible = "nxp,fxos8700"; reg = <0x1e>; int1-gpios = <&gpioc 1 GPIO_ACTIVE_LOW>; int2-gpios = <&gpiod 13 GPIO_ACTIVE_LOW>; }; fxas21002@20 { compatible = "nxp,fxas21002"; reg = <0x20>; int1-gpios = <&gpiod 1 GPIO_ACTIVE_LOW>; int2-gpios = <&gpioc 18 GPIO_ACTIVE_LOW>; }; }; &uart0 { status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-names = "default"; }; &uart4 { status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart4_default>; pinctrl-names = "default"; bt_hci_uart: bt_hci_uart { compatible = "zephyr,bt-hci-uart"; status = "okay"; }; }; &gpioa { status = "okay"; }; &gpiob { status = "okay"; }; &gpioc { status = "okay"; }; &gpiod { status = "okay"; }; &gpioe { status = "okay"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 DT_SIZE_K(64)>; read-only; }; /* The MCUBoot swap-move algorithm uses the last 2 sectors * of the primary slot0 for swap status and move. */ slot0_partition: partition@10000 { label = "image-0"; reg = <0x00010000 (DT_SIZE_K(416) + DT_SIZE_K(8))>; }; slot1_partition: partition@7a000 { label = "image-1"; reg = <0x0007a000 DT_SIZE_K(416)>; }; storage_partition: partition@e2000 { label = "storage"; reg = <0x000e2000 DT_SIZE_K(120)>; }; }; };