diff --git a/boards/arm/frdm_k22f/frdm_k22f.dts b/boards/arm/frdm_k22f/frdm_k22f.dts index 7765672237b77f..d69be980747991 100644 --- a/boards/arm/frdm_k22f/frdm_k22f.dts +++ b/boards/arm/frdm_k22f/frdm_k22f.dts @@ -118,7 +118,7 @@ status = "okay"; }; -&i2c0 { +arduino_i2c: &i2c0 { status = "okay"; fxos8700@1c { diff --git a/boards/arm/frdm_k22f/frdm_k22f.yaml b/boards/arm/frdm_k22f/frdm_k22f.yaml index f7cc5079eb7158..bc42657d245606 100644 --- a/boards/arm/frdm_k22f/frdm_k22f.yaml +++ b/boards/arm/frdm_k22f/frdm_k22f.yaml @@ -9,6 +9,7 @@ toolchain: supported: - adc - arduino_gpio + - arduino_i2c - gpio - i2c - nvs diff --git a/boards/arm/frdm_k22f/pinmux.c b/boards/arm/frdm_k22f/pinmux.c index f22de924a74ac9..6bbb9ea4feeb9d 100644 --- a/boards/arm/frdm_k22f/pinmux.c +++ b/boards/arm/frdm_k22f/pinmux.c @@ -88,6 +88,18 @@ static int frdm_k22f_pinmux_init(const struct device *dev) | PORT_PCR_ODE_MASK); #endif +#if CONFIG_SHIELD_FRDM_STBC_AGM01 + /* FXOS8700 INT1 */ + pinmux_pin_set(portb, 16, PORT_PCR_MUX(kPORT_MuxAsGpio)); + /* FXOS8700 INT2 */ + pinmux_pin_set(porta, 4, PORT_PCR_MUX(kPORT_MuxAsGpio)); + + /* FXAS21002 INT1 */ + pinmux_pin_set(portb, 18, PORT_PCR_MUX(kPORT_MuxAsGpio)); + /* FXAS21002 INT2 */ + pinmux_pin_set(portb, 19, PORT_PCR_MUX(kPORT_MuxAsGpio)); +#endif + return 0; }