4894 lines
139 KiB
Diff
4894 lines
139 KiB
Diff
From adbdec4cf36d1cf2127da0c16b43ec88a5e7253c Mon Sep 17 00:00:00 2001
|
|
From: Romuald JEANNE <romuald.jeanne@st.com>
|
|
Date: Tue, 13 Nov 2018 12:31:28 +0100
|
|
Subject: [PATCH 16/52] ARM: stm32mp1-r0-rc1: DEVICETREE
|
|
|
|
---
|
|
.../devicetree/bindings/dma/stm32-dma.txt | 32 +-
|
|
.../devicetree/bindings/dma/stm32-dmamux.txt | 5 +-
|
|
.../devicetree/bindings/dma/stm32-mdma.txt | 22 +-
|
|
.../devicetree/bindings/i2c/i2c-stm32.txt | 48 +-
|
|
.../devicetree/bindings/iio/adc/st,stm32-adc.txt | 64 ++-
|
|
.../bindings/iio/counter/stm32-lptimer-cnt.txt | 8 +-
|
|
.../bindings/iio/timer/stm32-timer-trigger.txt | 9 +
|
|
.../devicetree/bindings/input/st,stpmic1-onkey.txt | 28 +
|
|
.../devicetree/bindings/mfd/st,stm32mp1-pwr.txt | 53 ++
|
|
.../devicetree/bindings/mfd/st,stpmic1.txt | 132 +++++
|
|
Documentation/devicetree/bindings/mfd/stmfx.txt | 28 +
|
|
Documentation/devicetree/bindings/mmc/mmci.txt | 11 +
|
|
.../devicetree/bindings/mtd/stm32-fmc2-nand.txt | 59 ++
|
|
.../devicetree/bindings/nvmem/st,stm32-romem.txt | 31 ++
|
|
.../devicetree/bindings/pinctrl/pinctrl-stmfx.txt | 116 ++++
|
|
.../bindings/pinctrl/st,stm32-pinctrl.txt | 2 +
|
|
.../devicetree/bindings/pwm/pwm-stm32-lp.txt | 9 +-
|
|
.../devicetree/bindings/pwm/pwm-stm32.txt | 8 +-
|
|
.../bindings/regulator/st,stm32mp1-pwr-reg.txt | 31 ++
|
|
.../bindings/regulator/st,stpmic1-regulator.txt | 68 +++
|
|
.../devicetree/bindings/remoteproc/rproc-srm.txt | 57 ++
|
|
.../devicetree/bindings/remoteproc/stm32-rproc.txt | 78 +++
|
|
.../devicetree/bindings/rtc/st,stm32-rtc.txt | 10 +-
|
|
.../devicetree/bindings/serial/st,stm32-usart.txt | 40 +-
|
|
.../devicetree/bindings/spi/spi-stm32-qspi.txt | 44 ++
|
|
.../bindings/watchdog/st,stpmic1-wdt.txt | 11 +
|
|
arch/arm/boot/dts/Makefile | 2 +
|
|
arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 603 ++++++++++++++++++++-
|
|
arch/arm/boot/dts/stm32mp157a-dk1.dts | 412 ++++++++++++++
|
|
arch/arm/boot/dts/stm32mp157c-dk2.dts | 22 +
|
|
arch/arm/boot/dts/stm32mp157c-ed1.dts | 301 +++++++++-
|
|
arch/arm/boot/dts/stm32mp157c-ev1.dts | 121 ++++-
|
|
arch/arm/boot/dts/stm32mp157c-m4-srm.dtsi | 436 +++++++++++++++
|
|
arch/arm/boot/dts/stm32mp157c.dtsi | 457 ++++++++++++++--
|
|
arch/arm/boot/dts/stm32mp157caa-pinctrl.dtsi | 90 +++
|
|
arch/arm/boot/dts/stm32mp157cab-pinctrl.dtsi | 62 +++
|
|
arch/arm/boot/dts/stm32mp157cac-pinctrl.dtsi | 78 +++
|
|
arch/arm/boot/dts/stm32mp157cad-pinctrl.dtsi | 62 +++
|
|
38 files changed, 3526 insertions(+), 124 deletions(-)
|
|
create mode 100644 Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt
|
|
create mode 100644 Documentation/devicetree/bindings/mfd/st,stm32mp1-pwr.txt
|
|
create mode 100644 Documentation/devicetree/bindings/mfd/st,stpmic1.txt
|
|
create mode 100644 Documentation/devicetree/bindings/mfd/stmfx.txt
|
|
create mode 100644 Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt
|
|
create mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt
|
|
create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-stmfx.txt
|
|
create mode 100644 Documentation/devicetree/bindings/regulator/st,stm32mp1-pwr-reg.txt
|
|
create mode 100644 Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt
|
|
create mode 100644 Documentation/devicetree/bindings/remoteproc/rproc-srm.txt
|
|
create mode 100644 Documentation/devicetree/bindings/remoteproc/stm32-rproc.txt
|
|
create mode 100644 Documentation/devicetree/bindings/spi/spi-stm32-qspi.txt
|
|
create mode 100644 Documentation/devicetree/bindings/watchdog/st,stpmic1-wdt.txt
|
|
create mode 100644 arch/arm/boot/dts/stm32mp157a-dk1.dts
|
|
create mode 100644 arch/arm/boot/dts/stm32mp157c-dk2.dts
|
|
create mode 100644 arch/arm/boot/dts/stm32mp157c-m4-srm.dtsi
|
|
create mode 100644 arch/arm/boot/dts/stm32mp157caa-pinctrl.dtsi
|
|
create mode 100644 arch/arm/boot/dts/stm32mp157cab-pinctrl.dtsi
|
|
create mode 100644 arch/arm/boot/dts/stm32mp157cac-pinctrl.dtsi
|
|
create mode 100644 arch/arm/boot/dts/stm32mp157cad-pinctrl.dtsi
|
|
|
|
diff --git a/Documentation/devicetree/bindings/dma/stm32-dma.txt b/Documentation/devicetree/bindings/dma/stm32-dma.txt
|
|
index c5f5190..163be09 100644
|
|
--- a/Documentation/devicetree/bindings/dma/stm32-dma.txt
|
|
+++ b/Documentation/devicetree/bindings/dma/stm32-dma.txt
|
|
@@ -17,6 +17,12 @@ Optional properties:
|
|
- resets: Reference to a reset controller asserting the DMA controller
|
|
- st,mem2mem: boolean; if defined, it indicates that the controller supports
|
|
memory-to-memory transfer
|
|
+- dmas: A list of eight dma specifiers, one for each entry in dma-names.
|
|
+ Refer to stm32-mdma.txt for more details.
|
|
+- dma-names: should contain "ch0", "ch1", "ch2", "ch3", "ch4", "ch5", "ch6" and
|
|
+ "ch7" and represents each STM32 DMA channel connected to a STM32 MDMA one.
|
|
+- memory-region : phandle to a node describing memory to be used for
|
|
+ M2M intermediate transfer between DMA and MDMA.
|
|
|
|
Example:
|
|
|
|
@@ -36,6 +42,16 @@ Example:
|
|
st,mem2mem;
|
|
resets = <&rcc 150>;
|
|
dma-requests = <8>;
|
|
+ dmas = <&mdma1 8 0x10 0x1200000a 0x40026408 0x00000020 1>,
|
|
+ <&mdma1 9 0x10 0x1200000a 0x40026408 0x00000800 1>,
|
|
+ <&mdma1 10 0x10 0x1200000a 0x40026408 0x00200000 1>,
|
|
+ <&mdma1 11 0x10 0x1200000a 0x40026408 0x08000000 1>,
|
|
+ <&mdma1 12 0x10 0x1200000a 0x4002640C 0x00000020 1>,
|
|
+ <&mdma1 13 0x10 0x1200000a 0x4002640C 0x00000800 1>,
|
|
+ <&mdma1 14 0x10 0x1200000a 0x4002640C 0x00200000 1>,
|
|
+ <&mdma1 15 0x10 0x1200000a 0x4002640C 0x08000000 1>;
|
|
+ dma-names = "ch0", "ch1", "ch2", "ch3", "ch4", "ch5", "ch6", "ch7";
|
|
+ memory-region = <&sram_dmapool>;
|
|
};
|
|
|
|
* DMA client
|
|
@@ -62,13 +78,21 @@ channel: a phandle to the DMA controller plus the following four integer cells:
|
|
0x1: medium
|
|
0x2: high
|
|
0x3: very high
|
|
-4. A 32bit bitfield value specifying DMA features which are device dependent:
|
|
+4. A bitfield value specifying DMA features which are device dependent:
|
|
-bit 0-1: DMA FIFO threshold selection
|
|
0x0: 1/4 full FIFO
|
|
0x1: 1/2 full FIFO
|
|
0x2: 3/4 full FIFO
|
|
0x3: full FIFO
|
|
-
|
|
+ -bit 2: Intermediate M2M transfer from/to DDR to/from SRAM throughout MDMA
|
|
+ 0: MDMA not used to generate an intermediate M2M transfer
|
|
+ 1: MDMA used to generate an intermediate M2M transfer.
|
|
+ -bit 3-4: indicated SRAM Buffer size in (2^order)*PAGE_SIZE.
|
|
+ Order is given by those 2 bits starting at 0.
|
|
+ Valid only whether Intermediate M2M transfer is set.
|
|
+ For cyclic, whether Intermediate M2M transfer is chosen, any value can
|
|
+ be set: SRAM buffer size will rely on period size and not on this DT
|
|
+ value.
|
|
|
|
Example:
|
|
|
|
@@ -77,7 +101,7 @@ Example:
|
|
reg = <0x40011000 0x400>;
|
|
interrupts = <37>;
|
|
clocks = <&clk_pclk2>;
|
|
- dmas = <&dma2 2 4 0x10400 0x3>,
|
|
- <&dma2 7 5 0x10200 0x3>;
|
|
+ dmas = <&dma2 2 4 0x10400 0x1>,
|
|
+ <&dma2 7 5 0x10200 0x1>;
|
|
dma-names = "rx", "tx";
|
|
};
|
|
diff --git a/Documentation/devicetree/bindings/dma/stm32-dmamux.txt b/Documentation/devicetree/bindings/dma/stm32-dmamux.txt
|
|
index 1b893b2..8e092d2 100644
|
|
--- a/Documentation/devicetree/bindings/dma/stm32-dmamux.txt
|
|
+++ b/Documentation/devicetree/bindings/dma/stm32-dmamux.txt
|
|
@@ -4,9 +4,6 @@ Required properties:
|
|
- compatible: "st,stm32h7-dmamux"
|
|
- reg: Memory map for accessing module
|
|
- #dma-cells: Should be set to <3>.
|
|
- First parameter is request line number.
|
|
- Second is DMA channel configuration
|
|
- Third is Fifo threshold
|
|
For more details about the three cells, please see
|
|
stm32-dma.txt documentation binding file
|
|
- dma-masters: Phandle pointing to the DMA controllers.
|
|
@@ -53,7 +50,7 @@ dma2: dma@40020400 {
|
|
<68>,
|
|
<69>,
|
|
<70>;
|
|
- clocks = <&timer_clk>;
|
|
+ clocks = <&clk_hclk>;
|
|
#dma-cells = <4>;
|
|
st,mem2mem;
|
|
resets = <&rcc 150>;
|
|
diff --git a/Documentation/devicetree/bindings/dma/stm32-mdma.txt b/Documentation/devicetree/bindings/dma/stm32-mdma.txt
|
|
index d18772d..1810f87 100644
|
|
--- a/Documentation/devicetree/bindings/dma/stm32-mdma.txt
|
|
+++ b/Documentation/devicetree/bindings/dma/stm32-mdma.txt
|
|
@@ -10,7 +10,7 @@ Required properties:
|
|
- interrupts: Should contain the MDMA interrupt.
|
|
- clocks: Should contain the input clock of the DMA instance.
|
|
- resets: Reference to a reset controller asserting the DMA controller.
|
|
-- #dma-cells : Must be <5>. See DMA client paragraph for more details.
|
|
+- #dma-cells : Must be <6>. See DMA client paragraph for more details.
|
|
|
|
Optional properties:
|
|
- dma-channels: Number of DMA channels supported by the controller.
|
|
@@ -26,7 +26,7 @@ Example:
|
|
interrupts = <122>;
|
|
clocks = <&timer_clk>;
|
|
resets = <&rcc 992>;
|
|
- #dma-cells = <5>;
|
|
+ #dma-cells = <6>;
|
|
dma-channels = <16>;
|
|
dma-requests = <32>;
|
|
st,ahb-addr-masks = <0x20000000>, <0x00000000>;
|
|
@@ -35,8 +35,8 @@ Example:
|
|
* DMA client
|
|
|
|
DMA clients connected to the STM32 MDMA controller must use the format
|
|
-described in the dma.txt file, using a five-cell specifier for each channel:
|
|
-a phandle to the MDMA controller plus the following five integer cells:
|
|
+described in the dma.txt file, using a six-cell specifier for each channel:
|
|
+a phandle to the MDMA controller plus the following six integer cells:
|
|
|
|
1. The request line number
|
|
2. The priority level
|
|
@@ -76,19 +76,23 @@ a phandle to the MDMA controller plus the following five integer cells:
|
|
if no HW ack signal is used by the MDMA client
|
|
5. A 32bit mask specifying the value to be written to acknowledge the request
|
|
if no HW ack signal is used by the MDMA client
|
|
+6. A bitfield value specifying if the MDMA client wants to generate M2M
|
|
+ transfer with HW trigger (1) or not (0). This bitfield should be only
|
|
+ enabled for M2M transfer triggered by STM32 DMA client. The memory devices
|
|
+ involved in this kind of transfer are SRAM and DDR.
|
|
|
|
Example:
|
|
|
|
i2c4: i2c@5c002000 {
|
|
compatible = "st,stm32f7-i2c";
|
|
reg = <0x5c002000 0x400>;
|
|
- interrupts = <95>,
|
|
- <96>;
|
|
- clocks = <&timer_clk>;
|
|
+ interrupts = <GIC_SPI 95 IRQ_TYPE_NONE>,
|
|
+ <GIC_SPI 96 IRQ_TYPE_NONE>;
|
|
+ clocks = <&clk_hsi>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
- dmas = <&mdma1 36 0x0 0x40008 0x0 0x0>,
|
|
- <&mdma1 37 0x0 0x40002 0x0 0x0>;
|
|
+ dmas = <&mdma1 36 0x0 0x40008 0x0 0x0 0>,
|
|
+ <&mdma1 37 0x0 0x40002 0x0 0x0 0>;
|
|
dma-names = "rx", "tx";
|
|
status = "disabled";
|
|
};
|
|
diff --git a/Documentation/devicetree/bindings/i2c/i2c-stm32.txt b/Documentation/devicetree/bindings/i2c/i2c-stm32.txt
|
|
index 3b54899..e76fe82 100644
|
|
--- a/Documentation/devicetree/bindings/i2c/i2c-stm32.txt
|
|
+++ b/Documentation/devicetree/bindings/i2c/i2c-stm32.txt
|
|
@@ -7,10 +7,12 @@ Required properties :
|
|
- reg : Offset and length of the register set for the device
|
|
- interrupts : Must contain the interrupt id for I2C event and then the
|
|
interrupt id for I2C error.
|
|
+ Optionnaly a wakeup interrupt may be specified.
|
|
- resets: Must contain the phandle to the reset controller.
|
|
- clocks: Must contain the input clock of the I2C instance.
|
|
- A pinctrl state named "default" must be defined to set pins in mode of
|
|
- operation for I2C transfer
|
|
+ operation for I2C transfer. An optional pinctrl state named "sleep" has to
|
|
+ be defined as well as to put I2C in low power mode in suspend mode.
|
|
- #address-cells = <1>;
|
|
- #size-cells = <0>;
|
|
|
|
@@ -26,6 +28,11 @@ Optional properties :
|
|
- i2c-scl-falling-time-ns : Only for STM32F7, I2C SCL Falling time for the board
|
|
(default: 10)
|
|
I2C Timings are derived from these 2 values
|
|
+- st,syscfg-fmp: Only for STM32F7, use to set Fast Mode Plus bit within SYSCFG
|
|
+ whether Fast Mode Plus speed is selected by slave.
|
|
+ 1st cell : phandle to syscfg
|
|
+ 2nd cell : register offset within SYSCFG
|
|
+ 3rd cell : register bitmask for FMP bit
|
|
|
|
Example :
|
|
|
|
@@ -52,5 +59,42 @@ Example :
|
|
resets = <&rcc STM32F7_APB1_RESET(I2C1)>;
|
|
clocks = <&rcc 1 CLK_I2C1>;
|
|
pinctrl-0 = <&i2c1_sda_pin>, <&i2c1_scl_pin>;
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-1 = <&i2c1_sda_pin_sleep>, <&i2c1_scl_pin_sleep>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ st,syscfg-fmp = <&syscfg 0x4 0x1>;
|
|
+ };
|
|
+
|
|
+ i2c@40013000 {
|
|
+ compatible = "st,stm32f7-i2c";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ reg = <0x40013000 0x400>;
|
|
+ interrupt-names = "event", "error", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&intc GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 22 1>;
|
|
+ clocks = <&rcc I2C2_K>;
|
|
+ resets = <&rcc I2C2_R>;
|
|
+ st,syscfg-fmp = <&syscfg 0x4 0x2>;
|
|
+ };
|
|
+
|
|
+
|
|
+* I2C Devices
|
|
+
|
|
+An I2C device connected onto STM32 I2C controller must use a format described by
|
|
+i2c.txt file.
|
|
+
|
|
+Required properties :
|
|
+- compatible
|
|
+ Device driver compatible name
|
|
+- reg
|
|
+ I2C slave addresses (see i2c.txt for more details)
|
|
+
|
|
+Optional properties :
|
|
+
|
|
+ i2c@40013000 {
|
|
+ camera@3c {
|
|
+ compatible = "ovti,ov5640";
|
|
+ reg = <0x3c>;
|
|
+ };
|
|
};
|
|
diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
|
|
index 8346bcb..c46598c 100644
|
|
--- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
|
|
+++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
|
|
@@ -46,6 +46,8 @@ Required properties:
|
|
Optional properties:
|
|
- A pinctrl state named "default" for each ADC channel may be defined to set
|
|
inX ADC pins in mode of operation for analog input on external pin.
|
|
+- st,max-clk-rate-hz: Allow to specify desired max clock rate used by analog
|
|
+ circuitry.
|
|
|
|
Contents of a stm32 adc child node:
|
|
-----------------------------------
|
|
@@ -63,8 +65,8 @@ Required properties:
|
|
- interrupts: IRQ Line for the ADC (e.g. may be 0 for adc@0, 1 for adc@100 or
|
|
2 for adc@200).
|
|
- st,adc-channels: List of single-ended channels muxed for this ADC.
|
|
- It can have up to 16 channels on stm32f4 or 20 channels on stm32h7, numbered
|
|
- from 0 to 15 or 19 (resp. for in0..in15 or in0..in19).
|
|
+ It can have up to 19 channels on stm32f4 or 20 channels on stm32h7, numbered
|
|
+ from 0 to 18 or 19 (resp. for in0..in18 or in0..in19).
|
|
- st,adc-diff-channels: List of differential channels muxed for this ADC.
|
|
Depending on part used, some channels can be configured as differential
|
|
instead of single-ended (e.g. stm32h7). List here positive and negative
|
|
@@ -91,6 +93,38 @@ Optional properties:
|
|
fine tune of ADC sampling time may be recommended.
|
|
This can be either one value or an array that matches 'st,adc-channels' list,
|
|
to set sample time resp. for all channels, or independently for each channel.
|
|
+- st,trigger-polarity: Must be 0 (default), 1 or 2 to set default trigger
|
|
+ polarity to respectively "rising-edge", "falling-edge" or "both-edges".
|
|
+- st,injected: Use injected conversion sequence on an ADC, rather than regular.
|
|
+
|
|
+Contents of a STM32 ADC temperature child node:
|
|
+-----------------------------------------------
|
|
+Required properties:
|
|
+- compatible: Should be one of:
|
|
+ "st,stm32f4-adc-temp"
|
|
+ "st,stm32h7-adc-temp"
|
|
+ "st,stm32mp1-adc-temp"
|
|
+- io-channels: Phandle to STM32 ADC temperature channel.
|
|
+- #io-channel-cells = <0>;
|
|
+- #thermal-sensor-cells = <0>;
|
|
+
|
|
+Optional properties:
|
|
+- nvmem-cells: Phandles to nvmem cells that contain "ts_cal1" and "ts_cal2".
|
|
+- nvmem-cell-names: Must be "ts_cal1", "ts_cal2".
|
|
+
|
|
+Contents of a stm32 adc EXTI trigger child node:
|
|
+------------------------------------------------
|
|
+EXTI (External interrupt) can be used by STM32ADC as trigger source for
|
|
+conversions. ADC may use up to two EXTI GPIO lines: 11 & 15, e.g. external
|
|
+trigger signal can be routed to GPIOx (x is bank) pin 11 and/or 15. So,
|
|
+exti trigger child node is optional.
|
|
+
|
|
+Required properties:
|
|
+- trigger-name: Must be exti11 (regular) or exti15 (injected).
|
|
+- interrupts: The exti interrupt source used as trigger. Generic interrupt
|
|
+ client node as described in ../../interrupt-controller/interrupts.txt
|
|
+ EXTI IRQ number must match with above trigger-name (e.g. 11 or 15).
|
|
+- interrupt-parent: Must be phandle to gpio bank.
|
|
|
|
Example:
|
|
adc: adc@40012000 {
|
|
@@ -119,9 +153,16 @@ Example:
|
|
dmas = <&dma2 0 0 0x400 0x0>;
|
|
dma-names = "rx";
|
|
assigned-resolution-bits = <8>;
|
|
+ st,trigger-polarity = <1>;
|
|
};
|
|
...
|
|
other adc child nodes follow...
|
|
+
|
|
+ exti11 {
|
|
+ trigger-name = "exti11";
|
|
+ interrupts = <11 0>;
|
|
+ interrupt-parent = <&gpioa>;
|
|
+ };
|
|
};
|
|
|
|
Example to setup:
|
|
@@ -138,3 +179,22 @@ Example to setup:
|
|
st,adc-diff-channels = <2 6>, <3 7>;
|
|
};
|
|
};
|
|
+
|
|
+Temperature sensor example:
|
|
+ adc: adc@40012000 {
|
|
+ compatible = "st,stm32f4-adc-core";
|
|
+ ...
|
|
+ adc1: adc@0 {
|
|
+ ...
|
|
+ st,adc-channels = <18>;
|
|
+ st,min-sample-time-nsecs = <10000>;
|
|
+ };
|
|
+ adc_temp: temp {
|
|
+ compatible = "st,stm32f4-adc-temp";
|
|
+ io-channels = <&adc1 18>;
|
|
+ nvmem-cells = <&ts_cal1>, <&ts_cal2>;
|
|
+ nvmem-cell-names = "ts_cal1", "ts_cal2";
|
|
+ #io-channel-cells = <0>;
|
|
+ #thermal-sensor-cells = <0>;
|
|
+ };
|
|
+ };
|
|
diff --git a/Documentation/devicetree/bindings/iio/counter/stm32-lptimer-cnt.txt b/Documentation/devicetree/bindings/iio/counter/stm32-lptimer-cnt.txt
|
|
index a04aa5c..e90bc47 100644
|
|
--- a/Documentation/devicetree/bindings/iio/counter/stm32-lptimer-cnt.txt
|
|
+++ b/Documentation/devicetree/bindings/iio/counter/stm32-lptimer-cnt.txt
|
|
@@ -10,8 +10,9 @@ See ../mfd/stm32-lptimer.txt for details about the parent node.
|
|
|
|
Required properties:
|
|
- compatible: Must be "st,stm32-lptimer-counter".
|
|
-- pinctrl-names: Set to "default".
|
|
-- pinctrl-0: List of phandles pointing to pin configuration nodes,
|
|
+- pinctrl-names: Set to "default". An additional "sleep" state can be
|
|
+ defined to set pins in sleep state.
|
|
+- pinctrl-n: List of phandles pointing to pin configuration nodes,
|
|
to set IN1/IN2 pins in mode of operation for Low-Power
|
|
Timer input on external pin.
|
|
|
|
@@ -21,7 +22,8 @@ Example:
|
|
...
|
|
counter {
|
|
compatible = "st,stm32-lptimer-counter";
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-names = "default", "sleep";
|
|
pinctrl-0 = <&lptim1_in_pins>;
|
|
+ pinctrl-1 = <&lptim1_sleep_in_pins>;
|
|
};
|
|
};
|
|
diff --git a/Documentation/devicetree/bindings/iio/timer/stm32-timer-trigger.txt b/Documentation/devicetree/bindings/iio/timer/stm32-timer-trigger.txt
|
|
index b8e8c76..4713ff1 100644
|
|
--- a/Documentation/devicetree/bindings/iio/timer/stm32-timer-trigger.txt
|
|
+++ b/Documentation/devicetree/bindings/iio/timer/stm32-timer-trigger.txt
|
|
@@ -9,6 +9,12 @@ Required parameters:
|
|
"st,stm32h7-timer-trigger"
|
|
- reg: Identify trigger hardware block.
|
|
|
|
+Optional properties:
|
|
+- pinctrl-names: Set to "default". An additional "sleep" state can be
|
|
+ defined to set pins in sleep state when in low power.
|
|
+- pinctrl-n: Phandle(s) pointing to pin configuration node for PWM,
|
|
+ respectively for "default" and "sleep" states.
|
|
+
|
|
Example:
|
|
timers@40010000 {
|
|
#address-cells = <1>;
|
|
@@ -21,5 +27,8 @@ Example:
|
|
timer@0 {
|
|
compatible = "st,stm32-timer-trigger";
|
|
reg = <0>;
|
|
+ pinctrl-0 = <&tim1_pins>;
|
|
+ pinctrl-1 = <&tim1_sleep_pins>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
};
|
|
};
|
|
diff --git a/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt b/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt
|
|
new file mode 100644
|
|
index 0000000..4494613
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt
|
|
@@ -0,0 +1,28 @@
|
|
+STMicroelectronics STPMIC1 Onkey
|
|
+
|
|
+Required properties:
|
|
+
|
|
+- compatible = "st,stpmic1-onkey";
|
|
+- interrupts: interrupt line to use
|
|
+- interrupt-names = "onkey-falling", "onkey-rising"
|
|
+ onkey-falling: happens when onkey is pressed; IT_PONKEY_F of pmic
|
|
+ onkey-rising: happens when onkey is released; IT_PONKEY_R of pmic
|
|
+
|
|
+Optional properties:
|
|
+
|
|
+- st,onkey-clear-cc-flag: onkey is able power on after an
|
|
+ over-current shutdown event.
|
|
+- st,onkey-pu-inactive: onkey pull up is not active
|
|
+- power-off-time-sec: Duration in seconds which the key should be kept
|
|
+ pressed for device to power off automatically (from 1 to 16 seconds).
|
|
+ see See Documentation/devicetree/bindings/input/keys.txt
|
|
+
|
|
+Example:
|
|
+
|
|
+onkey {
|
|
+ compatible = "st,stpmic1-onkey";
|
|
+ interrupt-parent = <&pmic>;
|
|
+ interrupts = <IT_PONKEY_F 0>,<IT_PONKEY_R 1>;
|
|
+ interrupt-names = "onkey-falling", "onkey-rising";
|
|
+ power-off-time-sec = <10>;
|
|
+};
|
|
diff --git a/Documentation/devicetree/bindings/mfd/st,stm32mp1-pwr.txt b/Documentation/devicetree/bindings/mfd/st,stm32mp1-pwr.txt
|
|
new file mode 100644
|
|
index 0000000..8e04895
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/mfd/st,stm32mp1-pwr.txt
|
|
@@ -0,0 +1,53 @@
|
|
+STMicroelectronics STM32MP1 Power Management Controller
|
|
+=======================================================
|
|
+
|
|
+The PWR IP is responsible for handling the power related resources such as
|
|
+clocks, power supplies and resets. It provides 6 wake-up pins that are handled
|
|
+by an interrupt-controller. Wake-up pin can be used to wake-up from STANDBY SoC state.
|
|
+
|
|
+Required properties:
|
|
+- compatible should be: "st,stm32mp1-pwr"
|
|
+- reg: should be register base and length as documented in the
|
|
+ datasheet
|
|
+- interrupts: contains the reference to the gic wake-up pin interrupt
|
|
+- interrupt-controller; Enable interrupt controller for wake-up pins.
|
|
+- #interrupt-cells = <3>
|
|
+
|
|
+Optional Properties:
|
|
+- pwr-supply: main soc power supply
|
|
+
|
|
+Interrupt consumers have to specify 3 cells:
|
|
+ - cell 1: wake-up pin id from 0 to 5
|
|
+ - cell 2: IRQ_TYPE_EDGE_FALLING or IRQ_TYPE_EDGE_RISING
|
|
+ - cell 3: Pull config: 0 = No Pull, 1=Pull Up, 2=Pull Down
|
|
+
|
|
+
|
|
+Example:
|
|
+
|
|
+ pwr: pwr@50001000 {
|
|
+ compatible = "st,stm32mp1-pwr", "simple-mfd";
|
|
+ reg = <0x50001000 0x400>;
|
|
+ interrupts = <GIC_SPI 149 IRQ_TYPE_NONE>;
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <3>;
|
|
+
|
|
+ pwr-supply = <&vdd>;
|
|
+ };
|
|
+
|
|
+
|
|
+Example of interrupt user:
|
|
+gpio_keys {
|
|
+ compatible = "gpio-keys";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ button@4 {
|
|
+ label = "WakeUp4";
|
|
+ linux,code = <BTN_4>;
|
|
+ interrupt-parent = <&pwr>;
|
|
+ interrupts = <3 IRQ_TYPE_EDGE_FALLING 1>;
|
|
+ status = "okay";
|
|
+ wakeup-source;
|
|
+ };
|
|
+};
|
|
+
|
|
diff --git a/Documentation/devicetree/bindings/mfd/st,stpmic1.txt b/Documentation/devicetree/bindings/mfd/st,stpmic1.txt
|
|
new file mode 100644
|
|
index 0000000..54b64e2
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/mfd/st,stpmic1.txt
|
|
@@ -0,0 +1,132 @@
|
|
+* STMicroelectronics STPMIC1 Power Management IC
|
|
+
|
|
+Required parent device properties:
|
|
+- compatible: "st,stpmic1"
|
|
+- reg: The I2C slave address for the STPMIC1 chip.
|
|
+- interrupts: The interrupt lines the device is connected to.
|
|
+ The second interrupt is used for wake-up.
|
|
+- #interrupt-cells: Should be 2.
|
|
+- interrupt-controller: Describes the STPMIC1 as an interrupt
|
|
+ controller (has its own domain). Interrupt number are the following:
|
|
+ /* Interrupt Register 1 (0x50 for latch) */
|
|
+ IT_SWOUT_R=0
|
|
+ IT_SWOUT_F=1
|
|
+ IT_VBUS_OTG_R=2
|
|
+ IT_VBUS_OTG_F=3
|
|
+ IT_WAKEUP_R=4
|
|
+ IT_WAKEUP_F=5
|
|
+ IT_PONKEY_R=6
|
|
+ IT_PONKEY_F=7
|
|
+ /* Interrupt Register 2 (0x51 for latch) */
|
|
+ IT_OVP_BOOST=8
|
|
+ IT_OCP_BOOST=9
|
|
+ IT_OCP_SWOUT=10
|
|
+ IT_OCP_OTG=11
|
|
+ IT_CURLIM_BUCK4=12
|
|
+ IT_CURLIM_BUCK3=13
|
|
+ IT_CURLIM_BUCK2=14
|
|
+ IT_CURLIM_BUCK1=15
|
|
+ /* Interrupt Register 3 (0x52 for latch) */
|
|
+ IT_SHORT_SWOUT=16
|
|
+ IT_SHORT_SWOTG=17
|
|
+ IT_CURLIM_LDO6=18
|
|
+ IT_CURLIM_LDO5=19
|
|
+ IT_CURLIM_LDO4=20
|
|
+ IT_CURLIM_LDO3=21
|
|
+ IT_CURLIM_LDO2=22
|
|
+ IT_CURLIM_LDO1=23
|
|
+ /* Interrupt Register 3 (0x52 for latch) */
|
|
+ IT_SWIN_R=24
|
|
+ IT_SWIN_F=25
|
|
+ IT_RESERVED_1=26
|
|
+ IT_RESERVED_2=27
|
|
+ IT_VINLOW_R=28
|
|
+ IT_VINLOW_F=29
|
|
+ IT_TWARN_R=30
|
|
+ IT_TWARN_F=31
|
|
+
|
|
+Optional parent device properties:
|
|
+- st,main-control-register:
|
|
+ -bit 1: Power cycling will be performed on turn OFF condition
|
|
+ -bit 2: PWRCTRL is functional
|
|
+ -bit 3: PWRCTRL active high
|
|
+- st,pads-pull-register:
|
|
+ -bit 1: WAKEUP pull down is not active
|
|
+ -bit 2: PWRCTRL pull up is active
|
|
+ -bit 3: PWRCTRL pull down is active
|
|
+ -bit 4: WAKEUP detector is disabled
|
|
+- st,vin-control-register:
|
|
+ -bit 0: VINLOW monitoring is enabled
|
|
+ -bit [1...3]: VINLOW rising threshold
|
|
+ 000 VINOK_f + 50mV
|
|
+ 001 VINOK_f + 100mV
|
|
+ 010 VINOK_f + 150mV
|
|
+ 011 VINOK_f + 200mV
|
|
+ 100 VINOK_f + 250mV
|
|
+ 101 VINOK_f + 300mV
|
|
+ 110 VINOK_f + 350mV
|
|
+ 111 VINOK_f + 400mV
|
|
+ -bit [4...5]: VINLOW hyst
|
|
+ 00 100mV
|
|
+ 01 200mV
|
|
+ 10 300mV
|
|
+ 11 400mV
|
|
+ -bit 6: SW_OUT detector is disabled
|
|
+ -bit 7: SW_IN detector is enabled.
|
|
+- st,usb-control-register:
|
|
+ -bit 3: SW_OUT current limit
|
|
+ 0: 600mA
|
|
+ 1: 1.1A
|
|
+ -bit 4: VBUS_OTG discharge is enabled
|
|
+ -bit 5: SW_OUT discharge is enabled
|
|
+ -bit 6: VBUS_OTG detection is enabled
|
|
+ -bit 7: BOOST_OVP is disabled
|
|
+
|
|
+STPMIC1 consists in a varied group of sub-devices.
|
|
+Each sub-device binding is be described in own documentation file.
|
|
+
|
|
+Device Description
|
|
+------ ------------
|
|
+st,stpmic1-onkey : Power on key, see ../input/st,stpmic1-onkey.txt
|
|
+st,stpmic1-regulators : Regulators, see ../regulator/st,stpmic1-regulator.txt
|
|
+st,stpmic1-wdt : Watchdog, see ../watchdog/st,stpmic1-wdt.txt
|
|
+
|
|
+Example:
|
|
+
|
|
+pmic: pmic@33 {
|
|
+ compatible = "st,stpmic1";
|
|
+ reg = <0x33>;
|
|
+ interrupt-parent = <&gpioa>;
|
|
+ interrupts = <0 2>;
|
|
+ st,main-control-register=<0x0c>;
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <2>;
|
|
+
|
|
+ onkey {
|
|
+ compatible = "st,stpmic1-onkey";
|
|
+ interrupts = <IT_PONKEY_F 0>,<IT_PONKEY_R 1>;
|
|
+ interrupt-names = "onkey-falling", "onkey-rising";
|
|
+ power-off-time-sec = <10>;
|
|
+ };
|
|
+
|
|
+ watchdog {
|
|
+ compatible = "st,stpmic1-wdt";
|
|
+ };
|
|
+
|
|
+ regulators {
|
|
+ compatible = "st,stpmic1-regulators";
|
|
+
|
|
+ vdd_core: buck1 {
|
|
+ regulator-name = "vdd_core";
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <700000>;
|
|
+ regulator-max-microvolt = <1200000>;
|
|
+ };
|
|
+ vdd: buck3 {
|
|
+ regulator-name = "vdd";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-boot-on;
|
|
+ regulator-pull-down;
|
|
+ };
|
|
+ };
|
|
diff --git a/Documentation/devicetree/bindings/mfd/stmfx.txt b/Documentation/devicetree/bindings/mfd/stmfx.txt
|
|
new file mode 100644
|
|
index 0000000..f0c2f7f
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/mfd/stmfx.txt
|
|
@@ -0,0 +1,28 @@
|
|
+STMicroelectonics Multi-Function eXpander (STMFX) Core bindings
|
|
+
|
|
+ST Multi-Function eXpander (STMFX) is a slave controller using I2C for
|
|
+communication with the main MCU. Its main features are GPIO expansion, main
|
|
+MCU IDD measurement (IDD is the amount of current that flows through VDD) and
|
|
+resistive touchscreen controller.
|
|
+
|
|
+Required properties:
|
|
+- compatible: should be "st,stmfx-0300".
|
|
+- reg: I2C slave address of the device.
|
|
+- interrupts: interrupt specifier triggered by MFX_IRQ_OUT signal.
|
|
+ Please refer to ../interrupt-controller/interrupt.txt
|
|
+
|
|
+Optional properties:
|
|
+- drive-open-drain: configure MFX_IRQ_OUT as open drain.
|
|
+- vdd-supply: phandle of the regulator supplying STMFX.
|
|
+
|
|
+Example:
|
|
+
|
|
+ stmfx: stmfx@42 {
|
|
+ compatible = "st,stmfx-0300";
|
|
+ reg = <0x42>;
|
|
+ interrupts = <8 IRQ_TYPE_EDGE_RISING>;
|
|
+ interrupt-parent = <&gpioi>;
|
|
+ vdd-supply = <&v3v3>;
|
|
+ };
|
|
+
|
|
+Please refer to ../pinctrl/pinctrl-stmfx.txt for STMFX GPIO expander function bindings.
|
|
diff --git a/Documentation/devicetree/bindings/mmc/mmci.txt b/Documentation/devicetree/bindings/mmc/mmci.txt
|
|
index 03796cf..6d3c626 100644
|
|
--- a/Documentation/devicetree/bindings/mmc/mmci.txt
|
|
+++ b/Documentation/devicetree/bindings/mmc/mmci.txt
|
|
@@ -15,8 +15,11 @@ Required properties:
|
|
Optional properties:
|
|
- arm,primecell-periphid : contains the PrimeCell Peripheral ID, it overrides
|
|
the ID provided by the HW
|
|
+- resets : phandle to internal reset line.
|
|
+ Should be defined for sdmmc variant.
|
|
- vqmmc-supply : phandle to the regulator device tree node, mentioned
|
|
as the VCCQ/VDD_IO supply in the eMMC/SD specs.
|
|
+specific for ux500 variant:
|
|
- st,sig-dir-dat0 : bus signal direction pin used for DAT[0].
|
|
- st,sig-dir-dat2 : bus signal direction pin used for DAT[2].
|
|
- st,sig-dir-dat31 : bus signal direction pin used for DAT[3] and DAT[1].
|
|
@@ -24,6 +27,14 @@ Optional properties:
|
|
- st,sig-dir-cmd : cmd signal direction pin used for CMD.
|
|
- st,sig-pin-fbclk : feedback clock signal pin used.
|
|
|
|
+specific for sdmmc variant:
|
|
+- st,sig-dir : signal direction polarity used for cmd, dat0 dat123.
|
|
+- st,neg-edge : data & command phase relation, generated on
|
|
+ sd clock falling edge.
|
|
+- st,use-ckin : use ckin pin from an external driver to sample
|
|
+ the receive data (example: with voltage
|
|
+ switch transceiver).
|
|
+
|
|
Deprecated properties:
|
|
- mmc-cap-mmc-highspeed : indicates whether MMC is high speed capable.
|
|
- mmc-cap-sd-highspeed : indicates whether SD is high speed capable.
|
|
diff --git a/Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt b/Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt
|
|
new file mode 100644
|
|
index 0000000..70e76be
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/mtd/stm32-fmc2-nand.txt
|
|
@@ -0,0 +1,59 @@
|
|
+STMicroelectronics Flexible Memory Controller 2 (FMC2)
|
|
+NAND Interface
|
|
+
|
|
+Required properties:
|
|
+- compatible: Should be one of:
|
|
+ * st,stm32mp15-fmc2
|
|
+- reg: NAND flash controller memory areas.
|
|
+ First region contains the register location.
|
|
+ Regions 2 to 4 respectively contain the data, command,
|
|
+ and address space for CS0.
|
|
+ Regions 5 to 7 contain the same areas for CS1.
|
|
+- interrupts: The interrupt number
|
|
+- pinctrl-0: Standard Pinctrl phandle (see: pinctrl/pinctrl-bindings.txt)
|
|
+- clocks: The clock needed by the NAND flash controller
|
|
+
|
|
+Optional properties:
|
|
+- resets: Reference to a reset controller asserting the FMC controller
|
|
+- dmas: DMA specifiers (see: dma/stm32-mdma.txt)
|
|
+- dma-names: Must be "tx", "rx" and "ecc"
|
|
+
|
|
+Optional children nodes:
|
|
+Children nodes represent the available NAND chips.
|
|
+
|
|
+Optional properties:
|
|
+- nand-on-flash-bbt: see nand.txt
|
|
+- nand-ecc-strength: see nand.txt
|
|
+- nand-ecc-step-size: see nand.txt
|
|
+
|
|
+The following ECC strength and step size are currently supported:
|
|
+ - nand-ecc-strength = <1>, nand-ecc-step-size = <512> (Hamming)
|
|
+ - nand-ecc-strength = <4>, nand-ecc-step-size = <512> (BCH4)
|
|
+ - nand-ecc-strength = <8>, nand-ecc-step-size = <512> (BCH8) (default)
|
|
+
|
|
+Example:
|
|
+
|
|
+ fmc: nand-controller@58002000 {
|
|
+ compatible = "st,stm32mp15-fmc2";
|
|
+ reg = <0x58002000 0x1000>,
|
|
+ <0x80000000 0x1000>,
|
|
+ <0x88010000 0x1000>,
|
|
+ <0x88020000 0x1000>,
|
|
+ <0x81000000 0x1000>,
|
|
+ <0x89010000 0x1000>,
|
|
+ <0x89020000 0x1000>;
|
|
+ interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&rcc FMC_K>;
|
|
+ resets = <&rcc FMC_R>;
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&fmc_pins_a>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ nand@0 {
|
|
+ reg = <0>;
|
|
+ nand-on-flash-bbt;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ };
|
|
+ };
|
|
diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt
|
|
new file mode 100644
|
|
index 0000000..fbff52e
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt
|
|
@@ -0,0 +1,31 @@
|
|
+STMicroelectronics STM32 Factory-programmed data device tree bindings
|
|
+
|
|
+This represents STM32 Factory-programmed read only non-volatile area: locked
|
|
+flash, OTP, read-only HW regs... This contains various information such as:
|
|
+analog calibration data for temperature sensor (e.g. TS_CAL1, TS_CAL2),
|
|
+internal vref (VREFIN_CAL), unique device ID...
|
|
+
|
|
+Required properties:
|
|
+- compatible: Should be one of:
|
|
+ "st,stm32-romem"
|
|
+ "st,stm32mp15-bsec"
|
|
+- reg: Offset and length of factory-programmed area.
|
|
+- #address-cells: Should be '<1>'.
|
|
+- #size-cells: Should be '<1>'.
|
|
+
|
|
+Optional Data cells:
|
|
+- Must be child nodes as described in nvmem.txt.
|
|
+
|
|
+Example on stm32f4:
|
|
+ romem: nvmem@1fff7800 {
|
|
+ compatible = "st,stm32-romem";
|
|
+ reg = <0x1fff7800 0x400>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ /* Data cells: ts_cal1 at 0x1fff7a2c */
|
|
+ ts_cal1: calib@22c {
|
|
+ reg = <0x22c 0x2>;
|
|
+ };
|
|
+ ...
|
|
+ };
|
|
diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-stmfx.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-stmfx.txt
|
|
new file mode 100644
|
|
index 0000000..c1b4c18
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-stmfx.txt
|
|
@@ -0,0 +1,116 @@
|
|
+STMicroelectronics Multi-Function eXpander (STMFX) GPIO expander bindings
|
|
+
|
|
+ST Multi-Function eXpander (STMFX) offers up to 24 GPIOs expansion.
|
|
+Please refer to ../mfd/stmfx.txt for STMFX Core bindings.
|
|
+
|
|
+Required properties:
|
|
+- compatible: should be "st,stmfx-0300-pinctrl".
|
|
+- #gpio-cells: should be <2>, the first cell is the GPIO number and the second
|
|
+ cell is the gpio flags in accordance with <dt-bindings/gpio/gpio.h>.
|
|
+- gpio-controller: marks the device as a GPIO controller.
|
|
+- #interrupt-cells: should be <2>, the first cell is the GPIO number and the
|
|
+ second cell is the interrupt flags in accordance with
|
|
+ <dt-bindings/interrupt-controller/irq.h>.
|
|
+- interrupt-controller: marks the device as an interrupt controller.
|
|
+- gpio-ranges: specifies the mapping between gpio controller and pin
|
|
+ controller pins. Check "Concerning gpio-ranges property" below.
|
|
+Please refer to ../gpio/gpio.txt.
|
|
+
|
|
+Please refer to pinctrl-bindings.txt for pin configuration.
|
|
+
|
|
+Required properties for pin configuration sub-nodes:
|
|
+- pins: list of pins to which the configuration applies.
|
|
+
|
|
+Optional properties for pin configuration sub-nodes (pinconf-generic ones):
|
|
+- bias-disable: disable any bias on the pin.
|
|
+- bias-pull-up: the pin will be pulled up.
|
|
+- bias-pull-pin-default: use the pin-default pull state.
|
|
+- bias-pull-down: the pin will be pulled down.
|
|
+- drive-open-drain: the pin will be driven with open drain.
|
|
+- drive-push-pull: the pin will be driven actively high and low.
|
|
+- output-high: the pin will be configured as an output driving high level.
|
|
+- output-low: the pin will be configured as an output driving low level.
|
|
+
|
|
+Note that STMFX pins[15:0] are called "gpio[15:0]", and STMFX pins[23:16] are
|
|
+called "agpio[7:0]". Example, to refer to pin 18 of STMFX, use "agpio2".
|
|
+
|
|
+Concerning gpio-ranges property:
|
|
+- if all STMFX pins[24:0] are available (no other STMFX function in use), you
|
|
+ should use gpio-ranges = <&stmfx_pinctrl 0 0 24>;
|
|
+- if agpio[3:0] are not available (STMFX Touchscreen function in use), you
|
|
+ should use gpio-ranges = <&stmfx_pinctrl 0 0 16>, <&stmfx_pinctrl 20 20 4>;
|
|
+- if agpio[7:4] are not available (STMFX IDD function in use), you
|
|
+ should use gpio-ranges = <&stmfx_pinctrl 0 0 20>;
|
|
+
|
|
+
|
|
+Example:
|
|
+
|
|
+ stmfx: stmfx@42 {
|
|
+ ...
|
|
+
|
|
+ stmfx_pinctrl: stmfx-pin-controller {
|
|
+ compatible = "st,stmfx-0300-pinctrl";
|
|
+ #gpio-cells = <2>;
|
|
+ #interrupt-cells = <2>;
|
|
+ gpio-controller;
|
|
+ interrupt-controller;
|
|
+ gpio-ranges = <&stmfx_pinctrl 0 0 24>;
|
|
+
|
|
+ joystick_pins: joystick {
|
|
+ pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
|
|
+ drive-push-pull;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+Example of STMFX GPIO consumers:
|
|
+
|
|
+ joystick {
|
|
+ compatible = "gpio-keys";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ pinctrl-0 = <&joystick_pins>;
|
|
+ pinctrl-names = "default";
|
|
+ button-0 {
|
|
+ label = "JoySel";
|
|
+ linux,code = <KEY_ENTER>;
|
|
+ interrupt-parent = <&stmfx_pinctrl>;
|
|
+ interrupts = <0 IRQ_TYPE_EDGE_RISING>;
|
|
+ };
|
|
+ button-1 {
|
|
+ label = "JoyDown";
|
|
+ linux,code = <KEY_DOWN>;
|
|
+ interrupt-parent = <&stmfx_pinctrl>;
|
|
+ interrupts = <1 IRQ_TYPE_EDGE_RISING>;
|
|
+ };
|
|
+ button-2 {
|
|
+ label = "JoyLeft";
|
|
+ linux,code = <KEY_LEFT>;
|
|
+ interrupt-parent = <&stmfx_pinctrl>;
|
|
+ interrupts = <2 IRQ_TYPE_EDGE_RISING>;
|
|
+ };
|
|
+ button-3 {
|
|
+ label = "JoyRight";
|
|
+ linux,code = <KEY_RIGHT>;
|
|
+ interrupt-parent = <&stmfx_pinctrl>;
|
|
+ interrupts = <3 IRQ_TYPE_EDGE_RISING>;
|
|
+ };
|
|
+ button-4 {
|
|
+ label = "JoyUp";
|
|
+ linux,code = <KEY_UP>;
|
|
+ interrupt-parent = <&stmfx_pinctrl>;
|
|
+ interrupts = <4 IRQ_TYPE_EDGE_RISING>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ leds {
|
|
+ compatible = "gpio-leds";
|
|
+ orange {
|
|
+ gpios = <&stmfx_pinctrl 17 1>;
|
|
+ };
|
|
+
|
|
+ blue {
|
|
+ gpios = <&stmfx_pinctrl 19 1>;
|
|
+ };
|
|
+ }
|
|
diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
|
|
index ef4f2ff..286c981 100644
|
|
--- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
|
|
+++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
|
|
@@ -56,6 +56,8 @@ Optional properties:
|
|
More details in Documentation/devicetree/bindings/gpio/gpio.txt.
|
|
- st,bank-ioport: should correspond to the EXTI IOport selection (EXTI line
|
|
used to select GPIOs as interrupts).
|
|
+ - st,package: Indicates the SOC package used.
|
|
+ More details in include/dt-bindings/pinctrl/stm32-pinfunc.h
|
|
|
|
Example 1:
|
|
#include <dt-bindings/pinctrl/stm32f429-pinfunc.h>
|
|
diff --git a/Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt b/Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt
|
|
index bd23302..6521bc4 100644
|
|
--- a/Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt
|
|
+++ b/Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt
|
|
@@ -11,8 +11,10 @@ Required parameters:
|
|
bindings defined in pwm.txt.
|
|
|
|
Optional properties:
|
|
-- pinctrl-names: Set to "default".
|
|
-- pinctrl-0: Phandle pointing to pin configuration node for PWM.
|
|
+- pinctrl-names: Set to "default". An additional "sleep" state can be
|
|
+ defined to set pins in sleep state when in low power.
|
|
+- pinctrl-n: Phandle(s) pointing to pin configuration node for PWM,
|
|
+ respectively for "default" and "sleep" states.
|
|
|
|
Example:
|
|
timer@40002400 {
|
|
@@ -21,7 +23,8 @@ Example:
|
|
pwm {
|
|
compatible = "st,stm32-pwm-lp";
|
|
#pwm-cells = <3>;
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-names = "default", "sleep";
|
|
pinctrl-0 = <&lppwm1_pins>;
|
|
+ pinctrl-1 = <&lppwm1_sleep_pins>;
|
|
};
|
|
};
|
|
diff --git a/Documentation/devicetree/bindings/pwm/pwm-stm32.txt b/Documentation/devicetree/bindings/pwm/pwm-stm32.txt
|
|
index 3e6d550..0e7a30b 100644
|
|
--- a/Documentation/devicetree/bindings/pwm/pwm-stm32.txt
|
|
+++ b/Documentation/devicetree/bindings/pwm/pwm-stm32.txt
|
|
@@ -5,8 +5,9 @@ See ../mfd/stm32-timers.txt for details about the parent node.
|
|
|
|
Required parameters:
|
|
- compatible: Must be "st,stm32-pwm".
|
|
-- pinctrl-names: Set to "default".
|
|
-- pinctrl-0: List of phandles pointing to pin configuration nodes for PWM module.
|
|
+- pinctrl-names: Set to "default". An additional "sleep" state can be
|
|
+ defined to set pins in sleep state when in low power.
|
|
+- pinctrl-n: List of phandles pointing to pin configuration nodes for PWM module.
|
|
For Pinctrl properties see ../pinctrl/pinctrl-bindings.txt
|
|
|
|
Optional parameters:
|
|
@@ -29,7 +30,8 @@ Example:
|
|
pwm {
|
|
compatible = "st,stm32-pwm";
|
|
pinctrl-0 = <&pwm1_pins>;
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-1 = <&pwm1_sleep_pins>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
st,breakinput = <0 1 5>;
|
|
};
|
|
};
|
|
diff --git a/Documentation/devicetree/bindings/regulator/st,stm32mp1-pwr-reg.txt b/Documentation/devicetree/bindings/regulator/st,stm32mp1-pwr-reg.txt
|
|
new file mode 100644
|
|
index 0000000..cee27d5
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/regulator/st,stm32mp1-pwr-reg.txt
|
|
@@ -0,0 +1,31 @@
|
|
+STM32MP1 POWER Regulators
|
|
+-------------------------
|
|
+
|
|
+Required properties:
|
|
+- compatible: Must be "st,stm32mp1,pwr-reg"
|
|
+- list of child nodes that specify the regulator
|
|
+ initialization data for defined regulators. The definition for each of
|
|
+ these nodes is defined using the standard binding for regulators found at
|
|
+ Documentation/devicetree/bindings/regulator/regulator.txt.
|
|
+- st,tzcr: syscon of Trust Zone Configuration Register. Usefull to know if we
|
|
+ are in secure mode.
|
|
+ st,tzcr = &<phandle> <offset> <mask>;
|
|
+
|
|
+Example:
|
|
+
|
|
+ pwr-regulators@c {
|
|
+ compatible = "st,stm32mp1,pwr-reg";
|
|
+ st,tzcr = <&rcc 0x0 0x1>;
|
|
+
|
|
+ reg11: reg11 {
|
|
+ regulator-name = "reg11";
|
|
+ regulator-min-microvolt = <1100000>;
|
|
+ regulator-max-microvolt = <1100000>;
|
|
+ };
|
|
+
|
|
+ reg18: reg18 {
|
|
+ regulator-name = "reg18";
|
|
+ regulator-min-microvolt = <1800000>;
|
|
+ regulator-max-microvolt = <1800000>;
|
|
+ };
|
|
+ };
|
|
diff --git a/Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt b/Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt
|
|
new file mode 100644
|
|
index 0000000..a3f4762
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt
|
|
@@ -0,0 +1,68 @@
|
|
+STMicroelectronics STPMIC1 Voltage regulators
|
|
+
|
|
+Regulator Nodes are optional depending on needs.
|
|
+
|
|
+Available Regulators in STPMIC1 device are:
|
|
+ - buck1 for Buck BUCK1
|
|
+ - buck2 for Buck BUCK2
|
|
+ - buck3 for Buck BUCK3
|
|
+ - buck4 for Buck BUCK4
|
|
+ - ldo1 for LDO LDO1
|
|
+ - ldo2 for LDO LDO2
|
|
+ - ldo3 for LDO LDO3
|
|
+ - ldo4 for LDO LDO4
|
|
+ - ldo5 for LDO LDO5
|
|
+ - ldo6 for LDO LDO6
|
|
+ - vref_ddr for LDO Vref DDR
|
|
+ - boost for Buck BOOST
|
|
+ - pwr_sw1 for VBUS_OTG switch
|
|
+ - pwr_sw2 for SW_OUT switch
|
|
+
|
|
+Switches are fixed voltage regulators with only enable/disable capability.
|
|
+
|
|
+Optional properties:
|
|
+- st,mask-reset: mask reset for this regulator: the regulator configuration
|
|
+ is maintained during pmic reset.
|
|
+- regulator-pull-down: enable high pull down
|
|
+ if not specified light pull down is used
|
|
+- regulator-over-current-protection:
|
|
+ if set, all regulators are switched off in case of over-current detection
|
|
+ on this regulator,
|
|
+ if not set, the driver only sends an over-current event.
|
|
+- interrupt-parent: phandle to the parent interrupt controller
|
|
+- interrupts: index of current limit detection interrupt
|
|
+- <regulator>-supply: phandle to the parent supply/regulator node
|
|
+ each regulator supply can be described except vref_ddr.
|
|
+
|
|
+Example:
|
|
+regulators {
|
|
+ compatible = "st,stpmic1-regulators";
|
|
+
|
|
+ ldo6-supply = <&v3v3>;
|
|
+
|
|
+ vdd_core: buck1 {
|
|
+ regulator-name = "vdd_core";
|
|
+ interrupts = <IT_CURLIM_BUCK1 0>;
|
|
+ interrupt-parent = <&pmic>;
|
|
+ st,mask-reset;
|
|
+ regulator-pull-down;
|
|
+ regulator-min-microvolt = <700000>;
|
|
+ regulator-max-microvolt = <1200000>;
|
|
+ };
|
|
+
|
|
+ v3v3: buck4 {
|
|
+ regulator-name = "v3v3";
|
|
+ interrupts = <IT_CURLIM_BUCK4 0>;
|
|
+ interrupt-parent = <&mypmic>;
|
|
+
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ };
|
|
+
|
|
+ v1v8: ldo6 {
|
|
+ regulator-name = "v1v8";
|
|
+ regulator-min-microvolt = <1800000>;
|
|
+ regulator-max-microvolt = <1800000>;
|
|
+ regulator-over-current-protection;
|
|
+ };
|
|
+};
|
|
diff --git a/Documentation/devicetree/bindings/remoteproc/rproc-srm.txt b/Documentation/devicetree/bindings/remoteproc/rproc-srm.txt
|
|
new file mode 100644
|
|
index 0000000..dce10c0
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/remoteproc/rproc-srm.txt
|
|
@@ -0,0 +1,57 @@
|
|
+Remoteproc System Resource Manager
|
|
+----------------------------------
|
|
+
|
|
+The remoteproc SRM (System Resource Manager) handles resources allocated
|
|
+to remote processors.
|
|
+This makes it possible for remote proc to reserve and initialize system
|
|
+resources for a peripheral assigned to a coprocessor.
|
|
+
|
|
+The devices are grouped in a core node
|
|
+
|
|
+Core
|
|
+====
|
|
+Required properties:
|
|
+- compatible: should be "rproc-srm-core"
|
|
+
|
|
+Dev
|
|
+===
|
|
+Required properties:
|
|
+- compatible: should be "rproc-srm-dev"
|
|
+
|
|
+Optional properties:
|
|
+- reg: register base address and length
|
|
+- clocks: clocks required by the coprocessor
|
|
+- clock-names: see clock-bindings.txt
|
|
+- pinctrl-x: pins configurations required by the coprocessor
|
|
+- pinctrl-names: see pinctrl-bindings.txt.
|
|
+ "rproc_default" is a special pin configuration which is applied except
|
|
+ if the 'early-booted' property is set.
|
|
+ In a general way, it is recommended to use names prefixed with "rproc_".
|
|
+- x-supply: power supplies required by the coprocessor
|
|
+- interrupts: see interrupts.txt
|
|
+- interrupt-parent: see interrupts.txt
|
|
+- interrupt-names: see interrupts.txt
|
|
+
|
|
+Example:
|
|
+ system_resources {
|
|
+ compatible = "rproc-srm-core";
|
|
+
|
|
+ mmc0: sdhci@09060000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x09060000 0x100>;
|
|
+ pinctrl-names = "rproc_default", "rproc_idle";
|
|
+ pinctrl-0 = <&pinctrl_mmc0>;
|
|
+ pinctrl-1 = <&pinctrl_mmc1>;
|
|
+ clock-names = "mmc", "icn";
|
|
+ clocks = <&clk_s_c0_flexgen CLK_MMC_0>,
|
|
+ <&clk_s_c0_flexgen CLK_RX_ICN_HVA>;
|
|
+ vdda-supply = <&vdda>;
|
|
+ };
|
|
+
|
|
+ button {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ interrupt-parent = <&gpioa>;
|
|
+ interrupts = <5 1>;
|
|
+ interrupt-names = "gpio_key";
|
|
+ };
|
|
+ };
|
|
diff --git a/Documentation/devicetree/bindings/remoteproc/stm32-rproc.txt b/Documentation/devicetree/bindings/remoteproc/stm32-rproc.txt
|
|
new file mode 100644
|
|
index 0000000..ee00f1c
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/remoteproc/stm32-rproc.txt
|
|
@@ -0,0 +1,78 @@
|
|
+STMicroelectronics STM32 Remoteproc
|
|
+-----------------------------------
|
|
+This document defines the binding for the remoteproc component that loads and
|
|
+boots firmwares on the ST32MP family chipset.
|
|
+
|
|
+Required properties:
|
|
+- compatible: Must be "st,stm32mp1-rproc"
|
|
+- reg: Should contain the address ranges for specific internal memory
|
|
+ regions.
|
|
+- reg-names: Should contain the corresponding names for specific internal
|
|
+ memory regions.
|
|
+- resets: Reference to a reset controller asserting the remote processor.
|
|
+- reset-names: Must be "mcu_rst"
|
|
+- st,syscfg-holdboot: Reference to the system configuration controlling the
|
|
+ remote processor reset hold boot
|
|
+ 1st cell: phandle of syscon block
|
|
+ 2nd cell: register offset containing the hold boot setting
|
|
+ 3rd cell: register bitmask for the hold boot field
|
|
+- st,syscfg-tz: Reference to the system configuration controlling the trust zone
|
|
+ mode
|
|
+ 1st cell: phandle to syscon block
|
|
+ 2nd cell: register offset containing the trust zone mode setting
|
|
+ 3rd cell: register bitmask for the trust zone mode bit
|
|
+
|
|
+Optional properties:
|
|
+- interrupt-parent: phandle to the interrupt controller node.
|
|
+- interrupts: Should contain the watchdog interrupt
|
|
+- interrupt-names: Must be "wdg"
|
|
+- mboxes: List of phandle and mailbox channel specifiers:
|
|
+ - a channel (a) used to communicate through virtqueues with the
|
|
+ remote proc.
|
|
+ Bi-directional channel:
|
|
+ - from local to remote = send message
|
|
+ - from remote to local = send message ack
|
|
+ - a channel (b) working the opposite direction of channel (a)
|
|
+ - a channel (c) used for two different purposes:
|
|
+ - used by the remote proc to signal when it has completed
|
|
+ its critical initalisation.
|
|
+ Mono-directional channel: from remote to local
|
|
+ - used by the local proc to notify the remote proc that it
|
|
+ is about to be shut down.
|
|
+ Mono-directional channel: from local to remote, where ACK
|
|
+ from the remote means that it is ready for shutdown
|
|
+- mbox-names: This property is required if the mboxes property is used.
|
|
+ - must be "vq0" for channel (a)
|
|
+ - must be "vq1" for channel (b)
|
|
+ - must be "init_shdn" for channel (c)
|
|
+- memory-region: phandle to the reserved memory node to be associated with the
|
|
+ remoteproc device.
|
|
+- st,syscfg-pdds: Reference to the system configuration controlling the remote
|
|
+ processor deep sleep setting
|
|
+ 1st cell: phandle to syscon block
|
|
+ 2nd cell: register offset containing the deep sleep setting
|
|
+ 3rd cell: register bitmask for the deep sleep bit
|
|
+- auto_boot: If defined, when remoteproc is probed, it looks for a default
|
|
+ firmware and if it finds some, it loads the firmware and starts
|
|
+ the remote processor.
|
|
+- recovery: If defined, remoteproc enables the crash recovery process.
|
|
+- early-booted: If defined, when remoteproc tries to boot a firmware, it
|
|
+ considers that the remote processor is already running and
|
|
+ attaches to this hardware state and updates accordingly (state,
|
|
+ resources, ...)
|
|
+- rsc-address: Resource table address of the early-booted firmware. Meaningful
|
|
+ only if 'early-booted' is defined.
|
|
+- rsc-size: Resource table size of the early-booted firmware. Meaningful
|
|
+ only if 'early-booted' is defined.
|
|
+
|
|
+Example:
|
|
+ m4_rproc: m4 {
|
|
+ compatible = "st,stm32mp1-rproc";
|
|
+ reg = <0x38000000 0x10000>,
|
|
+ <0x10000000 0x40000>;
|
|
+ reg-names = "retram", "mcusram";
|
|
+ resets = <&rcc MCU_R>;
|
|
+ reset-names = "mcu_rst";
|
|
+ st,syscfg-holdboot = <&rcc 0x10C 0x1>;
|
|
+ st,syscfg-tz = <&rcc 0x000 0x1>;
|
|
+ };
|
|
diff --git a/Documentation/devicetree/bindings/rtc/st,stm32-rtc.txt b/Documentation/devicetree/bindings/rtc/st,stm32-rtc.txt
|
|
index 130ca5b..bab0df8 100644
|
|
--- a/Documentation/devicetree/bindings/rtc/st,stm32-rtc.txt
|
|
+++ b/Documentation/devicetree/bindings/rtc/st,stm32-rtc.txt
|
|
@@ -21,9 +21,14 @@ Required properties:
|
|
domain (RTC registers) write protection.
|
|
It is required on stm32(f4/f7/h7).
|
|
|
|
-Optional properties (to override default rtc_ck parent clock on stm32(f4/f7/h7):
|
|
+Optional properties:
|
|
+* to override default rtc_ck parent clock on stm32(f4/f7/h7):
|
|
- assigned-clocks: reference to the rtc_ck clock entry.
|
|
- assigned-clock-parents: phandle of the new parent clock of rtc_ck.
|
|
+* to select and enable RTC Low Speed Clock Output on stm32mp1:
|
|
+- st,lsco: defines the RTC output on which RTC Low-Speed Clock is Output. The
|
|
+ valid output values are defined in <dt-bindings/rtc/rtc-stm32.h>.
|
|
+- pinctrl state named "default" may be defined to reserve pin for RTC output.
|
|
|
|
Example:
|
|
|
|
@@ -58,4 +63,7 @@ Example:
|
|
clock-names = "pclk", "rtc_ck";
|
|
interrupts-extended = <&intc GIC_SPI 3 IRQ_TYPE_NONE>,
|
|
<&exti 19 1>;
|
|
+ st,lsco = <RTC_OUT2_RMP>;
|
|
+ pinctrl-0 = <&rtc_out2_rmp_pins_a>;
|
|
+ pinctrl-names = "default";
|
|
};
|
|
diff --git a/Documentation/devicetree/bindings/serial/st,stm32-usart.txt b/Documentation/devicetree/bindings/serial/st,stm32-usart.txt
|
|
index 9d3efed..90ba52f 100644
|
|
--- a/Documentation/devicetree/bindings/serial/st,stm32-usart.txt
|
|
+++ b/Documentation/devicetree/bindings/serial/st,stm32-usart.txt
|
|
@@ -10,15 +10,48 @@ Required properties:
|
|
- interrupts:
|
|
- The interrupt line for the USART instance,
|
|
- An optional wake-up interrupt.
|
|
+- interrupt-names: Contains "event" for the USART interrupt line.
|
|
- clocks: The input clock of the USART instance
|
|
|
|
Optional properties:
|
|
-- pinctrl: The reference on the pins configuration
|
|
+- pinctrl-names: Set to "default". An additional "sleep" state can be defined
|
|
+ to set pins in sleep state when in low power. In case the device is used as
|
|
+ a wakeup source, "idle" state is defined in order to keep RX pin active.
|
|
+ For a console device, an optional state "no_console_suspend" can be defined
|
|
+ to enable console messages during suspend. Typically, "no_console_suspend" and
|
|
+ "default" states can refer to the same pin configuration.
|
|
+- pinctrl-n: Phandle(s) pointing to pin configuration nodes.
|
|
+ For Pinctrl properties see ../pinctrl/pinctrl-bindings.txt
|
|
- st,hw-flow-ctrl: bool flag to enable hardware flow control.
|
|
- rs485-rts-delay, rs485-rx-during-tx, rs485-rts-active-low,
|
|
linux,rs485-enabled-at-boot-time: see rs485.txt.
|
|
- dmas: phandle(s) to DMA controller node(s). Refer to stm32-dma.txt
|
|
- dma-names: "rx" and/or "tx"
|
|
+- wakeup-source: bool flag to indicate this device has wakeup capabilities
|
|
+- interrupt-names : Should contain "wakeup" if optional wake-up interrupt is
|
|
+ used.
|
|
+
|
|
+Note for dma using:
|
|
+- "tx" dma can be used without any constraint since it uses single
|
|
+dma transfers.
|
|
+- "rx" dma using requires some attention:
|
|
+ 1) if you cannot anticipate the length of your received packets
|
|
+ and if your usart device embeds an internal fifo, then DON'T use
|
|
+ dma mode.
|
|
+ 2) if you enable dma mode WITHOUT mdma intermediate copy (cf.
|
|
+ stm32-dma.txt), then the availability of the received data will
|
|
+ depend on the dma driver policy and it may be delayed until dma
|
|
+ internal fifo is full. The usart driver will see this checking
|
|
+ the dma residue when rx interrupt (RXNE or RTO) occurs.
|
|
+ 3) if you enable dma mode WITH mdma intermediate copy (cf.
|
|
+ stm32-dma.txt) then the usart driver will never see the dma
|
|
+ residue becoming smaller than RX_BUF_P but it will get its
|
|
+ rx dma complete callback called when the cyclic transfer period
|
|
+ (RX_BUF_P) is reached.
|
|
+The three possibilities above are ordered from the most cpu time
|
|
+consuming one to the least one. The counterpart of this optimisation
|
|
+is the reception granularity achievable by the usart driver, from
|
|
+one byte up to RX_BUF_P.
|
|
|
|
Examples:
|
|
usart4: serial@40004c00 {
|
|
@@ -26,8 +59,11 @@ usart4: serial@40004c00 {
|
|
reg = <0x40004c00 0x400>;
|
|
interrupts = <52>;
|
|
clocks = <&clk_pclk1>;
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-names = "default", "sleep", "idle", "no_console_suspend";
|
|
pinctrl-0 = <&pinctrl_usart4>;
|
|
+ pinctrl-1 = <&pinctrl_usart4_sleep>;
|
|
+ pinctrl-2 = <&pinctrl_usart4_idle>;
|
|
+ pinctrl-3 = <&pinctrl_usart4>;
|
|
};
|
|
|
|
usart2: serial@40004400 {
|
|
diff --git a/Documentation/devicetree/bindings/spi/spi-stm32-qspi.txt b/Documentation/devicetree/bindings/spi/spi-stm32-qspi.txt
|
|
new file mode 100644
|
|
index 0000000..adeeb63
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/spi/spi-stm32-qspi.txt
|
|
@@ -0,0 +1,44 @@
|
|
+* STMicroelectronics Quad Serial Peripheral Interface(QSPI)
|
|
+
|
|
+Required properties:
|
|
+- compatible: should be "st,stm32f469-qspi"
|
|
+- reg: the first contains the register location and length.
|
|
+ the second contains the memory mapping address and length
|
|
+- reg-names: should contain the reg names "qspi" "qspi_mm"
|
|
+- interrupts: should contain the interrupt for the device
|
|
+- clocks: the phandle of the clock needed by the QSPI controller
|
|
+- A pinctrl must be defined to set pins in mode of operation for QSPI transfer
|
|
+
|
|
+Optional properties:
|
|
+- resets: must contain the phandle to the reset controller.
|
|
+
|
|
+A spi flash (NOR/NAND) must be a child of spi node and could have some
|
|
+properties. Also see jedec,spi-nor.txt.
|
|
+
|
|
+Required properties:
|
|
+- reg: chip-Select number (QSPI controller may connect 2 flashes)
|
|
+- spi-max-frequency: max frequency of spi bus
|
|
+
|
|
+Optional property:
|
|
+- spi-rx-bus-width: see ./spi-bus.txt for the description
|
|
+
|
|
+Example:
|
|
+
|
|
+qspi: spi@a0001000 {
|
|
+ compatible = "st,stm32f469-qspi";
|
|
+ reg = <0xa0001000 0x1000>, <0x90000000 0x10000000>;
|
|
+ reg-names = "qspi", "qspi_mm";
|
|
+ interrupts = <91>;
|
|
+ resets = <&rcc STM32F4_AHB3_RESET(QSPI)>;
|
|
+ clocks = <&rcc 0 STM32F4_AHB3_CLOCK(QSPI)>;
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&pinctrl_qspi0>;
|
|
+
|
|
+ flash@0 {
|
|
+ compatible = "jedec,spi-nor";
|
|
+ reg = <0>;
|
|
+ spi-rx-bus-width = <4>;
|
|
+ spi-max-frequency = <108000000>;
|
|
+ ...
|
|
+ };
|
|
+};
|
|
diff --git a/Documentation/devicetree/bindings/watchdog/st,stpmic1-wdt.txt b/Documentation/devicetree/bindings/watchdog/st,stpmic1-wdt.txt
|
|
new file mode 100644
|
|
index 0000000..7cc1407
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/watchdog/st,stpmic1-wdt.txt
|
|
@@ -0,0 +1,11 @@
|
|
+STMicroelectronics STPMIC1 Watchdog
|
|
+
|
|
+Required properties:
|
|
+
|
|
+- compatible : should be "st,stpmic1-wdt"
|
|
+
|
|
+Example:
|
|
+
|
|
+watchdog {
|
|
+ compatible = "st,stpmic1-wdt";
|
|
+};
|
|
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
|
|
index b5bd3de..b264fa0 100644
|
|
--- a/arch/arm/boot/dts/Makefile
|
|
+++ b/arch/arm/boot/dts/Makefile
|
|
@@ -922,6 +922,8 @@ dtb-$(CONFIG_ARCH_STM32) += \
|
|
stm32746g-eval.dtb \
|
|
stm32h743i-eval.dtb \
|
|
stm32h743i-disco.dtb \
|
|
+ stm32mp157a-dk1.dtb \
|
|
+ stm32mp157c-dk2.dtb \
|
|
stm32mp157c-ed1.dtb \
|
|
stm32mp157c-ev1.dtb
|
|
dtb-$(CONFIG_MACH_SUN4I) += \
|
|
diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
|
|
index c485127..4409db2 100644
|
|
--- a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
|
|
+++ b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
|
|
@@ -24,8 +24,7 @@
|
|
reg = <0x0 0x400>;
|
|
clocks = <&rcc GPIOA>;
|
|
st,bank-name = "GPIOA";
|
|
- ngpios = <16>;
|
|
- gpio-ranges = <&pinctrl 0 0 16>;
|
|
+ status = "disabled";
|
|
};
|
|
|
|
gpiob: gpio@50003000 {
|
|
@@ -36,8 +35,7 @@
|
|
reg = <0x1000 0x400>;
|
|
clocks = <&rcc GPIOB>;
|
|
st,bank-name = "GPIOB";
|
|
- ngpios = <16>;
|
|
- gpio-ranges = <&pinctrl 0 16 16>;
|
|
+ status = "disabled";
|
|
};
|
|
|
|
gpioc: gpio@50004000 {
|
|
@@ -48,8 +46,7 @@
|
|
reg = <0x2000 0x400>;
|
|
clocks = <&rcc GPIOC>;
|
|
st,bank-name = "GPIOC";
|
|
- ngpios = <16>;
|
|
- gpio-ranges = <&pinctrl 0 32 16>;
|
|
+ status = "disabled";
|
|
};
|
|
|
|
gpiod: gpio@50005000 {
|
|
@@ -60,8 +57,7 @@
|
|
reg = <0x3000 0x400>;
|
|
clocks = <&rcc GPIOD>;
|
|
st,bank-name = "GPIOD";
|
|
- ngpios = <16>;
|
|
- gpio-ranges = <&pinctrl 0 48 16>;
|
|
+ status = "disabled";
|
|
};
|
|
|
|
gpioe: gpio@50006000 {
|
|
@@ -72,8 +68,7 @@
|
|
reg = <0x4000 0x400>;
|
|
clocks = <&rcc GPIOE>;
|
|
st,bank-name = "GPIOE";
|
|
- ngpios = <16>;
|
|
- gpio-ranges = <&pinctrl 0 64 16>;
|
|
+ status = "disabled";
|
|
};
|
|
|
|
gpiof: gpio@50007000 {
|
|
@@ -84,8 +79,7 @@
|
|
reg = <0x5000 0x400>;
|
|
clocks = <&rcc GPIOF>;
|
|
st,bank-name = "GPIOF";
|
|
- ngpios = <16>;
|
|
- gpio-ranges = <&pinctrl 0 80 16>;
|
|
+ status = "disabled";
|
|
};
|
|
|
|
gpiog: gpio@50008000 {
|
|
@@ -96,8 +90,7 @@
|
|
reg = <0x6000 0x400>;
|
|
clocks = <&rcc GPIOG>;
|
|
st,bank-name = "GPIOG";
|
|
- ngpios = <16>;
|
|
- gpio-ranges = <&pinctrl 0 96 16>;
|
|
+ status = "disabled";
|
|
};
|
|
|
|
gpioh: gpio@50009000 {
|
|
@@ -108,8 +101,7 @@
|
|
reg = <0x7000 0x400>;
|
|
clocks = <&rcc GPIOH>;
|
|
st,bank-name = "GPIOH";
|
|
- ngpios = <16>;
|
|
- gpio-ranges = <&pinctrl 0 112 16>;
|
|
+ status = "disabled";
|
|
};
|
|
|
|
gpioi: gpio@5000a000 {
|
|
@@ -120,8 +112,7 @@
|
|
reg = <0x8000 0x400>;
|
|
clocks = <&rcc GPIOI>;
|
|
st,bank-name = "GPIOI";
|
|
- ngpios = <16>;
|
|
- gpio-ranges = <&pinctrl 0 128 16>;
|
|
+ status = "disabled";
|
|
};
|
|
|
|
gpioj: gpio@5000b000 {
|
|
@@ -132,8 +123,7 @@
|
|
reg = <0x9000 0x400>;
|
|
clocks = <&rcc GPIOJ>;
|
|
st,bank-name = "GPIOJ";
|
|
- ngpios = <16>;
|
|
- gpio-ranges = <&pinctrl 0 144 16>;
|
|
+ status = "disabled";
|
|
};
|
|
|
|
gpiok: gpio@5000c000 {
|
|
@@ -144,8 +134,29 @@
|
|
reg = <0xa000 0x400>;
|
|
clocks = <&rcc GPIOK>;
|
|
st,bank-name = "GPIOK";
|
|
- ngpios = <8>;
|
|
- gpio-ranges = <&pinctrl 0 160 8>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ adc1_in6_pins_a: adc1-in6 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('F', 12, ANALOG)>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ adc12_ain_pins_a: adc12-ain-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('C', 3, ANALOG)>, /* ADC1 in13 */
|
|
+ <STM32_PINMUX('F', 12, ANALOG)>, /* ADC1 in6 */
|
|
+ <STM32_PINMUX('F', 13, ANALOG)>, /* ADC2 in2 */
|
|
+ <STM32_PINMUX('F', 14, ANALOG)>; /* ADC2 in6 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ adc12_usb_pwr_pins_a: adc12-usb-pwr-pins-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('A', 4, ANALOG)>, /* ADC12 in18 */
|
|
+ <STM32_PINMUX('A', 5, ANALOG)>; /* ADC12 in19 */
|
|
+ };
|
|
};
|
|
|
|
cec_pins_a: cec-0 {
|
|
@@ -157,6 +168,57 @@
|
|
};
|
|
};
|
|
|
|
+ dac_ch1_pins_a: dac-ch1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('A', 4, ANALOG)>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dac_ch2_pins_a: dac-ch2 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('A', 5, ANALOG)>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dfsdm_clkout_pins_a: dfsdm-clkout-pins-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 13, AF3)>; /* DFSDM_CKOUT */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <1>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dfsdm_clkout_sleep_pins_a: dfsdm-clkout-sleep-pins-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 13, ANALOG)>; /* DFSDM_CKOUT */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dfsdm_data1_pins_a: dfsdm-data1-pins-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('C', 3, AF3)>; /* DFSDM_DATA1 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dfsdm_data1_sleep_pins_a: dfsdm-data1-sleep-pins-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('C', 3, ANALOG)>; /* DFSDM_DATA1 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dfsdm_data3_pins_a: dfsdm-data3-pins-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('F', 13, AF6)>; /* DFSDM_DATA3 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dfsdm_data3_sleep_pins_a: dfsdm-data3-sleep-pins-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('F', 13, ANALOG)>; /* DFSDM_DATA3 */
|
|
+ };
|
|
+ };
|
|
+
|
|
ethernet0_rgmii_pins_a: rgmii-0 {
|
|
pins1 {
|
|
pinmux = <STM32_PINMUX('G', 5, AF11)>, /* ETH_RGMII_CLK125 */
|
|
@@ -203,6 +265,50 @@
|
|
};
|
|
};
|
|
|
|
+ fmc_pins_a: fmc-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('D', 4, AF12)>, /* FMC_NOE */
|
|
+ <STM32_PINMUX('D', 5, AF12)>, /* FMC_NWE */
|
|
+ <STM32_PINMUX('D', 11, AF12)>, /* FMC_A16_FMC_CLE */
|
|
+ <STM32_PINMUX('D', 12, AF12)>, /* FMC_A17_FMC_ALE */
|
|
+ <STM32_PINMUX('D', 14, AF12)>, /* FMC_D0 */
|
|
+ <STM32_PINMUX('D', 15, AF12)>, /* FMC_D1 */
|
|
+ <STM32_PINMUX('D', 0, AF12)>, /* FMC_D2 */
|
|
+ <STM32_PINMUX('D', 1, AF12)>, /* FMC_D3 */
|
|
+ <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('G', 9, AF12)>; /* FMC_NE2_FMC_NCE */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('D', 6, AF12)>; /* FMC_NWAIT */
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ fmc_sleep_pins_a: fmc-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('D', 4, ANALOG)>, /* FMC_NOE */
|
|
+ <STM32_PINMUX('D', 5, ANALOG)>, /* FMC_NWE */
|
|
+ <STM32_PINMUX('D', 11, ANALOG)>, /* FMC_A16_FMC_CLE */
|
|
+ <STM32_PINMUX('D', 12, ANALOG)>, /* FMC_A17_FMC_ALE */
|
|
+ <STM32_PINMUX('D', 14, ANALOG)>, /* FMC_D0 */
|
|
+ <STM32_PINMUX('D', 15, ANALOG)>, /* FMC_D1 */
|
|
+ <STM32_PINMUX('D', 0, ANALOG)>, /* FMC_D2 */
|
|
+ <STM32_PINMUX('D', 1, ANALOG)>, /* FMC_D3 */
|
|
+ <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('D', 6, ANALOG)>, /* FMC_NWAIT */
|
|
+ <STM32_PINMUX('G', 9, ANALOG)>; /* FMC_NE2_FMC_NCE */
|
|
+ };
|
|
+ };
|
|
+
|
|
i2c1_pins_a: i2c1-0 {
|
|
pins {
|
|
pinmux = <STM32_PINMUX('D', 12, AF5)>, /* I2C1_SCL */
|
|
@@ -213,6 +319,13 @@
|
|
};
|
|
};
|
|
|
|
+ i2c1_pins_sleep_a: i2c1-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('D', 12, ANALOG)>, /* I2C1_SCL */
|
|
+ <STM32_PINMUX('F', 15, ANALOG)>; /* I2C1_SDA */
|
|
+ };
|
|
+ };
|
|
+
|
|
i2c2_pins_a: i2c2-0 {
|
|
pins {
|
|
pinmux = <STM32_PINMUX('H', 4, AF4)>, /* I2C2_SCL */
|
|
@@ -223,6 +336,13 @@
|
|
};
|
|
};
|
|
|
|
+ i2c2_pins_sleep_a: i2c2-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('H', 4, ANALOG)>, /* I2C2_SCL */
|
|
+ <STM32_PINMUX('H', 5, ANALOG)>; /* I2C2_SDA */
|
|
+ };
|
|
+ };
|
|
+
|
|
i2c5_pins_a: i2c5-0 {
|
|
pins {
|
|
pinmux = <STM32_PINMUX('A', 11, AF4)>, /* I2C5_SCL */
|
|
@@ -233,6 +353,14 @@
|
|
};
|
|
};
|
|
|
|
+ i2c5_pins_sleep_a: i2c5-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('A', 11, ANALOG)>, /* I2C5_SCL */
|
|
+ <STM32_PINMUX('A', 12, ANALOG)>; /* I2C5_SDA */
|
|
+
|
|
+ };
|
|
+ };
|
|
+
|
|
m_can1_pins_a: m-can1-0 {
|
|
pins1 {
|
|
pinmux = <STM32_PINMUX('H', 13, AF9)>; /* CAN1_TX */
|
|
@@ -246,6 +374,32 @@
|
|
};
|
|
};
|
|
|
|
+ m_can1_sleep_pins_a: m_can1-sleep@0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('H', 13, ANALOG)>, /* CAN1_TX */
|
|
+ <STM32_PINMUX('I', 9, ANALOG)>; /* CAN1_RX */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ pwm1_pins_a: pwm1-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('E', 9, AF1)>, /* TIM1_CH1 */
|
|
+ <STM32_PINMUX('E', 11, AF1)>, /* TIM1_CH2 */
|
|
+ <STM32_PINMUX('E', 14, AF1)>; /* TIM1_CH4 */
|
|
+ bias-pull-down;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ pwm1_sleep_pins_a: pwm1-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('E', 9, ANALOG)>, /* TIM1_CH1 */
|
|
+ <STM32_PINMUX('E', 11, ANALOG)>, /* TIM1_CH2 */
|
|
+ <STM32_PINMUX('E', 14, ANALOG)>; /* TIM1_CH4 */
|
|
+ };
|
|
+ };
|
|
+
|
|
pwm2_pins_a: pwm2-0 {
|
|
pins {
|
|
pinmux = <STM32_PINMUX('A', 3, AF1)>; /* TIM2_CH4 */
|
|
@@ -255,6 +409,74 @@
|
|
};
|
|
};
|
|
|
|
+ pwm2_sleep_pins_a: pwm2-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('A', 3, ANALOG)>; /* TIM2_CH4 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ pwm3_pins_a: pwm3-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('C', 7, AF2)>; /* TIM3_CH2 */
|
|
+ bias-pull-down;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ pwm3_sleep_pins_a: pwm3-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('C', 7, ANALOG)>; /* TIM3_CH2 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ pwm4_pins_a: pwm4-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('D', 14, AF2)>, /* TIM4_CH3 */
|
|
+ <STM32_PINMUX('D', 15, AF2)>; /* TIM4_CH4 */
|
|
+ bias-pull-down;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ pwm4_sleep_pins_a: pwm4-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('D', 14, ANALOG)>, /* TIM4_CH3 */
|
|
+ <STM32_PINMUX('D', 15, ANALOG)>; /* TIM4_CH4 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ pwm4_pins_b: pwm4-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('D', 13, AF2)>; /* TIM4_CH2 */
|
|
+ bias-pull-down;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ pwm4_sleep_pins_b: pwm4-sleep-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('D', 13, ANALOG)>; /* TIM4_CH2 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ pwm5_pins_a: pwm5-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('H', 11, AF2)>; /* TIM5_CH2 */
|
|
+ bias-pull-down;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ pwm5_sleep_pins_a: pwm5-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('H', 11, ANALOG)>; /* TIM5_CH2 */
|
|
+ };
|
|
+ };
|
|
+
|
|
pwm8_pins_a: pwm8-0 {
|
|
pins {
|
|
pinmux = <STM32_PINMUX('I', 2, AF3)>; /* TIM8_CH4 */
|
|
@@ -264,6 +486,12 @@
|
|
};
|
|
};
|
|
|
|
+ pwm8_sleep_pins_a: pwm8-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 2, ANALOG)>; /* TIM8_CH4 */
|
|
+ };
|
|
+ };
|
|
+
|
|
pwm12_pins_a: pwm12-0 {
|
|
pins {
|
|
pinmux = <STM32_PINMUX('H', 6, AF2)>; /* TIM12_CH1 */
|
|
@@ -273,6 +501,12 @@
|
|
};
|
|
};
|
|
|
|
+ pwm12_sleep_pins_a: pwm12-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('H', 6, ANALOG)>; /* TIM12_CH1 */
|
|
+ };
|
|
+ };
|
|
+
|
|
qspi_clk_pins_a: qspi-clk-0 {
|
|
pins {
|
|
pinmux = <STM32_PINMUX('F', 10, AF9)>; /* QSPI_CLK */
|
|
@@ -282,6 +516,12 @@
|
|
};
|
|
};
|
|
|
|
+ qspi_clk_sleep_pins_a: qspi-clk-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('F', 10, ANALOG)>; /* QSPI_CLK */
|
|
+ };
|
|
+ };
|
|
+
|
|
qspi_bk1_pins_a: qspi-bk1-0 {
|
|
pins1 {
|
|
pinmux = <STM32_PINMUX('F', 8, AF10)>, /* QSPI_BK1_IO0 */
|
|
@@ -300,6 +540,16 @@
|
|
};
|
|
};
|
|
|
|
+ qspi_bk1_sleep_pins_a: qspi-bk1-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('F', 8, ANALOG)>, /* QSPI_BK1_IO0 */
|
|
+ <STM32_PINMUX('F', 9, ANALOG)>, /* QSPI_BK1_IO1 */
|
|
+ <STM32_PINMUX('F', 7, ANALOG)>, /* QSPI_BK1_IO2 */
|
|
+ <STM32_PINMUX('F', 6, ANALOG)>, /* QSPI_BK1_IO3 */
|
|
+ <STM32_PINMUX('B', 6, ANALOG)>; /* QSPI_BK1_NCS */
|
|
+ };
|
|
+ };
|
|
+
|
|
qspi_bk2_pins_a: qspi-bk2-0 {
|
|
pins1 {
|
|
pinmux = <STM32_PINMUX('H', 2, AF9)>, /* QSPI_BK2_IO0 */
|
|
@@ -318,6 +568,180 @@
|
|
};
|
|
};
|
|
|
|
+ qspi_bk2_sleep_pins_a: qspi-bk2-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('H', 2, ANALOG)>, /* QSPI_BK2_IO0 */
|
|
+ <STM32_PINMUX('H', 3, ANALOG)>, /* QSPI_BK2_IO1 */
|
|
+ <STM32_PINMUX('G', 10, ANALOG)>, /* QSPI_BK2_IO2 */
|
|
+ <STM32_PINMUX('G', 7, ANALOG)>, /* QSPI_BK2_IO3 */
|
|
+ <STM32_PINMUX('C', 0, ANALOG)>; /* QSPI_BK2_NCS */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ rtc_out2_rmp_pins_a: rtc-out2-rmp-pins@0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 8, ANALOG)>; /* RTC_OUT2_RMP */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sdmmc1_b4_pins_a: sdmmc1-b4-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1_D0 */
|
|
+ <STM32_PINMUX('C', 9, AF12)>, /* SDMMC1_D1 */
|
|
+ <STM32_PINMUX('C', 10, AF12)>, /* SDMMC1_D2 */
|
|
+ <STM32_PINMUX('C', 11, AF12)>, /* SDMMC1_D3 */
|
|
+ <STM32_PINMUX('C', 12, AF12)>, /* SDMMC1_CK */
|
|
+ <STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */
|
|
+ slew-rate = <3>;
|
|
+ drive-push-pull;
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sdmmc1_b4_od_pins_a: sdmmc1-b4-od-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1_D0 */
|
|
+ <STM32_PINMUX('C', 9, AF12)>, /* SDMMC1_D1 */
|
|
+ <STM32_PINMUX('C', 10, AF12)>, /* SDMMC1_D2 */
|
|
+ <STM32_PINMUX('C', 11, AF12)>, /* SDMMC1_D3 */
|
|
+ <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1_CK */
|
|
+ slew-rate = <3>;
|
|
+ drive-push-pull;
|
|
+ bias-disable;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */
|
|
+ slew-rate = <3>;
|
|
+ drive-open-drain;
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sdmmc1_b4_sleep_pins_a: sdmmc1-b4-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('C', 8, ANALOG)>, /* SDMMC1_D0 */
|
|
+ <STM32_PINMUX('C', 9, ANALOG)>, /* SDMMC1_D1 */
|
|
+ <STM32_PINMUX('C', 10, ANALOG)>, /* SDMMC1_D2 */
|
|
+ <STM32_PINMUX('C', 11, ANALOG)>, /* SDMMC1_D3 */
|
|
+ <STM32_PINMUX('C', 12, ANALOG)>, /* SDMMC1_CK */
|
|
+ <STM32_PINMUX('D', 2, ANALOG)>; /* SDMMC1_CMD */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sdmmc1_dir_pins_a: sdmmc1-dir-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('F', 2, AF11)>, /* SDMMC1_D0DIR */
|
|
+ <STM32_PINMUX('C', 7, AF8)>, /* SDMMC1_D123DIR */
|
|
+ <STM32_PINMUX('B', 9, AF11)>; /* SDMMC1_CDIR */
|
|
+ slew-rate = <3>;
|
|
+ drive-push-pull;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ pins2{
|
|
+ pinmux = <STM32_PINMUX('E', 4, AF8)>; /* SDMMC1_CKIN */
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sdmmc1_dir_sleep_pins_a: sdmmc1-dir-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('F', 2, ANALOG)>, /* SDMMC1_D0DIR */
|
|
+ <STM32_PINMUX('C', 7, ANALOG)>, /* SDMMC1_D123DIR */
|
|
+ <STM32_PINMUX('B', 9, ANALOG)>, /* SDMMC1_CDIR */
|
|
+ <STM32_PINMUX('E', 4, ANALOG)>; /* SDMMC1_CKIN */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sdmmc2_b4_pins_a: sdmmc2-b4-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 14, AF9)>, /* SDMMC2_D0 */
|
|
+ <STM32_PINMUX('B', 15, AF9)>, /* SDMMC2_D1 */
|
|
+ <STM32_PINMUX('B', 3, AF9)>, /* SDMMC2_D2 */
|
|
+ <STM32_PINMUX('B', 4, AF9)>, /* SDMMC2_D3 */
|
|
+ <STM32_PINMUX('E', 3, AF9)>, /* SDMMC2_CK */
|
|
+ <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
|
|
+ slew-rate = <3>;
|
|
+ drive-push-pull;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sdmmc2_b4_od_pins_a: sdmmc2-b4-od-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('B', 14, AF9)>, /* SDMMC2_D0 */
|
|
+ <STM32_PINMUX('B', 15, AF9)>, /* SDMMC2_D1 */
|
|
+ <STM32_PINMUX('B', 3, AF9)>, /* SDMMC2_D2 */
|
|
+ <STM32_PINMUX('B', 4, AF9)>, /* SDMMC2_D3 */
|
|
+ <STM32_PINMUX('E', 3, AF9)>; /* SDMMC2_CK */
|
|
+ slew-rate = <3>;
|
|
+ drive-push-pull;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
|
|
+ slew-rate = <3>;
|
|
+ drive-open-drain;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sdmmc2_b4_sleep_pins_a: sdmmc2-b4-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 14, ANALOG)>, /* SDMMC2_D0 */
|
|
+ <STM32_PINMUX('B', 15, ANALOG)>, /* SDMMC2_D1 */
|
|
+ <STM32_PINMUX('B', 3, ANALOG)>, /* SDMMC2_D2 */
|
|
+ <STM32_PINMUX('B', 4, ANALOG)>, /* SDMMC2_D3 */
|
|
+ <STM32_PINMUX('E', 3, ANALOG)>, /* SDMMC2_CK */
|
|
+ <STM32_PINMUX('G', 6, ANALOG)>; /* SDMMC2_CMD */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sdmmc2_d47_pins_a: sdmmc2-d47-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('A', 8, AF9)>, /* SDMMC2_D4 */
|
|
+ <STM32_PINMUX('A', 9, AF10)>, /* SDMMC2_D5 */
|
|
+ <STM32_PINMUX('E', 5, AF9)>, /* SDMMC2_D6 */
|
|
+ <STM32_PINMUX('D', 3, AF9)>; /* SDMMC2_D7 */
|
|
+ slew-rate = <3>;
|
|
+ drive-push-pull;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sdmmc2_d47_sleep_pins_a: sdmmc2-d47-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('A', 8, ANALOG)>, /* SDMMC2_D4 */
|
|
+ <STM32_PINMUX('A', 9, ANALOG)>, /* SDMMC2_D5 */
|
|
+ <STM32_PINMUX('E', 5, ANALOG)>, /* SDMMC2_D6 */
|
|
+ <STM32_PINMUX('D', 3, ANALOG)>; /* SDMMC2_D7 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sdmmc3_b4_pins_a: sdmmc3-b4-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('F', 0, AF9)>, /* SDMMC3_D0 */
|
|
+ <STM32_PINMUX('F', 4, AF9)>, /* SDMMC3_D1 */
|
|
+ <STM32_PINMUX('F', 5, AF9)>, /* SDMMC3_D2 */
|
|
+ <STM32_PINMUX('D', 7, AF10)>, /* SDMMC3_D3 */
|
|
+ <STM32_PINMUX('G', 15, AF10)>, /* SDMMC3_CK */
|
|
+ <STM32_PINMUX('F', 1, AF9)>; /* SDMMC3_CMD */
|
|
+ slew-rate = <3>;
|
|
+ drive-push-pull;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sdmmc3_b4_sleep_pins_a: sdmmc3-b4-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('F', 0, ANALOG)>, /* SDMMC3_D0 */
|
|
+ <STM32_PINMUX('F', 4, ANALOG)>, /* SDMMC3_D1 */
|
|
+ <STM32_PINMUX('F', 5, ANALOG)>, /* SDMMC3_D2 */
|
|
+ <STM32_PINMUX('D', 7, ANALOG)>, /* SDMMC3_D3 */
|
|
+ <STM32_PINMUX('G', 15, ANALOG)>, /* SDMMC3_CK */
|
|
+ <STM32_PINMUX('F', 1, ANALOG)>; /* SDMMC3_CMD */
|
|
+ };
|
|
+ };
|
|
+
|
|
uart4_pins_a: uart4-0 {
|
|
pins1 {
|
|
pinmux = <STM32_PINMUX('G', 11, AF6)>; /* UART4_TX */
|
|
@@ -330,6 +754,131 @@
|
|
bias-disable;
|
|
};
|
|
};
|
|
+
|
|
+ uart4_idle_pins_a: uart4-idle-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('G', 11, ANALOG)>; /* UART4_TX */
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ uart4_sleep_pins_a: uart4-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('G', 11, ANALOG)>, /* UART4_TX */
|
|
+ <STM32_PINMUX('B', 2, ANALOG)>; /* UART4_RX */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ usart2_pins_a: usart2-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('D', 5, AF7)>, /* USART2_TX */
|
|
+ <STM32_PINMUX('D', 4, AF7)>; /* USART2_RTS */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <3>;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('D', 6, AF7)>, /* USART2_RX */
|
|
+ <STM32_PINMUX('D', 3, AF7)>; /* USART2_CTS_NSS */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ usart2_idle_pins_a: usart2-idle-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('D', 5, ANALOG)>, /* USART2_TX */
|
|
+ <STM32_PINMUX('D', 4, ANALOG)>, /* USART2_RTS */
|
|
+ <STM32_PINMUX('D', 3, ANALOG)>; /* USART2_CTS_NSS */
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('D', 6, AF7)>; /* USART2_RX */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ usart2_sleep_pins_a: usart2-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('D', 5, ANALOG)>, /* USART2_TX */
|
|
+ <STM32_PINMUX('D', 4, ANALOG)>, /* USART2_RTS */
|
|
+ <STM32_PINMUX('D', 6, ANALOG)>, /* USART2_RX */
|
|
+ <STM32_PINMUX('D', 3, ANALOG)>; /* USART2_CTS_NSS */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ usart3_pins_a: usart3-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('B', 10, AF7)>, /* USART3_TX */
|
|
+ <STM32_PINMUX('G', 8, AF8)>; /* USART3_RTS */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('B', 12, AF8)>, /* USART3_RX */
|
|
+ <STM32_PINMUX('I', 10, AF8)>; /* USART3_CTS_NSS */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ usart3_idle_pins_a: usart3-idle-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('B', 10, ANALOG)>, /* USART3_TX */
|
|
+ <STM32_PINMUX('G', 8, ANALOG)>, /* USART3_RTS */
|
|
+ <STM32_PINMUX('I', 10, ANALOG)>; /* USART3_CTS_NSS */
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('B', 12, AF8)>; /* USART3_RX */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ usart3_sleep_pins_a: usart3-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 10, ANALOG)>, /* USART3_TX */
|
|
+ <STM32_PINMUX('G', 8, ANALOG)>, /* USART3_RTS */
|
|
+ <STM32_PINMUX('I', 10, ANALOG)>, /* USART3_CTS_NSS */
|
|
+ <STM32_PINMUX('B', 12, ANALOG)>; /* USART3_RX */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ usart3_pins_b: usart3-1 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('B', 10, AF7)>, /* USART3_TX */
|
|
+ <STM32_PINMUX('G', 8, AF8)>; /* USART3_RTS */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('B', 12, AF8)>, /* USART3_RX */
|
|
+ <STM32_PINMUX('B', 13, AF7)>; /* USART3_CTS_NSS */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ usart3_idle_pins_b: usart3-idle-1 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('B', 10, ANALOG)>, /* USART3_TX */
|
|
+ <STM32_PINMUX('G', 8, ANALOG)>, /* USART3_RTS */
|
|
+ <STM32_PINMUX('B', 13, ANALOG)>; /* USART3_CTS_NSS */
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('B', 12, AF8)>; /* USART3_RX */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ usart3_sleep_pins_b: usart3-sleep-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 10, ANALOG)>, /* USART3_TX */
|
|
+ <STM32_PINMUX('G', 8, ANALOG)>, /* USART3_RTS */
|
|
+ <STM32_PINMUX('B', 13, ANALOG)>, /* USART3_CTS_NSS */
|
|
+ <STM32_PINMUX('B', 12, ANALOG)>; /* USART3_RX */
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
pinctrl_z: pin-controller-z@54004000 {
|
|
@@ -350,8 +899,7 @@
|
|
clocks = <&rcc GPIOZ>;
|
|
st,bank-name = "GPIOZ";
|
|
st,bank-ioport = <11>;
|
|
- ngpios = <8>;
|
|
- gpio-ranges = <&pinctrl_z 0 400 8>;
|
|
+ status = "disabled";
|
|
};
|
|
|
|
i2c4_pins_a: i2c4-0 {
|
|
@@ -364,6 +912,13 @@
|
|
};
|
|
};
|
|
|
|
+ i2c4_pins_sleep_a: i2c4-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('Z', 4, ANALOG)>, /* I2C4_SCL */
|
|
+ <STM32_PINMUX('Z', 5, ANALOG)>; /* I2C4_SDA */
|
|
+ };
|
|
+ };
|
|
+
|
|
spi1_pins_a: spi1-0 {
|
|
pins1 {
|
|
pinmux = <STM32_PINMUX('Z', 0, AF5)>, /* SPI1_SCK */
|
|
diff --git a/arch/arm/boot/dts/stm32mp157a-dk1.dts b/arch/arm/boot/dts/stm32mp157a-dk1.dts
|
|
new file mode 100644
|
|
index 0000000..866eed7
|
|
--- /dev/null
|
|
+++ b/arch/arm/boot/dts/stm32mp157a-dk1.dts
|
|
@@ -0,0 +1,412 @@
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
|
|
+/*
|
|
+ * Copyright (C) STMicroelectronics 2018 - All Rights Reserved
|
|
+ * Author: Alexandre Torgue <alexandre.torgue@st.com>.
|
|
+ */
|
|
+
|
|
+/dts-v1/;
|
|
+
|
|
+#include "stm32mp157c.dtsi"
|
|
+#include "stm32mp157c-m4-srm.dtsi"
|
|
+#include "stm32mp157cac-pinctrl.dtsi"
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
+#include <dt-bindings/input/input.h>
|
|
+#include <dt-bindings/mfd/st,stpmic1.h>
|
|
+
|
|
+/ {
|
|
+ model = "STMicroelectronics STM32MP157A-DK1 Discovery Board";
|
|
+ compatible = "st,stm32mp157a-dk1", "st,stm32mp157";
|
|
+
|
|
+ chosen {
|
|
+ stdout-path = "serial0:115200n8";
|
|
+ };
|
|
+
|
|
+ memory@c0000000 {
|
|
+ reg = <0xc0000000 0x20000000>;
|
|
+ };
|
|
+
|
|
+ reserved-memory {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ranges;
|
|
+
|
|
+ ipc_share: sram_rproc@10040000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x10040000 0x10000>;
|
|
+ no-map;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ aliases {
|
|
+ serial0 = &uart4;
|
|
+ };
|
|
+
|
|
+ iio-hwmon {
|
|
+ compatible = "iio-hwmon";
|
|
+ io-channels = <&adc_temp>;
|
|
+ };
|
|
+
|
|
+ sram: sram@10050000 {
|
|
+ compatible = "mmio-sram";
|
|
+ reg = <0x10050000 0x10000>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ranges = <0 0x10050000 0x10000>;
|
|
+
|
|
+ dma_pool: dma_pool@0 {
|
|
+ reg = <0x0 0x10000>;
|
|
+ pool;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ led {
|
|
+ compatible = "gpio-leds";
|
|
+ blue {
|
|
+ label = "heartbeat";
|
|
+ gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
|
|
+ linux,default-trigger = "heartbeat";
|
|
+ default-state = "off";
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&adc {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&adc12_usb_pwr_pins_a>;
|
|
+ vref-supply = <&vrefbuf>;
|
|
+ status = "okay";
|
|
+ adc1: adc@0 {
|
|
+ /*
|
|
+ * Type-C USB_PWR_CC1 & USB_PWR_CC2 on in18 & in19.
|
|
+ * Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C:
|
|
+ * 5 * (56 + 47kOhms) * 5pF => 2.5us.
|
|
+ * Use arbitrary margin here (e.g. 5µs).
|
|
+ */
|
|
+ st,min-sample-time-nsecs = <5000>;
|
|
+ /* ANA0, ANA1, USB Type-C CC1 & CC2 */
|
|
+ st,adc-channels = <0 1 18 19>;
|
|
+ status = "okay";
|
|
+ };
|
|
+ adc2: adc@100 {
|
|
+ /* ANA0, ANA1, temp sensor, USB Type-C CC1 & CC2 */
|
|
+ st,adc-channels = <0 1 12 18 19>;
|
|
+ /* temperature sensor min sample time */
|
|
+ st,min-sample-time-nsecs = <10000>;
|
|
+ status = "okay";
|
|
+ };
|
|
+ adc_temp: temp {
|
|
+ status = "okay";
|
|
+ };
|
|
+};
|
|
+
|
|
+&dma1 {
|
|
+ sram = <&dma_pool>;
|
|
+};
|
|
+
|
|
+&dma2 {
|
|
+ sram = <&dma_pool>;
|
|
+};
|
|
+
|
|
+&i2c1 {
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&i2c1_pins_a>;
|
|
+ pinctrl-1 = <&i2c1_pins_sleep_a>;
|
|
+ i2c-scl-rising-time-ns = <100>;
|
|
+ i2c-scl-falling-time-ns = <7>;
|
|
+ status = "okay";
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
+};
|
|
+
|
|
+&i2c4 {
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&i2c4_pins_a>;
|
|
+ pinctrl-1 = <&i2c4_pins_sleep_a>;
|
|
+ i2c-scl-rising-time-ns = <185>;
|
|
+ i2c-scl-falling-time-ns = <20>;
|
|
+ status = "okay";
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
+
|
|
+ pmic: stpmic@33 {
|
|
+ compatible = "st,stpmic1";
|
|
+ reg = <0x33>;
|
|
+ interrupts-extended = <&pwr 0 IRQ_TYPE_EDGE_FALLING 1>,
|
|
+ <&exti 55 1>;
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <2>;
|
|
+ status = "okay";
|
|
+
|
|
+ st,main-control-register = <0x04>;
|
|
+ st,vin-control-register = <0xc0>;
|
|
+ st,usb-control-register = <0x30>;
|
|
+
|
|
+ regulators {
|
|
+ compatible = "st,stpmic1-regulators";
|
|
+
|
|
+ ldo1-supply = <&v3v3>;
|
|
+ ldo3-supply = <&vdd_ddr>;
|
|
+ ldo6-supply = <&v3v3>;
|
|
+ pwr_sw1-supply = <&bst_out>;
|
|
+ pwr_sw2-supply = <&bst_out>;
|
|
+
|
|
+ vddcore: buck1 {
|
|
+ regulator-name = "vddcore";
|
|
+ regulator-min-microvolt = <800000>;
|
|
+ regulator-max-microvolt = <1350000>;
|
|
+ regulator-always-on;
|
|
+ regulator-initial-mode = <0>;
|
|
+ regulator-over-current-protection;
|
|
+ };
|
|
+
|
|
+ vdd_ddr: buck2 {
|
|
+ regulator-name = "vdd_ddr";
|
|
+ regulator-min-microvolt = <1350000>;
|
|
+ regulator-max-microvolt = <1350000>;
|
|
+ regulator-always-on;
|
|
+ regulator-initial-mode = <0>;
|
|
+ regulator-over-current-protection;
|
|
+ };
|
|
+
|
|
+ vdd: buck3 {
|
|
+ regulator-name = "vdd";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-always-on;
|
|
+ st,mask-reset;
|
|
+ regulator-initial-mode = <2>;
|
|
+ regulator-over-current-protection;
|
|
+ };
|
|
+
|
|
+ v3v3: buck4 {
|
|
+ regulator-name = "v3v3";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-always-on;
|
|
+ regulator-over-current-protection;
|
|
+ regulator-initial-mode = <2>;
|
|
+ };
|
|
+
|
|
+ v1v8_audio: ldo1 {
|
|
+ regulator-name = "v1v8_audio";
|
|
+ regulator-min-microvolt = <1800000>;
|
|
+ regulator-max-microvolt = <1800000>;
|
|
+ regulator-always-on;
|
|
+ interrupts = <IT_CURLIM_LDO1 0>;
|
|
+
|
|
+ };
|
|
+
|
|
+ v3v3_hdmi: ldo2 {
|
|
+ regulator-name = "v3v3_hdmi";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-always-on;
|
|
+ interrupts = <IT_CURLIM_LDO2 0>;
|
|
+
|
|
+ };
|
|
+
|
|
+ vtt_ddr: ldo3 {
|
|
+ regulator-name = "vtt_ddr";
|
|
+ regulator-min-microvolt = <500000>;
|
|
+ regulator-max-microvolt = <750000>;
|
|
+ regulator-always-on;
|
|
+ regulator-over-current-protection;
|
|
+ };
|
|
+
|
|
+ vdd_usb: ldo4 {
|
|
+ regulator-name = "vdd_usb";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ interrupts = <IT_CURLIM_LDO4 0>;
|
|
+ };
|
|
+
|
|
+ vdda: ldo5 {
|
|
+ regulator-name = "vdda";
|
|
+ regulator-min-microvolt = <2900000>;
|
|
+ regulator-max-microvolt = <2900000>;
|
|
+ interrupts = <IT_CURLIM_LDO5 0>;
|
|
+ regulator-boot-on;
|
|
+ };
|
|
+
|
|
+ v1v2_hdmi: ldo6 {
|
|
+ regulator-name = "v1v2_hdmi";
|
|
+ regulator-min-microvolt = <1200000>;
|
|
+ regulator-max-microvolt = <1200000>;
|
|
+ regulator-always-on;
|
|
+ interrupts = <IT_CURLIM_LDO6 0>;
|
|
+
|
|
+ };
|
|
+
|
|
+ vref_ddr: vref_ddr {
|
|
+ regulator-name = "vref_ddr";
|
|
+ regulator-always-on;
|
|
+ regulator-over-current-protection;
|
|
+ };
|
|
+
|
|
+ bst_out: boost {
|
|
+ regulator-name = "bst_out";
|
|
+ interrupts = <IT_OCP_BOOST 0>;
|
|
+ };
|
|
+
|
|
+ vbus_otg: pwr_sw1 {
|
|
+ regulator-name = "vbus_otg";
|
|
+ interrupts = <IT_OCP_OTG 0>;
|
|
+ regulator-active-discharge;
|
|
+ };
|
|
+
|
|
+ vbus_sw: pwr_sw2 {
|
|
+ regulator-name = "vbus_sw";
|
|
+ interrupts = <IT_OCP_SWOUT 0>;
|
|
+ regulator-active-discharge;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ onkey {
|
|
+ compatible = "st,stpmic1-onkey";
|
|
+ interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 1>;
|
|
+ interrupt-names = "onkey-falling", "onkey-rising";
|
|
+ status = "okay";
|
|
+ };
|
|
+
|
|
+ watchdog {
|
|
+ compatible = "st,stpmic1-wdt";
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&ipcc {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&iwdg2 {
|
|
+ timeout-sec = <32>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&m4_rproc {
|
|
+ memory-region = <&ipc_share>;
|
|
+ mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
|
|
+ mbox-names = "vq0", "vq1", "init_shdn";
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <68 1>;
|
|
+ interrupt-names = "wdg";
|
|
+ recovery;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&rng1 {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&rtc {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&sdmmc1 {
|
|
+ pinctrl-names = "default", "opendrain", "sleep";
|
|
+ pinctrl-0 = <&sdmmc1_b4_pins_a>;
|
|
+ pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
|
|
+ pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
|
|
+ broken-cd;
|
|
+ st,negedge;
|
|
+ bus-width = <4>;
|
|
+ vmmc-supply = <&v3v3>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&timers1 {
|
|
+ /* spare dmas for other usage */
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
+ pwm {
|
|
+ pinctrl-0 = <&pwm1_pins_a>;
|
|
+ pinctrl-1 = <&pwm1_sleep_pins_a>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ status = "okay";
|
|
+ };
|
|
+ timer@0 {
|
|
+ status = "okay";
|
|
+ };
|
|
+};
|
|
+
|
|
+&timers3 {
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
+ pwm {
|
|
+ pinctrl-0 = <&pwm3_pins_a>;
|
|
+ pinctrl-1 = <&pwm3_sleep_pins_a>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ status = "okay";
|
|
+ };
|
|
+ timer@2 {
|
|
+ status = "okay";
|
|
+ };
|
|
+};
|
|
+
|
|
+&timers4 {
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
+ pwm {
|
|
+ pinctrl-0 = <&pwm4_pins_a &pwm4_pins_b>;
|
|
+ pinctrl-1 = <&pwm4_sleep_pins_a &pwm4_sleep_pins_b>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ status = "okay";
|
|
+ };
|
|
+ timer@3 {
|
|
+ status = "okay";
|
|
+ };
|
|
+};
|
|
+
|
|
+&timers5 {
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
+ pwm {
|
|
+ pinctrl-0 = <&pwm5_pins_a>;
|
|
+ pinctrl-1 = <&pwm5_sleep_pins_a>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ status = "okay";
|
|
+ };
|
|
+ timer@4 {
|
|
+ status = "okay";
|
|
+ };
|
|
+};
|
|
+
|
|
+&timers6 {
|
|
+ status = "okay";
|
|
+ /* spare dmas for other usage */
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
+ timer@5 {
|
|
+ status = "okay";
|
|
+ };
|
|
+};
|
|
+
|
|
+&timers12 {
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
+ pwm {
|
|
+ pinctrl-0 = <&pwm12_pins_a>;
|
|
+ pinctrl-1 = <&pwm12_sleep_pins_a>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ status = "okay";
|
|
+ };
|
|
+ timer@11 {
|
|
+ status = "okay";
|
|
+ };
|
|
+};
|
|
+
|
|
+&uart4 {
|
|
+ pinctrl-names = "default", "sleep", "idle", "no_console_suspend";
|
|
+ pinctrl-0 = <&uart4_pins_a>;
|
|
+ pinctrl-1 = <&uart4_sleep_pins_a>;
|
|
+ pinctrl-2 = <&uart4_idle_pins_a>;
|
|
+ pinctrl-3 = <&uart4_pins_a>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&vrefbuf {
|
|
+ regulator-min-microvolt = <2500000>;
|
|
+ regulator-max-microvolt = <2500000>;
|
|
+ vdda-supply = <&vdd>;
|
|
+ status = "okay";
|
|
+};
|
|
diff --git a/arch/arm/boot/dts/stm32mp157c-dk2.dts b/arch/arm/boot/dts/stm32mp157c-dk2.dts
|
|
new file mode 100644
|
|
index 0000000..4175b65
|
|
--- /dev/null
|
|
+++ b/arch/arm/boot/dts/stm32mp157c-dk2.dts
|
|
@@ -0,0 +1,22 @@
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
|
|
+/*
|
|
+ * Copyright (C) STMicroelectronics 2018 - All Rights Reserved
|
|
+ * Author: Alexandre Torgue <alexandre.torgue@st.com>.
|
|
+ */
|
|
+
|
|
+/dts-v1/;
|
|
+
|
|
+#include "stm32mp157a-dk1.dts"
|
|
+#include <dt-bindings/rtc/rtc-stm32.h>
|
|
+
|
|
+/ {
|
|
+ model = "STMicroelectronics STM32MP157C-DK2 Discovery Board";
|
|
+ compatible = "st,stm32mp157c-dk2", "st,stm32mp157";
|
|
+};
|
|
+
|
|
+&rtc {
|
|
+ st,lsco = <RTC_OUT2_RMP>;
|
|
+ pinctrl-0 = <&rtc_out2_rmp_pins_a>;
|
|
+ pinctrl-names = "default";
|
|
+};
|
|
+
|
|
diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts
|
|
index f77bea4..1b074e9 100644
|
|
--- a/arch/arm/boot/dts/stm32mp157c-ed1.dts
|
|
+++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts
|
|
@@ -6,7 +6,10 @@
|
|
/dts-v1/;
|
|
|
|
#include "stm32mp157c.dtsi"
|
|
-#include "stm32mp157-pinctrl.dtsi"
|
|
+#include "stm32mp157c-m4-srm.dtsi"
|
|
+#include "stm32mp157caa-pinctrl.dtsi"
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
+#include <dt-bindings/mfd/st,stpmic1.h>
|
|
|
|
/ {
|
|
model = "STMicroelectronics STM32MP157C eval daughter";
|
|
@@ -20,41 +23,251 @@
|
|
reg = <0xC0000000 0x40000000>;
|
|
};
|
|
|
|
+ reserved-memory {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ranges;
|
|
+
|
|
+ ipc_share: sram_rproc@10040000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x10040000 0x10000>;
|
|
+ no-map;
|
|
+ };
|
|
+ };
|
|
+
|
|
aliases {
|
|
serial0 = &uart4;
|
|
};
|
|
|
|
- reg11: reg11 {
|
|
- compatible = "regulator-fixed";
|
|
- regulator-name = "reg11";
|
|
- regulator-min-microvolt = <1100000>;
|
|
- regulator-max-microvolt = <1100000>;
|
|
- regulator-always-on;
|
|
+ iio-hwmon {
|
|
+ compatible = "iio-hwmon";
|
|
+ io-channels = <&adc_temp>;
|
|
};
|
|
|
|
- reg18: reg18 {
|
|
- compatible = "regulator-fixed";
|
|
- regulator-name = "reg18";
|
|
- regulator-min-microvolt = <1800000>;
|
|
- regulator-max-microvolt = <1800000>;
|
|
- regulator-always-on;
|
|
+ sram: sram@10050000 {
|
|
+ compatible = "mmio-sram";
|
|
+ reg = <0x10050000 0x10000>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ranges = <0 0x10050000 0x10000>;
|
|
+
|
|
+ dma_pool: dma_pool@0 {
|
|
+ reg = <0x0 0x10000>;
|
|
+ pool;
|
|
+ };
|
|
};
|
|
|
|
- vdd_usb: vdd-usb {
|
|
- compatible = "regulator-fixed";
|
|
- regulator-name = "vdd_usb";
|
|
- regulator-min-microvolt = <3300000>;
|
|
- regulator-max-microvolt = <3300000>;
|
|
- regulator-always-on;
|
|
+ led {
|
|
+ compatible = "gpio-leds";
|
|
+ blue {
|
|
+ label = "heartbeat";
|
|
+ gpios = <&gpiod 9 GPIO_ACTIVE_HIGH>;
|
|
+ linux,default-trigger = "heartbeat";
|
|
+ default-state = "off";
|
|
+ };
|
|
};
|
|
};
|
|
|
|
-&i2c4 {
|
|
+&adc {
|
|
+ /* ANA0, ANA1 are dedicated pins and don't need pinctrl: only in6. */
|
|
+ vref-supply = <&vdda>;
|
|
+ status = "okay";
|
|
+ adc1: adc@0 {
|
|
+ st,adc-channels = <0 1>;
|
|
+ /* 16.5 ck_cycles sampling time */
|
|
+ st,min-sample-time-nsecs = <400>;
|
|
+ status = "okay";
|
|
+ };
|
|
+ jadc1: jadc@0 {
|
|
+ st,adc-channels = <0 1>;
|
|
+ /* 16.5 ck_cycles sampling time */
|
|
+ st,min-sample-time-nsecs = <400>;
|
|
+ status = "okay";
|
|
+ };
|
|
+ /* temperature sensor on adc2 */
|
|
+ adc2: adc@100 {
|
|
+ status = "okay";
|
|
+ };
|
|
+ adc_temp: temp {
|
|
+ status = "okay";
|
|
+ };
|
|
+};
|
|
+
|
|
+&dac {
|
|
pinctrl-names = "default";
|
|
+ pinctrl-0 = <&dac_ch1_pins_a &dac_ch2_pins_a>;
|
|
+ vref-supply = <&vdda>;
|
|
+ status = "okay";
|
|
+ dac1: dac@1 {
|
|
+ status = "okay";
|
|
+ };
|
|
+ dac2: dac@2 {
|
|
+ status = "okay";
|
|
+ };
|
|
+};
|
|
+
|
|
+&dma1 {
|
|
+ sram = <&dma_pool>;
|
|
+};
|
|
+
|
|
+&dma2 {
|
|
+ sram = <&dma_pool>;
|
|
+};
|
|
+
|
|
+&i2c4 {
|
|
+ pinctrl-names = "default", "sleep";
|
|
pinctrl-0 = <&i2c4_pins_a>;
|
|
+ pinctrl-1 = <&i2c4_pins_sleep_a>;
|
|
i2c-scl-rising-time-ns = <185>;
|
|
i2c-scl-falling-time-ns = <20>;
|
|
status = "okay";
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
+
|
|
+ pmic: stpmic@33 {
|
|
+ compatible = "st,stpmic1";
|
|
+ reg = <0x33>;
|
|
+ interrupts-extended = <&pwr 0 IRQ_TYPE_EDGE_FALLING 1>,
|
|
+ <&exti 55 1>;
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <2>;
|
|
+ status = "okay";
|
|
+
|
|
+ st,main-control-register = <0x04>;
|
|
+ st,vin-control-register = <0xc0>;
|
|
+ st,usb-control-register = <0x30>;
|
|
+
|
|
+ regulators {
|
|
+ compatible = "st,stpmic1-regulators";
|
|
+
|
|
+ ldo1-supply = <&v3v3>;
|
|
+ ldo2-supply = <&v3v3>;
|
|
+ ldo3-supply = <&vdd_ddr>;
|
|
+ ldo5-supply = <&v3v3>;
|
|
+ ldo6-supply = <&v3v3>;
|
|
+ pwr_sw1-supply = <&bst_out>;
|
|
+ pwr_sw2-supply = <&bst_out>;
|
|
+
|
|
+ vddcore: buck1 {
|
|
+ regulator-name = "vddcore";
|
|
+ regulator-min-microvolt = <800000>;
|
|
+ regulator-max-microvolt = <1350000>;
|
|
+ regulator-always-on;
|
|
+ regulator-initial-mode = <0>;
|
|
+ regulator-over-current-protection;
|
|
+ };
|
|
+
|
|
+ vdd_ddr: buck2 {
|
|
+ regulator-name = "vdd_ddr";
|
|
+ regulator-min-microvolt = <1350000>;
|
|
+ regulator-max-microvolt = <1350000>;
|
|
+ regulator-always-on;
|
|
+ regulator-initial-mode = <0>;
|
|
+ regulator-over-current-protection;
|
|
+ };
|
|
+
|
|
+ vdd: buck3 {
|
|
+ regulator-name = "vdd";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-always-on;
|
|
+ st,mask-reset;
|
|
+ regulator-initial-mode = <2>;
|
|
+ regulator-over-current-protection;
|
|
+ };
|
|
+
|
|
+ v3v3: buck4 {
|
|
+ regulator-name = "v3v3";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-always-on;
|
|
+ regulator-over-current-protection;
|
|
+ regulator-initial-mode = <2>;
|
|
+ };
|
|
+
|
|
+ vdda: ldo1 {
|
|
+ regulator-name = "vdda";
|
|
+ regulator-min-microvolt = <2900000>;
|
|
+ regulator-max-microvolt = <2900000>;
|
|
+ interrupts = <IT_CURLIM_LDO1 0>;
|
|
+ };
|
|
+
|
|
+ v2v8: ldo2 {
|
|
+ regulator-name = "v2v8";
|
|
+ regulator-min-microvolt = <2800000>;
|
|
+ regulator-max-microvolt = <2800000>;
|
|
+ interrupts = <IT_CURLIM_LDO2 0>;
|
|
+ };
|
|
+
|
|
+ vtt_ddr: ldo3 {
|
|
+ regulator-name = "vtt_ddr";
|
|
+ regulator-min-microvolt = <500000>;
|
|
+ regulator-max-microvolt = <750000>;
|
|
+ regulator-always-on;
|
|
+ regulator-over-current-protection;
|
|
+ };
|
|
+
|
|
+ vdd_usb: ldo4 {
|
|
+ regulator-name = "vdd_usb";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ interrupts = <IT_CURLIM_LDO4 0>;
|
|
+ };
|
|
+
|
|
+ vdd_sd: ldo5 {
|
|
+ regulator-name = "vdd_sd";
|
|
+ regulator-min-microvolt = <2900000>;
|
|
+ regulator-max-microvolt = <2900000>;
|
|
+ interrupts = <IT_CURLIM_LDO5 0>;
|
|
+ regulator-boot-on;
|
|
+ };
|
|
+
|
|
+ v1v8: ldo6 {
|
|
+ regulator-name = "v1v8";
|
|
+ regulator-min-microvolt = <1800000>;
|
|
+ regulator-max-microvolt = <1800000>;
|
|
+ interrupts = <IT_CURLIM_LDO6 0>;
|
|
+ };
|
|
+
|
|
+ vref_ddr: vref_ddr {
|
|
+ regulator-name = "vref_ddr";
|
|
+ regulator-always-on;
|
|
+ regulator-over-current-protection;
|
|
+ };
|
|
+
|
|
+ bst_out: boost {
|
|
+ regulator-name = "bst_out";
|
|
+ interrupts = <IT_OCP_BOOST 0>;
|
|
+ };
|
|
+
|
|
+ vbus_otg: pwr_sw1 {
|
|
+ regulator-name = "vbus_otg";
|
|
+ interrupts = <IT_OCP_OTG 0>;
|
|
+ regulator-active-discharge;
|
|
+ };
|
|
+
|
|
+ vbus_sw: pwr_sw2 {
|
|
+ regulator-name = "vbus_sw";
|
|
+ interrupts = <IT_OCP_SWOUT 0>;
|
|
+ regulator-active-discharge;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ onkey {
|
|
+ compatible = "st,stpmic1-onkey";
|
|
+ interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 1>;
|
|
+ interrupt-names = "onkey-falling", "onkey-rising";
|
|
+ status = "okay";
|
|
+ };
|
|
+
|
|
+ watchdog {
|
|
+ compatible = "st,stpmic1-wdt";
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&ipcc {
|
|
+ status = "okay";
|
|
};
|
|
|
|
&iwdg2 {
|
|
@@ -62,6 +275,17 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+&m4_rproc {
|
|
+ memory-region = <&ipc_share>;
|
|
+ mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
|
|
+ mbox-names = "vq0", "vq1", "init_shdn";
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <68 1>;
|
|
+ interrupt-names = "wdg";
|
|
+ recovery;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&rng1 {
|
|
status = "okay";
|
|
};
|
|
@@ -70,16 +294,51 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+&sdmmc1 {
|
|
+ pinctrl-names = "default", "opendrain", "sleep";
|
|
+ pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
|
|
+ pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
|
|
+ pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
|
|
+ broken-cd;
|
|
+ st,sig-dir;
|
|
+ st,neg-edge;
|
|
+ st,use-ckin;
|
|
+ bus-width = <4>;
|
|
+ vmmc-supply = <&vdd_sd>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&sdmmc2 {
|
|
+ pinctrl-names = "default", "opendrain", "sleep";
|
|
+ pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>;
|
|
+ pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>;
|
|
+ pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>;
|
|
+ non-removable;
|
|
+ no-sd;
|
|
+ no-sdio;
|
|
+ st,negedge;
|
|
+ bus-width = <8>;
|
|
+ vmmc-supply = <&v3v3>;
|
|
+ vqmmc-supply = <&v3v3>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&timers6 {
|
|
status = "okay";
|
|
+ /* spare dmas for other usage */
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
timer@5 {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&uart4 {
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-names = "default", "sleep", "idle", "no_console_suspend";
|
|
pinctrl-0 = <&uart4_pins_a>;
|
|
+ pinctrl-1 = <&uart4_sleep_pins_a>;
|
|
+ pinctrl-2 = <&uart4_idle_pins_a>;
|
|
+ pinctrl-3 = <&uart4_pins_a>;
|
|
status = "okay";
|
|
};
|
|
|
|
diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts
|
|
index 372bc2e..fe59c6d 100644
|
|
--- a/arch/arm/boot/dts/stm32mp157c-ev1.dts
|
|
+++ b/arch/arm/boot/dts/stm32mp157c-ev1.dts
|
|
@@ -6,6 +6,7 @@
|
|
/dts-v1/;
|
|
|
|
#include "stm32mp157c-ed1.dts"
|
|
+#include <dt-bindings/input/input.h>
|
|
|
|
/ {
|
|
model = "STMicroelectronics STM32MP157C eval daughter on eval mother";
|
|
@@ -16,9 +17,46 @@
|
|
};
|
|
|
|
aliases {
|
|
- serial0 = &uart4;
|
|
+ serial1 = &usart3;
|
|
ethernet0 = ðernet0;
|
|
};
|
|
+
|
|
+ joystick {
|
|
+ compatible = "gpio-keys";
|
|
+ #size-cells = <0>;
|
|
+ pinctrl-0 = <&joystick_pins>;
|
|
+ pinctrl-names = "default";
|
|
+ button-0 {
|
|
+ label = "JoySel";
|
|
+ linux,code = <KEY_ENTER>;
|
|
+ interrupt-parent = <&stmfx_pinctrl>;
|
|
+ interrupts = <0 IRQ_TYPE_EDGE_RISING>;
|
|
+ };
|
|
+ button-1 {
|
|
+ label = "JoyDown";
|
|
+ linux,code = <KEY_DOWN>;
|
|
+ interrupt-parent = <&stmfx_pinctrl>;
|
|
+ interrupts = <1 IRQ_TYPE_EDGE_RISING>;
|
|
+ };
|
|
+ button-2 {
|
|
+ label = "JoyLeft";
|
|
+ linux,code = <KEY_LEFT>;
|
|
+ interrupt-parent = <&stmfx_pinctrl>;
|
|
+ interrupts = <2 IRQ_TYPE_EDGE_RISING>;
|
|
+ };
|
|
+ button-3 {
|
|
+ label = "JoyRight";
|
|
+ linux,code = <KEY_RIGHT>;
|
|
+ interrupt-parent = <&stmfx_pinctrl>;
|
|
+ interrupts = <3 IRQ_TYPE_EDGE_RISING>;
|
|
+ };
|
|
+ button-4 {
|
|
+ label = "JoyUp";
|
|
+ linux,code = <KEY_UP>;
|
|
+ interrupt-parent = <&stmfx_pinctrl>;
|
|
+ interrupts = <4 IRQ_TYPE_EDGE_RISING>;
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
ðernet0 {
|
|
@@ -46,37 +84,85 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+&fmc {
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&fmc_pins_a>;
|
|
+ pinctrl-1 = <&fmc_sleep_pins_a>;
|
|
+ status = "okay";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ nand: nand@0 {
|
|
+ reg = <0>;
|
|
+ nand-on-flash-bbt;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ };
|
|
+};
|
|
+
|
|
&i2c2 {
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-names = "default", "sleep";
|
|
pinctrl-0 = <&i2c2_pins_a>;
|
|
+ pinctrl-1 = <&i2c2_pins_sleep_a>;
|
|
i2c-scl-rising-time-ns = <185>;
|
|
i2c-scl-falling-time-ns = <20>;
|
|
status = "okay";
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
+
|
|
+ stmfx: stmfx@42 {
|
|
+ compatible = "st,stmfx-0300";
|
|
+ reg = <0x42>;
|
|
+ interrupts = <8 IRQ_TYPE_EDGE_RISING>;
|
|
+ interrupt-parent = <&gpioi>;
|
|
+ vdd-supply = <&v3v3>;
|
|
+
|
|
+ stmfx_pinctrl: stmfx-pin-controller {
|
|
+ compatible = "st,stmfx-0300-pinctrl";
|
|
+ gpio-controller;
|
|
+ #gpio-cells = <2>;
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <2>;
|
|
+ gpio-ranges = <&stmfx_pinctrl 0 0 24>;
|
|
+
|
|
+ joystick_pins: joystick {
|
|
+ pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
|
|
+ drive-push-pull;
|
|
+ bias-pull-down;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
&i2c5 {
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-names = "default", "sleep";
|
|
pinctrl-0 = <&i2c5_pins_a>;
|
|
+ pinctrl-1 = <&i2c5_pins_sleep_a>;
|
|
i2c-scl-rising-time-ns = <185>;
|
|
i2c-scl-falling-time-ns = <20>;
|
|
status = "okay";
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
};
|
|
|
|
&m_can1 {
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-names = "default", "sleep";
|
|
pinctrl-0 = <&m_can1_pins_a>;
|
|
+ pinctrl-1 = <&m_can1_sleep_pins_a>;
|
|
status = "okay";
|
|
};
|
|
|
|
&qspi {
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-names = "default", "sleep";
|
|
pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a &qspi_bk2_pins_a>;
|
|
+ pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a &qspi_bk2_sleep_pins_a>;
|
|
reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
status = "okay";
|
|
|
|
flash0: mx66l51235l@0 {
|
|
+ compatible = "jedec,spi-nor";
|
|
reg = <0>;
|
|
spi-rx-bus-width = <4>;
|
|
spi-max-frequency = <108000000>;
|
|
@@ -85,6 +171,7 @@
|
|
};
|
|
|
|
flash1: mx66l51235l@1 {
|
|
+ compatible = "jedec,spi-nor";
|
|
reg = <1>;
|
|
spi-rx-bus-width = <4>;
|
|
spi-max-frequency = <108000000>;
|
|
@@ -101,9 +188,13 @@
|
|
|
|
&timers2 {
|
|
status = "disabled";
|
|
+ /* spare dmas for other usage (un-delete to enable pwm capture) */
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
pwm {
|
|
pinctrl-0 = <&pwm2_pins_a>;
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-1 = <&pwm2_sleep_pins_a>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
status = "okay";
|
|
};
|
|
timer@1 {
|
|
@@ -113,9 +204,12 @@
|
|
|
|
&timers8 {
|
|
status = "disabled";
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
pwm {
|
|
pinctrl-0 = <&pwm8_pins_a>;
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-1 = <&pwm8_sleep_pins_a>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
status = "okay";
|
|
};
|
|
timer@7 {
|
|
@@ -125,9 +219,12 @@
|
|
|
|
&timers12 {
|
|
status = "disabled";
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
pwm {
|
|
pinctrl-0 = <&pwm12_pins_a>;
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-1 = <&pwm12_sleep_pins_a>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
status = "okay";
|
|
};
|
|
timer@11 {
|
|
@@ -135,6 +232,14 @@
|
|
};
|
|
};
|
|
|
|
+&usart3 {
|
|
+ pinctrl-names = "default", "sleep", "idle";
|
|
+ pinctrl-0 = <&usart3_pins_a>;
|
|
+ pinctrl-1 = <&usart3_sleep_pins_a>;
|
|
+ pinctrl-2 = <&usart3_idle_pins_a>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
&usbh_ehci {
|
|
phys = <&usbphyc_port0>;
|
|
phy-names = "usb";
|
|
diff --git a/arch/arm/boot/dts/stm32mp157c-m4-srm.dtsi b/arch/arm/boot/dts/stm32mp157c-m4-srm.dtsi
|
|
new file mode 100644
|
|
index 0000000..a1d132d0
|
|
--- /dev/null
|
|
+++ b/arch/arm/boot/dts/stm32mp157c-m4-srm.dtsi
|
|
@@ -0,0 +1,436 @@
|
|
+&m4_rproc {
|
|
+ m4_system_resources {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ m4_timers2: timer@40000000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40000000 0x400>;
|
|
+ clocks = <&rcc TIM2_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_timers3: timer@40001000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40001000 0x400>;
|
|
+ clocks = <&rcc TIM3_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_timers4: timer@40002000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40002000 0x400>;
|
|
+ clocks = <&rcc TIM4_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_timers5: timer@40003000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40003000 0x400>;
|
|
+ clocks = <&rcc TIM5_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_timers6: timer@40004000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40004000 0x400>;
|
|
+ clocks = <&rcc TIM6_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_timers7: timer@40005000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40005000 0x400>;
|
|
+ clocks = <&rcc TIM7_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_timers12: timer@40006000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40006000 0x400>;
|
|
+ clocks = <&rcc TIM12_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_timers13: timer@40007000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40007000 0x400>;
|
|
+ clocks = <&rcc TIM13_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_timers14: timer@40008000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40008000 0x400>;
|
|
+ clocks = <&rcc TIM14_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_lptimer1: timer@40009000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40009000 0x400>;
|
|
+ clocks = <&rcc LPTIM1_K>;
|
|
+ clock-names = "mux";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_spi2: spi@4000b000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4000b000 0x400>;
|
|
+ clocks = <&rcc SPI2_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_i2s2: audio-controller@4000b000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4000b000 0x400>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_spi3: spi@4000c000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4000c000 0x400>;
|
|
+ clocks = <&rcc SPI3_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_i2s3: audio-controller@4000c000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4000c000 0x400>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_spdifrx: audio-controller@4000d000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4000d000 0x400>;
|
|
+ clocks = <&rcc SPDIF_K>;
|
|
+ clock-names = "kclk";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_usart2: serial@4000e000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4000e000 0x400>;
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <27 1>;
|
|
+ clocks = <&rcc USART2_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_usart3: serial@4000f000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4000f000 0x400>;
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <28 1>;
|
|
+ clocks = <&rcc USART3_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_uart4: serial@40010000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40010000 0x400>;
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <30 1>;
|
|
+ clocks = <&rcc UART4_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_uart5: serial@40011000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40011000 0x400>;
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <31 1>;
|
|
+ clocks = <&rcc UART5_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_i2c1: i2c@40012000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40012000 0x400>;
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <21 1>;
|
|
+ clocks = <&rcc I2C1_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_i2c2: i2c@40013000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40013000 0x400>;
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <22 1>;
|
|
+ clocks = <&rcc I2C2_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_i2c3: i2c@40014000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40014000 0x400>;
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <23 1>;
|
|
+ clocks = <&rcc I2C3_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_i2c5: i2c@40015000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40015000 0x400>;
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <25 1>;
|
|
+ clocks = <&rcc I2C5_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_cec: cec@40016000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40016000 0x400>;
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <69 1>;
|
|
+ clocks = <&rcc CEC_K>, <&rcc CK_LSE>;
|
|
+ clock-names = "cec", "hdmi-cec";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_dac: dac@40017000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40017000 0x400>;
|
|
+ clocks = <&rcc DAC12>;
|
|
+ clock-names = "pclk";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_uart7: serial@40018000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40018000 0x400>;
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <32 1>;
|
|
+ clocks = <&rcc UART7_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_uart8: serial@40019000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x40019000 0x400>;
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <33 1>;
|
|
+ clocks = <&rcc UART8_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_timers1: timer@44000000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x44000000 0x400>;
|
|
+ clocks = <&rcc TIM1_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_timers8: timer@44001000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x44001000 0x400>;
|
|
+ clocks = <&rcc TIM8_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_usart6: serial@44003000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x44003000 0x400>;
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <29 1>;
|
|
+ clocks = <&rcc USART6_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_spi1: spi@44004000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x44004000 0x400>;
|
|
+ clocks = <&rcc SPI1_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_i2s1: audio-controller@44004000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x44004000 0x400>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_spi4: spi@44005000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x44005000 0x400>;
|
|
+ clocks = <&rcc SPI4_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_timers15: timer@44006000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x44006000 0x400>;
|
|
+ clocks = <&rcc TIM15_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_timers16: timer@44007000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x44007000 0x400>;
|
|
+ clocks = <&rcc TIM16_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_timers17: timer@44008000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x44008000 0x400>;
|
|
+ clocks = <&rcc TIM17_K>;
|
|
+ clock-names = "int";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_spi5: spi@44009000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x44009000 0x400>;
|
|
+ clocks = <&rcc SPI5_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_sai1: sai@4400a000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4400a000 0x4>;
|
|
+ clocks = <&rcc SAI1_K>;
|
|
+ clock-names = "sai_ck";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_sai2: sai@4400b000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4400b000 0x4>;
|
|
+ clocks = <&rcc SAI2_K>;
|
|
+ clock-names = "sai_ck";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_sai3: sai@4400c000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4400c000 0x4>;
|
|
+ clocks = <&rcc SAI3_K>;
|
|
+ clock-names = "sai_ck";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_dfsdm: dfsdm@4400d000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4400d000 0x800>;
|
|
+ clocks = <&rcc DFSDM_K>;
|
|
+ clock-names = "dfsdm";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_m_can1: can@4400e000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4400e000 0x400>, <0x44011000 0x2800>;
|
|
+ clocks = <&rcc CK_HSE>, <&rcc FDCAN_K>;
|
|
+ clock-names = "hclk", "cclk";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_m_can2: can@4400f000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4400f000 0x400>, <0x44011000 0x2800>;
|
|
+ clocks = <&rcc CK_HSE>, <&rcc FDCAN_K>;
|
|
+ clock-names = "hclk", "cclk";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_dma1: dma@48000000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x48000000 0x400>;
|
|
+ clocks = <&rcc DMA1>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_dma2: dma@48001000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x48001000 0x400>;
|
|
+ clocks = <&rcc DMA2>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_dmamux1: dma-router@48002000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x48002000 0x1c>;
|
|
+ clocks = <&rcc DMAMUX>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_adc: adc@48003000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x48003000 0x400>;
|
|
+ clocks = <&rcc ADC12>, <&rcc ADC12_K>;
|
|
+ clock-names = "bus", "adc";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_sdmmc3: sdmmc@48004000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x48004000 0x400>, <0x48005000 0x400>;
|
|
+ clocks = <&rcc SDMMC3_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_usbotg_hs: usb-otg@49000000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x49000000 0x10000>;
|
|
+ clocks = <&rcc USBO_K>;
|
|
+ clock-names = "otg";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_hash2: hash@4c002000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4c002000 0x400>;
|
|
+ clocks = <&rcc HASH2>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_rng2: rng@4c003000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4c003000 0x400>;
|
|
+ clocks = <&rcc RNG2_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_crc2: crc@4c004000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4c004000 0x400>;
|
|
+ clocks = <&rcc CRC2>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_cryp2: cryp@4c005000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4c005000 0x400>;
|
|
+ clocks = <&rcc CRYP2>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_dcmi: dcmi@4c006000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x4c006000 0x400>;
|
|
+ clocks = <&rcc DCMI>;
|
|
+ clock-names = "mclk";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_lptimer2: timer@50021000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x50021000 0x400>;
|
|
+ clocks = <&rcc LPTIM2_K>;
|
|
+ clock-names = "mux";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_lptimer3: timer@50022000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x50022000 0x400>;
|
|
+ clocks = <&rcc LPTIM3_K>;
|
|
+ clock-names = "mux";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_lptimer4: timer@50023000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x50023000 0x400>;
|
|
+ clocks = <&rcc LPTIM4_K>;
|
|
+ clock-names = "mux";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_lptimer5: timer@50024000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x50024000 0x400>;
|
|
+ clocks = <&rcc LPTIM5_K>;
|
|
+ clock-names = "mux";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_sai4: sai@50027000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x50027000 0x4>;
|
|
+ clocks = <&rcc SAI4_K>;
|
|
+ clock-names = "sai_ck";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_qspi: qspi@58003000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x58003000 0x1000>, <0x70000000 0x10000000>;
|
|
+ clocks = <&rcc QSPI_K>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ m4_ethernet0: ethernet@5800a000 {
|
|
+ compatible = "rproc-srm-dev";
|
|
+ reg = <0x5800a000 0x2000>;
|
|
+ clock-names = "stmmaceth",
|
|
+ "mac-clk-tx",
|
|
+ "mac-clk-rx",
|
|
+ "ethstp",
|
|
+ "syscfg-clk";
|
|
+ clocks = <&rcc ETHMAC>,
|
|
+ <&rcc ETHTX>,
|
|
+ <&rcc ETHRX>,
|
|
+ <&rcc ETHSTP>,
|
|
+ <&rcc SYSCFG>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi
|
|
index 185541a..b4bae4d 100644
|
|
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
|
|
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
|
|
@@ -29,10 +29,8 @@
|
|
};
|
|
|
|
psci {
|
|
- compatible = "arm,psci";
|
|
+ compatible = "arm,psci-1.0";
|
|
method = "smc";
|
|
- cpu_off = <0x84000002>;
|
|
- cpu_on = <0x84000003>;
|
|
};
|
|
|
|
intc: interrupt-controller@a0021000 {
|
|
@@ -84,6 +82,26 @@
|
|
};
|
|
};
|
|
|
|
+ pm_domain {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ compatible = "st,stm32mp157c-pd";
|
|
+
|
|
+ pd_core_ret: core-ret-power-domain@1 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ reg = <1>;
|
|
+ #power-domain-cells = <0>;
|
|
+ label = "CORE-RETENTION";
|
|
+
|
|
+ pd_core: core-power-domain@2 {
|
|
+ reg = <2>;
|
|
+ #power-domain-cells = <0>;
|
|
+ label = "CORE";
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
soc {
|
|
compatible = "simple-bus";
|
|
#address-cells = <1>;
|
|
@@ -98,6 +116,12 @@
|
|
reg = <0x40000000 0x400>;
|
|
clocks = <&rcc TIM2_K>;
|
|
clock-names = "int";
|
|
+ dmas = <&dmamux1 18 0x400 0x5>,
|
|
+ <&dmamux1 19 0x400 0x5>,
|
|
+ <&dmamux1 20 0x400 0x5>,
|
|
+ <&dmamux1 21 0x400 0x5>,
|
|
+ <&dmamux1 22 0x400 0x5>;
|
|
+ dma-names = "ch1", "ch2", "ch3", "ch4", "up";
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -119,6 +143,13 @@
|
|
reg = <0x40001000 0x400>;
|
|
clocks = <&rcc TIM3_K>;
|
|
clock-names = "int";
|
|
+ dmas = <&dmamux1 23 0x400 0x5>,
|
|
+ <&dmamux1 24 0x400 0x5>,
|
|
+ <&dmamux1 25 0x400 0x5>,
|
|
+ <&dmamux1 26 0x400 0x5>,
|
|
+ <&dmamux1 27 0x400 0x5>,
|
|
+ <&dmamux1 28 0x400 0x5>;
|
|
+ dma-names = "ch1", "ch2", "ch3", "ch4", "up", "trig";
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -140,6 +171,11 @@
|
|
reg = <0x40002000 0x400>;
|
|
clocks = <&rcc TIM4_K>;
|
|
clock-names = "int";
|
|
+ dmas = <&dmamux1 29 0x400 0x5>,
|
|
+ <&dmamux1 30 0x400 0x5>,
|
|
+ <&dmamux1 31 0x400 0x5>,
|
|
+ <&dmamux1 32 0x400 0x5>;
|
|
+ dma-names = "ch1", "ch2", "ch3", "ch4";
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -161,6 +197,13 @@
|
|
reg = <0x40003000 0x400>;
|
|
clocks = <&rcc TIM5_K>;
|
|
clock-names = "int";
|
|
+ dmas = <&dmamux1 55 0x400 0x5>,
|
|
+ <&dmamux1 56 0x400 0x5>,
|
|
+ <&dmamux1 57 0x400 0x5>,
|
|
+ <&dmamux1 58 0x400 0x5>,
|
|
+ <&dmamux1 59 0x400 0x5>,
|
|
+ <&dmamux1 60 0x400 0x5>;
|
|
+ dma-names = "ch1", "ch2", "ch3", "ch4", "up", "trig";
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -182,6 +225,8 @@
|
|
reg = <0x40004000 0x400>;
|
|
clocks = <&rcc TIM6_K>;
|
|
clock-names = "int";
|
|
+ dmas = <&dmamux1 69 0x400 0x5>;
|
|
+ dma-names = "up";
|
|
status = "disabled";
|
|
|
|
timer@5 {
|
|
@@ -198,6 +243,8 @@
|
|
reg = <0x40005000 0x400>;
|
|
clocks = <&rcc TIM7_K>;
|
|
clock-names = "int";
|
|
+ dmas = <&dmamux1 70 0x400 0x5>;
|
|
+ dma-names = "up";
|
|
status = "disabled";
|
|
|
|
timer@6 {
|
|
@@ -277,6 +324,7 @@
|
|
reg = <0x40009000 0x400>;
|
|
clocks = <&rcc LPTIM1_K>;
|
|
clock-names = "mux";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -308,6 +356,7 @@
|
|
dmas = <&dmamux1 39 0x400 0x05>,
|
|
<&dmamux1 40 0x400 0x05>;
|
|
dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -322,90 +371,131 @@
|
|
dmas = <&dmamux1 61 0x400 0x05>,
|
|
<&dmamux1 62 0x400 0x05>;
|
|
dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
usart2: serial@4000e000 {
|
|
compatible = "st,stm32h7-uart";
|
|
reg = <0x4000e000 0x400>;
|
|
- interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 27 1>;
|
|
clocks = <&rcc USART2_K>;
|
|
+ wakeup-source;
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
usart3: serial@4000f000 {
|
|
compatible = "st,stm32h7-uart";
|
|
reg = <0x4000f000 0x400>;
|
|
- interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 28 1>;
|
|
clocks = <&rcc USART3_K>;
|
|
+ wakeup-source;
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
uart4: serial@40010000 {
|
|
compatible = "st,stm32h7-uart";
|
|
reg = <0x40010000 0x400>;
|
|
- interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 30 1>;
|
|
clocks = <&rcc UART4_K>;
|
|
+ wakeup-source;
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
uart5: serial@40011000 {
|
|
compatible = "st,stm32h7-uart";
|
|
reg = <0x40011000 0x400>;
|
|
- interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 31 1>;
|
|
clocks = <&rcc UART5_K>;
|
|
+ wakeup-source;
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
i2c1: i2c@40012000 {
|
|
compatible = "st,stm32f7-i2c";
|
|
reg = <0x40012000 0x400>;
|
|
- interrupt-names = "event", "error";
|
|
- interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
|
|
- <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "error", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&intc GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 21 1>;
|
|
clocks = <&rcc I2C1_K>;
|
|
resets = <&rcc I2C1_R>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
+ dmas = <&dmamux1 33 0x400 0x05>,
|
|
+ <&dmamux1 34 0x400 0x05>;
|
|
+ dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
+ st,syscfg-fmp = <&syscfg 0x4 0x1>;
|
|
status = "disabled";
|
|
};
|
|
|
|
i2c2: i2c@40013000 {
|
|
compatible = "st,stm32f7-i2c";
|
|
reg = <0x40013000 0x400>;
|
|
- interrupt-names = "event", "error";
|
|
- interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
|
|
- <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "error", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&intc GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 22 1>;
|
|
clocks = <&rcc I2C2_K>;
|
|
resets = <&rcc I2C2_R>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
+ dmas = <&dmamux1 35 0x400 0x05>,
|
|
+ <&dmamux1 36 0x400 0x05>;
|
|
+ dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
+ st,syscfg-fmp = <&syscfg 0x4 0x2>;
|
|
status = "disabled";
|
|
};
|
|
|
|
i2c3: i2c@40014000 {
|
|
compatible = "st,stm32f7-i2c";
|
|
reg = <0x40014000 0x400>;
|
|
- interrupt-names = "event", "error";
|
|
- interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
|
|
- <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "error", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&intc GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 23 1>;
|
|
clocks = <&rcc I2C3_K>;
|
|
resets = <&rcc I2C3_R>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
+ dmas = <&dmamux1 73 0x400 0x05>,
|
|
+ <&dmamux1 74 0x400 0x05>;
|
|
+ dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
+ st,syscfg-fmp = <&syscfg 0x4 0x4>;
|
|
status = "disabled";
|
|
};
|
|
|
|
i2c5: i2c@40015000 {
|
|
compatible = "st,stm32f7-i2c";
|
|
reg = <0x40015000 0x400>;
|
|
- interrupt-names = "event", "error";
|
|
- interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>,
|
|
- <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "error", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&intc GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 25 1>;
|
|
clocks = <&rcc I2C5_K>;
|
|
resets = <&rcc I2C5_R>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
+ dmas = <&dmamux1 115 0x400 0x05>,
|
|
+ <&dmamux1 116 0x400 0x05>;
|
|
+ dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
+ st,syscfg-fmp = <&syscfg 0x4 0x10>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -415,6 +505,7 @@
|
|
interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&rcc CEC_K>, <&clk_lse>;
|
|
clock-names = "cec", "hdmi-cec";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -445,16 +536,24 @@
|
|
uart7: serial@40018000 {
|
|
compatible = "st,stm32h7-uart";
|
|
reg = <0x40018000 0x400>;
|
|
- interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 32 1>;
|
|
clocks = <&rcc UART7_K>;
|
|
+ wakeup-source;
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
uart8: serial@40019000 {
|
|
compatible = "st,stm32h7-uart";
|
|
reg = <0x40019000 0x400>;
|
|
- interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 33 1>;
|
|
clocks = <&rcc UART8_K>;
|
|
+ wakeup-source;
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -465,6 +564,15 @@
|
|
reg = <0x44000000 0x400>;
|
|
clocks = <&rcc TIM1_K>;
|
|
clock-names = "int";
|
|
+ dmas = <&dmamux1 11 0x400 0x5>,
|
|
+ <&dmamux1 12 0x400 0x5>,
|
|
+ <&dmamux1 13 0x400 0x5>,
|
|
+ <&dmamux1 14 0x400 0x5>,
|
|
+ <&dmamux1 15 0x400 0x5>,
|
|
+ <&dmamux1 16 0x400 0x5>,
|
|
+ <&dmamux1 17 0x400 0x5>;
|
|
+ dma-names = "ch1", "ch2", "ch3", "ch4",
|
|
+ "up", "trig", "com";
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -486,6 +594,15 @@
|
|
reg = <0x44001000 0x400>;
|
|
clocks = <&rcc TIM8_K>;
|
|
clock-names = "int";
|
|
+ dmas = <&dmamux1 47 0x400 0x5>,
|
|
+ <&dmamux1 48 0x400 0x5>,
|
|
+ <&dmamux1 49 0x400 0x5>,
|
|
+ <&dmamux1 50 0x400 0x5>,
|
|
+ <&dmamux1 51 0x400 0x5>,
|
|
+ <&dmamux1 52 0x400 0x5>,
|
|
+ <&dmamux1 53 0x400 0x5>;
|
|
+ dma-names = "ch1", "ch2", "ch3", "ch4",
|
|
+ "up", "trig", "com";
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -503,8 +620,12 @@
|
|
usart6: serial@44003000 {
|
|
compatible = "st,stm32h7-uart";
|
|
reg = <0x44003000 0x400>;
|
|
- interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 29 1>;
|
|
clocks = <&rcc USART6_K>;
|
|
+ wakeup-source;
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -519,6 +640,7 @@
|
|
dmas = <&dmamux1 37 0x400 0x05>,
|
|
<&dmamux1 38 0x400 0x05>;
|
|
dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -533,6 +655,7 @@
|
|
dmas = <&dmamux1 83 0x400 0x05>,
|
|
<&dmamux1 84 0x400 0x05>;
|
|
dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -543,6 +666,11 @@
|
|
reg = <0x44006000 0x400>;
|
|
clocks = <&rcc TIM15_K>;
|
|
clock-names = "int";
|
|
+ dmas = <&dmamux1 105 0x400 0x5>,
|
|
+ <&dmamux1 106 0x400 0x5>,
|
|
+ <&dmamux1 107 0x400 0x5>,
|
|
+ <&dmamux1 108 0x400 0x5>;
|
|
+ dma-names = "ch1", "up", "trig", "com";
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -564,6 +692,9 @@
|
|
reg = <0x44007000 0x400>;
|
|
clocks = <&rcc TIM16_K>;
|
|
clock-names = "int";
|
|
+ dmas = <&dmamux1 109 0x400 0x5>,
|
|
+ <&dmamux1 110 0x400 0x5>;
|
|
+ dma-names = "ch1", "up";
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -584,6 +715,9 @@
|
|
reg = <0x44008000 0x400>;
|
|
clocks = <&rcc TIM17_K>;
|
|
clock-names = "int";
|
|
+ dmas = <&dmamux1 111 0x400 0x5>,
|
|
+ <&dmamux1 112 0x400 0x5>;
|
|
+ dma-names = "ch1", "up";
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -609,6 +743,7 @@
|
|
dmas = <&dmamux1 85 0x400 0x05>,
|
|
<&dmamux1 86 0x400 0x05>;
|
|
dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -684,7 +819,7 @@
|
|
|
|
m_can1: can@4400e000 {
|
|
compatible = "bosch,m_can";
|
|
- reg = <0x4400e000 0x400>, <0x44011000 0x2800>;
|
|
+ reg = <0x4400e000 0x400>, <0x44011000 0x1400>;
|
|
reg-names = "m_can", "message_ram";
|
|
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
|
|
@@ -704,7 +839,7 @@
|
|
interrupt-names = "int0", "int1";
|
|
clocks = <&rcc CK_HSE>, <&rcc FDCAN_K>;
|
|
clock-names = "hclk", "cclk";
|
|
- bosch,mram-cfg = <0x0 0 0 32 0 0 2 2>;
|
|
+ bosch,mram-cfg = <0x1400 0 0 32 0 0 2 2>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -723,6 +858,15 @@
|
|
#dma-cells = <4>;
|
|
st,mem2mem;
|
|
dma-requests = <8>;
|
|
+ dmas = <&mdma1 0 0x11 0x1200000a 0x48000008 0x00000020 1>,
|
|
+ <&mdma1 1 0x11 0x1200000a 0x48000008 0x00000800 1>,
|
|
+ <&mdma1 2 0x11 0x1200000a 0x48000008 0x00200000 1>,
|
|
+ <&mdma1 3 0x11 0x1200000a 0x48000008 0x08000000 1>,
|
|
+ <&mdma1 4 0x11 0x1200000a 0x4800000C 0x00000020 1>,
|
|
+ <&mdma1 5 0x11 0x1200000a 0x4800000C 0x00000800 1>,
|
|
+ <&mdma1 6 0x11 0x1200000a 0x4800000C 0x00200000 1>,
|
|
+ <&mdma1 7 0x11 0x1200000a 0x4800000C 0x08000000 1>;
|
|
+ dma-names = "ch0", "ch1", "ch2", "ch3", "ch4", "ch5", "ch6", "ch7";
|
|
};
|
|
|
|
dma2: dma@48001000 {
|
|
@@ -740,6 +884,15 @@
|
|
#dma-cells = <4>;
|
|
st,mem2mem;
|
|
dma-requests = <8>;
|
|
+ dmas = <&mdma1 8 0x11 0x1200000a 0x48001008 0x00000020 1>,
|
|
+ <&mdma1 9 0x11 0x1200000a 0x48001008 0x00000800 1>,
|
|
+ <&mdma1 10 0x11 0x1200000a 0x48001008 0x00200000 1>,
|
|
+ <&mdma1 11 0x11 0x1200000a 0x48001008 0x08000000 1>,
|
|
+ <&mdma1 12 0x11 0x1200000a 0x4800100C 0x00000020 1>,
|
|
+ <&mdma1 13 0x11 0x1200000a 0x4800100C 0x00000800 1>,
|
|
+ <&mdma1 14 0x11 0x1200000a 0x4800100C 0x00200000 1>,
|
|
+ <&mdma1 15 0x11 0x1200000a 0x4800100C 0x08000000 1>;
|
|
+ dma-names = "ch0", "ch1", "ch2", "ch3", "ch4", "ch5", "ch6", "ch7";
|
|
};
|
|
|
|
dmamux1: dma-router@48002000 {
|
|
@@ -784,10 +937,61 @@
|
|
interrupts = <1>;
|
|
dmas = <&dmamux1 10 0x400 0x01>;
|
|
dma-names = "rx";
|
|
+ /* temperature sensor */
|
|
+ st,adc-channels = <12>;
|
|
+ st,min-sample-time-nsecs = <10000>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ jadc1: jadc@0 {
|
|
+ compatible = "st,stm32mp1-adc";
|
|
+ st,injected;
|
|
+ #io-channel-cells = <1>;
|
|
+ reg = <0x0>;
|
|
+ interrupt-parent = <&adc>;
|
|
+ interrupts = <3>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ jadc2: jadc@100 {
|
|
+ compatible = "st,stm32mp1-adc";
|
|
+ st,injected;
|
|
+ #io-channel-cells = <1>;
|
|
+ reg = <0x100>;
|
|
+ interrupt-parent = <&adc>;
|
|
+ interrupts = <4>;
|
|
+ /* temperature sensor */
|
|
+ st,adc-channels = <12>;
|
|
+ st,min-sample-time-nsecs = <10000>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ adc_temp: temp {
|
|
+ compatible = "st,stm32mp1-adc-temp";
|
|
+ io-channels = <&adc2 12>;
|
|
+ nvmem-cells = <&ts_cal1>, <&ts_cal2>;
|
|
+ nvmem-cell-names = "ts_cal1", "ts_cal2";
|
|
+ #io-channel-cells = <0>;
|
|
+ #thermal-sensor-cells = <0>;
|
|
status = "disabled";
|
|
};
|
|
};
|
|
|
|
+ sdmmc3: sdmmc@48004000 {
|
|
+ compatible = "arm,pl18x", "arm,primecell";
|
|
+ arm,primecell-periphid = <0x10153180>;
|
|
+ reg = <0x48004000 0x400>;
|
|
+ interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "cmd_irq";
|
|
+ clocks = <&rcc SDMMC3_K>;
|
|
+ clock-names = "apb_pclk";
|
|
+ resets = <&rcc SDMMC3_R>;
|
|
+ cap-sd-highspeed;
|
|
+ cap-mmc-highspeed;
|
|
+ max-frequency = <120000000>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
usbotg_hs: usb-otg@49000000 {
|
|
compatible = "snps,dwc2";
|
|
reg = <0x49000000 0x10000>;
|
|
@@ -800,6 +1004,23 @@
|
|
g-np-tx-fifo-size = <32>;
|
|
g-tx-fifo-size = <128 128 64 64 64 64 32 32>;
|
|
dr_mode = "otg";
|
|
+ power-domains = <&pd_core>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ ipcc: mailbox@4c001000 {
|
|
+ compatible = "st,stm32mp1-ipcc";
|
|
+ #mbox-cells = <1>;
|
|
+ reg = <0x4c001000 0x400>;
|
|
+ st,proc-id = <0>;
|
|
+ interrupts-extended =
|
|
+ <&intc GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&intc GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 61 1>;
|
|
+ interrupt-names = "rx", "tx", "wakeup";
|
|
+ clocks = <&rcc IPCC>;
|
|
+ wakeup-source;
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -808,6 +1029,41 @@
|
|
reg = <0x50000000 0x1000>;
|
|
#clock-cells = <1>;
|
|
#reset-cells = <1>;
|
|
+ interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ st,pwr = <&pwr>;
|
|
+ };
|
|
+
|
|
+ pwr: pwr@50001000 {
|
|
+ compatible = "st,stm32mp1-pwr", "syscon", "simple-mfd";
|
|
+ reg = <0x50001000 0x400>;
|
|
+
|
|
+ interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
|
|
+
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <3>;
|
|
+
|
|
+ pwr-regulators {
|
|
+ compatible = "st,stm32mp1,pwr-reg";
|
|
+ st,tzcr = <&rcc 0x0 0x1>;
|
|
+
|
|
+ reg11: reg11 {
|
|
+ regulator-name = "reg11";
|
|
+ regulator-min-microvolt = <1100000>;
|
|
+ regulator-max-microvolt = <1100000>;
|
|
+ };
|
|
+
|
|
+ reg18: reg18 {
|
|
+ regulator-name = "reg18";
|
|
+ regulator-min-microvolt = <1800000>;
|
|
+ regulator-max-microvolt = <1800000>;
|
|
+ };
|
|
+
|
|
+ usb33: usb33 {
|
|
+ regulator-name = "usb33";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
exti: interrupt-controller@5000d000 {
|
|
@@ -829,6 +1085,7 @@
|
|
reg = <0x50021000 0x400>;
|
|
clocks = <&rcc LPTIM2_K>;
|
|
clock-names = "mux";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -856,6 +1113,7 @@
|
|
reg = <0x50022000 0x400>;
|
|
clocks = <&rcc LPTIM3_K>;
|
|
clock-names = "mux";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -876,6 +1134,7 @@
|
|
reg = <0x50023000 0x400>;
|
|
clocks = <&rcc LPTIM4_K>;
|
|
clock-names = "mux";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -890,6 +1149,7 @@
|
|
reg = <0x50024000 0x400>;
|
|
clocks = <&rcc LPTIM5_K>;
|
|
clock-names = "mux";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -923,7 +1183,7 @@
|
|
interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&rcc HASH1>;
|
|
resets = <&rcc HASH1_R>;
|
|
- dmas = <&mdma1 31 0x10 0x1000A02 0x0 0x0 0x0>;
|
|
+ dmas = <&mdma1 31 0x10 0x1000A02 0x0 0x0 0x0 0x0>;
|
|
dma-names = "in";
|
|
dma-maxburst = <2>;
|
|
status = "disabled";
|
|
@@ -942,11 +1202,30 @@
|
|
reg = <0x58000000 0x1000>;
|
|
interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&rcc MDMA>;
|
|
- #dma-cells = <5>;
|
|
+ #dma-cells = <6>;
|
|
dma-channels = <32>;
|
|
dma-requests = <48>;
|
|
};
|
|
|
|
+ fmc: nand-controller@58002000 {
|
|
+ compatible = "st,stm32mp15-fmc2";
|
|
+ reg = <0x58002000 0x1000>,
|
|
+ <0x80000000 0x1000>,
|
|
+ <0x88010000 0x1000>,
|
|
+ <0x88020000 0x1000>,
|
|
+ <0x81000000 0x1000>,
|
|
+ <0x89010000 0x1000>,
|
|
+ <0x89020000 0x1000>;
|
|
+ interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ dmas = <&mdma1 20 0x10 0x12000A02 0x0 0x0 0>,
|
|
+ <&mdma1 20 0x10 0x12000A08 0x0 0x0 0>,
|
|
+ <&mdma1 21 0x10 0x12000A0A 0x0 0x0 0>;
|
|
+ dma-names = "tx", "rx", "ecc";
|
|
+ clocks = <&rcc FMC_K>;
|
|
+ resets = <&rcc FMC_R>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
qspi: qspi@58003000 {
|
|
compatible = "st,stm32f469-qspi";
|
|
reg = <0x58003000 0x1000>, <0x70000000 0x10000000>;
|
|
@@ -957,6 +1236,36 @@
|
|
status = "disabled";
|
|
};
|
|
|
|
+ sdmmc1: sdmmc@58005000 {
|
|
+ compatible = "arm,pl18x", "arm,primecell";
|
|
+ arm,primecell-periphid = <0x10153180>;
|
|
+ reg = <0x58005000 0x1000>;
|
|
+ interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "cmd_irq";
|
|
+ clocks = <&rcc SDMMC1_K>;
|
|
+ clock-names = "apb_pclk";
|
|
+ resets = <&rcc SDMMC1_R>;
|
|
+ cap-sd-highspeed;
|
|
+ cap-mmc-highspeed;
|
|
+ max-frequency = <120000000>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ sdmmc2: sdmmc@58007000 {
|
|
+ compatible = "arm,pl18x", "arm,primecell";
|
|
+ arm,primecell-periphid = <0x10153180>;
|
|
+ reg = <0x58007000 0x1000>;
|
|
+ interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "cmd_irq";
|
|
+ clocks = <&rcc SDMMC2_K>;
|
|
+ clock-names = "apb_pclk";
|
|
+ resets = <&rcc SDMMC2_R>;
|
|
+ cap-sd-highspeed;
|
|
+ cap-mmc-highspeed;
|
|
+ max-frequency = <120000000>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
crc1: crc@58009000 {
|
|
compatible = "st,stm32f7-crc";
|
|
reg = <0x58009000 0x400>;
|
|
@@ -974,8 +1283,12 @@
|
|
compatible = "st,stm32mp1-dwmac", "snps,dwmac-4.20a";
|
|
reg = <0x5800a000 0x2000>;
|
|
reg-names = "stmmaceth";
|
|
- interrupts-extended = <&intc GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
|
|
- interrupt-names = "macirq";
|
|
+ interrupts-extended = <&intc GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&intc GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 70 1>;
|
|
+ interrupt-names = "macirq",
|
|
+ "eth_wake_irq",
|
|
+ "stm32_pwr_wakeup";
|
|
clock-names = "stmmaceth",
|
|
"mac-clk-tx",
|
|
"mac-clk-rx",
|
|
@@ -991,6 +1304,7 @@
|
|
snps,pbl = <2>;
|
|
snps,axi-config = <&stmmac_axi_config_0>;
|
|
snps,tso;
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -1065,8 +1379,12 @@
|
|
usart1: serial@5c000000 {
|
|
compatible = "st,stm32h7-uart";
|
|
reg = <0x5c000000 0x400>;
|
|
- interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 26 1>;
|
|
clocks = <&rcc USART1_K>;
|
|
+ wakeup-source;
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -1078,22 +1396,29 @@
|
|
interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&rcc SPI6_K>;
|
|
resets = <&rcc SPI6_R>;
|
|
- dmas = <&mdma1 34 0x0 0x40008 0x0 0x0>,
|
|
- <&mdma1 35 0x0 0x40002 0x0 0x0>;
|
|
+ dmas = <&mdma1 34 0x0 0x40008 0x0 0x0 0x0>,
|
|
+ <&mdma1 35 0x0 0x40002 0x0 0x0 0x0>;
|
|
dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
i2c4: i2c@5c002000 {
|
|
compatible = "st,stm32f7-i2c";
|
|
reg = <0x5c002000 0x400>;
|
|
- interrupt-names = "event", "error";
|
|
- interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
|
|
- <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "error", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&intc GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 24 1>;
|
|
clocks = <&rcc I2C4_K>;
|
|
resets = <&rcc I2C4_R>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
+ dmas = <&mdma1 36 0x0 0x40008 0x0 0x0 0>,
|
|
+ <&mdma1 37 0x0 0x40002 0x0 0x0 0>;
|
|
+ dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
+ st,syscfg-fmp = <&syscfg 0x4 0x8>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -1102,20 +1427,76 @@
|
|
reg = <0x5c004000 0x400>;
|
|
clocks = <&rcc RTCAPB>, <&rcc RTC>;
|
|
clock-names = "pclk", "rtc_ck";
|
|
- interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupts-extended = <&intc GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 19 1>;
|
|
status = "disabled";
|
|
};
|
|
|
|
+ bsec: nvmem@5c005000 {
|
|
+ compatible = "st,stm32mp15-bsec";
|
|
+ reg = <0x5c005000 0x400>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ts_cal1: calib@5c {
|
|
+ reg = <0x5c 0x2>;
|
|
+ };
|
|
+ ts_cal2: calib@5e {
|
|
+ reg = <0x5e 0x2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
i2c6: i2c@5c009000 {
|
|
compatible = "st,stm32f7-i2c";
|
|
reg = <0x5c009000 0x400>;
|
|
- interrupt-names = "event", "error";
|
|
- interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
|
|
- <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "event", "error", "wakeup";
|
|
+ interrupts-extended = <&intc GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <&exti 54 1>;
|
|
clocks = <&rcc I2C6_K>;
|
|
resets = <&rcc I2C6_R>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
+ dmas = <&mdma1 38 0x0 0x40008 0x0 0x0 0>,
|
|
+ <&mdma1 39 0x0 0x40002 0x0 0x0 0>;
|
|
+ dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
+ st,syscfg-fmp = <&syscfg 0x4 0x20>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ tamp: tamp@5c00a000 {
|
|
+ compatible = "simple-bus", "syscon", "simple-mfd";
|
|
+ reg = <0x5c00a000 0x400>;
|
|
+
|
|
+ reboot-mode {
|
|
+ compatible = "syscon-reboot-mode";
|
|
+ offset = <0x150>; /* reg20 */
|
|
+ mask = <0xff>;
|
|
+ mode-normal = <0>;
|
|
+ mode-fastboot = <0x1>;
|
|
+ mode-recovery = <0x2>;
|
|
+ mode-stm32cubeprogrammer = <0x3>;
|
|
+ mode-ums_mmc0 = <0x10>;
|
|
+ mode-ums_mmc1 = <0x11>;
|
|
+ mode-ums_mmc2 = <0x12>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ m4_rproc: m4@0 {
|
|
+ compatible = "st,stm32mp1-rproc";
|
|
+ reg = <0x38000000 0x10000>,
|
|
+ <0x10000000 0x40000>;
|
|
+ reg-names = "retram", "mcusram";
|
|
+ resets = <&rcc MCU_R>;
|
|
+ reset-names = "mcu_rst";
|
|
+ st,syscfg-pdds = <&pwr 0x014 0x1>;
|
|
+ st,syscfg-holdboot = <&rcc 0x10C 0x1>;
|
|
+ st,syscfg-tz = <&rcc 0x000 0x1>;
|
|
+ status = "disabled";
|
|
+
|
|
+ m4_system_resources {
|
|
+ compatible = "rproc-srm-core";
|
|
status = "disabled";
|
|
};
|
|
};
|
|
diff --git a/arch/arm/boot/dts/stm32mp157caa-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157caa-pinctrl.dtsi
|
|
new file mode 100644
|
|
index 0000000..9b9cd08
|
|
--- /dev/null
|
|
+++ b/arch/arm/boot/dts/stm32mp157caa-pinctrl.dtsi
|
|
@@ -0,0 +1,90 @@
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
|
|
+/*
|
|
+ * Copyright (C) STMicroelectronics 2018 - All Rights Reserved
|
|
+ * Author: Alexandre Torgue <alexandre.torgue@st.com>
|
|
+ */
|
|
+
|
|
+#include "stm32mp157-pinctrl.dtsi"
|
|
+/ {
|
|
+ soc {
|
|
+ pinctrl: pin-controller@50002000 {
|
|
+ st,package = <STM32MP157CAA>;
|
|
+
|
|
+ gpioa: gpio@50002000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 0 16>;
|
|
+ };
|
|
+
|
|
+ gpiob: gpio@50003000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 16 16>;
|
|
+ };
|
|
+
|
|
+ gpioc: gpio@50004000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 32 16>;
|
|
+ };
|
|
+
|
|
+ gpiod: gpio@50005000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 48 16>;
|
|
+ };
|
|
+
|
|
+ gpioe: gpio@50006000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 64 16>;
|
|
+ };
|
|
+
|
|
+ gpiof: gpio@50007000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 80 16>;
|
|
+ };
|
|
+
|
|
+ gpiog: gpio@50008000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 96 16>;
|
|
+ };
|
|
+
|
|
+ gpioh: gpio@50009000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 112 16>;
|
|
+ };
|
|
+
|
|
+ gpioi: gpio@5000a000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 128 16>;
|
|
+ };
|
|
+
|
|
+ gpioj: gpio@5000b000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 144 16>;
|
|
+ };
|
|
+
|
|
+ gpiok: gpio@5000c000 {
|
|
+ status = "okay";
|
|
+ ngpios = <8>;
|
|
+ gpio-ranges = <&pinctrl 0 160 8>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ pinctrl_z: pin-controller-z@54004000 {
|
|
+ st,package = <STM32MP157CAA>;
|
|
+
|
|
+ gpioz: gpio@54004000 {
|
|
+ status = "okay";
|
|
+ ngpios = <8>;
|
|
+ gpio-ranges = <&pinctrl_z 0 400 8>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
diff --git a/arch/arm/boot/dts/stm32mp157cab-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157cab-pinctrl.dtsi
|
|
new file mode 100644
|
|
index 0000000..c570cf9
|
|
--- /dev/null
|
|
+++ b/arch/arm/boot/dts/stm32mp157cab-pinctrl.dtsi
|
|
@@ -0,0 +1,62 @@
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
|
|
+/*
|
|
+ * Copyright (C) STMicroelectronics 2018 - All Rights Reserved
|
|
+ * Author: Alexandre Torgue <alexandre.torgue@st.com>
|
|
+ */
|
|
+
|
|
+#include "stm32mp157-pinctrl.dtsi"
|
|
+/ {
|
|
+ soc {
|
|
+ pinctrl: pin-controller@50002000 {
|
|
+ st,package = <STM32MP157CAB>;
|
|
+
|
|
+ gpioa: gpio@50002000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 0 16>;
|
|
+ };
|
|
+
|
|
+ gpiob: gpio@50003000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 16 16>;
|
|
+ };
|
|
+
|
|
+ gpioc: gpio@50004000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 32 16>;
|
|
+ };
|
|
+
|
|
+ gpiod: gpio@50005000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 48 16>;
|
|
+ };
|
|
+
|
|
+ gpioe: gpio@50006000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 64 16>;
|
|
+ };
|
|
+
|
|
+ gpiof: gpio@50007000 {
|
|
+ status = "okay";
|
|
+ ngpios = <6>;
|
|
+ gpio-ranges = <&pinctrl 6 86 6>;
|
|
+ };
|
|
+
|
|
+ gpiog: gpio@50008000 {
|
|
+ status = "okay";
|
|
+ ngpios = <10>;
|
|
+ gpio-ranges = <&pinctrl 6 102 10>;
|
|
+ };
|
|
+
|
|
+ gpioh: gpio@50009000 {
|
|
+ status = "okay";
|
|
+ ngpios = <2>;
|
|
+ gpio-ranges = <&pinctrl 0 112 2>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
diff --git a/arch/arm/boot/dts/stm32mp157cac-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157cac-pinctrl.dtsi
|
|
new file mode 100644
|
|
index 0000000..777f991
|
|
--- /dev/null
|
|
+++ b/arch/arm/boot/dts/stm32mp157cac-pinctrl.dtsi
|
|
@@ -0,0 +1,78 @@
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
|
|
+/*
|
|
+ * Copyright (C) STMicroelectronics 2018 - All Rights Reserved
|
|
+ * Author: Alexandre Torgue <alexandre.torgue@st.com>
|
|
+ */
|
|
+
|
|
+#include "stm32mp157-pinctrl.dtsi"
|
|
+/ {
|
|
+ soc {
|
|
+ pinctrl: pin-controller@50002000 {
|
|
+ st,package = <STM32MP157CAC>;
|
|
+
|
|
+ gpioa: gpio@50002000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 0 16>;
|
|
+ };
|
|
+
|
|
+ gpiob: gpio@50003000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 16 16>;
|
|
+ };
|
|
+
|
|
+ gpioc: gpio@50004000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 32 16>;
|
|
+ };
|
|
+
|
|
+ gpiod: gpio@50005000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 48 16>;
|
|
+ };
|
|
+
|
|
+ gpioe: gpio@50006000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 64 16>;
|
|
+ };
|
|
+
|
|
+ gpiof: gpio@50007000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 80 16>;
|
|
+ };
|
|
+
|
|
+ gpiog: gpio@50008000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 96 16>;
|
|
+ };
|
|
+
|
|
+ gpioh: gpio@50009000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 112 16>;
|
|
+ };
|
|
+
|
|
+ gpioi: gpio@5000a000 {
|
|
+ status = "okay";
|
|
+ ngpios = <12>;
|
|
+ gpio-ranges = <&pinctrl 0 128 12>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ pinctrl_z: pin-controller-z@54004000 {
|
|
+ st,package = <STM32MP157CAC>;
|
|
+
|
|
+ gpioz: gpio@54004000 {
|
|
+ status = "okay";
|
|
+ ngpios = <8>;
|
|
+ gpio-ranges = <&pinctrl_z 0 400 8>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
diff --git a/arch/arm/boot/dts/stm32mp157cad-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157cad-pinctrl.dtsi
|
|
new file mode 100644
|
|
index 0000000..c4c303a
|
|
--- /dev/null
|
|
+++ b/arch/arm/boot/dts/stm32mp157cad-pinctrl.dtsi
|
|
@@ -0,0 +1,62 @@
|
|
+// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
|
|
+/*
|
|
+ * Copyright (C) STMicroelectronics 2018 - All Rights Reserved
|
|
+ * Author: Alexandre Torgue <alexandre.torgue@st.com>
|
|
+ */
|
|
+
|
|
+#include "stm32mp157-pinctrl.dtsi"
|
|
+/ {
|
|
+ soc {
|
|
+ pinctrl: pin-controller@50002000 {
|
|
+ st,package = <STM32MP157CAD>;
|
|
+
|
|
+ gpioa: gpio@50002000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 0 16>;
|
|
+ };
|
|
+
|
|
+ gpiob: gpio@50003000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 16 16>;
|
|
+ };
|
|
+
|
|
+ gpioc: gpio@50004000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 32 16>;
|
|
+ };
|
|
+
|
|
+ gpiod: gpio@50005000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 48 16>;
|
|
+ };
|
|
+
|
|
+ gpioe: gpio@50006000 {
|
|
+ status = "okay";
|
|
+ ngpios = <16>;
|
|
+ gpio-ranges = <&pinctrl 0 64 16>;
|
|
+ };
|
|
+
|
|
+ gpiof: gpio@50007000 {
|
|
+ status = "okay";
|
|
+ ngpios = <6>;
|
|
+ gpio-ranges = <&pinctrl 6 86 6>;
|
|
+ };
|
|
+
|
|
+ gpiog: gpio@50008000 {
|
|
+ status = "okay";
|
|
+ ngpios = <10>;
|
|
+ gpio-ranges = <&pinctrl 6 102 10>;
|
|
+ };
|
|
+
|
|
+ gpioh: gpio@50009000 {
|
|
+ status = "okay";
|
|
+ ngpios = <2>;
|
|
+ gpio-ranges = <&pinctrl 0 112 2>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
--
|
|
2.7.4
|
|
|