Skip to content

Commit 00e217d

Browse files
ttmutcfriedt
authored andcommitted
boards: adi: max32657evkit: Add adxl367 accelerometer
Add support for ADXL367 accelerometer connected to I3C bus. Signed-off-by: Tahsin Mutlugun <[email protected]>
1 parent 6320e50 commit 00e217d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

boards/adi/max32657evkit/Kconfig.defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,7 @@ endchoice
4242

4343
endif # BOARD_MAX32657EVKIT_MAX32657_NS
4444

45+
config I3C
46+
default y if ADXL367
47+
4548
endif # BOARD_MAX32657EVKIT

boards/adi/max32657evkit/max32657evkit_max32657_common.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
/* These aliases are provided for compatibility with samples */
4141
aliases {
42+
accel0 = &adxl367;
4243
led0 = &led1;
4344
sw0 = &pb1;
4445
watchdog0 = &wdt0;
@@ -84,4 +85,10 @@
8485
i2c-scl-hz = <DT_FREQ_K(200)>;
8586
i3c-scl-hz = <DT_FREQ_K(800)>;
8687
i3c-od-scl-hz = <DT_FREQ_K(400)>;
88+
89+
adxl367: adxl367@530000000000000000 {
90+
compatible = "adi,adxl367";
91+
reg = <0x53 0x00 0x00>;
92+
status = "okay";
93+
};
8794
};

0 commit comments

Comments
 (0)