boards: Set devicetree alias for ST ISM330DHCX nodes
Set accel0 alias for all boards with the ISM330DHCX accelerometer to use by the accel_polling sample. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
This commit is contained in:
parent
d8c57bf9fb
commit
d481a25493
2 changed files with 4 additions and 2 deletions
|
@ -16,6 +16,7 @@
|
|||
/ {
|
||||
aliases {
|
||||
accel0 = &iis2dlpc;
|
||||
accel1 = &ism330dhcx;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -34,7 +35,7 @@
|
|||
drdy-gpios = <&arduino_header 2 GPIO_ACTIVE_HIGH>; /* A2 */
|
||||
};
|
||||
|
||||
ism330dhcx@6b {
|
||||
ism330dhcx: ism330dhcx@6b {
|
||||
compatible = "st,ism330dhcx";
|
||||
reg = <0x6b>;
|
||||
drdy-gpios = <&arduino_header 11 GPIO_ACTIVE_HIGH>; /* D5 - INT2 */
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
/ {
|
||||
aliases {
|
||||
accel0 = &iis2dlpc;
|
||||
accel1 = &ism330dhcx;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -30,7 +31,7 @@
|
|||
drdy-int = <2>;
|
||||
};
|
||||
|
||||
ism330dhcx@6b {
|
||||
ism330dhcx: ism330dhcx@6b {
|
||||
compatible = "st,ism330dhcx";
|
||||
reg = <0x6b>;
|
||||
drdy-gpios = <&arduino_header 11 GPIO_ACTIVE_HIGH>; /* D5 - INT2 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue