Skip to content

Commit

Permalink
boards: stm32h735g_disco: Add pmod connector
Browse files Browse the repository at this point in the history
Add pmod connector dts description.

Signed-off-by: Alexander Mihajlovic <alexander@eub.se>
  • Loading branch information
Alexander Mihajlovic authored and carlescufi committed Mar 27, 2023
1 parent 9d50b14 commit dfaa1d5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions boards/arm/stm32h735g_disco/pmod_connector.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2023 Elektronikutvecklingsbyrån EUB AB
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
pmod0: pmod-connector {
compatible = "digilent,pmod";
#gpio-cells = <2>;
gpio-map-mask = <0xffffffff 0xffffffc0>;
gpio-map-pass-thru = <0 0x3f>;
gpio-map = <0 0 &gpiof 9 0>, /* IO1 */
<1 0 &gpiof 7 0>, /* IO2 */
<2 0 &gpiof 6 0>, /* IO3 */
<3 0 &gpiof 8 0>, /* IO4 */
<4 0 &gpioh 12 0>, /* IO5 */
<5 0 &gpioh 1 0>; /* IO6 */
/* IO7 - not connected */
/* IO8 - not connected */
};
};
1 change: 1 addition & 0 deletions boards/arm/stm32h735g_disco/stm32h735g_disco.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/dts-v1/;
#include <st/h7/stm32h735Xg.dtsi>
#include <st/h7/stm32h735igkx-pinctrl.dtsi>
#include "pmod_connector.dtsi"

/ {
model = "STMicroelectronics STM32H735G DISCOVERY board";
Expand Down

0 comments on commit dfaa1d5

Please sign in to comment.