boards: Set magnetometer devicetree alias for bmm150 nodes

Sets a magnetometer devicetree alias for all boards that contain the
BMM150 sensor to enable the magn_polling sample application.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
This commit is contained in:
Maureen Helm 2022-06-29 16:23:44 -05:00 committed by Anas Nashif
parent 64de633b2e
commit 82dfaf2443

View file

@ -114,6 +114,7 @@
pwm-led0 = &red_led_pwm;
pwm-led1 = &green_led_pwm;
pwm-led2 = &blue_led_pwm;
magn0 = &bmm150;
};
};
@ -157,7 +158,7 @@
pinctrl-0 = <&i2c1_default>;
pinctrl-1 = <&i2c1_sleep>;
pinctrl-names = "default", "sleep";
bmm150@10 {
bmm150: bmm150@10 {
compatible = "bosch,bmm150";
label = "BMM150";
reg = <0x10>;