2018-02-26 22:35:40 +07:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
|
|
|
|
/*
|
|
|
|
* Copyright (C) STMicroelectronics 2017 - All Rights Reserved
|
|
|
|
* Author: Ludovic Barre <ludovic.barre@st.com> for STMicroelectronics.
|
|
|
|
*/
|
|
|
|
#include <dt-bindings/pinctrl/stm32-pinfunc.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
soc {
|
2018-05-02 14:40:26 +07:00
|
|
|
pinctrl: pin-controller@50002000 {
|
2018-02-26 22:35:40 +07:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "st,stm32mp157-pinctrl";
|
|
|
|
ranges = <0 0x50002000 0xa400>;
|
2018-04-26 23:18:34 +07:00
|
|
|
interrupt-parent = <&exti>;
|
|
|
|
st,syscfg = <&exti 0x60 0xff>;
|
2018-02-26 22:35:40 +07:00
|
|
|
pins-are-numbered;
|
|
|
|
|
|
|
|
gpioa: gpio@50002000 {
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
reg = <0x0 0x400>;
|
2018-03-15 14:18:00 +07:00
|
|
|
clocks = <&rcc GPIOA>;
|
2018-02-26 22:35:40 +07:00
|
|
|
st,bank-name = "GPIOA";
|
|
|
|
ngpios = <16>;
|
|
|
|
gpio-ranges = <&pinctrl 0 0 16>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpiob: gpio@50003000 {
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
reg = <0x1000 0x400>;
|
2018-03-15 14:18:00 +07:00
|
|
|
clocks = <&rcc GPIOB>;
|
2018-02-26 22:35:40 +07:00
|
|
|
st,bank-name = "GPIOB";
|
|
|
|
ngpios = <16>;
|
|
|
|
gpio-ranges = <&pinctrl 0 16 16>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpioc: gpio@50004000 {
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
reg = <0x2000 0x400>;
|
2018-03-15 14:18:00 +07:00
|
|
|
clocks = <&rcc GPIOC>;
|
2018-02-26 22:35:40 +07:00
|
|
|
st,bank-name = "GPIOC";
|
|
|
|
ngpios = <16>;
|
|
|
|
gpio-ranges = <&pinctrl 0 32 16>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpiod: gpio@50005000 {
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
reg = <0x3000 0x400>;
|
2018-03-15 14:18:00 +07:00
|
|
|
clocks = <&rcc GPIOD>;
|
2018-02-26 22:35:40 +07:00
|
|
|
st,bank-name = "GPIOD";
|
|
|
|
ngpios = <16>;
|
|
|
|
gpio-ranges = <&pinctrl 0 48 16>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpioe: gpio@50006000 {
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
reg = <0x4000 0x400>;
|
2018-03-15 14:18:00 +07:00
|
|
|
clocks = <&rcc GPIOE>;
|
2018-02-26 22:35:40 +07:00
|
|
|
st,bank-name = "GPIOE";
|
|
|
|
ngpios = <16>;
|
|
|
|
gpio-ranges = <&pinctrl 0 64 16>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpiof: gpio@50007000 {
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
reg = <0x5000 0x400>;
|
2018-03-15 14:18:00 +07:00
|
|
|
clocks = <&rcc GPIOF>;
|
2018-02-26 22:35:40 +07:00
|
|
|
st,bank-name = "GPIOF";
|
|
|
|
ngpios = <16>;
|
|
|
|
gpio-ranges = <&pinctrl 0 80 16>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpiog: gpio@50008000 {
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
reg = <0x6000 0x400>;
|
2018-03-15 14:18:00 +07:00
|
|
|
clocks = <&rcc GPIOG>;
|
2018-02-26 22:35:40 +07:00
|
|
|
st,bank-name = "GPIOG";
|
|
|
|
ngpios = <16>;
|
|
|
|
gpio-ranges = <&pinctrl 0 96 16>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpioh: gpio@50009000 {
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
reg = <0x7000 0x400>;
|
2018-03-15 14:18:00 +07:00
|
|
|
clocks = <&rcc GPIOH>;
|
2018-02-26 22:35:40 +07:00
|
|
|
st,bank-name = "GPIOH";
|
|
|
|
ngpios = <16>;
|
|
|
|
gpio-ranges = <&pinctrl 0 112 16>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpioi: gpio@5000a000 {
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
reg = <0x8000 0x400>;
|
2018-03-15 14:18:00 +07:00
|
|
|
clocks = <&rcc GPIOI>;
|
2018-02-26 22:35:40 +07:00
|
|
|
st,bank-name = "GPIOI";
|
|
|
|
ngpios = <16>;
|
|
|
|
gpio-ranges = <&pinctrl 0 128 16>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpioj: gpio@5000b000 {
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
reg = <0x9000 0x400>;
|
2018-03-15 14:18:00 +07:00
|
|
|
clocks = <&rcc GPIOJ>;
|
2018-02-26 22:35:40 +07:00
|
|
|
st,bank-name = "GPIOJ";
|
|
|
|
ngpios = <16>;
|
|
|
|
gpio-ranges = <&pinctrl 0 144 16>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpiok: gpio@5000c000 {
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
reg = <0xa000 0x400>;
|
2018-03-15 14:18:00 +07:00
|
|
|
clocks = <&rcc GPIOK>;
|
2018-02-26 22:35:40 +07:00
|
|
|
st,bank-name = "GPIOK";
|
|
|
|
ngpios = <8>;
|
|
|
|
gpio-ranges = <&pinctrl 0 160 8>;
|
|
|
|
};
|
2018-02-26 22:49:18 +07:00
|
|
|
|
2018-04-24 14:54:00 +07:00
|
|
|
cec_pins_a: cec-0 {
|
|
|
|
pins {
|
|
|
|
pinmux = <STM32_PINMUX('A', 15, AF4)>;
|
|
|
|
bias-disable;
|
|
|
|
drive-open-drain;
|
|
|
|
slew-rate = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-04-23 16:48:00 +07:00
|
|
|
i2c1_pins_a: i2c1-0 {
|
|
|
|
pins {
|
|
|
|
pinmux = <STM32_PINMUX('D', 12, AF5)>, /* I2C1_SCL */
|
|
|
|
<STM32_PINMUX('F', 15, AF5)>; /* I2C1_SDA */
|
|
|
|
bias-disable;
|
|
|
|
drive-open-drain;
|
|
|
|
slew-rate = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c2_pins_a: i2c2-0 {
|
|
|
|
pins {
|
|
|
|
pinmux = <STM32_PINMUX('H', 4, AF4)>, /* I2C2_SCL */
|
|
|
|
<STM32_PINMUX('H', 5, AF4)>; /* I2C2_SDA */
|
|
|
|
bias-disable;
|
|
|
|
drive-open-drain;
|
|
|
|
slew-rate = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c5_pins_a: i2c5-0 {
|
|
|
|
pins {
|
|
|
|
pinmux = <STM32_PINMUX('A', 11, AF4)>, /* I2C5_SCL */
|
|
|
|
<STM32_PINMUX('A', 12, AF4)>; /* I2C5_SDA */
|
|
|
|
bias-disable;
|
|
|
|
drive-open-drain;
|
|
|
|
slew-rate = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-05-02 14:54:41 +07:00
|
|
|
pwm2_pins_a: pwm2-0 {
|
|
|
|
pins {
|
|
|
|
pinmux = <STM32_PINMUX('A', 3, AF1)>; /* TIM2_CH4 */
|
|
|
|
bias-pull-down;
|
|
|
|
drive-push-pull;
|
|
|
|
slew-rate = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pwm8_pins_a: pwm8-0 {
|
|
|
|
pins {
|
|
|
|
pinmux = <STM32_PINMUX('I', 2, AF3)>; /* TIM8_CH4 */
|
|
|
|
bias-pull-down;
|
|
|
|
drive-push-pull;
|
|
|
|
slew-rate = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pwm12_pins_a: pwm12-0 {
|
|
|
|
pins {
|
|
|
|
pinmux = <STM32_PINMUX('H', 6, AF2)>; /* TIM12_CH1 */
|
|
|
|
bias-pull-down;
|
|
|
|
drive-push-pull;
|
|
|
|
slew-rate = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-04-30 14:11:00 +07:00
|
|
|
qspi_clk_pins_a: qspi-clk-0 {
|
|
|
|
pins {
|
|
|
|
pinmux = <STM32_PINMUX('F', 10, AF9)>; /* QSPI_CLK */
|
|
|
|
bias-disable;
|
|
|
|
drive-push-pull;
|
|
|
|
slew-rate = <3>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
qspi_bk1_pins_a: qspi-bk1-0 {
|
|
|
|
pins1 {
|
|
|
|
pinmux = <STM32_PINMUX('F', 8, AF10)>, /* QSPI_BK1_IO0 */
|
|
|
|
<STM32_PINMUX('F', 9, AF10)>, /* QSPI_BK1_IO1 */
|
|
|
|
<STM32_PINMUX('F', 7, AF9)>, /* QSPI_BK1_IO2 */
|
|
|
|
<STM32_PINMUX('F', 6, AF9)>; /* QSPI_BK1_IO3 */
|
|
|
|
bias-disable;
|
|
|
|
drive-push-pull;
|
|
|
|
slew-rate = <3>;
|
|
|
|
};
|
|
|
|
pins2 {
|
|
|
|
pinmux = <STM32_PINMUX('B', 6, AF10)>; /* QSPI_BK1_NCS */
|
|
|
|
bias-pull-up;
|
|
|
|
drive-push-pull;
|
|
|
|
slew-rate = <3>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
qspi_bk2_pins_a: qspi-bk2-0 {
|
|
|
|
pins1 {
|
|
|
|
pinmux = <STM32_PINMUX('H', 2, AF9)>, /* QSPI_BK2_IO0 */
|
|
|
|
<STM32_PINMUX('H', 3, AF9)>, /* QSPI_BK2_IO1 */
|
|
|
|
<STM32_PINMUX('G', 10, AF11)>, /* QSPI_BK2_IO2 */
|
|
|
|
<STM32_PINMUX('G', 7, AF11)>; /* QSPI_BK2_IO3 */
|
|
|
|
bias-disable;
|
|
|
|
drive-push-pull;
|
|
|
|
slew-rate = <3>;
|
|
|
|
};
|
|
|
|
pins2 {
|
|
|
|
pinmux = <STM32_PINMUX('C', 0, AF10)>; /* QSPI_BK2_NCS */
|
|
|
|
bias-pull-up;
|
|
|
|
drive-push-pull;
|
|
|
|
slew-rate = <3>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-05-02 14:40:26 +07:00
|
|
|
uart4_pins_a: uart4-0 {
|
2018-02-26 22:49:18 +07:00
|
|
|
pins1 {
|
|
|
|
pinmux = <STM32_PINMUX('G', 11, AF6)>; /* UART4_TX */
|
|
|
|
bias-disable;
|
|
|
|
drive-push-pull;
|
|
|
|
slew-rate = <0>;
|
|
|
|
};
|
|
|
|
pins2 {
|
|
|
|
pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
|
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
};
|
2018-02-26 22:35:40 +07:00
|
|
|
};
|
|
|
|
|
2018-05-02 14:40:26 +07:00
|
|
|
pinctrl_z: pin-controller-z@54004000 {
|
2018-02-26 22:35:40 +07:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "st,stm32mp157-z-pinctrl";
|
|
|
|
ranges = <0 0x54004000 0x400>;
|
|
|
|
pins-are-numbered;
|
2018-04-26 23:18:34 +07:00
|
|
|
interrupt-parent = <&exti>;
|
|
|
|
st,syscfg = <&exti 0x60 0xff>;
|
2018-02-26 22:35:40 +07:00
|
|
|
status = "disabled";
|
|
|
|
|
|
|
|
gpioz: gpio@54004000 {
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
reg = <0 0x400>;
|
2018-03-15 14:18:00 +07:00
|
|
|
clocks = <&rcc GPIOZ>;
|
2018-02-26 22:35:40 +07:00
|
|
|
st,bank-name = "GPIOZ";
|
|
|
|
st,bank-ioport = <11>;
|
|
|
|
ngpios = <8>;
|
|
|
|
gpio-ranges = <&pinctrl_z 0 400 8>;
|
|
|
|
};
|
2018-04-23 16:48:00 +07:00
|
|
|
|
|
|
|
i2c4_pins_a: i2c4-0 {
|
|
|
|
pins {
|
|
|
|
pinmux = <STM32_PINMUX('Z', 4, AF6)>, /* I2C4_SCL */
|
|
|
|
<STM32_PINMUX('Z', 5, AF6)>; /* I2C4_SDA */
|
|
|
|
bias-disable;
|
|
|
|
drive-open-drain;
|
|
|
|
slew-rate = <0>;
|
|
|
|
};
|
|
|
|
};
|
2018-02-26 22:35:40 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|