boards: Set devicetree alias for NXP FXOS8700 and compatible nodes

Set accel0 alias for all boards with the FXOS8700 and compatible
accelerometer to use by the accel_polling sample.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
This commit is contained in:
TOKITA Hiroshi 2022-07-22 00:45:23 +09:00 committed by Maureen Helm
parent 0309b77074
commit 8277efb96c
28 changed files with 32 additions and 20 deletions

View file

@ -17,6 +17,7 @@
sw0 = &buttonA;
sw1 = &buttonB;
magn0 = &lsm303agr_magn;
accel0 = &mma8653fc;
watchdog0 = &wdt0;
};
@ -131,7 +132,7 @@
pinctrl-0 = <&i2c0_default>;
pinctrl-1 = <&i2c0_sleep>;
pinctrl-names = "default", "sleep";
mma8653fc@1d {
mma8653fc: mma8653fc@1d {
compatible = "nxp,fxos8700", "nxp,mma8653fc";
status = "okay";
reg = <0x1d>;

View file

@ -25,6 +25,7 @@
blue-pwm-led = &blue_pwm_led;
red-pwm-led = &red_pwm_led;
magn0 = &fxos8700;
accel0 = &fxos8700;
};
chosen {

View file

@ -16,6 +16,7 @@
sw0 = &user_button_3;
sw1 = &user_button_2;
magn0 = &fxos8700;
accel0 = &fxos8700;
};
chosen {

View file

@ -25,6 +25,7 @@
sw0 = &user_button_0;
sw1 = &user_button_1;
magn0 = &fxos8700;
accel0 = &fxos8700;
spi-flash0 = &mx25u32;
};

View file

@ -23,12 +23,8 @@ config MCG_FRDIV
config MCG_FCRDIV
default 0
if SENSOR
config I2C
default y
endif # SENSOR
default y if SENSOR
if FXOS8700

View file

@ -15,6 +15,7 @@
led2 = &red_led;
sw0 = &user_button_0;
sw1 = &user_button_1;
accel0 = &mma8451q;
};
chosen {
@ -102,7 +103,7 @@
pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
mma8451q@1d {
mma8451q: mma8451q@1d {
compatible = "nxp,fxos8700","nxp,mma8451q";
reg = <0x1d>;
int1-gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;

View file

@ -22,6 +22,7 @@
green-pwm-led = &green_pwm_led;
red-pwm-led = &red_pwm_led;
magn0 = &fxos8700;
accel0 = &fxos8700;
};
chosen {

View file

@ -19,6 +19,7 @@
green-pwm-led = &green_pwm_led;
blue-pwm-led = &blue_pwm_led;
magn0 = &fxos8700;
accel0 = &fxos8700;
};
chosen {

View file

@ -26,6 +26,7 @@
sw2 = &btn_isp;
usart-0 = &flexcomm0;
magn0 = &fxos8700;
accel0 = &fxos8700;
};
leds {

View file

@ -8,12 +8,8 @@ if BOARD_LPCXPRESSO55S28
config BOARD
default "lpcxpresso55S28"
if SENSOR
config I2C
default y
endif # SENSOR
default y if SENSOR
if FXOS8700

View file

@ -18,6 +18,7 @@
sw1 = &user_button_2;
sw2 = &user_button_3;
watchdog0 = &wwdt0;
accel0 = &mma8652fc;
};
chosen {

View file

@ -13,6 +13,7 @@
led2 = &blue_led;
spi-8 = &hs_lspi;
usart-0 = &flexcomm0;
accel0 = &mma8652fc;
};
leds {
@ -102,7 +103,7 @@ arduino_i2c: &flexcomm4 {
pinctrl-0 = <&pinmux_flexcomm4_i2c>;
pinctrl-names = "default";
mma8652fc@1d {
mma8652fc: mma8652fc@1d {
compatible = "nxp,fxos8700","nxp,mma8652fc";
reg = <0x1d>;
int1-gpios = <&gpio1 19 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;

View file

@ -9,12 +9,8 @@ config BOARD
default "lpcxpresso55S69_cpu0" if BOARD_LPCXPRESSO55S69_CPU0
default "lpcxpresso55S69_cpu1" if BOARD_LPCXPRESSO55S69_CPU1
if SENSOR
config I2C
default y
endif # SENSOR
default y if SENSOR
if FXOS8700

View file

@ -155,7 +155,7 @@ arduino_i2c: &flexcomm4 {
#address-cells = <1>;
#size-cells = <0>;
mma8652fc@1d {
mma8652fc: mma8652fc@1d {
compatible = "nxp,fxos8700","nxp,mma8652fc";
reg = <0x1d>;
int1-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;

View file

@ -28,6 +28,7 @@
pwm-led0 = &red_pwm_led;
red-pwm-led = &red_pwm_led;
sdhc0 = &sdhc0;
accel0 = &mma8652fc;
};
chosen {

View file

@ -22,6 +22,7 @@
sw1 = &user_button_2;
sw2 = &user_button_3;
watchdog0 = &wwdt0;
accel0 = &mma8652fc;
};
chosen {

View file

@ -18,6 +18,7 @@
sw0 = &user_button;
watchdog0 = &wdog0;
magn0 = &fxos8700;
accel0 = &fxos8700;
sdhc0 = &usdhc1;
};

View file

@ -19,6 +19,7 @@
kscan0 = &touch_controller;
watchdog0 = &wdog0;
magn0 = &fxos8700;
accel0 = &fxos8700;
sdhc0 = &usdhc1;
};

View file

@ -11,6 +11,7 @@
led0 = &green_led;
sw0 = &user_button;
magn0 = &fxos8700;
accel0 = &fxos8700;
sdhc0 = &usdhc1;
};

View file

@ -11,6 +11,7 @@
led0 = &green_led;
sw0 = &user_button;
magn0 = &fxos8700;
accel0 = &fxos8700;
sdhc0 = &usdhc1;
};

View file

@ -23,6 +23,7 @@
usart-0 = &flexcomm0;
watchdog0 = &wwdt0;
magn0 = &fxos8700;
accel0 = &fxos8700;
};
chosen {

View file

@ -31,6 +31,7 @@
red-pwm-led = &red_pwm_led;
watchdog0 = &wwdt0;
magn0 = &fxos8700;
accel0 = &fxos8700;
};
chosen {

View file

@ -84,6 +84,7 @@
green-pwm-led = &green_pwm_led;
blue-pwm-led = &blue_pwm_led;
sw0 = &user_button;
accel0 = &mma8642fc;
};
};
@ -124,7 +125,7 @@ arduino_i2c: &i2c0 {
pinctrl-0 = <&i2c0_default>;
pinctrl-1 = <&i2c0_sleep>;
pinctrl-names = "default", "sleep";
mma8652fc@1d {
mma8642fc: mma8652fc@1d {
compatible = "nxp,fxos8700","nxp,mma8652fc";
reg = <0x1d>;
label = "MMA8652FC";

View file

@ -33,6 +33,7 @@
sw0 = &user_button_3;
sw1 = &user_button_2;
magn0 = &fxos8700;
accel0 = &fxos8700;
};
chosen {

View file

@ -23,6 +23,7 @@
sw2 = &user_button_2;
sw3 = &user_button_3;
magn0 = &fxos8700;
accel0 = &fxos8700;
};
chosen {

View file

@ -16,6 +16,7 @@
aliases {
sw0 = &user_switch_1;
magn0 = &fxos8700;
accel0 = &fxos8700;
};
chosen {

View file

@ -22,6 +22,7 @@
sw2 = &user_button_4;
sw3 = &user_button_5;
magn0 = &fxos8700;
accel0 = &fxos8700;
};
leds {

View file

@ -6,6 +6,7 @@
/ {
aliases {
magn0 = &fxos8700;
accel0 = &fxos8700;
};
};