boards: Set magnetometer devicetree alias for fxos8700 nodes
Sets a magnetometer devicetree alias for all boards that contain the FXOS8700 sensor to enable the magn_polling sample application. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
This commit is contained in:
parent
7954fab248
commit
64de633b2e
17 changed files with 37 additions and 15 deletions
|
|
@ -24,6 +24,7 @@
|
|||
green-pwm-led = &green_pwm_led;
|
||||
blue-pwm-led = &blue_pwm_led;
|
||||
red-pwm-led = &red_pwm_led;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
@ -128,7 +129,7 @@ arduino_i2c: &i2c0 {
|
|||
pinctrl-0 = <&i2c0_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fxos8700@1c {
|
||||
fxos8700: fxos8700@1c {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1c>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
led2 = &red_led;
|
||||
sw0 = &user_button_3;
|
||||
sw1 = &user_button_2;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
@ -130,7 +131,7 @@ arduino_i2c: &i2c0 {
|
|||
pinctrl-0 = <&i2c0_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fxos8700@1d {
|
||||
fxos8700: fxos8700@1d {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1d>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
pwm-led2 = &blue_pwm_led;
|
||||
sw0 = &user_button_0;
|
||||
sw1 = &user_button_1;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
@ -179,7 +180,7 @@
|
|||
pinctrl-0 = <&i2c3_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fxos8700@1c {
|
||||
fxos8700: fxos8700@1c {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1c>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
blue-pwm-led = &blue_pwm_led;
|
||||
green-pwm-led = &green_pwm_led;
|
||||
red-pwm-led = &red_pwm_led;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
@ -119,7 +120,7 @@
|
|||
pinctrl-0 = <&i2c1_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fxos8700@1f {
|
||||
fxos8700: fxos8700@1f {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1f>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
red-pwm-led = &red_pwm_led;
|
||||
green-pwm-led = &green_pwm_led;
|
||||
blue-pwm-led = &blue_pwm_led;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
@ -127,7 +128,7 @@
|
|||
pinctrl-0 = <&i2c1_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fxos8700@1e {
|
||||
fxos8700: fxos8700@1e {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1e>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
sw1 = &btn_usr;
|
||||
sw2 = &btn_isp;
|
||||
usart-0 = &flexcomm0;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
leds {
|
||||
|
|
@ -130,7 +131,7 @@
|
|||
pinctrl-0 = <&pinmux_flexcomm4_i2c>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fxos8700@1e {
|
||||
fxos8700: fxos8700@1e {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1e>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
led0 = &green_led;
|
||||
sw0 = &user_button;
|
||||
watchdog0 = &wdog0;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
sw0 = &user_button;
|
||||
kscan0 = &touch_controller;
|
||||
watchdog0 = &wdog0;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
@ -193,7 +194,7 @@ arduino_serial: &lpuart3 {
|
|||
pinctrl-0 = <&pinmux_lpi2c1>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fxos8700@1f {
|
||||
fxos8700: fxos8700@1f {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1f>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
aliases {
|
||||
led0 = &green_led;
|
||||
sw0 = &user_button;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
leds {
|
||||
|
|
@ -64,7 +65,7 @@
|
|||
pinctrl-0 = <&pinmux_lpi2c1>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fxos8700@1f {
|
||||
fxos8700: fxos8700@1f {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1f>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
aliases {
|
||||
led0 = &green_led;
|
||||
sw0 = &user_button;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
leds {
|
||||
|
|
@ -42,7 +43,7 @@
|
|||
pinctrl-0 = <&pinmux_lpi2c5>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fxos8700@1f {
|
||||
fxos8700: fxos8700@1f {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1f>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
led2 = &red_led;
|
||||
usart-0 = &flexcomm0;
|
||||
watchdog0 = &wwdt0;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
@ -117,7 +118,7 @@ arduino_i2c: &flexcomm4 {
|
|||
pinctrl-0 = <&pinmux_flexcomm4_i2c>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fxos8700@1e {
|
||||
fxos8700: fxos8700@1e {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1e>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
blue-pwm-led = &blue_pwm_led;
|
||||
red-pwm-led = &red_pwm_led;
|
||||
watchdog0 = &wwdt0;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
@ -165,7 +166,7 @@ arduino_i2c: &flexcomm2 {
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
fxos8700@1e {
|
||||
fxos8700: fxos8700@1e {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1e>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
blue-pwm-led = &tri_blue_pwm_led;
|
||||
sw0 = &user_button_3;
|
||||
sw1 = &user_button_2;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
sw1 = &user_button_1;
|
||||
sw2 = &user_button_2;
|
||||
sw3 = &user_button_3;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
@ -135,7 +136,7 @@
|
|||
pinctrl-0 = <&i2c1_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fxos8700@1c {
|
||||
fxos8700: fxos8700@1c {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1c>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
aliases {
|
||||
sw0 = &user_switch_1;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
@ -73,7 +74,7 @@
|
|||
pinctrl-0 = <&i2c4_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fxos8700@1e {
|
||||
fxos8700: fxos8700@1e {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1e>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
sw1 = &user_button_3;
|
||||
sw2 = &user_button_4;
|
||||
sw3 = &user_button_5;
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
|
||||
leds {
|
||||
|
|
@ -132,7 +133,7 @@ arduino_i2c: &lpi2c0 {
|
|||
pinctrl-0 = <&lpi2c3_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fxos8700@1e {
|
||||
fxos8700: fxos8700@1e {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1e>;
|
||||
label = "FXOS8700";
|
||||
|
|
|
|||
|
|
@ -3,8 +3,14 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
magn0 = &fxos8700;
|
||||
};
|
||||
};
|
||||
|
||||
&arduino_i2c {
|
||||
fxos8700@1e {
|
||||
fxos8700: fxos8700@1e {
|
||||
compatible = "nxp,fxos8700";
|
||||
reg = <0x1e>;
|
||||
label = "AGM01_FXOS8700";
|
||||
|
|
|
|||
Loading…
Reference in a new issue