zephyr/boards/arm/warp7_m4/warp7_m4.dts
Maureen Helm 0f38786889 drivers: sensor: Convert fxas21002 to new gpio api
Converts the fxas21002 sensor driver to the new gpio api. Updates device
trees for all boards with this sensor to active low gpio interrupts by
default.

Tested on the hexiwear_k64 board.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2020-02-05 12:00:36 +01:00

73 lines
1 KiB
Plaintext

/*
* Copyright (c) 2018, Diego Sueiro
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <nxp/nxp_imx7d_m4.dtsi>
/ {
model = "WaRP7 IMX7S board";
compatible = "nxp,mcimx7d_m4";
aliases {
sw0 = &user_switch_1;
};
chosen {
zephyr,flash = &tcml_code;
zephyr,sram = &tcmu_sys;
zephyr,console = &uart2;
zephyr,shell-uart = &uart2;
};
gpio_keys {
compatible = "gpio-keys";
user_switch_1: user_sw_1 {
gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
label = "User SW1";
};
};
};
&uart2 {
status = "okay";
current-speed = <115200>;
modem-mode = <0>;
};
&uart6 {
status = "okay";
current-speed = <115200>;
modem-mode = <0>;
};
&gpio7 {
status = "okay";
};
&i2c4 {
status = "okay";
fxos8700@1e {
compatible = "nxp,fxos8700";
reg = <0x1e>;
label = "FXOS8700";
int1-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
};
fxas21002@20 {
compatible = "nxp,fxas21002";
reg = <0x20>;
label = "FXAS21002";
int1-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
};
};
&mub {
status = "okay";
};