35 lines
656 B
Plaintext
35 lines
656 B
Plaintext
/*
|
|
* Copyright (c) 2021, Jonathan Hahn
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
&i2c1 {
|
|
/delete-node/ lsm303dlhc-magn@1e;
|
|
/delete-node/ lsm303dlhc-accel@19;
|
|
|
|
lsm303agr-magn@1e {
|
|
compatible = "st,lis2mdl", "st,lsm303agr-magn";
|
|
reg = <0x1e>;
|
|
label = "LSM303AGR-MAGN";
|
|
};
|
|
|
|
lsm303agr-accel@19 {
|
|
compatible = "st,lis2dh", "st,lsm303agr-accel";
|
|
reg = <0x19>;
|
|
irq-gpios = <&gpioe 4 GPIO_ACTIVE_HIGH>,
|
|
<&gpioe 5 GPIO_ACTIVE_HIGH>;
|
|
label = "LSM303AGR-ACCEL";
|
|
};
|
|
};
|
|
|
|
&spi1 {
|
|
cs-gpios = <&gpioe 3 GPIO_ACTIVE_LOW>;
|
|
i3g4250d@0 {
|
|
compatible = "st,i3g4250d";
|
|
reg = <0>;
|
|
spi-max-frequency = <1000000>;
|
|
label = "I3G4250D";
|
|
};
|
|
};
|