From 96768ea2d215bc5d009a645e4f41f96a73cbcdbf Mon Sep 17 00:00:00 2001 From: Marcin Niestroj Date: Thu, 27 Jul 2023 22:18:31 +0200 Subject: [PATCH] boards: nucleo_h563zi: add ST Morpho connector nexus node Add a new GPIO nexus node for the ST Morpho connector in the board. Signed-off-by: Marcin Niestroj --- .../nucleo_h563zi/nucleo_h563zi-common.dtsi | 1 + .../nucleo_h563zi/st_morpho_connector.dtsi | 129 ++++++++++++++++++ 2 files changed, 130 insertions(+) create mode 100644 boards/arm/nucleo_h563zi/st_morpho_connector.dtsi diff --git a/boards/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi b/boards/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi index 6b72080177d..2c87df305e9 100644 --- a/boards/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi +++ b/boards/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include "st_morpho_connector.dtsi" / { leds { diff --git a/boards/arm/nucleo_h563zi/st_morpho_connector.dtsi b/boards/arm/nucleo_h563zi/st_morpho_connector.dtsi new file mode 100644 index 00000000000..b348ad313a5 --- /dev/null +++ b/boards/arm/nucleo_h563zi/st_morpho_connector.dtsi @@ -0,0 +1,129 @@ +/* + * Copyright (c) 2023 Marcin Niestroj + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include + +/ { + st_morpho_header: st-morpho-header { + compatible = "st-morpho-header"; + #gpio-cells = <2>; + gpio-map-mask = ; + gpio-map-pass-thru = <0x0 GPIO_DT_FLAGS_MASK>; + gpio-map = , + , + , + , + , + , + , + , + , + , + , + , /* SB45=ON, R34=OFF */ + , /* SB44=ON, R35=OFF */ + , + , + , /* SB58=OFF */ + , + , /* SB56=OFF */ + , /* LD1 green LED if SB43=ON */ + , + , /* SB62=OFF */ + , + , + , + , + , + , + , + , + , + , /* SB64=ON */ + , /* SB78=ON */ + , /* SB8=ON */ + , /* SB9=ON */ + , + , + , + , + , + , + , + , + , + , /* SB68=ON */ + , + , + , + , + , /* SB37=OFF */ + , /* SB75=ON, SB18=OFF, SB65=OFF */ + , /* SB34=OFF */ + + , + , + , + , + , + , /* SB36=OFF */ + , + , /* LD1 green LED if SB51=ON */ + , /* SB22=ON, SB28=OFF */ + , + , /* SB21=ON, SB27=OFF */ + , /* SB38=OFF */ + , + , + , + , /* SB31=OFF */ + , + , + , + , + , /* JP6=OFF */ + , + , /* SB30=OFF */ + , + , /* SB29=OFF */ + , /* SB39=OFF */ + , + , /* SB42=OFF */ + , /* SB69=OFF */ + , + , + , /* LD2 yellow LED */ + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , /* SB74=OFF */ + , + , /* LD3 red LED */ + ; + }; +};