Route FMC default alternate function to an other accessible pin in Device tree
Dear ST community,
I am currently trying to install an 8bit 8080 LCD , and i figured out that it needs FMC $ to be set up in devicetree in order to interface with it using DRM in Linux. i have the following device tree pinctrl nodes setup
fmc_pins_mx: fmc_mx-0 {
pins {
pinmux = <STM32_PINMUX('D', 0, AF12)>, /* FMC_D2 */
<STM32_PINMUX('D', 1, AF12)>, /* FMC_D3 */
<STM32_PINMUX('D', 4, AF12)>, /* FMC_NOE */
<STM32_PINMUX('D', 5, AF12)>, /* FMC_NWE */
<STM32_PINMUX('D', 7, AF12)>, /* FMC_NE1 */
<STM32_PINMUX('D', 14, AF12)>, /* FMC_D0 */
<STM32_PINMUX('D', 15, AF12)>, /* FMC_D1 */
<STM32_PINMUX('E', 7, AF12)>, /* FMC_D4 */
<STM32_PINMUX('E', 8, AF12)>, /* FMC_D5 */
<STM32_PINMUX('E', 9, AF12)>, /* FMC_D6 */
<STM32_PINMUX('E', 10, AF12)>, /* FMC_D7 */
<STM32_PINMUX('F', 0, AF12)>, /* FMC_A0 */
<STM32_PINMUX('G', 9, AF12)>; /* FMC_NE2 */
bias-disable;
drive-push-pull;
slew-rate = <1>;
};
};
fmc_sleep_pins_mx: fmc_sleep_mx-0 {
pins {
pinmux = <STM32_PINMUX('D', 0, ANALOG)>, /* FMC_D2 */
<STM32_PINMUX('D', 1, ANALOG)>, /* FMC_D3 */
<STM32_PINMUX('D', 4, ANALOG)>, /* FMC_NOE */
<STM32_PINMUX('D', 5, ANALOG)>, /* FMC_NWE */
<STM32_PINMUX('D', 7, ANALOG)>, /* FMC_NE1 */
<STM32_PINMUX('D', 14, ANALOG)>, /* FMC_D0 */
<STM32_PINMUX('D', 15, ANALOG)>, /* FMC_D1 */
<STM32_PINMUX('E', 7, ANALOG)>, /* FMC_D4 */
<STM32_PINMUX('E', 8, ANALOG)>, /* FMC_D5 */
<STM32_PINMUX('E', 9, ANALOG)>, /* FMC_D6 */
<STM32_PINMUX('E', 10, ANALOG)>, /* FMC_D7 */
<STM32_PINMUX('F', 0, ANALOG)>, /* FMC_A0 */
<STM32_PINMUX('G', 9, ANALOG)>; /* FMC_NE2 */
};
};my problem is that i have pins from d4 to d7 are not accessible in my board, i am writing you to ask if there is a way to change the pins on AF12 and point them out to an other accessible pins?
(i have indeed tried cube-mx but it doesn't offer any other choice since this particular peripheral have no other alternate function options.)
Thank you
