boards: Set devicetree alias for ST LSM6DSL nodes
Set accel0 alias for all boards with the LSM6DSL accelerometer to use by the accel_polling sample. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
This commit is contained in:
parent
d481a25493
commit
49fa59b72c
7 changed files with 12 additions and 20 deletions
|
@ -43,6 +43,7 @@
|
|||
led0 = &green_led_0;
|
||||
led1 = &green_led_1;
|
||||
sw0 = &user_button;
|
||||
accel0 = &lsm6dsl;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -94,7 +95,7 @@
|
|||
status = "okay";
|
||||
|
||||
/* ST Microelectronics LSM6DSL accel/gyro sensor */
|
||||
lsm6dsl@1 {
|
||||
lsm6dsl: lsm6dsl@1 {
|
||||
compatible = "st,lsm6dsl";
|
||||
reg = <1>;
|
||||
spi-max-frequency = <1000000>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue