From dfaa1d56828f1dcb6f5bba9f323f24212b7c30c2 Mon Sep 17 00:00:00 2001 From: Alexander Mihajlovic Date: Sun, 12 Mar 2023 19:30:27 +0100 Subject: [PATCH] boards: stm32h735g_disco: Add pmod connector Add pmod connector dts description. Signed-off-by: Alexander Mihajlovic --- .../arm/stm32h735g_disco/pmod_connector.dtsi | 22 +++++++++++++++++++ .../arm/stm32h735g_disco/stm32h735g_disco.dts | 1 + 2 files changed, 23 insertions(+) create mode 100644 boards/arm/stm32h735g_disco/pmod_connector.dtsi diff --git a/boards/arm/stm32h735g_disco/pmod_connector.dtsi b/boards/arm/stm32h735g_disco/pmod_connector.dtsi new file mode 100644 index 000000000000..8028cc55b257 --- /dev/null +++ b/boards/arm/stm32h735g_disco/pmod_connector.dtsi @@ -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 */ + }; +}; diff --git a/boards/arm/stm32h735g_disco/stm32h735g_disco.dts b/boards/arm/stm32h735g_disco/stm32h735g_disco.dts index f8b296acc906..143176dab063 100644 --- a/boards/arm/stm32h735g_disco/stm32h735g_disco.dts +++ b/boards/arm/stm32h735g_disco/stm32h735g_disco.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include "pmod_connector.dtsi" / { model = "STMicroelectronics STM32H735G DISCOVERY board";