1/* 2 * Copyright (c) 2020 STMicroelectronics 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/* 8 * Mode 2: SensorHub Mode 9 * 10 * JP7 => 2-3 (I2C1 = I2Cx) 11 * JP8 => 2-3 (I2C1 = I2Cx) 12 * 13 * Only ISM330DHCX and IIS2DLPC sensors are accessible from the main board mcu. 14 * IIS2MDC is connected directly to ISM330DHCX SCx/SDX (I2Cx) pins, so it is not 15 * declared in DTS file. 16 */ 17 18/ { 19 aliases { 20 accel0 = &iis2dlpc_19_x_nucleo_iks02a1_shub; 21 accel1 = &ism330dhcx_6b_x_nucleo_iks02a1_shub; 22 }; 23}; 24 25&arduino_i2c { 26 27 iis2dlpc_19_x_nucleo_iks02a1_shub: iis2dlpc@19 { 28 compatible = "st,iis2dlpc"; 29 reg = <0x19>; 30 drdy-gpios = <&arduino_header 4 GPIO_ACTIVE_HIGH>; /* A4 - INT2 */ 31 drdy-int = <2>; 32 }; 33 34 ism330dhcx_6b_x_nucleo_iks02a1_shub: ism330dhcx@6b { 35 compatible = "st,ism330dhcx"; 36 reg = <0x6b>; 37 drdy-gpios = <&arduino_header 11 GPIO_ACTIVE_HIGH>; /* D5 - INT2 */ 38 int-pin = <2>; 39 }; 40}; 41