Skip to content

Commit

Permalink
boards/shields: Enable shields samples on stm32mp157c_dk2
Browse files Browse the repository at this point in the history
stm32mp157c_dk2 Arduino header lack A2 and A3 pins which
are assigned to non GPIO pins.
Remove optional shields properties that are using one of these
pins by providing board overlays to the impacted shields.

Fixes zephyrproject-rtos#19079


Signed-off-by: Erwan Gouriou <[email protected]>
  • Loading branch information
erwango authored and galak committed Sep 12, 2019
1 parent 3a3eb0e commit 121148e
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
20 changes: 20 additions & 0 deletions boards/shields/x_nucleo_iks01a2/boards/stm32mp157c_dk2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2019 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/

/*
* On stm32mp157c_dk2 pin A3 is not mapped on a GPIO pin.
* Delete this optional property for shield/board compatibility
*/

&arduino_i2c {
lsm303agr-magn@1e {
/delete-property/ irq-gpios; /* A3 */
};

lsm303agr-accel@19 {
/delete-property/ irq-gpios; /* A3 */
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2019 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/

/*
* On stm32mp157c_dk2 pin A3 is not mapped on a GPIO pin.
* Delete this optional property for shield/board compatibility
*/

&arduino_i2c {
lis2dw12@19 {
/delete-property/ irq-gpios; /* A3 */
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2019 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/

/*
* On stm32mp157c_dk2 pin A3 is not mapped on a GPIO pin.
* Delete this optional property for shield/board compatibility
*/

&arduino_i2c {
lis2dw12@19 {
/delete-property/ irq-gpios; /* A3 */
};
};

0 comments on commit 121148e

Please sign in to comment.