Skip to content

Commit

Permalink
samples: accel_trig: add dts trigger mode for unsupport platform
Browse files Browse the repository at this point in the history
mimxrt1040_evk and twr_ke18f need board rework for trigger mode
so dts need changed to add gpio trigger

fixes: #85444

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
  • Loading branch information
hakehuang committed Feb 11, 2025
1 parent b10587f commit 56d6f4b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions samples/sensor/accel_trig/boards/mimxrt1040_evk.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2025 NXP
*/


&fxls8974 {
status = "okay";
int1-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
int2-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
11 changes: 11 additions & 0 deletions samples/sensor/accel_trig/boards/twr_ke18f.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2025 NXP
*/

&fxos8700 {
status = "okay";
int1-gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
int2-gpios = <&gpioa 17 GPIO_ACTIVE_LOW>;
};

0 comments on commit 56d6f4b

Please sign in to comment.