1/* 2 * Copyright (c) 2021, Jonathan Hahn 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/ { 8 aliases { 9 magn0 = &lsm303agr_magn; 10 accel0 = &lsm303agr_accel; 11 }; 12}; 13 14&i2c1 { 15 /delete-node/ lsm303dlhc-magn@1e; 16 /delete-node/ lsm303dlhc-accel@19; 17 18 lsm303agr_magn: lsm303agr-magn@1e { 19 compatible = "st,lis2mdl", "st,lsm303agr-magn"; 20 reg = <0x1e>; 21 }; 22 23 lsm303agr_accel: lsm303agr-accel@19 { 24 compatible = "st,lis2dh", "st,lsm303agr-accel"; 25 reg = <0x19>; 26 irq-gpios = <&gpioe 4 GPIO_ACTIVE_HIGH>, 27 <&gpioe 5 GPIO_ACTIVE_HIGH>; 28 }; 29}; 30 31&spi1 { 32 cs-gpios = <&gpioe 3 GPIO_ACTIVE_LOW>; 33 i3g4250d@0 { 34 compatible = "st,i3g4250d"; 35 reg = <0>; 36 spi-max-frequency = <1000000>; 37 }; 38}; 39