forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards/shields: Enable shields samples on stm32mp157c_dk2
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
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
boards/shields/x_nucleo_iks01a2/boards/stm32mp157c_dk2.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ | ||
}; | ||
}; |
16 changes: 16 additions & 0 deletions
16
boards/shields/x_nucleo_iks01a3/boards/x_nucleo_iks01a3/stm32mp157c_dk2.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ | ||
}; | ||
}; |
16 changes: 16 additions & 0 deletions
16
boards/shields/x_nucleo_iks01a3/boards/x_nucleo_iks01a3_shub/stm32mp157c_dk2.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ | ||
}; | ||
}; |