1/* 2 * Copyright (c) 2023 Marcin Niestroj 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6#include <zephyr/dt-bindings/gpio/gpio.h> 7#include <zephyr/dt-bindings/gpio/st-morpho-header.h> 8 9/ { 10 st_morpho_header: st-morpho-header { 11 compatible = "st-morpho-header"; 12 #gpio-cells = <2>; 13 gpio-map-mask = <ST_MORPHO_PIN_MASK 0x0>; 14 gpio-map-pass-thru = <0x0 GPIO_DT_FLAGS_MASK>; 15 gpio-map = <ST_MORPHO_L_1 0 &gpioc 10 0>, 16 <ST_MORPHO_L_2 0 &gpioc 11 0>, 17 <ST_MORPHO_L_3 0 &gpioc 12 0>, 18 <ST_MORPHO_L_4 0 &gpiod 2 0>, 19 <ST_MORPHO_L_9 0 &gpiof 6 0>, 20 <ST_MORPHO_L_11 0 &gpiof 7 0>, 21 <ST_MORPHO_L_13 0 &gpioa 13 0>, 22 <ST_MORPHO_L_15 0 &gpioa 14 0>, 23 <ST_MORPHO_L_17 0 &gpioa 15 0>, 24 <ST_MORPHO_L_21 0 &gpiob 7 0>, 25 <ST_MORPHO_L_23 0 &gpioc 13 0>, 26 <ST_MORPHO_L_25 0 &gpioc 14 0>, /* SB45=ON, R34=OFF */ 27 <ST_MORPHO_L_27 0 &gpioc 15 0>, /* SB44=ON, R35=OFF */ 28 <ST_MORPHO_L_28 0 &gpioa 0 0>, 29 <ST_MORPHO_L_29 0 &gpioh 0 0>, 30 <ST_MORPHO_L_30 0 &gpioa 1 0>, /* SB58=OFF */ 31 <ST_MORPHO_L_31 0 &gpioh 1 0>, 32 <ST_MORPHO_L_32 0 &gpioa 4 0>, /* SB56=OFF */ 33 <ST_MORPHO_L_34 0 &gpiob 0 0>, /* LD1 green LED if SB43=ON */ 34 <ST_MORPHO_L_35 0 &gpioc 2 0>, 35 <ST_MORPHO_L_36 0 &gpioc 1 0>, /* SB62=OFF */ 36 <ST_MORPHO_L_37 0 &gpioc 3 0>, 37 <ST_MORPHO_L_38 0 &gpioc 0 0>, 38 <ST_MORPHO_L_39 0 &gpiod 4 0>, 39 <ST_MORPHO_L_40 0 &gpiod 3 0>, 40 <ST_MORPHO_L_41 0 &gpiod 5 0>, 41 <ST_MORPHO_L_42 0 &gpiog 2 0>, 42 <ST_MORPHO_L_43 0 &gpiod 6 0>, 43 <ST_MORPHO_L_44 0 &gpiog 3 0>, 44 <ST_MORPHO_L_45 0 &gpiod 7 0>, 45 <ST_MORPHO_L_46 0 &gpioe 2 0>, /* SB64=ON */ 46 <ST_MORPHO_L_47 0 &gpioe 3 0>, /* SB78=ON */ 47 <ST_MORPHO_L_48 0 &gpioe 4 0>, /* SB8=ON */ 48 <ST_MORPHO_L_50 0 &gpioe 5 0>, /* SB9=ON */ 49 <ST_MORPHO_L_51 0 &gpiof 1 0>, 50 <ST_MORPHO_L_52 0 &gpiof 2 0>, 51 <ST_MORPHO_L_53 0 &gpiof 0 0>, 52 <ST_MORPHO_L_54 0 &gpiof 8 0>, 53 <ST_MORPHO_L_55 0 &gpiod 1 0>, 54 <ST_MORPHO_L_56 0 &gpiof 9 0>, 55 <ST_MORPHO_L_57 0 &gpiod 0 0>, 56 <ST_MORPHO_L_58 0 &gpiog 1 0>, 57 <ST_MORPHO_L_59 0 &gpiog 0 0>, 58 <ST_MORPHO_L_62 0 &gpioe 6 0>, /* SB68=ON */ 59 <ST_MORPHO_L_63 0 &gpiog 9 0>, 60 <ST_MORPHO_L_64 0 &gpiog 15 0>, 61 <ST_MORPHO_L_65 0 &gpiog 12 0>, 62 <ST_MORPHO_L_66 0 &gpiog 10 0>, 63 <ST_MORPHO_L_68 0 &gpiog 13 0>, /* SB37=OFF */ 64 <ST_MORPHO_L_69 0 &gpiod 9 0>, /* SB75=ON, SB18=OFF, SB65=OFF */ 65 <ST_MORPHO_L_70 0 &gpiog 11 0>, /* SB34=OFF */ 66 67 <ST_MORPHO_R_1 0 &gpioc 9 0>, 68 <ST_MORPHO_R_2 0 &gpioc 8 0>, 69 <ST_MORPHO_R_3 0 &gpiob 8 0>, 70 <ST_MORPHO_R_4 0 &gpioc 6 0>, 71 <ST_MORPHO_R_5 0 &gpiob 9 0>, 72 <ST_MORPHO_R_6 0 &gpioc 5 0>, /* SB36=OFF */ 73 <ST_MORPHO_R_10 0 &gpiod 8 0>, 74 <ST_MORPHO_R_11 0 &gpioa 5 0>, /* LD1 green LED if SB51=ON */ 75 <ST_MORPHO_R_12 0 &gpioa 12 0>, /* SB22=ON, SB28=OFF */ 76 <ST_MORPHO_R_13 0 &gpioa 6 0>, 77 <ST_MORPHO_R_14 0 &gpioa 11 0>, /* SB21=ON, SB27=OFF */ 78 <ST_MORPHO_R_15 0 &gpioa 7 0>, /* SB38=OFF */ 79 <ST_MORPHO_R_16 0 &gpiob 12 0>, 80 <ST_MORPHO_R_17 0 &gpiob 6 0>, 81 <ST_MORPHO_R_19 0 &gpioc 7 0>, 82 <ST_MORPHO_R_21 0 &gpioa 9 0>, /* SB31=OFF */ 83 <ST_MORPHO_R_22 0 &gpiob 2 0>, 84 <ST_MORPHO_R_23 0 &gpioa 8 0>, 85 <ST_MORPHO_R_24 0 &gpiob 1 0>, 86 <ST_MORPHO_R_25 0 &gpiob 10 0>, 87 <ST_MORPHO_R_26 0 &gpiob 15 0>, /* JP6=OFF */ 88 <ST_MORPHO_R_27 0 &gpiob 4 0>, 89 <ST_MORPHO_R_28 0 &gpiob 14 0>, /* SB30=OFF */ 90 <ST_MORPHO_R_29 0 &gpiob 5 0>, 91 <ST_MORPHO_R_30 0 &gpiob 13 0>, /* SB29=OFF */ 92 <ST_MORPHO_R_31 0 &gpiob 3 0>, /* SB39=OFF */ 93 <ST_MORPHO_R_33 0 &gpioa 10 0>, 94 <ST_MORPHO_R_34 0 &gpioc 4 0>, /* SB42=OFF */ 95 <ST_MORPHO_R_35 0 &gpioa 2 0>, /* SB69=OFF */ 96 <ST_MORPHO_R_36 0 &gpiof 5 0>, 97 <ST_MORPHO_R_37 0 &gpioa 3 0>, 98 <ST_MORPHO_R_38 0 &gpiof 4 0>, /* LD2 yellow LED */ 99 <ST_MORPHO_R_40 0 &gpioe 8 0>, 100 <ST_MORPHO_R_41 0 &gpiod 13 0>, 101 <ST_MORPHO_R_42 0 &gpiof 10 0>, 102 <ST_MORPHO_R_43 0 &gpiod 12 0>, 103 <ST_MORPHO_R_44 0 &gpioe 7 0>, 104 <ST_MORPHO_R_45 0 &gpiod 11 0>, 105 <ST_MORPHO_R_46 0 &gpiod 14 0>, 106 <ST_MORPHO_R_47 0 &gpioe 10 0>, 107 <ST_MORPHO_R_48 0 &gpiod 15 0>, 108 <ST_MORPHO_R_49 0 &gpioe 12 0>, 109 <ST_MORPHO_R_50 0 &gpiof 14 0>, 110 <ST_MORPHO_R_51 0 &gpioe 14 0>, 111 <ST_MORPHO_R_52 0 &gpioe 9 0>, 112 <ST_MORPHO_R_53 0 &gpioe 15 0>, 113 <ST_MORPHO_R_55 0 &gpioe 13 0>, 114 <ST_MORPHO_R_56 0 &gpioe 11 0>, 115 <ST_MORPHO_R_57 0 &gpiof 13 0>, 116 <ST_MORPHO_R_58 0 &gpiof 3 0>, 117 <ST_MORPHO_R_59 0 &gpiof 12 0>, 118 <ST_MORPHO_R_60 0 &gpiof 15 0>, 119 <ST_MORPHO_R_61 0 &gpiog 14 0>, 120 <ST_MORPHO_R_62 0 &gpiof 11 0>, 121 <ST_MORPHO_R_64 0 &gpioe 0 0>, 122 <ST_MORPHO_R_65 0 &gpiod 10 0>, 123 <ST_MORPHO_R_66 0 &gpiog 8 0>, 124 <ST_MORPHO_R_67 0 &gpiog 7 0>, /* SB74=OFF */ 125 <ST_MORPHO_R_68 0 &gpiog 5 0>, 126 <ST_MORPHO_R_69 0 &gpiog 4 0>, /* LD3 red LED */ 127 <ST_MORPHO_R_70 0 &gpiog 6 0>; 128 }; 129}; 130