Boot Linux faster!

Check our new training course

Boot Linux faster!

Check our new training course
and Creative Commons CC-BY-SA
lecture and lab materials

Bootlin logo

Elixir Cross Referencer

/*
 * Copyright (c) 2021, Linaro Limited
 *
 * SPDX-License-Identifier: Apache-2.0
 */

&i2c1 {
    /delete-node/ lsm303agr-magn@1e;
    /delete-node/ lsm303agr-accel@19;

	lsm303dlhc-magn@1e {
		compatible = "st,lsm303dlhc-magn";
        status = "okay";
		reg = <0x1e>;
		label = "LSM303DLHC-MAGN";
	};

	lsm303dlhc-accel@19 {
		compatible = "st,lis2dh", "st,lsm303dlhc-accel";
        status = "okay";
		reg = <0x19>;
		irq-gpios = <&gpioe 4 GPIO_ACTIVE_HIGH>,
			  <&gpioe 5 GPIO_ACTIVE_HIGH>;
		label = "LSM303DLHC-ACCEL";
	};
};