boards: Set devicetree alias for ST ISM330DHCX nodes

Set accel0 alias for all boards with the ISM330DHCX accelerometer
to use by the accel_polling sample.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
This commit is contained in:
TOKITA Hiroshi 2022-07-22 08:20:17 +09:00 committed by Maureen Helm
commit d481a25493
2 changed files with 4 additions and 2 deletions

View file

@ -16,6 +16,7 @@
/ {
aliases {
accel0 = &iis2dlpc;
accel1 = &ism330dhcx;
};
};
@ -34,7 +35,7 @@
drdy-gpios = <&arduino_header 2 GPIO_ACTIVE_HIGH>; /* A2 */
};
ism330dhcx@6b {
ism330dhcx: ism330dhcx@6b {
compatible = "st,ism330dhcx";
reg = <0x6b>;
drdy-gpios = <&arduino_header 11 GPIO_ACTIVE_HIGH>; /* D5 - INT2 */

View file

@ -18,6 +18,7 @@
/ {
aliases {
accel0 = &iis2dlpc;
accel1 = &ism330dhcx;
};
};
@ -30,7 +31,7 @@
drdy-int = <2>;
};
ism330dhcx@6b {
ism330dhcx: ism330dhcx@6b {
compatible = "st,ism330dhcx";
reg = <0x6b>;
drdy-gpios = <&arduino_header 11 GPIO_ACTIVE_HIGH>; /* D5 - INT2 */