From c7d9cb3fa883ef08b072e4216eab2f669de05314 Mon Sep 17 00:00:00 2001 From: Patrick Moessler Date: Sat, 6 Jan 2024 22:03:37 +0100 Subject: [PATCH] add shield to add driver to hardware setup --- .../mlx90640_elecrow_i2c/Kconfig.defconfig | 12 ++++++++++++ .../shields/mlx90640_elecrow_i2c/Kconfig.shield | 6 ++++++ .../mlx90640_elecrow_i2c.overlay | 15 +++++++++++++++ .../elecrow_esp_terminal_defconfig | 3 ++- 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 boards/shields/mlx90640_elecrow_i2c/Kconfig.defconfig create mode 100644 boards/shields/mlx90640_elecrow_i2c/Kconfig.shield create mode 100644 boards/shields/mlx90640_elecrow_i2c/mlx90640_elecrow_i2c.overlay diff --git a/boards/shields/mlx90640_elecrow_i2c/Kconfig.defconfig b/boards/shields/mlx90640_elecrow_i2c/Kconfig.defconfig new file mode 100644 index 0000000..5baf2a5 --- /dev/null +++ b/boards/shields/mlx90640_elecrow_i2c/Kconfig.defconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2024 PM +# SPDX-License-Identifier: Apache-2.0 + +if SHIELD_MLX90640_ELECROW_I2C + +config SENSOR + default y + +config MLX90640 + default y + +endif # SHIELD_MLX90640_ELECROW_I2C diff --git a/boards/shields/mlx90640_elecrow_i2c/Kconfig.shield b/boards/shields/mlx90640_elecrow_i2c/Kconfig.shield new file mode 100644 index 0000000..41a678f --- /dev/null +++ b/boards/shields/mlx90640_elecrow_i2c/Kconfig.shield @@ -0,0 +1,6 @@ +# Copyright (c) 2024 PM +# +# SPDX-License-Identifier: Apache-2.0 + +config SHIELD_MLX90640_ELECROW_I2C + def_bool $(shields_list_contains,mlx90640_elecrow_i2c) diff --git a/boards/shields/mlx90640_elecrow_i2c/mlx90640_elecrow_i2c.overlay b/boards/shields/mlx90640_elecrow_i2c/mlx90640_elecrow_i2c.overlay new file mode 100644 index 0000000..5091f43 --- /dev/null +++ b/boards/shields/mlx90640_elecrow_i2c/mlx90640_elecrow_i2c.overlay @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2024 PM + * + * SPDX-License-Identifier: Apache-2.0 + */ + + &i2c0 { + status = "okay"; + + mlx90640_mlx90640_elecrow_i2c: mlx90640@33 { + compatible = "melexis,mlx90640"; + reg = <0x33>; + status = "okay"; + }; +}; diff --git a/boards/xtensa/elecrow_esp_terminal/elecrow_esp_terminal_defconfig b/boards/xtensa/elecrow_esp_terminal/elecrow_esp_terminal_defconfig index 3be7694..c59fb33 100644 --- a/boards/xtensa/elecrow_esp_terminal/elecrow_esp_terminal_defconfig +++ b/boards/xtensa/elecrow_esp_terminal/elecrow_esp_terminal_defconfig @@ -4,7 +4,8 @@ CONFIG_BOARD_ELECROW_ESP_TERMINAL=y CONFIG_SOC_SERIES_ESP32S3=y -CONFIG_MAIN_STACK_SIZE=8192 # increased for LVGL +# increased for LVGL +CONFIG_MAIN_STACK_SIZE=8192 CONFIG_CONSOLE=y CONFIG_SERIAL=y