1/* 2 * Copyright (c) 2020 STMicroelectronics 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/* 8 * Mode 1: Standard Mode 9 * 10 * JP7 => 1-2, 3-4 (I2C1 = I2C2, I2Cx=GND) 11 * JP8 => 1-2, 3-4 (I2C1 = I2C2, I2Cx=GND) 12 * 13 * ISM330DHCX, IIS2MDC and IIS2DLPC sensors are accessible from the main board mcu. 14 */ 15 16/ { 17 aliases { 18 accel0 = &iis2dlpc_19_x_nucleo_iks02a1; 19 accel1 = &ism330dhcx_6b_x_nucleo_iks02a1; 20 }; 21}; 22 23&arduino_i2c { 24 25 iis2dlpc_19_x_nucleo_iks02a1: iis2dlpc@19 { 26 compatible = "st,iis2dlpc"; 27 reg = <0x19>; 28 drdy-gpios = <&arduino_header 4 GPIO_ACTIVE_HIGH>; /* A4 - INT2 */ 29 drdy-int = <2>; 30 }; 31 32 iis2mdc_x_nucleo_iks02a1: iis2mdc@1e { 33 compatible = "st,iis2mdc"; 34 reg = <0x1e>; 35 drdy-gpios = <&arduino_header 2 GPIO_ACTIVE_HIGH>; /* A2 */ 36 }; 37 38 ism330dhcx_6b_x_nucleo_iks02a1: ism330dhcx@6b { 39 compatible = "st,ism330dhcx"; 40 reg = <0x6b>; 41 drdy-gpios = <&arduino_header 11 GPIO_ACTIVE_HIGH>; /* D5 - INT2 */ 42 int-pin = <2>; 43 }; 44}; 45