8321 lines
215 KiB
Diff
8321 lines
215 KiB
Diff
From b5942158e9598d71df00e2071259d7e408bf081f Mon Sep 17 00:00:00 2001
|
|
From: christophe montaud <christophe.montaud@st.com>
|
|
Date: Fri, 4 Jan 2019 15:07:12 +0100
|
|
Subject: [PATCH 3/5] ARM v2018.11 stm32mp r1 DEVICETREE
|
|
|
|
---
|
|
arch/arm/dts/Makefile | 2 +
|
|
arch/arm/dts/stm32h743i-eval.dts | 2 +-
|
|
arch/arm/dts/stm32mp15-ddr.dtsi | 2 +-
|
|
arch/arm/dts/stm32mp15-ddr3-1x4Gb-1066-binF.dtsi | 120 ++
|
|
arch/arm/dts/stm32mp15-ddr3-1x4Gb-1066-binG.dtsi | 121 ++
|
|
arch/arm/dts/stm32mp15-ddr3-2x4Gb-1066-binF.dtsi | 120 ++
|
|
arch/arm/dts/stm32mp15-ddr3-2x4Gb-1066-binG.dtsi | 21 +-
|
|
arch/arm/dts/stm32mp157-pinctrl.dtsi | 1474 ++++++++++++++++++--
|
|
arch/arm/dts/stm32mp157-u-boot.dtsi | 73 +-
|
|
arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 190 +++
|
|
arch/arm/dts/stm32mp157a-dk1.dts | 700 ++++++++++
|
|
arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi | 6 +
|
|
arch/arm/dts/stm32mp157c-dk2.dts | 144 ++
|
|
arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 109 +-
|
|
arch/arm/dts/stm32mp157c-ed1.dts | 396 +++---
|
|
arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi | 19 +-
|
|
arch/arm/dts/stm32mp157c-ev1.dts | 657 ++++++++-
|
|
arch/arm/dts/stm32mp157c.dtsi | 1125 +++++++++++++--
|
|
arch/arm/dts/stm32mp157caa-pinctrl.dtsi | 90 ++
|
|
arch/arm/dts/stm32mp157cab-pinctrl.dtsi | 62 +
|
|
arch/arm/dts/stm32mp157cac-pinctrl.dtsi | 78 ++
|
|
arch/arm/dts/stm32mp157cad-pinctrl.dtsi | 62 +
|
|
arch/sandbox/dts/test.dts | 8 +
|
|
doc/device-tree-bindings/arm/stm32.txt | 17 +
|
|
doc/device-tree-bindings/clock/st,stm32-rcc.txt | 37 +
|
|
doc/device-tree-bindings/clock/st,stm32mp1-rcc.txt | 60 +
|
|
doc/device-tree-bindings/i2c/i2c-stm32.txt | 98 +-
|
|
doc/device-tree-bindings/mfd/stpmic1.txt | 138 ++
|
|
doc/device-tree-bindings/mtd/stm32-fmc2-nand.txt | 59 +
|
|
doc/device-tree-bindings/mtd/stm32-quadspi.txt | 43 +
|
|
.../net/snps,dwc-qos-ethernet.txt | 3 +
|
|
doc/device-tree-bindings/net/stm32-dwmac.txt | 62 +
|
|
doc/device-tree-bindings/phy/phy-stm32-usbphyc.txt | 65 +-
|
|
.../pinctrl/st,stm32-pinctrl.txt | 101 +-
|
|
doc/device-tree-bindings/power/st,stm32mp1-pwr.txt | 52 +
|
|
doc/device-tree-bindings/ram/st,stm32mp1-ddr.txt | 4 +-
|
|
.../regulator/st,stm32mp1-pwr-reg.txt | 31 +
|
|
doc/device-tree-bindings/serial/st,stm32-usart.txt | 88 ++
|
|
.../watchdog/st,stm32-iwdg.txt | 26 +
|
|
include/dt-bindings/clock/stm32mp1-clks.h | 3 -
|
|
include/dt-bindings/mfd/st,stpmic1.h | 46 +
|
|
include/dt-bindings/mfd/st,stpmu1.h | 60 -
|
|
include/dt-bindings/pinctrl/stm32-pinfunc.h | 6 +
|
|
include/dt-bindings/rtc/rtc-stm32.h | 13 +
|
|
include/dt-bindings/soc/stm32-hdp.h | 108 ++
|
|
45 files changed, 6122 insertions(+), 579 deletions(-)
|
|
create mode 100644 arch/arm/dts/stm32mp15-ddr3-1x4Gb-1066-binF.dtsi
|
|
create mode 100644 arch/arm/dts/stm32mp15-ddr3-1x4Gb-1066-binG.dtsi
|
|
create mode 100644 arch/arm/dts/stm32mp15-ddr3-2x4Gb-1066-binF.dtsi
|
|
create mode 100644 arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi
|
|
create mode 100644 arch/arm/dts/stm32mp157a-dk1.dts
|
|
create mode 100644 arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi
|
|
create mode 100644 arch/arm/dts/stm32mp157c-dk2.dts
|
|
create mode 100644 arch/arm/dts/stm32mp157caa-pinctrl.dtsi
|
|
create mode 100644 arch/arm/dts/stm32mp157cab-pinctrl.dtsi
|
|
create mode 100644 arch/arm/dts/stm32mp157cac-pinctrl.dtsi
|
|
create mode 100644 arch/arm/dts/stm32mp157cad-pinctrl.dtsi
|
|
create mode 100644 doc/device-tree-bindings/arm/stm32.txt
|
|
create mode 100644 doc/device-tree-bindings/clock/st,stm32mp1-rcc.txt
|
|
create mode 100644 doc/device-tree-bindings/mfd/stpmic1.txt
|
|
create mode 100644 doc/device-tree-bindings/mtd/stm32-fmc2-nand.txt
|
|
create mode 100644 doc/device-tree-bindings/mtd/stm32-quadspi.txt
|
|
create mode 100644 doc/device-tree-bindings/net/stm32-dwmac.txt
|
|
create mode 100644 doc/device-tree-bindings/power/st,stm32mp1-pwr.txt
|
|
create mode 100644 doc/device-tree-bindings/regulator/st,stm32mp1-pwr-reg.txt
|
|
create mode 100644 doc/device-tree-bindings/serial/st,stm32-usart.txt
|
|
create mode 100644 doc/device-tree-bindings/watchdog/st,stm32-iwdg.txt
|
|
create mode 100644 include/dt-bindings/mfd/st,stpmic1.h
|
|
delete mode 100644 include/dt-bindings/mfd/st,stpmu1.h
|
|
create mode 100644 include/dt-bindings/rtc/rtc-stm32.h
|
|
create mode 100644 include/dt-bindings/soc/stm32-hdp.h
|
|
|
|
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
|
|
index d36447d..a346021 100644
|
|
--- a/arch/arm/dts/Makefile
|
|
+++ b/arch/arm/dts/Makefile
|
|
@@ -553,6 +553,8 @@ dtb-$(CONFIG_ARCH_ASPEED) += ast2500-evb.dtb
|
|
dtb-$(CONFIG_ARCH_STI) += stih410-b2260.dtb
|
|
|
|
dtb-$(CONFIG_TARGET_STM32MP1) += \
|
|
+ stm32mp157a-dk1.dtb \
|
|
+ stm32mp157c-dk2.dtb \
|
|
stm32mp157c-ed1.dtb \
|
|
stm32mp157c-ev1.dtb
|
|
|
|
diff --git a/arch/arm/dts/stm32h743i-eval.dts b/arch/arm/dts/stm32h743i-eval.dts
|
|
index 28c876b..368432f 100644
|
|
--- a/arch/arm/dts/stm32h743i-eval.dts
|
|
+++ b/arch/arm/dts/stm32h743i-eval.dts
|
|
@@ -105,5 +105,5 @@
|
|
<&pinctrl_sdmmc1_level_shifter>;
|
|
pinctrl-names = "default";
|
|
bus-width = <4>;
|
|
- st,dirpol;
|
|
+ st,sig-dir;
|
|
};
|
|
diff --git a/arch/arm/dts/stm32mp15-ddr.dtsi b/arch/arm/dts/stm32mp15-ddr.dtsi
|
|
index 4172c02..0164e34 100644
|
|
--- a/arch/arm/dts/stm32mp15-ddr.dtsi
|
|
+++ b/arch/arm/dts/stm32mp15-ddr.dtsi
|
|
@@ -5,7 +5,7 @@
|
|
|
|
/ {
|
|
soc {
|
|
- ddr: ddr@0x5A003000{
|
|
+ ddr: ddr@5A003000{
|
|
u-boot,dm-pre-reloc;
|
|
|
|
compatible = "st,stm32mp1-ddr";
|
|
diff --git a/arch/arm/dts/stm32mp15-ddr3-1x4Gb-1066-binF.dtsi b/arch/arm/dts/stm32mp15-ddr3-1x4Gb-1066-binF.dtsi
|
|
new file mode 100644
|
|
index 0000000..da83310
|
|
--- /dev/null
|
|
+++ b/arch/arm/dts/stm32mp15-ddr3-1x4Gb-1066-binF.dtsi
|
|
@@ -0,0 +1,120 @@
|
|
+// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
|
|
+/*
|
|
+ * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
|
|
+ */
|
|
+/* STM32MP157C DK1/DK2 BOARD configuration
|
|
+ * 1x DDR3L 4Gb, 16-bit, 533MHz.
|
|
+ * Reference used NT5CC256M16DP-DI from NANYA
|
|
+ *
|
|
+ * DDR type / Platform DDR3/3L
|
|
+ * freq 533MHz
|
|
+ * width 16
|
|
+ * datasheet 1 = MT41J256M16-187 / DDR3-1066 bin F
|
|
+ * DDR density 4
|
|
+ * timing mode optimized
|
|
+ * Scheduling/QoS options : type = 2
|
|
+ * address mapping : RBC
|
|
+ * Tc > + 85C : N
|
|
+ */
|
|
+#define DDR_MEM_NAME "DDR3-1066/777 bin F 1x4Gb 533MHz v1.41"
|
|
+#define DDR_MEM_SPEED 533000
|
|
+#define DDR_MEM_SIZE 0x20000000
|
|
+
|
|
+#define DDR_MSTR 0x00041401
|
|
+#define DDR_MRCTRL0 0x00000010
|
|
+#define DDR_MRCTRL1 0x00000000
|
|
+#define DDR_DERATEEN 0x00000000
|
|
+#define DDR_DERATEINT 0x00800000
|
|
+#define DDR_PWRCTL 0x00000000
|
|
+#define DDR_PWRTMG 0x00400010
|
|
+#define DDR_HWLPCTL 0x00000000
|
|
+#define DDR_RFSHCTL0 0x00210000
|
|
+#define DDR_RFSHCTL3 0x00000000
|
|
+#define DDR_RFSHTMG 0x0081008B
|
|
+#define DDR_CRCPARCTL0 0x00000000
|
|
+#define DDR_DRAMTMG0 0x121B2414
|
|
+#define DDR_DRAMTMG1 0x000A041B
|
|
+#define DDR_DRAMTMG2 0x0607080F
|
|
+#define DDR_DRAMTMG3 0x0050400C
|
|
+#define DDR_DRAMTMG4 0x07040607
|
|
+#define DDR_DRAMTMG5 0x06060403
|
|
+#define DDR_DRAMTMG6 0x02020002
|
|
+#define DDR_DRAMTMG7 0x00000202
|
|
+#define DDR_DRAMTMG8 0x00001005
|
|
+#define DDR_DRAMTMG14 0x000000A0
|
|
+#define DDR_ZQCTL0 0xC2000040
|
|
+#define DDR_DFITMG0 0x02050105
|
|
+#define DDR_DFITMG1 0x00000202
|
|
+#define DDR_DFILPCFG0 0x07000000
|
|
+#define DDR_DFIUPD0 0xC0400003
|
|
+#define DDR_DFIUPD1 0x00000000
|
|
+#define DDR_DFIUPD2 0x00000000
|
|
+#define DDR_DFIPHYMSTR 0x00000000
|
|
+#define DDR_ADDRMAP1 0x00070707
|
|
+#define DDR_ADDRMAP2 0x00000000
|
|
+#define DDR_ADDRMAP3 0x1F000000
|
|
+#define DDR_ADDRMAP4 0x00001F1F
|
|
+#define DDR_ADDRMAP5 0x06060606
|
|
+#define DDR_ADDRMAP6 0x0F060606
|
|
+#define DDR_ADDRMAP9 0x00000000
|
|
+#define DDR_ADDRMAP10 0x00000000
|
|
+#define DDR_ADDRMAP11 0x00000000
|
|
+#define DDR_ODTCFG 0x06000600
|
|
+#define DDR_ODTMAP 0x00000001
|
|
+#define DDR_SCHED 0x00000C01
|
|
+#define DDR_SCHED1 0x00000000
|
|
+#define DDR_PERFHPR1 0x01000001
|
|
+#define DDR_PERFLPR1 0x08000200
|
|
+#define DDR_PERFWR1 0x08000400
|
|
+#define DDR_DBG0 0x00000000
|
|
+#define DDR_DBG1 0x00000000
|
|
+#define DDR_DBGCMD 0x00000000
|
|
+#define DDR_POISONCFG 0x00000000
|
|
+#define DDR_PCCFG 0x00000010
|
|
+#define DDR_PCFGR_0 0x00010000
|
|
+#define DDR_PCFGW_0 0x00000000
|
|
+#define DDR_PCFGQOS0_0 0x02100C03
|
|
+#define DDR_PCFGQOS1_0 0x00800100
|
|
+#define DDR_PCFGWQOS0_0 0x01100C03
|
|
+#define DDR_PCFGWQOS1_0 0x01000200
|
|
+#define DDR_PCFGR_1 0x00010000
|
|
+#define DDR_PCFGW_1 0x00000000
|
|
+#define DDR_PCFGQOS0_1 0x02100C03
|
|
+#define DDR_PCFGQOS1_1 0x00800040
|
|
+#define DDR_PCFGWQOS0_1 0x01100C03
|
|
+#define DDR_PCFGWQOS1_1 0x01000200
|
|
+#define DDR_PGCR 0x01442E02
|
|
+#define DDR_PTR0 0x0022AA5B
|
|
+#define DDR_PTR1 0x04841104
|
|
+#define DDR_PTR2 0x042DA068
|
|
+#define DDR_ACIOCR 0x10400812
|
|
+#define DDR_DXCCR 0x00000C40
|
|
+#define DDR_DSGCR 0xF200001F
|
|
+#define DDR_DCR 0x0000000B
|
|
+#define DDR_DTPR0 0x36D477D0
|
|
+#define DDR_DTPR1 0x098B00D8
|
|
+#define DDR_DTPR2 0x10023600
|
|
+#define DDR_MR0 0x00000830
|
|
+#define DDR_MR1 0x00000000
|
|
+#define DDR_MR2 0x00000208
|
|
+#define DDR_MR3 0x00000000
|
|
+#define DDR_ODTCR 0x00010000
|
|
+#define DDR_ZQ0CR1 0x00000038
|
|
+#define DDR_DX0GCR 0x0000CE81
|
|
+#define DDR_DX0DLLCR 0x40000000
|
|
+#define DDR_DX0DQTR 0xFFFFFFFF
|
|
+#define DDR_DX0DQSTR 0x3DB02000
|
|
+#define DDR_DX1GCR 0x0000CE81
|
|
+#define DDR_DX1DLLCR 0x40000000
|
|
+#define DDR_DX1DQTR 0xFFFFFFFF
|
|
+#define DDR_DX1DQSTR 0x3DB02000
|
|
+#define DDR_DX2GCR 0x0000CE81
|
|
+#define DDR_DX2DLLCR 0x40000000
|
|
+#define DDR_DX2DQTR 0xFFFFFFFF
|
|
+#define DDR_DX2DQSTR 0x3DB02000
|
|
+#define DDR_DX3GCR 0x0000CE81
|
|
+#define DDR_DX3DLLCR 0x40000000
|
|
+#define DDR_DX3DQTR 0xFFFFFFFF
|
|
+#define DDR_DX3DQSTR 0x3DB02000
|
|
+
|
|
+#include "stm32mp15-ddr.dtsi"
|
|
diff --git a/arch/arm/dts/stm32mp15-ddr3-1x4Gb-1066-binG.dtsi b/arch/arm/dts/stm32mp15-ddr3-1x4Gb-1066-binG.dtsi
|
|
new file mode 100644
|
|
index 0000000..16b8cf6
|
|
--- /dev/null
|
|
+++ b/arch/arm/dts/stm32mp15-ddr3-1x4Gb-1066-binG.dtsi
|
|
@@ -0,0 +1,121 @@
|
|
+// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
|
|
+/*
|
|
+ * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
|
|
+ */
|
|
+/* STM32MP157C DK1/DK2 BOARD configuration
|
|
+ * 1x DDR3L 4Gb, 16-bit, 533MHz.
|
|
+ * Reference used NT5CC256M16DP-DI from NANYA
|
|
+ *
|
|
+ * DDR type / Platform DDR3/3L
|
|
+ * freq 533MHz
|
|
+ * width 16
|
|
+ * datasheet 0 = MT41J256M16-187 / DDR3-1066 bin G
|
|
+ * DDR density 4
|
|
+ * timing mode optimized
|
|
+ * Scheduling/QoS options : type = 2
|
|
+ * address mapping : RBC
|
|
+ * Tc > + 85C : N
|
|
+ */
|
|
+
|
|
+#define DDR_MEM_NAME "DDR3-1066/888 bin G 1x4Gb 533MHz v1.41"
|
|
+#define DDR_MEM_SPEED 533000
|
|
+#define DDR_MEM_SIZE 0x20000000
|
|
+
|
|
+#define DDR_MSTR 0x00041401
|
|
+#define DDR_MRCTRL0 0x00000010
|
|
+#define DDR_MRCTRL1 0x00000000
|
|
+#define DDR_DERATEEN 0x00000000
|
|
+#define DDR_DERATEINT 0x00800000
|
|
+#define DDR_PWRCTL 0x00000000
|
|
+#define DDR_PWRTMG 0x00400010
|
|
+#define DDR_HWLPCTL 0x00000000
|
|
+#define DDR_RFSHCTL0 0x00210000
|
|
+#define DDR_RFSHCTL3 0x00000000
|
|
+#define DDR_RFSHTMG 0x0081008B
|
|
+#define DDR_CRCPARCTL0 0x00000000
|
|
+#define DDR_DRAMTMG0 0x121B2414
|
|
+#define DDR_DRAMTMG1 0x000A041C
|
|
+#define DDR_DRAMTMG2 0x0608090F
|
|
+#define DDR_DRAMTMG3 0x0050400C
|
|
+#define DDR_DRAMTMG4 0x08040608
|
|
+#define DDR_DRAMTMG5 0x06060403
|
|
+#define DDR_DRAMTMG6 0x02020002
|
|
+#define DDR_DRAMTMG7 0x00000202
|
|
+#define DDR_DRAMTMG8 0x00001005
|
|
+#define DDR_DRAMTMG14 0x000000A0
|
|
+#define DDR_ZQCTL0 0xC2000040
|
|
+#define DDR_DFITMG0 0x02060105
|
|
+#define DDR_DFITMG1 0x00000202
|
|
+#define DDR_DFILPCFG0 0x07000000
|
|
+#define DDR_DFIUPD0 0xC0400003
|
|
+#define DDR_DFIUPD1 0x00000000
|
|
+#define DDR_DFIUPD2 0x00000000
|
|
+#define DDR_DFIPHYMSTR 0x00000000
|
|
+#define DDR_ADDRMAP1 0x00070707
|
|
+#define DDR_ADDRMAP2 0x00000000
|
|
+#define DDR_ADDRMAP3 0x1F000000
|
|
+#define DDR_ADDRMAP4 0x00001F1F
|
|
+#define DDR_ADDRMAP5 0x06060606
|
|
+#define DDR_ADDRMAP6 0x0F060606
|
|
+#define DDR_ADDRMAP9 0x00000000
|
|
+#define DDR_ADDRMAP10 0x00000000
|
|
+#define DDR_ADDRMAP11 0x00000000
|
|
+#define DDR_ODTCFG 0x06000600
|
|
+#define DDR_ODTMAP 0x00000001
|
|
+#define DDR_SCHED 0x00000C01
|
|
+#define DDR_SCHED1 0x00000000
|
|
+#define DDR_PERFHPR1 0x01000001
|
|
+#define DDR_PERFLPR1 0x08000200
|
|
+#define DDR_PERFWR1 0x08000400
|
|
+#define DDR_DBG0 0x00000000
|
|
+#define DDR_DBG1 0x00000000
|
|
+#define DDR_DBGCMD 0x00000000
|
|
+#define DDR_POISONCFG 0x00000000
|
|
+#define DDR_PCCFG 0x00000010
|
|
+#define DDR_PCFGR_0 0x00010000
|
|
+#define DDR_PCFGW_0 0x00000000
|
|
+#define DDR_PCFGQOS0_0 0x02100C03
|
|
+#define DDR_PCFGQOS1_0 0x00800100
|
|
+#define DDR_PCFGWQOS0_0 0x01100C03
|
|
+#define DDR_PCFGWQOS1_0 0x01000200
|
|
+#define DDR_PCFGR_1 0x00010000
|
|
+#define DDR_PCFGW_1 0x00000000
|
|
+#define DDR_PCFGQOS0_1 0x02100C03
|
|
+#define DDR_PCFGQOS1_1 0x00800040
|
|
+#define DDR_PCFGWQOS0_1 0x01100C03
|
|
+#define DDR_PCFGWQOS1_1 0x01000200
|
|
+#define DDR_PGCR 0x01442E02
|
|
+#define DDR_PTR0 0x0022AA5B
|
|
+#define DDR_PTR1 0x04841104
|
|
+#define DDR_PTR2 0x042DA068
|
|
+#define DDR_ACIOCR 0x10400812
|
|
+#define DDR_DXCCR 0x00000C40
|
|
+#define DDR_DSGCR 0xF200001F
|
|
+#define DDR_DCR 0x0000000B
|
|
+#define DDR_DTPR0 0x38D488D0
|
|
+#define DDR_DTPR1 0x098B00D8
|
|
+#define DDR_DTPR2 0x10023600
|
|
+#define DDR_MR0 0x00000840
|
|
+#define DDR_MR1 0x00000000
|
|
+#define DDR_MR2 0x00000208
|
|
+#define DDR_MR3 0x00000000
|
|
+#define DDR_ODTCR 0x00010000
|
|
+#define DDR_ZQ0CR1 0x00000038
|
|
+#define DDR_DX0GCR 0x0000CE81
|
|
+#define DDR_DX0DLLCR 0x40000000
|
|
+#define DDR_DX0DQTR 0xFFFFFFFF
|
|
+#define DDR_DX0DQSTR 0x3DB02000
|
|
+#define DDR_DX1GCR 0x0000CE81
|
|
+#define DDR_DX1DLLCR 0x40000000
|
|
+#define DDR_DX1DQTR 0xFFFFFFFF
|
|
+#define DDR_DX1DQSTR 0x3DB02000
|
|
+#define DDR_DX2GCR 0x0000CE81
|
|
+#define DDR_DX2DLLCR 0x40000000
|
|
+#define DDR_DX2DQTR 0xFFFFFFFF
|
|
+#define DDR_DX2DQSTR 0x3DB02000
|
|
+#define DDR_DX3GCR 0x0000CE81
|
|
+#define DDR_DX3DLLCR 0x40000000
|
|
+#define DDR_DX3DQTR 0xFFFFFFFF
|
|
+#define DDR_DX3DQSTR 0x3DB02000
|
|
+
|
|
+#include "stm32mp15-ddr.dtsi"
|
|
diff --git a/arch/arm/dts/stm32mp15-ddr3-2x4Gb-1066-binF.dtsi b/arch/arm/dts/stm32mp15-ddr3-2x4Gb-1066-binF.dtsi
|
|
new file mode 100644
|
|
index 0000000..82781e7
|
|
--- /dev/null
|
|
+++ b/arch/arm/dts/stm32mp15-ddr3-2x4Gb-1066-binF.dtsi
|
|
@@ -0,0 +1,120 @@
|
|
+// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
|
|
+/*
|
|
+ * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
|
|
+ */
|
|
+/* STM32MP157C ED1 BOARD configuration
|
|
+ * 2x DDR3L 4Gb each, 16-bit, 533MHz, Single Die Package in flyby topology.
|
|
+ * Reference used NT5CC256M16DP-DI from NANYA
|
|
+ *
|
|
+ * DDR type / Platform DDR3/3L
|
|
+ * freq 533MHz
|
|
+ * width 32
|
|
+ * datasheet 1 = MT41J256M16-187 / DDR3-1066 bin F
|
|
+ * DDR density 8
|
|
+ * timing mode optimized
|
|
+ * Scheduling/QoS options : type = 2
|
|
+ * address mapping : RBC
|
|
+ * Tc > + 85C : N
|
|
+ */
|
|
+#define DDR_MEM_NAME "DDR3-1066/777 bin F 2x4Gb 533MHz v1.41"
|
|
+#define DDR_MEM_SPEED 533000
|
|
+#define DDR_MEM_SIZE 0x40000000
|
|
+
|
|
+#define DDR_MSTR 0x00040401
|
|
+#define DDR_MRCTRL0 0x00000010
|
|
+#define DDR_MRCTRL1 0x00000000
|
|
+#define DDR_DERATEEN 0x00000000
|
|
+#define DDR_DERATEINT 0x00800000
|
|
+#define DDR_PWRCTL 0x00000000
|
|
+#define DDR_PWRTMG 0x00400010
|
|
+#define DDR_HWLPCTL 0x00000000
|
|
+#define DDR_RFSHCTL0 0x00210000
|
|
+#define DDR_RFSHCTL3 0x00000000
|
|
+#define DDR_RFSHTMG 0x0081008B
|
|
+#define DDR_CRCPARCTL0 0x00000000
|
|
+#define DDR_DRAMTMG0 0x121B2414
|
|
+#define DDR_DRAMTMG1 0x000A041B
|
|
+#define DDR_DRAMTMG2 0x0607080F
|
|
+#define DDR_DRAMTMG3 0x0050400C
|
|
+#define DDR_DRAMTMG4 0x07040607
|
|
+#define DDR_DRAMTMG5 0x06060403
|
|
+#define DDR_DRAMTMG6 0x02020002
|
|
+#define DDR_DRAMTMG7 0x00000202
|
|
+#define DDR_DRAMTMG8 0x00001005
|
|
+#define DDR_DRAMTMG14 0x000000A0
|
|
+#define DDR_ZQCTL0 0xC2000040
|
|
+#define DDR_DFITMG0 0x02050105
|
|
+#define DDR_DFITMG1 0x00000202
|
|
+#define DDR_DFILPCFG0 0x07000000
|
|
+#define DDR_DFIUPD0 0xC0400003
|
|
+#define DDR_DFIUPD1 0x00000000
|
|
+#define DDR_DFIUPD2 0x00000000
|
|
+#define DDR_DFIPHYMSTR 0x00000000
|
|
+#define DDR_ADDRMAP1 0x00080808
|
|
+#define DDR_ADDRMAP2 0x00000000
|
|
+#define DDR_ADDRMAP3 0x00000000
|
|
+#define DDR_ADDRMAP4 0x00001F1F
|
|
+#define DDR_ADDRMAP5 0x07070707
|
|
+#define DDR_ADDRMAP6 0x0F070707
|
|
+#define DDR_ADDRMAP9 0x00000000
|
|
+#define DDR_ADDRMAP10 0x00000000
|
|
+#define DDR_ADDRMAP11 0x00000000
|
|
+#define DDR_ODTCFG 0x06000600
|
|
+#define DDR_ODTMAP 0x00000001
|
|
+#define DDR_SCHED 0x00000C01
|
|
+#define DDR_SCHED1 0x00000000
|
|
+#define DDR_PERFHPR1 0x01000001
|
|
+#define DDR_PERFLPR1 0x08000200
|
|
+#define DDR_PERFWR1 0x08000400
|
|
+#define DDR_DBG0 0x00000000
|
|
+#define DDR_DBG1 0x00000000
|
|
+#define DDR_DBGCMD 0x00000000
|
|
+#define DDR_POISONCFG 0x00000000
|
|
+#define DDR_PCCFG 0x00000010
|
|
+#define DDR_PCFGR_0 0x00010000
|
|
+#define DDR_PCFGW_0 0x00000000
|
|
+#define DDR_PCFGQOS0_0 0x02100C03
|
|
+#define DDR_PCFGQOS1_0 0x00800100
|
|
+#define DDR_PCFGWQOS0_0 0x01100C03
|
|
+#define DDR_PCFGWQOS1_0 0x01000200
|
|
+#define DDR_PCFGR_1 0x00010000
|
|
+#define DDR_PCFGW_1 0x00000000
|
|
+#define DDR_PCFGQOS0_1 0x02100C03
|
|
+#define DDR_PCFGQOS1_1 0x00800040
|
|
+#define DDR_PCFGWQOS0_1 0x01100C03
|
|
+#define DDR_PCFGWQOS1_1 0x01000200
|
|
+#define DDR_PGCR 0x01442E02
|
|
+#define DDR_PTR0 0x0022AA5B
|
|
+#define DDR_PTR1 0x04841104
|
|
+#define DDR_PTR2 0x042DA068
|
|
+#define DDR_ACIOCR 0x10400812
|
|
+#define DDR_DXCCR 0x00000C40
|
|
+#define DDR_DSGCR 0xF200001F
|
|
+#define DDR_DCR 0x0000000B
|
|
+#define DDR_DTPR0 0x36D477D0
|
|
+#define DDR_DTPR1 0x098B00D8
|
|
+#define DDR_DTPR2 0x10023600
|
|
+#define DDR_MR0 0x00000830
|
|
+#define DDR_MR1 0x00000000
|
|
+#define DDR_MR2 0x00000208
|
|
+#define DDR_MR3 0x00000000
|
|
+#define DDR_ODTCR 0x00010000
|
|
+#define DDR_ZQ0CR1 0x00000038
|
|
+#define DDR_DX0GCR 0x0000CE81
|
|
+#define DDR_DX0DLLCR 0x40000000
|
|
+#define DDR_DX0DQTR 0xFFFFFFFF
|
|
+#define DDR_DX0DQSTR 0x3DB02000
|
|
+#define DDR_DX1GCR 0x0000CE81
|
|
+#define DDR_DX1DLLCR 0x40000000
|
|
+#define DDR_DX1DQTR 0xFFFFFFFF
|
|
+#define DDR_DX1DQSTR 0x3DB02000
|
|
+#define DDR_DX2GCR 0x0000CE81
|
|
+#define DDR_DX2DLLCR 0x40000000
|
|
+#define DDR_DX2DQTR 0xFFFFFFFF
|
|
+#define DDR_DX2DQSTR 0x3DB02000
|
|
+#define DDR_DX3GCR 0x0000CE81
|
|
+#define DDR_DX3DLLCR 0x40000000
|
|
+#define DDR_DX3DQTR 0xFFFFFFFF
|
|
+#define DDR_DX3DQSTR 0x3DB02000
|
|
+
|
|
+#include "stm32mp15-ddr.dtsi"
|
|
diff --git a/arch/arm/dts/stm32mp15-ddr3-2x4Gb-1066-binG.dtsi b/arch/arm/dts/stm32mp15-ddr3-2x4Gb-1066-binG.dtsi
|
|
index 8a5a821..82e7104 100644
|
|
--- a/arch/arm/dts/stm32mp15-ddr3-2x4Gb-1066-binG.dtsi
|
|
+++ b/arch/arm/dts/stm32mp15-ddr3-2x4Gb-1066-binG.dtsi
|
|
@@ -3,7 +3,7 @@
|
|
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
|
|
*/
|
|
|
|
-/* STM32MP157C ED1 and ED2 BOARD configuration
|
|
+/* STM32MP157C ED1 BOARD configuration
|
|
* 2x DDR3L 4Gb each, 16-bit, 533MHz, Single Die Package in flyby topology.
|
|
* Reference used NT5CC256M16DP-DI from NANYA
|
|
*
|
|
@@ -15,10 +15,11 @@
|
|
* timing mode optimized
|
|
* Scheduling/QoS options : type = 2
|
|
* address mapping : RBC
|
|
+ * Tc > + 85C : N
|
|
*/
|
|
|
|
-#define DDR_MEM_NAME "DDR3-1066 bin G 2x4Gb 533MHz v1.36"
|
|
-#define DDR_MEM_SPEED 533
|
|
+#define DDR_MEM_NAME "DDR3-1066/888 bin G 2x4Gb 533MHz v1.41"
|
|
+#define DDR_MEM_SPEED 533000
|
|
#define DDR_MEM_SIZE 0x40000000
|
|
|
|
#define DDR_MSTR 0x00040401
|
|
@@ -62,7 +63,7 @@
|
|
#define DDR_ADDRMAP11 0x00000000
|
|
#define DDR_ODTCFG 0x06000600
|
|
#define DDR_ODTMAP 0x00000001
|
|
-#define DDR_SCHED 0x00001201
|
|
+#define DDR_SCHED 0x00000C01
|
|
#define DDR_SCHED1 0x00000000
|
|
#define DDR_PERFHPR1 0x01000001
|
|
#define DDR_PERFLPR1 0x08000200
|
|
@@ -74,15 +75,15 @@
|
|
#define DDR_PCCFG 0x00000010
|
|
#define DDR_PCFGR_0 0x00010000
|
|
#define DDR_PCFGW_0 0x00000000
|
|
-#define DDR_PCFGQOS0_0 0x02100B03
|
|
+#define DDR_PCFGQOS0_0 0x02100C03
|
|
#define DDR_PCFGQOS1_0 0x00800100
|
|
-#define DDR_PCFGWQOS0_0 0x01100B03
|
|
+#define DDR_PCFGWQOS0_0 0x01100C03
|
|
#define DDR_PCFGWQOS1_0 0x01000200
|
|
#define DDR_PCFGR_1 0x00010000
|
|
#define DDR_PCFGW_1 0x00000000
|
|
-#define DDR_PCFGQOS0_1 0x02100B03
|
|
-#define DDR_PCFGQOS1_1 0x00800100
|
|
-#define DDR_PCFGWQOS0_1 0x01100B03
|
|
+#define DDR_PCFGQOS0_1 0x02100C03
|
|
+#define DDR_PCFGQOS1_1 0x00800040
|
|
+#define DDR_PCFGWQOS0_1 0x01100C03
|
|
#define DDR_PCFGWQOS1_1 0x01000200
|
|
#define DDR_PGCR 0x01442E02
|
|
#define DDR_PTR0 0x0022AA5B
|
|
@@ -100,7 +101,7 @@
|
|
#define DDR_MR2 0x00000208
|
|
#define DDR_MR3 0x00000000
|
|
#define DDR_ODTCR 0x00010000
|
|
-#define DDR_ZQ0CR1 0x0000005B
|
|
+#define DDR_ZQ0CR1 0x00000038
|
|
#define DDR_DX0GCR 0x0000CE81
|
|
#define DDR_DX0DLLCR 0x40000000
|
|
#define DDR_DX0DQTR 0xFFFFFFFF
|
|
diff --git a/arch/arm/dts/stm32mp157-pinctrl.dtsi b/arch/arm/dts/stm32mp157-pinctrl.dtsi
|
|
index 85da592..183d7ba 100644
|
|
--- a/arch/arm/dts/stm32mp157-pinctrl.dtsi
|
|
+++ b/arch/arm/dts/stm32mp157-pinctrl.dtsi
|
|
@@ -14,6 +14,7 @@
|
|
ranges = <0 0x50002000 0xa400>;
|
|
interrupt-parent = <&exti>;
|
|
st,syscfg = <&exti 0x60 0xff>;
|
|
+ hwlocks = <&hsem 0>;
|
|
pins-are-numbered;
|
|
|
|
gpioa: gpio@50002000 {
|
|
@@ -24,8 +25,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 +36,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 +47,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 +58,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 +69,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 +80,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 +91,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 +102,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 +113,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 +124,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 +135,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 {
|
|
@@ -153,180 +165,1374 @@
|
|
pinmux = <STM32_PINMUX('A', 15, AF4)>;
|
|
bias-disable;
|
|
drive-open-drain;
|
|
- slew-rate = <0>;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ cec_pins_sleep_a: cec-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('A', 15, ANALOG)>; /* HDMI_CEC */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ cec_pins_b: cec-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 6, AF5)>;
|
|
+ bias-disable;
|
|
+ drive-open-drain;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ cec_pins_sleep_b: cec-sleep-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 6, ANALOG)>; /* HDMI_CEC */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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)>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dcmi_pins_a: dcmi-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('H', 8, AF13)>,/* DCMI_HSYNC */
|
|
+ <STM32_PINMUX('B', 7, AF13)>,/* DCMI_VSYNC */
|
|
+ <STM32_PINMUX('A', 6, AF13)>,/* DCMI_PIXCLK */
|
|
+ <STM32_PINMUX('H', 9, AF13)>,/* DCMI_D0 */
|
|
+ <STM32_PINMUX('H', 10, AF13)>,/* DCMI_D1 */
|
|
+ <STM32_PINMUX('H', 11, AF13)>,/* DCMI_D2 */
|
|
+ <STM32_PINMUX('H', 12, AF13)>,/* DCMI_D3 */
|
|
+ <STM32_PINMUX('H', 14, AF13)>,/* DCMI_D4 */
|
|
+ <STM32_PINMUX('I', 4, AF13)>,/* DCMI_D5 */
|
|
+ <STM32_PINMUX('B', 8, AF13)>,/* DCMI_D6 */
|
|
+ <STM32_PINMUX('E', 6, AF13)>,/* DCMI_D7 */
|
|
+ <STM32_PINMUX('I', 1, AF13)>,/* DCMI_D8 */
|
|
+ <STM32_PINMUX('H', 7, AF13)>,/* DCMI_D9 */
|
|
+ <STM32_PINMUX('I', 3, AF13)>,/* DCMI_D10 */
|
|
+ <STM32_PINMUX('H', 15, AF13)>;/* DCMI_D11 */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dcmi_sleep_pins_a: dcmi-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('H', 8, ANALOG)>,/* DCMI_HSYNC */
|
|
+ <STM32_PINMUX('B', 7, ANALOG)>,/* DCMI_VSYNC */
|
|
+ <STM32_PINMUX('A', 6, ANALOG)>,/* DCMI_PIXCLK */
|
|
+ <STM32_PINMUX('H', 9, ANALOG)>,/* DCMI_D0 */
|
|
+ <STM32_PINMUX('H', 10, ANALOG)>,/* DCMI_D1 */
|
|
+ <STM32_PINMUX('H', 11, ANALOG)>,/* DCMI_D2 */
|
|
+ <STM32_PINMUX('H', 12, ANALOG)>,/* DCMI_D3 */
|
|
+ <STM32_PINMUX('H', 14, ANALOG)>,/* DCMI_D4 */
|
|
+ <STM32_PINMUX('I', 4, ANALOG)>,/* DCMI_D5 */
|
|
+ <STM32_PINMUX('B', 8, ANALOG)>,/* DCMI_D6 */
|
|
+ <STM32_PINMUX('E', 6, ANALOG)>,/* DCMI_D7 */
|
|
+ <STM32_PINMUX('I', 1, ANALOG)>,/* DCMI_D8 */
|
|
+ <STM32_PINMUX('H', 7, ANALOG)>,/* DCMI_D9 */
|
|
+ <STM32_PINMUX('I', 3, ANALOG)>,/* DCMI_D10 */
|
|
+ <STM32_PINMUX('H', 15, ANALOG)>;/* DCMI_D11 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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 */
|
|
+ <STM32_PINMUX('G', 4, AF11)>, /* ETH_RGMII_GTX_CLK */
|
|
+ <STM32_PINMUX('G', 13, AF11)>, /* ETH_RGMII_TXD0 */
|
|
+ <STM32_PINMUX('G', 14, AF11)>, /* ETH_RGMII_TXD1 */
|
|
+ <STM32_PINMUX('C', 2, AF11)>, /* ETH_RGMII_TXD2 */
|
|
+ <STM32_PINMUX('E', 2, AF11)>, /* ETH_RGMII_TXD3 */
|
|
+ <STM32_PINMUX('B', 11, AF11)>, /* ETH_RGMII_TX_CTL */
|
|
+ <STM32_PINMUX('A', 2, AF11)>, /* ETH_MDIO */
|
|
+ <STM32_PINMUX('C', 1, AF11)>; /* ETH_MDC */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('C', 4, AF11)>, /* ETH_RGMII_RXD0 */
|
|
+ <STM32_PINMUX('C', 5, AF11)>, /* ETH_RGMII_RXD1 */
|
|
+ <STM32_PINMUX('B', 0, AF11)>, /* ETH_RGMII_RXD2 */
|
|
+ <STM32_PINMUX('B', 1, AF11)>, /* ETH_RGMII_RXD3 */
|
|
+ <STM32_PINMUX('A', 1, AF11)>, /* ETH_RGMII_RX_CLK */
|
|
+ <STM32_PINMUX('A', 7, AF11)>; /* ETH_RGMII_RX_CTL */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ ethernet0_rgmii_pins_sleep_a: rgmii-sleep-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('G', 5, ANALOG)>, /* ETH_RGMII_CLK125 */
|
|
+ <STM32_PINMUX('G', 4, ANALOG)>, /* ETH_RGMII_GTX_CLK */
|
|
+ <STM32_PINMUX('G', 13, ANALOG)>, /* ETH_RGMII_TXD0 */
|
|
+ <STM32_PINMUX('G', 14, ANALOG)>, /* ETH_RGMII_TXD1 */
|
|
+ <STM32_PINMUX('C', 2, ANALOG)>, /* ETH_RGMII_TXD2 */
|
|
+ <STM32_PINMUX('E', 2, ANALOG)>, /* ETH_RGMII_TXD3 */
|
|
+ <STM32_PINMUX('B', 11, ANALOG)>, /* ETH_RGMII_TX_CTL */
|
|
+ <STM32_PINMUX('A', 2, ANALOG)>, /* ETH_MDIO */
|
|
+ <STM32_PINMUX('C', 1, ANALOG)>, /* ETH_MDC */
|
|
+ <STM32_PINMUX('C', 4, ANALOG)>, /* ETH_RGMII_RXD0 */
|
|
+ <STM32_PINMUX('C', 5, ANALOG)>, /* ETH_RGMII_RXD1 */
|
|
+ <STM32_PINMUX('B', 0, ANALOG)>, /* ETH_RGMII_RXD2 */
|
|
+ <STM32_PINMUX('B', 1, ANALOG)>, /* ETH_RGMII_RXD3 */
|
|
+ <STM32_PINMUX('A', 1, ANALOG)>, /* ETH_RGMII_RX_CLK */
|
|
+ <STM32_PINMUX('A', 7, ANALOG)>; /* ETH_RGMII_RX_CTL */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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 = <1>;
|
|
+ };
|
|
+ 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 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp0_pins_a: hdp0-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 12, AF2)>; /* HDP0 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp0_pins_sleep_a: hdp0-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 12, ANALOG)>; /* HDP0 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp0_pins_b: hdp0-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 10, AF0)>; /* HDP0 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp0_pins_sleep_b: hdp0-sleep-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 10, ANALOG)>; /* HDP0 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp1_pins_a: hdp1-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 13, AF2)>; /* HDP1 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp1_pins_sleep_a: hdp1-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 13, ANALOG)>; /* HDP1 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp1_pins_b: hdp1-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 9, AF0)>; /* HDP1 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp1_pins_sleep_b: hdp1-sleep-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 9, ANALOG)>; /* HDP1 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp2_pins_a: hdp2-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('J', 5, AF2)>; /* HDP2 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp2_pins_sleep_a: hdp2-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('J', 5, ANALOG)>; /* HDP2 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp2_pins_b: hdp2-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('E', 13, AF0)>; /* HDP2 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp2_pins_sleep_b: hdp2-sleep-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('E', 13, ANALOG)>; /* HDP2 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp3_pins_a: hdp3-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('J', 6, AF2)>; /* HDP3 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp3_pins_sleep_a: hdp3-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('J', 6, ANALOG)>; /* HDP3 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp3_pins_b: hdp3-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('E', 15, AF0)>; /* HDP3 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp3_pins_sleep_b: hdp3-sleep-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('E', 15, ANALOG)>; /* HDP3 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp4_pins_a: hdp4-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('K', 1, AF2)>; /* HDP4 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp4_pins_sleep_a: hdp4-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('K', 1, ANALOG)>; /* HDP4 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp4_pins_b: hdp4-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('C', 7, AF0)>; /* HDP4 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp4_pins_sleep_b: hdp4-sleep-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('C', 7, ANALOG)>; /* HDP4 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp5_pins_a: hdp5-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('K', 2, AF2)>; /* HDP5 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp5_pins_sleep_a: hdp5-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('K', 2, ANALOG)>; /* HDP5 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp5_pins_b: hdp5-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('D', 3, AF0)>; /* HDP5 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp5_pins_sleep_b: hdp5-sleep-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('D', 3, ANALOG)>; /* HDP5 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp6_pins_a: hdp6-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('K', 5, AF2)>; /* HDP6 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp6_pins_sleep_a: hdp6-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('K', 5, ANALOG)>; /* HDP6 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp6_pins_b: hdp6-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 8, AF0)>; /* HDP6 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp6_pins_sleep_b: hdp6-sleep-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 8, ANALOG)>; /* HDP6 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp7_pins_a: hdp7-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('K', 6, AF2)>; /* HDP7 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp7_pins_sleep_a: hdp7-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('K', 6, ANALOG)>; /* HDP7 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp7_pins_b: hdp7-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 9, AF0)>; /* HDP7 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <2>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdp7_pins_sleep_b: hdp7-sleep-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 9, ANALOG)>; /* HDP7 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ i2c1_pins_a: i2c1-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('D', 12, AF5)>, /* I2C1_SCL */
|
|
+ <STM32_PINMUX('F', 15, AF5)>; /* I2C1_SDA */
|
|
+ bias-disable;
|
|
+ drive-open-drain;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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 */
|
|
+ <STM32_PINMUX('H', 5, AF4)>; /* I2C2_SDA */
|
|
+ bias-disable;
|
|
+ drive-open-drain;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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 */
|
|
+ <STM32_PINMUX('A', 12, AF4)>; /* I2C5_SDA */
|
|
+ bias-disable;
|
|
+ drive-open-drain;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ i2c5_pins_sleep_a: i2c5-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('A', 11, ANALOG)>, /* I2C5_SCL */
|
|
+ <STM32_PINMUX('A', 12, ANALOG)>; /* I2C5_SDA */
|
|
+
|
|
+ };
|
|
+ };
|
|
+
|
|
+ i2s2_pins_a: i2s2-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 3, AF5)>, /* I2S2_SDO */
|
|
+ <STM32_PINMUX('B', 9, AF5)>, /* I2S2_WS */
|
|
+ <STM32_PINMUX('A', 9, AF5)>; /* I2S2_CK */
|
|
+ slew-rate = <1>;
|
|
+ drive-push-pull;
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ i2s2_pins_sleep_a: i2s2-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 3, ANALOG)>, /* I2S2_SDO */
|
|
+ <STM32_PINMUX('B', 9, ANALOG)>, /* I2S2_WS */
|
|
+ <STM32_PINMUX('A', 9, ANALOG)>; /* I2S2_CK */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ ltdc_pins_a: ltdc-a-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('G', 7, AF14)>, /* LCD_CLK */
|
|
+ <STM32_PINMUX('I', 10, AF14)>, /* LCD_HSYNC */
|
|
+ <STM32_PINMUX('I', 9, AF14)>, /* LCD_VSYNC */
|
|
+ <STM32_PINMUX('F', 10, AF14)>, /* LCD_DE */
|
|
+ <STM32_PINMUX('H', 2, AF14)>, /* LCD_R0 */
|
|
+ <STM32_PINMUX('H', 3, AF14)>, /* LCD_R1 */
|
|
+ <STM32_PINMUX('H', 8, AF14)>, /* LCD_R2 */
|
|
+ <STM32_PINMUX('H', 9, AF14)>, /* LCD_R3 */
|
|
+ <STM32_PINMUX('H', 10, AF14)>, /* LCD_R4 */
|
|
+ <STM32_PINMUX('C', 0, AF14)>, /* LCD_R5 */
|
|
+ <STM32_PINMUX('H', 12, AF14)>, /* LCD_R6 */
|
|
+ <STM32_PINMUX('E', 15, AF14)>, /* LCD_R7 */
|
|
+ <STM32_PINMUX('E', 5, AF14)>, /* LCD_G0 */
|
|
+ <STM32_PINMUX('E', 6, AF14)>, /* LCD_G1 */
|
|
+ <STM32_PINMUX('H', 13, AF14)>, /* LCD_G2 */
|
|
+ <STM32_PINMUX('H', 14, AF14)>, /* LCD_G3 */
|
|
+ <STM32_PINMUX('H', 15, AF14)>, /* LCD_G4 */
|
|
+ <STM32_PINMUX('I', 0, AF14)>, /* LCD_G5 */
|
|
+ <STM32_PINMUX('I', 1, AF14)>, /* LCD_G6 */
|
|
+ <STM32_PINMUX('I', 2, AF14)>, /* LCD_G7 */
|
|
+ <STM32_PINMUX('D', 9, AF14)>, /* LCD_B0 */
|
|
+ <STM32_PINMUX('G', 12, AF14)>, /* LCD_B1 */
|
|
+ <STM32_PINMUX('G', 10, AF14)>, /* LCD_B2 */
|
|
+ <STM32_PINMUX('D', 10, AF14)>, /* LCD_B3 */
|
|
+ <STM32_PINMUX('I', 4, AF14)>, /* LCD_B4 */
|
|
+ <STM32_PINMUX('A', 3, AF14)>, /* LCD_B5 */
|
|
+ <STM32_PINMUX('B', 8, AF14)>, /* LCD_B6 */
|
|
+ <STM32_PINMUX('D', 8, AF14)>; /* LCD_B7 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <1>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ ltdc_pins_sleep_a: ltdc-a-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('G', 7, ANALOG)>, /* LCD_CLK */
|
|
+ <STM32_PINMUX('I', 10, ANALOG)>, /* LCD_HSYNC */
|
|
+ <STM32_PINMUX('I', 9, ANALOG)>, /* LCD_VSYNC */
|
|
+ <STM32_PINMUX('F', 10, ANALOG)>, /* LCD_DE */
|
|
+ <STM32_PINMUX('H', 2, ANALOG)>, /* LCD_R0 */
|
|
+ <STM32_PINMUX('H', 3, ANALOG)>, /* LCD_R1 */
|
|
+ <STM32_PINMUX('H', 8, ANALOG)>, /* LCD_R2 */
|
|
+ <STM32_PINMUX('H', 9, ANALOG)>, /* LCD_R3 */
|
|
+ <STM32_PINMUX('H', 10, ANALOG)>, /* LCD_R4 */
|
|
+ <STM32_PINMUX('C', 0, ANALOG)>, /* LCD_R5 */
|
|
+ <STM32_PINMUX('H', 12, ANALOG)>, /* LCD_R6 */
|
|
+ <STM32_PINMUX('E', 15, ANALOG)>, /* LCD_R7 */
|
|
+ <STM32_PINMUX('E', 5, ANALOG)>, /* LCD_G0 */
|
|
+ <STM32_PINMUX('E', 6, ANALOG)>, /* LCD_G1 */
|
|
+ <STM32_PINMUX('H', 13, ANALOG)>, /* LCD_G2 */
|
|
+ <STM32_PINMUX('H', 14, ANALOG)>, /* LCD_G3 */
|
|
+ <STM32_PINMUX('H', 15, ANALOG)>, /* LCD_G4 */
|
|
+ <STM32_PINMUX('I', 0, ANALOG)>, /* LCD_G5 */
|
|
+ <STM32_PINMUX('I', 1, ANALOG)>, /* LCD_G6 */
|
|
+ <STM32_PINMUX('I', 2, ANALOG)>, /* LCD_G7 */
|
|
+ <STM32_PINMUX('D', 9, ANALOG)>, /* LCD_B0 */
|
|
+ <STM32_PINMUX('G', 12, ANALOG)>, /* LCD_B1 */
|
|
+ <STM32_PINMUX('G', 10, ANALOG)>, /* LCD_B2 */
|
|
+ <STM32_PINMUX('D', 10, ANALOG)>, /* LCD_B3 */
|
|
+ <STM32_PINMUX('I', 4, ANALOG)>, /* LCD_B4 */
|
|
+ <STM32_PINMUX('A', 3, ANALOG)>, /* LCD_B5 */
|
|
+ <STM32_PINMUX('B', 8, ANALOG)>, /* LCD_B6 */
|
|
+ <STM32_PINMUX('D', 8, ANALOG)>; /* LCD_B7 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ ltdc_pins_b: ltdc-b-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 14, AF14)>, /* LCD_CLK */
|
|
+ <STM32_PINMUX('I', 12, AF14)>, /* LCD_HSYNC */
|
|
+ <STM32_PINMUX('I', 13, AF14)>, /* LCD_VSYNC */
|
|
+ <STM32_PINMUX('K', 7, AF14)>, /* LCD_DE */
|
|
+ <STM32_PINMUX('I', 15, AF14)>, /* LCD_R0 */
|
|
+ <STM32_PINMUX('J', 0, AF14)>, /* LCD_R1 */
|
|
+ <STM32_PINMUX('J', 1, AF14)>, /* LCD_R2 */
|
|
+ <STM32_PINMUX('J', 2, AF14)>, /* LCD_R3 */
|
|
+ <STM32_PINMUX('J', 3, AF14)>, /* LCD_R4 */
|
|
+ <STM32_PINMUX('J', 4, AF14)>, /* LCD_R5 */
|
|
+ <STM32_PINMUX('J', 5, AF14)>, /* LCD_R6 */
|
|
+ <STM32_PINMUX('J', 6, AF14)>, /* LCD_R7 */
|
|
+ <STM32_PINMUX('J', 7, AF14)>, /* LCD_G0 */
|
|
+ <STM32_PINMUX('J', 8, AF14)>, /* LCD_G1 */
|
|
+ <STM32_PINMUX('J', 9, AF14)>, /* LCD_G2 */
|
|
+ <STM32_PINMUX('J', 10, AF14)>, /* LCD_G3 */
|
|
+ <STM32_PINMUX('J', 11, AF14)>, /* LCD_G4 */
|
|
+ <STM32_PINMUX('K', 0, AF14)>, /* LCD_G5 */
|
|
+ <STM32_PINMUX('K', 1, AF14)>, /* LCD_G6 */
|
|
+ <STM32_PINMUX('K', 2, AF14)>, /* LCD_G7 */
|
|
+ <STM32_PINMUX('J', 12, AF14)>, /* LCD_B0 */
|
|
+ <STM32_PINMUX('J', 13, AF14)>, /* LCD_B1 */
|
|
+ <STM32_PINMUX('J', 14, AF14)>, /* LCD_B2 */
|
|
+ <STM32_PINMUX('J', 15, AF14)>, /* LCD_B3 */
|
|
+ <STM32_PINMUX('K', 3, AF14)>, /* LCD_B4 */
|
|
+ <STM32_PINMUX('K', 4, AF14)>, /* LCD_B5 */
|
|
+ <STM32_PINMUX('K', 5, AF14)>, /* LCD_B6 */
|
|
+ <STM32_PINMUX('K', 6, AF14)>; /* LCD_B7 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <1>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ ltdc_pins_sleep_b: ltdc-b-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 14, ANALOG)>, /* LCD_CLK */
|
|
+ <STM32_PINMUX('I', 12, ANALOG)>, /* LCD_HSYNC */
|
|
+ <STM32_PINMUX('I', 13, ANALOG)>, /* LCD_VSYNC */
|
|
+ <STM32_PINMUX('K', 7, ANALOG)>, /* LCD_DE */
|
|
+ <STM32_PINMUX('I', 15, ANALOG)>, /* LCD_R0 */
|
|
+ <STM32_PINMUX('J', 0, ANALOG)>, /* LCD_R1 */
|
|
+ <STM32_PINMUX('J', 1, ANALOG)>, /* LCD_R2 */
|
|
+ <STM32_PINMUX('J', 2, ANALOG)>, /* LCD_R3 */
|
|
+ <STM32_PINMUX('J', 3, ANALOG)>, /* LCD_R4 */
|
|
+ <STM32_PINMUX('J', 4, ANALOG)>, /* LCD_R5 */
|
|
+ <STM32_PINMUX('J', 5, ANALOG)>, /* LCD_R6 */
|
|
+ <STM32_PINMUX('J', 6, ANALOG)>, /* LCD_R7 */
|
|
+ <STM32_PINMUX('J', 7, ANALOG)>, /* LCD_G0 */
|
|
+ <STM32_PINMUX('J', 8, ANALOG)>, /* LCD_G1 */
|
|
+ <STM32_PINMUX('J', 9, ANALOG)>, /* LCD_G2 */
|
|
+ <STM32_PINMUX('J', 10, ANALOG)>, /* LCD_G3 */
|
|
+ <STM32_PINMUX('J', 11, ANALOG)>, /* LCD_G4 */
|
|
+ <STM32_PINMUX('K', 0, ANALOG)>, /* LCD_G5 */
|
|
+ <STM32_PINMUX('K', 1, ANALOG)>, /* LCD_G6 */
|
|
+ <STM32_PINMUX('K', 2, ANALOG)>, /* LCD_G7 */
|
|
+ <STM32_PINMUX('J', 12, ANALOG)>, /* LCD_B0 */
|
|
+ <STM32_PINMUX('J', 13, ANALOG)>, /* LCD_B1 */
|
|
+ <STM32_PINMUX('J', 14, ANALOG)>, /* LCD_B2 */
|
|
+ <STM32_PINMUX('J', 15, ANALOG)>, /* LCD_B3 */
|
|
+ <STM32_PINMUX('K', 3, ANALOG)>, /* LCD_B4 */
|
|
+ <STM32_PINMUX('K', 4, ANALOG)>, /* LCD_B5 */
|
|
+ <STM32_PINMUX('K', 5, ANALOG)>, /* LCD_B6 */
|
|
+ <STM32_PINMUX('K', 6, ANALOG)>; /* LCD_B7 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ m_can1_pins_a: m-can1-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('H', 13, AF9)>; /* CAN1_TX */
|
|
+ slew-rate = <0>;
|
|
+ drive-push-pull;
|
|
+ bias-disable;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('I', 9, AF9)>; /* CAN1_RX */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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 */
|
|
+ bias-pull-down;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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 */
|
|
+ bias-pull-down;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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 */
|
|
+ bias-pull-down;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ pwm12_sleep_pins_a: pwm12-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('H', 6, ANALOG)>; /* TIM12_CH1 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ qspi_bk1_pins_a: qspi-bk1-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('F', 8, AF10)>, /* QSPI_BK1_IO0 */
|
|
+ <STM32_PINMUX('F', 9, AF10)>, /* QSPI_BK1_IO1 */
|
|
+ <STM32_PINMUX('F', 7, AF9)>, /* QSPI_BK1_IO2 */
|
|
+ <STM32_PINMUX('F', 6, AF9)>; /* QSPI_BK1_IO3 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <1>;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('B', 6, AF10)>; /* QSPI_BK1_NCS */
|
|
+ bias-pull-up;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <1>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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 */
|
|
+ <STM32_PINMUX('H', 3, AF9)>, /* QSPI_BK2_IO1 */
|
|
+ <STM32_PINMUX('G', 10, AF11)>, /* QSPI_BK2_IO2 */
|
|
+ <STM32_PINMUX('G', 7, AF11)>; /* QSPI_BK2_IO3 */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <1>;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('C', 0, AF10)>; /* QSPI_BK2_NCS */
|
|
+ bias-pull-up;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <1>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ qspi_clk_pins_a: qspi-clk-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('F', 10, AF9)>; /* QSPI_CLK */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <3>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ qspi_clk_sleep_pins_a: qspi-clk-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('F', 10, ANALOG)>; /* QSPI_CLK */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ rtc_out2_rmp_pins_a: rtc-out2-rmp-pins@0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 8, ANALOG)>; /* RTC_OUT2_RMP */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sai2a_pins_a: sai2a-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 5, AF10)>, /* SAI2_SCK_A */
|
|
+ <STM32_PINMUX('I', 6, AF10)>, /* SAI2_SD_A */
|
|
+ <STM32_PINMUX('I', 7, AF10)>, /* SAI2_FS_A */
|
|
+ <STM32_PINMUX('E', 0, AF10)>; /* SAI2_MCLK_A */
|
|
+ slew-rate = <0>;
|
|
+ drive-push-pull;
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sai2a_sleep_pins_a: sai2a-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('I', 5, ANALOG)>, /* SAI2_SCK_A */
|
|
+ <STM32_PINMUX('I', 6, ANALOG)>, /* SAI2_SD_A */
|
|
+ <STM32_PINMUX('I', 7, ANALOG)>, /* SAI2_FS_A */
|
|
+ <STM32_PINMUX('E', 0, ANALOG)>; /* SAI2_MCLK_A */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sai2b_pins_a: sai2b-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('E', 12, AF10)>, /* SAI2_SCK_B */
|
|
+ <STM32_PINMUX('E', 13, AF10)>, /* SAI2_FS_B */
|
|
+ <STM32_PINMUX('E', 14, AF10)>; /* SAI2_MCLK_B */
|
|
+ slew-rate = <0>;
|
|
+ drive-push-pull;
|
|
+ bias-disable;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('F', 11, AF10)>; /* SAI2_SD_B */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sai2b_sleep_pins_a: sai2b-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('F', 11, ANALOG)>, /* SAI2_SD_B */
|
|
+ <STM32_PINMUX('E', 12, ANALOG)>, /* SAI2_SCK_B */
|
|
+ <STM32_PINMUX('E', 13, ANALOG)>, /* SAI2_FS_B */
|
|
+ <STM32_PINMUX('E', 14, ANALOG)>; /* SAI2_MCLK_B */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sai2b_pins_b: sai2b-2 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('F', 11, AF10)>; /* SAI2_SD_B */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sai2b_sleep_pins_b: sai2b-3 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('F', 11, ANALOG)>; /* SAI2_SD_B */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sai4a_pins_a: sai4a-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 5, AF10)>; /* SAI4_SD_A */
|
|
+ slew-rate = <0>;
|
|
+ drive-push-pull;
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sai4a_sleep_pins_a: sai4a-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('B', 5, ANALOG)>; /* SAI4_SD_A */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sdmmc1_b4_pins_a: sdmmc1-b4-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('D', 2, AF12)>; /* SDMMC1_CMD */
|
|
+ slew-rate = <1>;
|
|
+ drive-push-pull;
|
|
+ bias-disable;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1_CK */
|
|
+ slew-rate = <2>;
|
|
+ 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 */
|
|
+ slew-rate = <1>;
|
|
+ drive-push-pull;
|
|
+ bias-disable;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1_CK */
|
|
+ slew-rate = <2>;
|
|
+ drive-push-pull;
|
|
+ bias-disable;
|
|
+ };
|
|
+ pins3 {
|
|
+ pinmux = <STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */
|
|
+ slew-rate = <1>;
|
|
+ drive-open-drain;
|
|
+ bias-disable;
|
|
};
|
|
};
|
|
|
|
- i2c1_pins_a: i2c1-0 {
|
|
+ sdmmc1_b4_sleep_pins_a: sdmmc1-b4-sleep-0 {
|
|
pins {
|
|
- pinmux = <STM32_PINMUX('D', 12, AF5)>, /* I2C1_SCL */
|
|
- <STM32_PINMUX('F', 15, AF5)>; /* I2C1_SDA */
|
|
- bias-disable;
|
|
- drive-open-drain;
|
|
- slew-rate = <0>;
|
|
+ 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 */
|
|
};
|
|
};
|
|
|
|
- i2c2_pins_a: i2c2-0 {
|
|
+ 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 = <1>;
|
|
+ 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('H', 4, AF4)>, /* I2C2_SCL */
|
|
- <STM32_PINMUX('H', 5, AF4)>; /* I2C2_SDA */
|
|
- bias-disable;
|
|
+ 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 {
|
|
+ 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('G', 6, AF10)>; /* SDMMC2_CMD */
|
|
+ slew-rate = <1>;
|
|
+ drive-push-pull;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('E', 3, AF9)>; /* SDMMC2_CK */
|
|
+ slew-rate = <2>;
|
|
+ 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 */
|
|
+ slew-rate = <1>;
|
|
+ drive-push-pull;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('E', 3, AF9)>; /* SDMMC2_CK */
|
|
+ slew-rate = <2>;
|
|
+ drive-push-pull;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ pins3 {
|
|
+ pinmux = <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
|
|
+ slew-rate = <1>;
|
|
drive-open-drain;
|
|
- slew-rate = <0>;
|
|
+ bias-pull-up;
|
|
};
|
|
};
|
|
|
|
- i2c5_pins_a: i2c5-0 {
|
|
+ sdmmc2_b4_sleep_pins_a: sdmmc2-b4-sleep-0 {
|
|
pins {
|
|
- pinmux = <STM32_PINMUX('A', 11, AF4)>, /* I2C5_SCL */
|
|
- <STM32_PINMUX('A', 12, AF4)>; /* I2C5_SDA */
|
|
- bias-disable;
|
|
- drive-open-drain;
|
|
- slew-rate = <0>;
|
|
+ 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 */
|
|
};
|
|
};
|
|
|
|
- pwm2_pins_a: pwm2-0 {
|
|
+ sdmmc2_d47_pins_a: sdmmc2-d47-0 {
|
|
pins {
|
|
- pinmux = <STM32_PINMUX('A', 3, AF1)>; /* TIM2_CH4 */
|
|
- bias-pull-down;
|
|
+ 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 = <1>;
|
|
drive-push-pull;
|
|
- slew-rate = <0>;
|
|
+ bias-pull-up;
|
|
};
|
|
};
|
|
|
|
- pwm8_pins_a: pwm8-0 {
|
|
+ sdmmc2_d47_sleep_pins_a: sdmmc2-d47-sleep-0 {
|
|
pins {
|
|
- pinmux = <STM32_PINMUX('I', 2, AF3)>; /* TIM8_CH4 */
|
|
- bias-pull-down;
|
|
+ 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 {
|
|
+ pins1 {
|
|
+ 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('F', 1, AF9)>; /* SDMMC3_CMD */
|
|
+ slew-rate = <1>;
|
|
drive-push-pull;
|
|
- slew-rate = <0>;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('G', 15, AF10)>; /* SDMMC3_CK */
|
|
+ slew-rate = <2>;
|
|
+ drive-push-pull;
|
|
+ bias-pull-up;
|
|
};
|
|
};
|
|
|
|
- pwm12_pins_a: pwm12-0 {
|
|
- pins {
|
|
- pinmux = <STM32_PINMUX('H', 6, AF2)>; /* TIM12_CH1 */
|
|
- bias-pull-down;
|
|
+ sdmmc3_b4_od_pins_a: sdmmc3-b4-od-0 {
|
|
+ pins1 {
|
|
+ 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 */
|
|
+ slew-rate = <1>;
|
|
drive-push-pull;
|
|
- slew-rate = <0>;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('G', 15, AF10)>; /* SDMMC3_CK */
|
|
+ slew-rate = <2>;
|
|
+ drive-push-pull;
|
|
+ bias-pull-up;
|
|
+ };
|
|
+ pins3 {
|
|
+ pinmux = <STM32_PINMUX('F', 1, AF9)>; /* SDMMC2_CMD */
|
|
+ slew-rate = <1>;
|
|
+ drive-open-drain;
|
|
+ bias-pull-up;
|
|
};
|
|
};
|
|
|
|
- qspi_clk_pins_a: qspi-clk-0 {
|
|
+ sdmmc3_b4_sleep_pins_a: sdmmc3-b4-sleep-0 {
|
|
pins {
|
|
- pinmux = <STM32_PINMUX('F', 10, AF9)>; /* QSPI_CLK */
|
|
+ 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 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ spdifrx_pins_a: spdifrx-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('G', 12, AF8)>; /* SPDIF_IN1 */
|
|
bias-disable;
|
|
- drive-push-pull;
|
|
- slew-rate = <3>;
|
|
};
|
|
};
|
|
|
|
- qspi_bk1_pins_a: qspi-bk1-0 {
|
|
+ spdifrx_sleep_pins_a: spdifrx-1 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('G', 12, ANALOG)>; /* SPDIF_IN1 */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ spi4_pins_a: spi4-0 {
|
|
pins1 {
|
|
- pinmux = <STM32_PINMUX('F', 8, AF10)>, /* QSPI_BK1_IO0 */
|
|
- <STM32_PINMUX('F', 9, AF10)>, /* QSPI_BK1_IO1 */
|
|
- <STM32_PINMUX('F', 7, AF9)>, /* QSPI_BK1_IO2 */
|
|
- <STM32_PINMUX('F', 6, AF9)>; /* QSPI_BK1_IO3 */
|
|
+ pinmux = <STM32_PINMUX('E', 12, AF5)>, /* SPI4_SCK */
|
|
+ <STM32_PINMUX('E', 14, AF5)>; /* SPI4_MOSI */
|
|
bias-disable;
|
|
drive-push-pull;
|
|
- slew-rate = <3>;
|
|
+ slew-rate = <1>;
|
|
};
|
|
+
|
|
pins2 {
|
|
- pinmux = <STM32_PINMUX('B', 6, AF10)>; /* QSPI_BK1_NCS */
|
|
- bias-pull-up;
|
|
- drive-push-pull;
|
|
- slew-rate = <3>;
|
|
+ pinmux = <STM32_PINMUX('E', 13, AF5)>; /* SPI4_MISO */
|
|
+ bias-disable;
|
|
};
|
|
};
|
|
|
|
- qspi_bk2_pins_a: qspi-bk2-0 {
|
|
+ spi4_sleep_pins_a: spi4-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('E', 12, ANALOG)>, /* SPI4_SCK */
|
|
+ <STM32_PINMUX('E', 13, ANALOG)>, /* SPI4_MISO */
|
|
+ <STM32_PINMUX('E', 14, ANALOG)>; /* SPI4_MOSI */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ spi5_pins_a: spi5-0 {
|
|
pins1 {
|
|
- pinmux = <STM32_PINMUX('H', 2, AF9)>, /* QSPI_BK2_IO0 */
|
|
- <STM32_PINMUX('H', 3, AF9)>, /* QSPI_BK2_IO1 */
|
|
- <STM32_PINMUX('G', 10, AF11)>, /* QSPI_BK2_IO2 */
|
|
- <STM32_PINMUX('G', 7, AF11)>; /* QSPI_BK2_IO3 */
|
|
+ pinmux = <STM32_PINMUX('F', 7, AF5)>, /* SPI5_SCK */
|
|
+ <STM32_PINMUX('F', 9, AF5)>; /* SPI5_MOSI */
|
|
bias-disable;
|
|
drive-push-pull;
|
|
- slew-rate = <3>;
|
|
+ slew-rate = <1>;
|
|
};
|
|
+
|
|
pins2 {
|
|
- pinmux = <STM32_PINMUX('C', 0, AF10)>; /* QSPI_BK2_NCS */
|
|
- bias-pull-up;
|
|
- drive-push-pull;
|
|
- slew-rate = <3>;
|
|
+ pinmux = <STM32_PINMUX('F', 8, AF5)>; /* SPI5_MISO */
|
|
+ bias-disable;
|
|
};
|
|
};
|
|
- sdmmc1_b4_pins_a: sdmmc1-b4@0 {
|
|
+
|
|
+ spi5_sleep_pins_a: spi5-sleep-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>;
|
|
+ pinmux = <STM32_PINMUX('F', 7, ANALOG)>, /* SPI5_SCK */
|
|
+ <STM32_PINMUX('F', 8, ANALOG)>, /* SPI5_MISO */
|
|
+ <STM32_PINMUX('F', 9, ANALOG)>; /* SPI5_MOSI */
|
|
+ };
|
|
+ };
|
|
+
|
|
+ uart4_pins_a: uart4-0 {
|
|
+ pins1 {
|
|
+ pinmux = <STM32_PINMUX('G', 11, AF6)>; /* UART4_TX */
|
|
+ bias-disable;
|
|
drive-push-pull;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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;
|
|
};
|
|
};
|
|
|
|
- sdmmc1_dir_pins_a: sdmmc1-dir@0 {
|
|
+ uart4_sleep_pins_a: uart4-sleep-0 {
|
|
pins {
|
|
- pinmux = <STM32_PINMUX('F', 2, AF11)>, /* SDMMC1_D0DIR */
|
|
- <STM32_PINMUX('C', 7, AF8)>, /* SDMMC1_D123DIR */
|
|
- <STM32_PINMUX('B', 9, AF11)>, /* SDMMC1_CDIR */
|
|
- <STM32_PINMUX('E', 4, AF8)>; /* SDMMC1_CKIN */
|
|
- slew-rate = <3>;
|
|
+ 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;
|
|
- bias-pull-up;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
+ 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;
|
|
};
|
|
};
|
|
- sdmmc2_b4_pins_a: sdmmc2-b4@0 {
|
|
+
|
|
+ usart2_sleep_pins_a: usart2-sleep-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>;
|
|
+ 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;
|
|
- bias-pull-up;
|
|
+ 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;
|
|
};
|
|
};
|
|
|
|
- sdmmc2_d47_pins_a: sdmmc2-d47@0 {
|
|
+ usart3_sleep_pins_a: usart3-sleep-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;
|
|
+ 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 */
|
|
};
|
|
};
|
|
|
|
- uart4_pins_a: uart4-0 {
|
|
+ usart3_pins_b: usart3-1 {
|
|
pins1 {
|
|
- pinmux = <STM32_PINMUX('G', 11, AF6)>; /* UART4_TX */
|
|
+ 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', 2, AF8)>; /* UART4_RX */
|
|
+ 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 */
|
|
+ };
|
|
+ };
|
|
+
|
|
usbotg_hs_pins_a: usbotg_hs-0 {
|
|
pins {
|
|
pinmux = <STM32_PINMUX('A', 10, ANALOG)>; /* OTG_ID */
|
|
};
|
|
};
|
|
+
|
|
+ usbotg_fs_dp_dm_pins_a: usbotg-fs-dp-dm-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('A', 11, ANALOG)>, /* OTG_FS_DM */
|
|
+ <STM32_PINMUX('A', 12, ANALOG)>; /* OTG_FS_DP */
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
pinctrl_z: pin-controller-z@54004000 {
|
|
@@ -337,6 +1543,7 @@
|
|
pins-are-numbered;
|
|
interrupt-parent = <&exti>;
|
|
st,syscfg = <&exti 0x60 0xff>;
|
|
+ hwlocks = <&hsem 0>;
|
|
|
|
gpioz: gpio@54004000 {
|
|
gpio-controller;
|
|
@@ -347,8 +1554,17 @@
|
|
clocks = <&rcc GPIOZ>;
|
|
st,bank-name = "GPIOZ";
|
|
st,bank-ioport = <11>;
|
|
- ngpios = <8>;
|
|
- gpio-ranges = <&pinctrl_z 0 400 8>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ btreg: bt_reg_on-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('Z', 6, GPIO)>;
|
|
+ drive-push-pull;
|
|
+ bias-pull-up;
|
|
+ output-high;
|
|
+ slew-rate = <0>;
|
|
+ };
|
|
};
|
|
|
|
i2c4_pins_a: i2c4-0 {
|
|
@@ -360,6 +1576,36 @@
|
|
slew-rate = <0>;
|
|
};
|
|
};
|
|
+
|
|
+ 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 */
|
|
+ <STM32_PINMUX('Z', 2, AF5)>; /* SPI1_MOSI */
|
|
+ bias-disable;
|
|
+ drive-push-pull;
|
|
+ slew-rate = <1>;
|
|
+ };
|
|
+
|
|
+ pins2 {
|
|
+ pinmux = <STM32_PINMUX('Z', 1, AF5)>; /* SPI1_MISO */
|
|
+ bias-disable;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ spi1_sleep_pins_a: spi1-sleep-0 {
|
|
+ pins {
|
|
+ pinmux = <STM32_PINMUX('Z', 0, ANALOG)>, /* SPI1_SCK */
|
|
+ <STM32_PINMUX('Z', 1, ANALOG)>, /* SPI1_MISO */
|
|
+ <STM32_PINMUX('Z', 2, ANALOG)>; /* SPI1_MOSI */
|
|
+ };
|
|
+ };
|
|
};
|
|
};
|
|
};
|
|
diff --git a/arch/arm/dts/stm32mp157-u-boot.dtsi b/arch/arm/dts/stm32mp157-u-boot.dtsi
|
|
index 90d13f3..035b1c6 100644
|
|
--- a/arch/arm/dts/stm32mp157-u-boot.dtsi
|
|
+++ b/arch/arm/dts/stm32mp157-u-boot.dtsi
|
|
@@ -17,19 +17,31 @@
|
|
gpio9 = &gpioj;
|
|
gpio10 = &gpiok;
|
|
gpio25 = &gpioz;
|
|
+ pinctrl0 = &pinctrl;
|
|
+ pinctrl1 = &pinctrl_z;
|
|
+ };
|
|
+
|
|
+ clocks {
|
|
+ u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
config {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
- clocks {
|
|
+ reboot {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
soc {
|
|
u-boot,dm-pre-reloc;
|
|
|
|
+ etzpc: etzpc@5C007000 {
|
|
+ compatible = "st,stm32mp1-etzpc";
|
|
+ reg = <0x5C007000 0x400>;
|
|
+ status = "okay";
|
|
+ };
|
|
+
|
|
stgen: stgen@5C008000 {
|
|
compatible = "st,stm32-stgen";
|
|
reg = <0x5C008000 0x1000>;
|
|
@@ -39,19 +51,7 @@
|
|
};
|
|
};
|
|
|
|
-&clk_hsi {
|
|
- u-boot,dm-pre-reloc;
|
|
-};
|
|
-
|
|
-&clk_hse {
|
|
- u-boot,dm-pre-reloc;
|
|
-};
|
|
-
|
|
-&clk_lse {
|
|
- u-boot,dm-pre-reloc;
|
|
-};
|
|
-
|
|
-&clk_lsi {
|
|
+&bsec {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
@@ -59,19 +59,19 @@
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
-&rcc {
|
|
+&clk_hsi {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
-&rcc_reboot {
|
|
+&clk_hse {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
-&pinctrl {
|
|
+&clk_lsi {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
-&pinctrl_z {
|
|
+&clk_lse {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
@@ -134,3 +134,40 @@
|
|
compatible = "st,stm32-gpio";
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
+
|
|
+&iwdg2 {
|
|
+ u-boot,dm-pre-reloc;
|
|
+};
|
|
+
|
|
+/* pre-reloc probe = reserve video frame buffer in video_reserve() */
|
|
+<dc {
|
|
+ u-boot,dm-pre-reloc;
|
|
+};
|
|
+
|
|
+&pinctrl {
|
|
+ u-boot,dm-pre-reloc;
|
|
+};
|
|
+
|
|
+&pinctrl_z {
|
|
+ u-boot,dm-pre-reloc;
|
|
+};
|
|
+
|
|
+&pwr {
|
|
+ u-boot,dm-pre-reloc;
|
|
+};
|
|
+
|
|
+&rcc {
|
|
+ u-boot,dm-pre-reloc;
|
|
+};
|
|
+
|
|
+&sdmmc1 {
|
|
+ compatible = "st,stm32-sdmmc2";
|
|
+};
|
|
+
|
|
+&sdmmc2 {
|
|
+ compatible = "st,stm32-sdmmc2";
|
|
+};
|
|
+
|
|
+&sdmmc3 {
|
|
+ compatible = "st,stm32-sdmmc2";
|
|
+};
|
|
diff --git a/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi b/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi
|
|
new file mode 100644
|
|
index 0000000..0f9ed9f
|
|
--- /dev/null
|
|
+++ b/arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi
|
|
@@ -0,0 +1,190 @@
|
|
+// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
|
|
+/*
|
|
+ * Copyright : STMicroelectronics 2018
|
|
+ */
|
|
+
|
|
+#include <dt-bindings/clock/stm32mp1-clksrc.h>
|
|
+#include "stm32mp157-u-boot.dtsi"
|
|
+#include "stm32mp15-ddr3-1x4Gb-1066-binG.dtsi"
|
|
+
|
|
+/ {
|
|
+ aliases {
|
|
+ i2c3 = &i2c4;
|
|
+ mmc0 = &sdmmc1;
|
|
+ };
|
|
+ config {
|
|
+ u-boot,boot-led = "heartbeat";
|
|
+ u-boot,error-led = "error";
|
|
+ st,adc_usb_pd = <&adc1 18>, <&adc1 19>;
|
|
+ st,fastboot-gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
|
|
+ st,stm32prog-gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+ led {
|
|
+ red {
|
|
+ label = "error";
|
|
+ gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
|
|
+ default-state = "off";
|
|
+ status = "okay";
|
|
+ };
|
|
+
|
|
+ blue {
|
|
+ default-state = "on";
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&clk_hse {
|
|
+ st,digbypass;
|
|
+};
|
|
+
|
|
+&i2c4 {
|
|
+ u-boot,dm-pre-reloc;
|
|
+
|
|
+ stusb1600: typec@28 {
|
|
+ #extcon-cells = <0>;
|
|
+ compatible = "st,stusb1600";
|
|
+ reg = <0x28>;
|
|
+ status = "okay";
|
|
+ };
|
|
+};
|
|
+
|
|
+&i2c4_pins_a {
|
|
+ u-boot,dm-pre-reloc;
|
|
+ pins {
|
|
+ u-boot,dm-pre-reloc;
|
|
+ };
|
|
+};
|
|
+
|
|
+&pmic {
|
|
+ u-boot,dm-pre-reloc;
|
|
+};
|
|
+
|
|
+&rcc {
|
|
+ st,clksrc = <
|
|
+ CLK_MPU_PLL1P
|
|
+ CLK_AXI_PLL2P
|
|
+ CLK_MCU_PLL3P
|
|
+ CLK_PLL12_HSE
|
|
+ CLK_PLL3_HSE
|
|
+ CLK_PLL4_HSE
|
|
+ CLK_RTC_LSE
|
|
+ CLK_MCO1_DISABLED
|
|
+ CLK_MCO2_DISABLED
|
|
+ >;
|
|
+
|
|
+ st,clkdiv = <
|
|
+ 1 /*MPU*/
|
|
+ 0 /*AXI*/
|
|
+ 0 /*MCU*/
|
|
+ 1 /*APB1*/
|
|
+ 1 /*APB2*/
|
|
+ 1 /*APB3*/
|
|
+ 1 /*APB4*/
|
|
+ 2 /*APB5*/
|
|
+ 23 /*RTC*/
|
|
+ 0 /*MCO1*/
|
|
+ 0 /*MCO2*/
|
|
+ >;
|
|
+
|
|
+ st,pkcs = <
|
|
+ CLK_CKPER_HSE
|
|
+ CLK_FMC_ACLK
|
|
+ CLK_QSPI_ACLK
|
|
+ CLK_ETH_DISABLED
|
|
+ CLK_SDMMC12_PLL4P
|
|
+ CLK_DSI_DSIPLL
|
|
+ CLK_STGEN_HSE
|
|
+ CLK_USBPHY_HSE
|
|
+ CLK_SPI2S1_PLL3Q
|
|
+ CLK_SPI2S23_PLL3Q
|
|
+ CLK_SPI45_HSI
|
|
+ CLK_SPI6_HSI
|
|
+ CLK_I2C46_HSI
|
|
+ CLK_SDMMC3_PLL4P
|
|
+ CLK_USBO_USBPHY
|
|
+ CLK_ADC_CKPER
|
|
+ CLK_CEC_LSE
|
|
+ CLK_I2C12_HSI
|
|
+ CLK_I2C35_HSI
|
|
+ CLK_UART1_HSI
|
|
+ CLK_UART24_HSI
|
|
+ CLK_UART35_HSI
|
|
+ CLK_UART6_HSI
|
|
+ CLK_UART78_HSI
|
|
+ CLK_SPDIF_PLL4P
|
|
+ CLK_FDCAN_PLL4Q
|
|
+ CLK_SAI1_PLL3Q
|
|
+ CLK_SAI2_PLL3Q
|
|
+ CLK_SAI3_PLL3Q
|
|
+ CLK_SAI4_PLL3Q
|
|
+ CLK_RNG1_LSI
|
|
+ CLK_RNG2_LSI
|
|
+ CLK_LPTIM1_PCLK1
|
|
+ CLK_LPTIM23_PCLK3
|
|
+ CLK_LPTIM45_LSE
|
|
+ >;
|
|
+
|
|
+ /* VCO = 1300.0 MHz => P = 650 (CPU) */
|
|
+ pll1: st,pll@0 {
|
|
+ cfg = < 2 80 0 0 0 PQR(1,0,0) >;
|
|
+ frac = < 0x800 >;
|
|
+ u-boot,dm-pre-reloc;
|
|
+ };
|
|
+
|
|
+ /* VCO = 1066.0 MHz => P = 266 (AXI), Q = 533 (GPU), R = 533 (DDR) */
|
|
+ pll2: st,pll@1 {
|
|
+ cfg = < 2 65 1 0 0 PQR(1,1,1) >;
|
|
+ frac = < 0x1400 >;
|
|
+ u-boot,dm-pre-reloc;
|
|
+ };
|
|
+
|
|
+ /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
|
|
+ pll3: st,pll@2 {
|
|
+ cfg = < 1 33 1 16 36 PQR(1,1,1) >;
|
|
+ frac = < 0x1a04 >;
|
|
+ u-boot,dm-pre-reloc;
|
|
+ };
|
|
+
|
|
+ /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */
|
|
+ pll4: st,pll@3 {
|
|
+ cfg = < 3 98 5 7 7 PQR(1,1,1) >;
|
|
+ u-boot,dm-pre-reloc;
|
|
+ };
|
|
+};
|
|
+
|
|
+&sdmmc1 {
|
|
+ u-boot,dm-spl;
|
|
+};
|
|
+
|
|
+&sdmmc1_b4_pins_a {
|
|
+ u-boot,dm-spl;
|
|
+ pins1 {
|
|
+ u-boot,dm-spl;
|
|
+ };
|
|
+ pins2 {
|
|
+ u-boot,dm-spl;
|
|
+ };
|
|
+};
|
|
+
|
|
+&uart4 {
|
|
+ u-boot,dm-pre-reloc;
|
|
+};
|
|
+
|
|
+&uart4_pins_a {
|
|
+ u-boot,dm-pre-reloc;
|
|
+ pins1 {
|
|
+ u-boot,dm-pre-reloc;
|
|
+ };
|
|
+ pins2 {
|
|
+ u-boot,dm-pre-reloc;
|
|
+ };
|
|
+};
|
|
+
|
|
+&usbotg_hs {
|
|
+ usb1600;
|
|
+ hnp-srp-disable;
|
|
+};
|
|
+
|
|
+&v3v3 {
|
|
+ regulator-always-on;
|
|
+};
|
|
diff --git a/arch/arm/dts/stm32mp157a-dk1.dts b/arch/arm/dts/stm32mp157a-dk1.dts
|
|
new file mode 100644
|
|
index 0000000..e3d305a
|
|
--- /dev/null
|
|
+++ b/arch/arm/dts/stm32mp157a-dk1.dts
|
|
@@ -0,0 +1,700 @@
|
|
+// 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 "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";
|
|
+
|
|
+ aliases {
|
|
+ ethernet0 = ðernet0;
|
|
+ serial0 = &uart4;
|
|
+ };
|
|
+
|
|
+ chosen {
|
|
+ stdout-path = "serial0:115200n8";
|
|
+ };
|
|
+
|
|
+ memory@c0000000 {
|
|
+ reg = <0xc0000000 0x20000000>;
|
|
+ };
|
|
+
|
|
+ reserved-memory {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ranges;
|
|
+
|
|
+ retram: retram@0x38000000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x38000000 0x10000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
+ mcuram: mcuram@0x30000000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x30000000 0x40000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
+ mcuram2: mcuram2@0x10000000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x10000000 0x40000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
+ vdev0vring0: vdev0vring0@10040000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x10040000 0x2000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
+ vdev0vring1: vdev0vring1@10042000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x10042000 0x2000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
+ vdev0buffer: vdev0buffer@10044000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x10044000 0x4000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
+ gpu_reserved: gpu@dc000000 {
|
|
+ reg = <0xdc000000 0x4000000>;
|
|
+ no-map;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sound {
|
|
+ compatible = "audio-graph-card";
|
|
+ label = "STM32MP1-DK";
|
|
+ routing =
|
|
+ "Playback" , "MCLK",
|
|
+ "Capture" , "MCLK",
|
|
+ "MICL" , "Mic Bias";
|
|
+ dais = <&sai2a_port &sai2b_port &i2s2_port>;
|
|
+ status = "okay";
|
|
+ };
|
|
+
|
|
+ usb_phy_tuning: usb-phy-tuning {
|
|
+ st,hs-dc-level = <2>;
|
|
+ st,fs-rftime-tuning;
|
|
+ st,hs-rftime-reduction;
|
|
+ st,hs-current-trim = <15>;
|
|
+ st,hs-impedance-trim = <1>;
|
|
+ st,squelch-level = <3>;
|
|
+ st,hs-rx-offset = <2>;
|
|
+ st,no-lsfs-sc;
|
|
+ };
|
|
+};
|
|
+
|
|
+&adc {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&adc12_usb_pwr_pins_a>;
|
|
+ vdd-supply = <&vdd>;
|
|
+ vdda-supply = <&vdd>;
|
|
+ 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";
|
|
+ };
|
|
+};
|
|
+
|
|
+&cec {
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&cec_pins_b>;
|
|
+ pinctrl-1 = <&cec_pins_sleep_b>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&dma1 {
|
|
+ sram = <&dma_pool>;
|
|
+};
|
|
+
|
|
+&dma2 {
|
|
+ sram = <&dma_pool>;
|
|
+};
|
|
+
|
|
+&dts {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+ðernet0 {
|
|
+ status = "okay";
|
|
+ pinctrl-0 = <ðernet0_rgmii_pins_a>;
|
|
+ pinctrl-1 = <ðernet0_rgmii_pins_sleep_a>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ phy-mode = "rgmii";
|
|
+ max-speed = <1000>;
|
|
+ phy-handle = <&phy0>;
|
|
+
|
|
+ mdio0 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ compatible = "snps,dwmac-mdio";
|
|
+ phy0: ethernet-phy@0 {
|
|
+ reg = <0>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&gpu {
|
|
+ contiguous-area = <&gpu_reserved>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&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;
|
|
+
|
|
+ cs42l51: cs42l51@4a {
|
|
+ compatible = "cirrus,cs42l51";
|
|
+ reg = <0x4a>;
|
|
+ #sound-dai-cells = <0>;
|
|
+ status = "okay";
|
|
+
|
|
+ VL-supply = <&v3v3>;
|
|
+ VD-supply = <&v1v8_audio>;
|
|
+ VA-supply = <&v1v8_audio>;
|
|
+ VAHP-supply = <&v1v8_audio>;
|
|
+
|
|
+ reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;
|
|
+
|
|
+ clocks = <&sai2a>;
|
|
+ clock-names = "MCLK";
|
|
+
|
|
+ cs42l51_port: port {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ cs42l51_tx_endpoint: endpoint@0 {
|
|
+ reg = <0>;
|
|
+ remote-endpoint = <&sai2a_endpoint>;
|
|
+ frame-master;
|
|
+ bitclock-master;
|
|
+ };
|
|
+
|
|
+ cs42l51_rx_endpoint: endpoint@1 {
|
|
+ reg = <1>;
|
|
+ remote-endpoint = <&sai2b_endpoint>;
|
|
+ frame-master;
|
|
+ bitclock-master;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdmi-transmitter@39 {
|
|
+ compatible = "sil,sii9022";
|
|
+ reg = <0x39>;
|
|
+ iovcc-supply = <&v3v3_hdmi>;
|
|
+ cvcc12-supply = <&v1v2_hdmi>;
|
|
+ reset-gpios = <&gpioa 10 GPIO_ACTIVE_LOW>;
|
|
+ interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
|
|
+ interrupt-parent = <&gpiog>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <<dc_pins_a>;
|
|
+ pinctrl-1 = <<dc_pins_sleep_a>;
|
|
+ status = "okay";
|
|
+
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ port@0 {
|
|
+ reg = <0>;
|
|
+ sii9022_in: endpoint {
|
|
+ remote-endpoint = <<dc_ep0_out>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ port@1 {
|
|
+ reg = <1>;
|
|
+ sii9022_tx_endpoint: endpoint {
|
|
+ remote-endpoint = <&i2s2_endpoint>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&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 = <&exti_pwr 55 IRQ_TYPE_EDGE_FALLING>;
|
|
+ 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 = <0>;
|
|
+ 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 = <0>;
|
|
+ };
|
|
+
|
|
+ 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";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&i2s2 {
|
|
+ clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
|
|
+ clock-names = "pclk", "i2sclk", "x8k", "x11k";
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&i2s2_pins_a>;
|
|
+ pinctrl-1 = <&i2s2_pins_sleep_a>;
|
|
+ status = "okay";
|
|
+
|
|
+ i2s2_port: port {
|
|
+ i2s2_endpoint: endpoint {
|
|
+ remote-endpoint = <&sii9022_tx_endpoint>;
|
|
+ format = "i2s";
|
|
+ mclk-fs = <256>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&ipcc {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&iwdg2 {
|
|
+ timeout-sec = <32>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+<dc {
|
|
+ status = "okay";
|
|
+
|
|
+ port {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ ltdc_ep0_out: endpoint@0 {
|
|
+ reg = <0>;
|
|
+ remote-endpoint = <&sii9022_in>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&m4_rproc {
|
|
+ memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
|
|
+ <&vdev0vring1>, <&vdev0buffer>;
|
|
+ mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
|
|
+ mbox-names = "vq0", "vq1", "shutdown";
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <68 1>;
|
|
+ interrupt-names = "wdg";
|
|
+ recovery;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&pwr {
|
|
+ pwr-supply = <&vdd>;
|
|
+};
|
|
+
|
|
+&rng1 {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&rtc {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&sai2 {
|
|
+ clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
|
|
+ clock-names = "pclk", "x8k", "x11k";
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&sai2a_pins_a>, <&sai2b_pins_b>;
|
|
+ pinctrl-1 = <&sai2a_sleep_pins_a>, <&sai2b_sleep_pins_b>;
|
|
+ status = "okay";
|
|
+
|
|
+ sai2a: audio-controller@4400b004 {
|
|
+ #clock-cells = <0>;
|
|
+ dma-names = "tx";
|
|
+ clocks = <&rcc SAI2_K>;
|
|
+ clock-names = "sai_ck";
|
|
+ status = "okay";
|
|
+
|
|
+ sai2a_port: port {
|
|
+ sai2a_endpoint: endpoint {
|
|
+ remote-endpoint = <&cs42l51_tx_endpoint>;
|
|
+ format = "i2s";
|
|
+ mclk-fs = <256>;
|
|
+ dai-tdm-slot-num = <2>;
|
|
+ dai-tdm-slot-width = <32>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sai2b: audio-controller@4400b024 {
|
|
+ dma-names = "rx";
|
|
+ st,sync = <&sai2a 2>;
|
|
+ status = "okay";
|
|
+ clocks = <&rcc SAI2_K>, <&sai2a>;
|
|
+ clock-names = "sai_ck", "MCLK";
|
|
+
|
|
+ sai2b_port: port {
|
|
+ sai2b_endpoint: endpoint {
|
|
+ remote-endpoint = <&cs42l51_rx_endpoint>;
|
|
+ format = "i2s";
|
|
+ mclk-fs = <256>;
|
|
+ dai-tdm-slot-num = <2>;
|
|
+ dai-tdm-slot-width = <32>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&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,neg-edge;
|
|
+ bus-width = <4>;
|
|
+ vmmc-supply = <&v3v3>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&spi4 {
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&spi4_pins_a>;
|
|
+ pinctrl-1 = <&spi4_sleep_pins_a>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+&spi5 {
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&spi5_pins_a>;
|
|
+ pinctrl-1 = <&spi5_sleep_pins_a>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+&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";
|
|
+};
|
|
+
|
|
+&usart3 {
|
|
+ pinctrl-names = "default", "sleep", "idle";
|
|
+ pinctrl-0 = <&usart3_pins_b>;
|
|
+ pinctrl-1 = <&usart3_sleep_pins_b>;
|
|
+ pinctrl-2 = <&usart3_idle_pins_b>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+&usbh_ehci {
|
|
+ phys = <&usbphyc_port0>;
|
|
+ phy-names = "usb";
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&usbotg_hs {
|
|
+ dr_mode = "peripheral";
|
|
+ force-b-session-valid;
|
|
+ phys = <&usbphyc_port1 0>;
|
|
+ phy-names = "usb2-phy";
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&usbphyc {
|
|
+ vdd3v3-supply = <&vdd_usb>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&usbphyc_port0 {
|
|
+ st,phy-tuning = <&usb_phy_tuning>;
|
|
+};
|
|
+
|
|
+&usbphyc_port1 {
|
|
+ st,phy-tuning = <&usb_phy_tuning>;
|
|
+};
|
|
+
|
|
+&vrefbuf {
|
|
+ regulator-min-microvolt = <2500000>;
|
|
+ regulator-max-microvolt = <2500000>;
|
|
+ vdda-supply = <&vdd>;
|
|
+ status = "okay";
|
|
+};
|
|
diff --git a/arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi b/arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi
|
|
new file mode 100644
|
|
index 0000000..06ef3a4
|
|
--- /dev/null
|
|
+++ b/arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi
|
|
@@ -0,0 +1,6 @@
|
|
+// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
|
|
+/*
|
|
+ * Copyright : STMicroelectronics 2018
|
|
+ */
|
|
+
|
|
+#include "stm32mp157a-dk1-u-boot.dtsi"
|
|
diff --git a/arch/arm/dts/stm32mp157c-dk2.dts b/arch/arm/dts/stm32mp157c-dk2.dts
|
|
new file mode 100644
|
|
index 0000000..c276c59
|
|
--- /dev/null
|
|
+++ b/arch/arm/dts/stm32mp157c-dk2.dts
|
|
@@ -0,0 +1,144 @@
|
|
+// 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";
|
|
+
|
|
+ aliases {
|
|
+ serial1 = &usart2;
|
|
+ };
|
|
+
|
|
+ wifi_pwrseq: wifi-pwrseq {
|
|
+ compatible = "mmc-pwrseq-simple";
|
|
+ reset-gpios = <&gpioh 4 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&dsi {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ status = "okay";
|
|
+
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ port@0 {
|
|
+ reg = <0>;
|
|
+ dsi_in: endpoint {
|
|
+ remote-endpoint = <<dc_ep1_out>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ port@1 {
|
|
+ reg = <1>;
|
|
+ dsi_out: endpoint {
|
|
+ remote-endpoint = <&panel_in>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ panel@0 {
|
|
+ compatible = "orisetech,otm8009a";
|
|
+ reg = <0>;
|
|
+ reset-gpios = <&gpioe 4 GPIO_ACTIVE_LOW>;
|
|
+ status = "okay";
|
|
+
|
|
+ port {
|
|
+ panel_in: endpoint {
|
|
+ remote-endpoint = <&dsi_out>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&i2c1 {
|
|
+ touchscreen@2a {
|
|
+ compatible = "focaltech,ft6236";
|
|
+ reg = <0x2a>;
|
|
+ interrupts = <2 2>;
|
|
+ interrupt-parent = <&gpiof>;
|
|
+ interrupt-controller;
|
|
+ touchscreen-size-x = <480>;
|
|
+ touchscreen-size-y = <800>;
|
|
+ status = "okay";
|
|
+ };
|
|
+ touchscreen@38 {
|
|
+ compatible = "focaltech,ft6336";
|
|
+ reg = <0x38>;
|
|
+ interrupts = <2 2>;
|
|
+ interrupt-parent = <&gpiof>;
|
|
+ interrupt-controller;
|
|
+ touchscreen-size-x = <480>;
|
|
+ touchscreen-size-y = <800>;
|
|
+ status = "okay";
|
|
+ };
|
|
+};
|
|
+
|
|
+<dc {
|
|
+ status = "okay";
|
|
+
|
|
+ port {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ ltdc_ep1_out: endpoint@1 {
|
|
+ reg = <1>;
|
|
+ remote-endpoint = <&dsi_in>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&rtc {
|
|
+ st,lsco = <RTC_OUT2_RMP>;
|
|
+ pinctrl-0 = <&rtc_out2_rmp_pins_a>;
|
|
+ pinctrl-names = "default";
|
|
+};
|
|
+
|
|
+/* Wifi */
|
|
+&sdmmc2 {
|
|
+ pinctrl-names = "default", "opendrain", "sleep";
|
|
+ pinctrl-0 = <&sdmmc2_b4_pins_a>;
|
|
+ pinctrl-1 = <&sdmmc2_b4_od_pins_a>;
|
|
+ pinctrl-2 = <&sdmmc2_b4_sleep_pins_a>;
|
|
+ non-removable;
|
|
+ st,neg-edge;
|
|
+ bus-width = <4>;
|
|
+ vmmc-supply = <&v3v3>;
|
|
+ mmc-pwrseq = <&wifi_pwrseq>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ keep-power-in-suspend;
|
|
+ status = "okay";
|
|
+
|
|
+ brcmf: bcrmf@1 {
|
|
+ reg = <1>;
|
|
+ compatible = "brcm,bcm4329-fmac";
|
|
+ };
|
|
+};
|
|
+
|
|
+/* Bluetooth */
|
|
+&usart2 {
|
|
+ pinctrl-names = "default", "sleep", "idle";
|
|
+ pinctrl-0 = <&usart2_pins_a>;
|
|
+ pinctrl-1 = <&usart2_sleep_pins_a>;
|
|
+ pinctrl-2 = <&usart2_idle_pins_a>;
|
|
+ st,hw-flow-ctrl;
|
|
+ status = "okay";
|
|
+
|
|
+ bluetooth {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&btreg>;
|
|
+ compatible = "brcm,bcm43438-bt";
|
|
+ max-speed = <3000000>;
|
|
+ };
|
|
+};
|
|
diff --git a/arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi b/arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
|
|
index 4898483..b6bf6f1 100644
|
|
--- a/arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
|
|
+++ b/arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
|
|
@@ -9,44 +9,30 @@
|
|
|
|
/ {
|
|
aliases {
|
|
+ i2c3 = &i2c4;
|
|
mmc0 = &sdmmc1;
|
|
mmc1 = &sdmmc2;
|
|
- i2c3 = &i2c4;
|
|
};
|
|
|
|
- led {
|
|
- compatible = "gpio-leds";
|
|
+ config {
|
|
+ u-boot,boot-led = "heartbeat";
|
|
+ st,fastboot-gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
|
|
+ st,stm32prog-gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
|
|
- red {
|
|
- label = "stm32mp:red:status";
|
|
- gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
|
|
- default-state = "off";
|
|
- };
|
|
- green {
|
|
- label = "stm32mp:green:user";
|
|
- gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
|
|
- default-state = "on";
|
|
- };
|
|
- orange {
|
|
- label = "stm32mp:orange:status";
|
|
- gpios = <&gpioh 7 GPIO_ACTIVE_HIGH>;
|
|
- default-state = "off";
|
|
- };
|
|
+ led {
|
|
blue {
|
|
- label = "stm32mp:blue:user";
|
|
- gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
|
|
+ default-state = "on";
|
|
};
|
|
};
|
|
};
|
|
|
|
-&uart4_pins_a {
|
|
+&clk_hse {
|
|
+ st,digbypass;
|
|
+};
|
|
+
|
|
+&i2c4 {
|
|
u-boot,dm-pre-reloc;
|
|
- pins1 {
|
|
- u-boot,dm-pre-reloc;
|
|
- };
|
|
- pins2 {
|
|
- u-boot,dm-pre-reloc;
|
|
- };
|
|
};
|
|
|
|
&i2c4_pins_a {
|
|
@@ -56,19 +42,10 @@
|
|
};
|
|
};
|
|
|
|
-&uart4 {
|
|
- u-boot,dm-pre-reloc;
|
|
-};
|
|
-
|
|
-&i2c4 {
|
|
- u-boot,dm-pre-reloc;
|
|
-};
|
|
-
|
|
&pmic {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
-/* CLOCK init */
|
|
&rcc {
|
|
st,clksrc = <
|
|
CLK_MPU_PLL1P
|
|
@@ -101,7 +78,7 @@
|
|
CLK_FMC_ACLK
|
|
CLK_QSPI_ACLK
|
|
CLK_ETH_DISABLED
|
|
- CLK_SDMMC12_PLL3R
|
|
+ CLK_SDMMC12_PLL4P
|
|
CLK_DSI_DSIPLL
|
|
CLK_STGEN_HSE
|
|
CLK_USBPHY_HSE
|
|
@@ -110,7 +87,7 @@
|
|
CLK_SPI45_HSI
|
|
CLK_SPI6_HSI
|
|
CLK_I2C46_HSI
|
|
- CLK_SDMMC3_PLL3R
|
|
+ CLK_SDMMC3_PLL4P
|
|
CLK_USBO_USBPHY
|
|
CLK_ADC_CKPER
|
|
CLK_CEC_LSE
|
|
@@ -121,17 +98,17 @@
|
|
CLK_UART35_HSI
|
|
CLK_UART6_HSI
|
|
CLK_UART78_HSI
|
|
- CLK_SPDIF_PLL3Q
|
|
+ CLK_SPDIF_PLL4P
|
|
CLK_FDCAN_PLL4Q
|
|
CLK_SAI1_PLL3Q
|
|
CLK_SAI2_PLL3Q
|
|
CLK_SAI3_PLL3Q
|
|
CLK_SAI4_PLL3Q
|
|
- CLK_RNG1_CSI
|
|
- CLK_RNG2_CSI
|
|
+ CLK_RNG1_LSI
|
|
+ CLK_RNG2_LSI
|
|
CLK_LPTIM1_PCLK1
|
|
CLK_LPTIM23_PCLK3
|
|
- CLK_LPTIM45_PCLK3
|
|
+ CLK_LPTIM45_LSE
|
|
>;
|
|
|
|
/* VCO = 1300.0 MHz => P = 650 (CPU) */
|
|
@@ -148,44 +125,54 @@
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
- /* VCO = 786.4 MHz => P = 197, Q = 49, R = 98 */
|
|
+ /* VCO = 417.8 MHz => P = 209, Q = 24, R = 11 */
|
|
pll3: st,pll@2 {
|
|
- cfg = < 2 97 3 15 7 PQR(1,1,1) >;
|
|
- frac = < 0x9ba >;
|
|
+ cfg = < 1 33 1 16 36 PQR(1,1,1) >;
|
|
+ frac = < 0x1a04 >;
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
- /* VCO = 508.0 MHz => P = 56, Q = 56, R = 56 */
|
|
+ /* VCO = 594.0 MHz => P = 99, Q = 74, R = 74 */
|
|
pll4: st,pll@3 {
|
|
- cfg = < 5 126 8 8 8 PQR(1,1,1) >;
|
|
+ cfg = < 3 98 5 7 7 PQR(1,1,1) >;
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
};
|
|
|
|
-/* SPL part **************************************/
|
|
-/* MMC1 boot */
|
|
+&sdmmc1 {
|
|
+ u-boot,dm-spl;
|
|
+};
|
|
+
|
|
&sdmmc1_b4_pins_a {
|
|
u-boot,dm-spl;
|
|
- pins {
|
|
+ pins1 {
|
|
+ u-boot,dm-spl;
|
|
+ };
|
|
+ pins2 {
|
|
u-boot,dm-spl;
|
|
};
|
|
};
|
|
|
|
&sdmmc1_dir_pins_a {
|
|
u-boot,dm-spl;
|
|
- pins {
|
|
+ pins1 {
|
|
+ u-boot,dm-spl;
|
|
+ };
|
|
+ pins2 {
|
|
u-boot,dm-spl;
|
|
};
|
|
};
|
|
|
|
-&sdmmc1 {
|
|
+&sdmmc2 {
|
|
u-boot,dm-spl;
|
|
};
|
|
|
|
-/* MMC2 boot */
|
|
&sdmmc2_b4_pins_a {
|
|
u-boot,dm-spl;
|
|
- pins {
|
|
+ pins1 {
|
|
+ u-boot,dm-spl;
|
|
+ };
|
|
+ pins2 {
|
|
u-boot,dm-spl;
|
|
};
|
|
};
|
|
@@ -197,6 +184,16 @@
|
|
};
|
|
};
|
|
|
|
-&sdmmc2 {
|
|
- u-boot,dm-spl;
|
|
+&uart4 {
|
|
+ u-boot,dm-pre-reloc;
|
|
+};
|
|
+
|
|
+&uart4_pins_a {
|
|
+ u-boot,dm-pre-reloc;
|
|
+ pins1 {
|
|
+ u-boot,dm-pre-reloc;
|
|
+ };
|
|
+ pins2 {
|
|
+ u-boot,dm-pre-reloc;
|
|
+ };
|
|
};
|
|
diff --git a/arch/arm/dts/stm32mp157c-ed1.dts b/arch/arm/dts/stm32mp157c-ed1.dts
|
|
index f8b7701..37edf87 100644
|
|
--- a/arch/arm/dts/stm32mp157c-ed1.dts
|
|
+++ b/arch/arm/dts/stm32mp157c-ed1.dts
|
|
@@ -6,22 +6,96 @@
|
|
/dts-v1/;
|
|
|
|
#include "stm32mp157c.dtsi"
|
|
-#include "stm32mp157-pinctrl.dtsi"
|
|
+#include "stm32mp157caa-pinctrl.dtsi"
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
-#include <dt-bindings/mfd/st,stpmu1.h>
|
|
+#include <dt-bindings/mfd/st,stpmic1.h>
|
|
|
|
/ {
|
|
model = "STMicroelectronics STM32MP157C eval daughter";
|
|
compatible = "st,stm32mp157c-ed1", "st,stm32mp157";
|
|
|
|
chosen {
|
|
- stdout-path = "serial3:115200n8";
|
|
+ stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
memory@c0000000 {
|
|
reg = <0xC0000000 0x40000000>;
|
|
};
|
|
|
|
+ reserved-memory {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ranges;
|
|
+
|
|
+ retram: retram@0x38000000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x38000000 0x10000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
+ mcuram: mcuram@0x30000000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x30000000 0x40000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
+ mcuram2: mcuram2@0x10000000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x10000000 0x40000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
+ vdev0vring0: vdev0vring0@10040000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x10040000 0x2000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
+ vdev0vring1: vdev0vring1@10042000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x10042000 0x2000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
+ vdev0buffer: vdev0buffer@10044000 {
|
|
+ compatible = "shared-dma-pool";
|
|
+ reg = <0x10044000 0x4000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
+ gpu_reserved: gpu@f8000000 {
|
|
+ reg = <0xf8000000 0x8000000>;
|
|
+ no-map;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ aliases {
|
|
+ serial0 = &uart4;
|
|
+ };
|
|
+
|
|
+ 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 9 GPIO_ACTIVE_HIGH>;
|
|
+ linux,default-trigger = "heartbeat";
|
|
+ default-state = "off";
|
|
+ };
|
|
+ };
|
|
+
|
|
sd_switch: regulator-sd_switch {
|
|
compatible = "regulator-gpio";
|
|
regulator-name = "sd_switch";
|
|
@@ -36,39 +110,87 @@
|
|
};
|
|
};
|
|
|
|
-&rng1 {
|
|
+&adc {
|
|
+ /* ANA0, ANA1 are dedicated pins and don't need pinctrl: only in6. */
|
|
+ vdd-supply = <&vdd>;
|
|
+ vdda-supply = <&vdda>;
|
|
+ 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";
|
|
+ };
|
|
};
|
|
|
|
-&timers6 {
|
|
+&dac {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&dac_ch1_pins_a &dac_ch2_pins_a>;
|
|
+ vref-supply = <&vdda>;
|
|
status = "okay";
|
|
- timer@5 {
|
|
+ dac1: dac@1 {
|
|
status = "okay";
|
|
};
|
|
+ dac2: dac@2 {
|
|
+ status = "okay";
|
|
+ };
|
|
+};
|
|
+
|
|
+&dma1 {
|
|
+ sram = <&dma_pool>;
|
|
+};
|
|
+
|
|
+&dma2 {
|
|
+ sram = <&dma_pool>;
|
|
+};
|
|
+
|
|
+&dts {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&gpu {
|
|
+ contiguous-area = <&gpu_reserved>;
|
|
+ status = "okay";
|
|
};
|
|
|
|
&i2c4 {
|
|
- pinctrl-names = "default";
|
|
+ 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: stpmu1@33 {
|
|
- compatible = "st,stpmu1";
|
|
+ pmic: stpmic@33 {
|
|
+ compatible = "st,stpmic1";
|
|
reg = <0x33>;
|
|
- interrupts = <0 2>;
|
|
- interrupt-parent = <&gpioa>;
|
|
+ interrupts-extended = <&exti_pwr 55 IRQ_TYPE_EDGE_FALLING>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <2>;
|
|
status = "okay";
|
|
|
|
- st,main_control_register = <0x04>;
|
|
- st,vin_control_register = <0xc0>;
|
|
- st,usb_control_register = <0x30>;
|
|
+ st,main-control-register = <0x04>;
|
|
+ st,vin-control-register = <0xc0>;
|
|
+ st,usb-control-register = <0x30>;
|
|
|
|
regulators {
|
|
- compatible = "st,stpmu1-regulators";
|
|
+ compatible = "st,stpmic1-regulators";
|
|
|
|
ldo1-supply = <&v3v3>;
|
|
ldo2-supply = <&v3v3>;
|
|
@@ -83,20 +205,8 @@
|
|
regulator-min-microvolt = <800000>;
|
|
regulator-max-microvolt = <1350000>;
|
|
regulator-always-on;
|
|
- regulator-initial-mode = <2>;
|
|
+ regulator-initial-mode = <0>;
|
|
regulator-over-current-protection;
|
|
-
|
|
- regulator-state-standby {
|
|
- regulator-on-in-suspend;
|
|
- regulator-suspend-microvolt = <1200000>;
|
|
- regulator-mode = <8>;
|
|
- };
|
|
- regulator-state-mem {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
- regulator-state-disk {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
};
|
|
|
|
vdd_ddr: buck2 {
|
|
@@ -104,22 +214,8 @@
|
|
regulator-min-microvolt = <1350000>;
|
|
regulator-max-microvolt = <1350000>;
|
|
regulator-always-on;
|
|
- regulator-initial-mode = <2>;
|
|
+ regulator-initial-mode = <0>;
|
|
regulator-over-current-protection;
|
|
-
|
|
- regulator-state-standby {
|
|
- regulator-suspend-microvolt = <1350000>;
|
|
- regulator-on-in-suspend;
|
|
- regulator-mode = <8>;
|
|
- };
|
|
- regulator-state-mem {
|
|
- regulator-suspend-microvolt = <1350000>;
|
|
- regulator-on-in-suspend;
|
|
- regulator-mode = <8>;
|
|
- };
|
|
- regulator-state-disk {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
};
|
|
|
|
vdd: buck3 {
|
|
@@ -127,46 +223,18 @@
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-always-on;
|
|
- st,mask_reset;
|
|
- regulator-initial-mode = <8>;
|
|
+ st,mask-reset;
|
|
+ regulator-initial-mode = <0>;
|
|
regulator-over-current-protection;
|
|
-
|
|
- regulator-state-standby {
|
|
- regulator-suspend-microvolt = <3300000>;
|
|
- regulator-on-in-suspend;
|
|
- regulator-mode = <8>;
|
|
- };
|
|
- regulator-state-mem {
|
|
- regulator-suspend-microvolt = <3300000>;
|
|
- regulator-on-in-suspend;
|
|
- regulator-mode = <8>;
|
|
- };
|
|
- regulator-state-disk {
|
|
- regulator-suspend-microvolt = <3300000>;
|
|
- regulator-on-in-suspend;
|
|
- regulator-mode = <8>;
|
|
- };
|
|
};
|
|
|
|
v3v3: buck4 {
|
|
regulator-name = "v3v3";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
- regulator-boot-on;
|
|
+ regulator-always-on;
|
|
regulator-over-current-protection;
|
|
- regulator-initial-mode = <8>;
|
|
-
|
|
- regulator-state-standby {
|
|
- regulator-suspend-microvolt = <3300000>;
|
|
- regulator-unchanged-in-suspend;
|
|
- regulator-mode = <8>;
|
|
- };
|
|
- regulator-state-mem {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
- regulator-state-disk {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
+ regulator-initial-mode = <0>;
|
|
};
|
|
|
|
vdda: ldo1 {
|
|
@@ -174,18 +242,6 @@
|
|
regulator-min-microvolt = <2900000>;
|
|
regulator-max-microvolt = <2900000>;
|
|
interrupts = <IT_CURLIM_LDO1 0>;
|
|
- interrupt-parent = <&pmic>;
|
|
-
|
|
- regulator-state-standby {
|
|
- regulator-suspend-microvolt = <2900000>;
|
|
- regulator-unchanged-in-suspend;
|
|
- };
|
|
- regulator-state-mem {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
- regulator-state-disk {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
};
|
|
|
|
v2v8: ldo2 {
|
|
@@ -193,36 +249,14 @@
|
|
regulator-min-microvolt = <2800000>;
|
|
regulator-max-microvolt = <2800000>;
|
|
interrupts = <IT_CURLIM_LDO2 0>;
|
|
- interrupt-parent = <&pmic>;
|
|
-
|
|
- regulator-state-standby {
|
|
- regulator-suspend-microvolt = <2800000>;
|
|
- regulator-unchanged-in-suspend;
|
|
- };
|
|
- regulator-state-mem {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
- regulator-state-disk {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
};
|
|
|
|
vtt_ddr: ldo3 {
|
|
regulator-name = "vtt_ddr";
|
|
- regulator-min-microvolt = <0000000>;
|
|
- regulator-max-microvolt = <1000000>;
|
|
+ regulator-min-microvolt = <500000>;
|
|
+ regulator-max-microvolt = <750000>;
|
|
regulator-always-on;
|
|
regulator-over-current-protection;
|
|
-
|
|
- regulator-state-standby {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
- regulator-state-mem {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
- regulator-state-disk {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
};
|
|
|
|
vdd_usb: ldo4 {
|
|
@@ -230,17 +264,6 @@
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
interrupts = <IT_CURLIM_LDO4 0>;
|
|
- interrupt-parent = <&pmic>;
|
|
-
|
|
- regulator-state-standby {
|
|
- regulator-unchanged-in-suspend;
|
|
- };
|
|
- regulator-state-mem {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
- regulator-state-disk {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
};
|
|
|
|
vdd_sd: ldo5 {
|
|
@@ -248,19 +271,7 @@
|
|
regulator-min-microvolt = <2900000>;
|
|
regulator-max-microvolt = <2900000>;
|
|
interrupts = <IT_CURLIM_LDO5 0>;
|
|
- interrupt-parent = <&pmic>;
|
|
regulator-boot-on;
|
|
-
|
|
- regulator-state-standby {
|
|
- regulator-suspend-microvolt = <2900000>;
|
|
- regulator-unchanged-in-suspend;
|
|
- };
|
|
- regulator-state-mem {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
- regulator-state-disk {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
};
|
|
|
|
v1v8: ldo6 {
|
|
@@ -268,69 +279,88 @@
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
interrupts = <IT_CURLIM_LDO6 0>;
|
|
- interrupt-parent = <&pmic>;
|
|
-
|
|
- regulator-state-standby {
|
|
- regulator-suspend-microvolt = <1800000>;
|
|
- regulator-unchanged-in-suspend;
|
|
- };
|
|
- regulator-state-mem {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
- regulator-state-disk {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
};
|
|
|
|
vref_ddr: vref_ddr {
|
|
regulator-name = "vref_ddr";
|
|
regulator-always-on;
|
|
regulator-over-current-protection;
|
|
-
|
|
- regulator-state-standby {
|
|
- regulator-on-in-suspend;
|
|
- };
|
|
- regulator-state-mem {
|
|
- regulator-on-in-suspend;
|
|
- };
|
|
- regulator-state-disk {
|
|
- regulator-off-in-suspend;
|
|
- };
|
|
};
|
|
|
|
- bst_out: boost {
|
|
+ bst_out: boost {
|
|
regulator-name = "bst_out";
|
|
interrupts = <IT_OCP_BOOST 0>;
|
|
- interrupt-parent = <&pmic>;
|
|
- };
|
|
+ };
|
|
|
|
vbus_otg: pwr_sw1 {
|
|
regulator-name = "vbus_otg";
|
|
interrupts = <IT_OCP_OTG 0>;
|
|
- interrupt-parent = <&pmic>;
|
|
regulator-active-discharge;
|
|
};
|
|
|
|
vbus_sw: pwr_sw2 {
|
|
regulator-name = "vbus_sw";
|
|
interrupts = <IT_OCP_SWOUT 0>;
|
|
- interrupt-parent = <&pmic>;
|
|
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";
|
|
+ status = "disabled";
|
|
+ };
|
|
};
|
|
};
|
|
|
|
+&ipcc {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&iwdg2 {
|
|
+ timeout-sec = <32>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&m4_rproc {
|
|
+ memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
|
|
+ <&vdev0vring1>, <&vdev0buffer>;
|
|
+ mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
|
|
+ mbox-names = "vq0", "vq1", "shutdown";
|
|
+ interrupt-parent = <&exti>;
|
|
+ interrupts = <68 1>;
|
|
+ interrupt-names = "wdg";
|
|
+ recovery;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&pwr {
|
|
pwr-supply = <&vdd>;
|
|
};
|
|
|
|
+&rng1 {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&rtc {
|
|
+ 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,dirpol;
|
|
- st,negedge;
|
|
- st,pin-ckin;
|
|
+ st,sig-dir;
|
|
+ st,neg-edge;
|
|
+ st,use-ckin;
|
|
bus-width = <4>;
|
|
vmmc-supply = <&vdd_sd>;
|
|
vqmmc-supply = <&sd_switch>;
|
|
@@ -343,36 +373,44 @@
|
|
};
|
|
|
|
&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,dirpol;
|
|
- st,negedge;
|
|
+ st,neg-edge;
|
|
bus-width = <8>;
|
|
vmmc-supply = <&v3v3>;
|
|
- vqmmc-supply = <&vdd>;
|
|
+ vqmmc-supply = <&v3v3>;
|
|
+ mmc-ddr-3_3v;
|
|
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";
|
|
};
|
|
|
|
&usbotg_hs {
|
|
- usb33d-supply = <&usb33>;
|
|
-};
|
|
-
|
|
-&usbphyc_port0 {
|
|
- phy-supply = <&vdd_usb>;
|
|
- vdda1v1-supply = <®11>;
|
|
- vdda1v8-supply = <®18>;
|
|
+ vbus-supply = <&vbus_otg>;
|
|
};
|
|
|
|
-&usbphyc_port1 {
|
|
- phy-supply = <&vdd_usb>;
|
|
- vdda1v1-supply = <®11>;
|
|
- vdda1v8-supply = <®18>;
|
|
+&usbphyc {
|
|
+ vdd3v3-supply = <&vdd_usb>;
|
|
};
|
|
diff --git a/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi b/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi
|
|
index 30b1734..ec08813 100644
|
|
--- a/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi
|
|
+++ b/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi
|
|
@@ -7,29 +7,23 @@
|
|
|
|
/ {
|
|
aliases {
|
|
- spi0 = &qspi;
|
|
+ gpio26 = &stmfx_pinctrl;
|
|
i2c1 = &i2c2;
|
|
i2c4 = &i2c5;
|
|
+ pinctrl2 = &stmfx_pinctrl;
|
|
+ spi0 = &qspi;
|
|
};
|
|
};
|
|
|
|
&flash0 {
|
|
compatible = "spi-flash";
|
|
+ u-boot,dm-spl;
|
|
};
|
|
|
|
&flash1 {
|
|
compatible = "spi-flash";
|
|
};
|
|
|
|
-&v3v3 {
|
|
- regulator-always-on;
|
|
-};
|
|
-
|
|
-&usbotg_hs {
|
|
- g-tx-fifo-size = <576>;
|
|
-};
|
|
-
|
|
-/* SPL part **************************************/
|
|
&qspi {
|
|
u-boot,dm-spl;
|
|
};
|
|
@@ -61,7 +55,6 @@
|
|
};
|
|
};
|
|
|
|
-&flash0 {
|
|
- u-boot,dm-spl;
|
|
+&usbotg_hs {
|
|
+ g-tx-fifo-size = <576>;
|
|
};
|
|
-
|
|
diff --git a/arch/arm/dts/stm32mp157c-ev1.dts b/arch/arm/dts/stm32mp157c-ev1.dts
|
|
index 902a42b..18742e8 100644
|
|
--- a/arch/arm/dts/stm32mp157c-ev1.dts
|
|
+++ b/arch/arm/dts/stm32mp157c-ev1.dts
|
|
@@ -6,44 +6,565 @@
|
|
/dts-v1/;
|
|
|
|
#include "stm32mp157c-ed1.dts"
|
|
+#include <dt-bindings/input/input.h>
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
+#include <dt-bindings/soc/stm32-hdp.h>
|
|
|
|
/ {
|
|
model = "STMicroelectronics STM32MP157C eval daughter on eval mother";
|
|
compatible = "st,stm32mp157c-ev1", "st,stm32mp157c-ed1", "st,stm32mp157";
|
|
|
|
+ chosen {
|
|
+ stdout-path = "serial0:115200n8";
|
|
+ };
|
|
+
|
|
+ aliases {
|
|
+ serial1 = &usart3;
|
|
+ ethernet0 = ðernet0;
|
|
+ };
|
|
+
|
|
+ clocks {
|
|
+ clk_ext_camera: clk-ext-camera {
|
|
+ #clock-cells = <0>;
|
|
+ compatible = "fixed-clock";
|
|
+ clock-frequency = <24000000>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ panel_backlight: panel-backlight {
|
|
+ compatible = "gpio-backlight";
|
|
+ gpios = <&gpiod 13 GPIO_ACTIVE_LOW>;
|
|
+ default-on;
|
|
+ status = "okay";
|
|
+ };
|
|
+
|
|
+ spdif_out: spdif-out {
|
|
+ #sound-dai-cells = <0>;
|
|
+ compatible = "linux,spdif-dit";
|
|
+ status = "okay";
|
|
+
|
|
+ spdif_out_port: port {
|
|
+ spdif_out_endpoint: endpoint {
|
|
+ remote-endpoint = <&sai4a_endpoint>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ spdif_in: spdif-in {
|
|
+ #sound-dai-cells = <0>;
|
|
+ compatible = "linux,spdif-dir";
|
|
+ status = "okay";
|
|
+
|
|
+ spdif_in_port: port {
|
|
+ spdif_in_endpoint: endpoint {
|
|
+ remote-endpoint = <&spdifrx_endpoint>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sound {
|
|
+ compatible = "audio-graph-card";
|
|
+ label = "STM32MP1-EV";
|
|
+ routing =
|
|
+ "AIF1CLK" , "MCLK1",
|
|
+ "AIF2CLK" , "MCLK1",
|
|
+ "IN1LN" , "MICBIAS2",
|
|
+ "DMIC2DAT" , "MICBIAS1",
|
|
+ "DMIC1DAT" , "MICBIAS1";
|
|
+ dais = <&sai2a_port &sai2b_port &sai4a_port &spdifrx_port
|
|
+ &dfsdm0_port &dfsdm1_port &dfsdm2_port &dfsdm3_port>;
|
|
+ status = "okay";
|
|
+ };
|
|
+
|
|
+ dmic0: dmic-0 {
|
|
+ compatible = "dmic-codec";
|
|
+ #sound-dai-cells = <1>;
|
|
+ status = "okay";
|
|
+
|
|
+ port {
|
|
+ dmic0_endpoint: endpoint {
|
|
+ remote-endpoint = <&dfsdm_endpoint0>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dmic1: dmic-1 {
|
|
+ compatible = "dmic-codec";
|
|
+ #sound-dai-cells = <1>;
|
|
+ status = "okay";
|
|
+
|
|
+ port {
|
|
+ dmic1_endpoint: endpoint {
|
|
+ remote-endpoint = <&dfsdm_endpoint1>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dmic2: dmic-2 {
|
|
+ compatible = "dmic-codec";
|
|
+ #sound-dai-cells = <1>;
|
|
+ status = "okay";
|
|
+
|
|
+ port {
|
|
+ dmic2_endpoint: endpoint {
|
|
+ remote-endpoint = <&dfsdm_endpoint2>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dmic3: dmic-3 {
|
|
+ compatible = "dmic-codec";
|
|
+ #sound-dai-cells = <1>;
|
|
+ status = "okay";
|
|
+
|
|
+ port {
|
|
+ dmic3_endpoint: endpoint {
|
|
+ remote-endpoint = <&dfsdm_endpoint3>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ usb_phy_tuning: usb-phy-tuning {
|
|
+ st,hs-dc-level = <2>;
|
|
+ st,fs-rftime-tuning;
|
|
+ st,hs-rftime-reduction;
|
|
+ st,hs-current-trim = <15>;
|
|
+ st,hs-impedance-trim = <1>;
|
|
+ st,squelch-level = <3>;
|
|
+ st,hs-rx-offset = <2>;
|
|
+ st,no-lsfs-sc;
|
|
+ };
|
|
};
|
|
|
|
&cec {
|
|
- pinctrl-names = "default";
|
|
+ pinctrl-names = "default", "sleep";
|
|
pinctrl-0 = <&cec_pins_a>;
|
|
+ pinctrl-1 = <&cec_pins_sleep_a>;
|
|
+};
|
|
+
|
|
+&dcmi {
|
|
+ status = "okay";
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&dcmi_pins_a>;
|
|
+ pinctrl-1 = <&dcmi_sleep_pins_a>;
|
|
+
|
|
+ port {
|
|
+ dcmi_0: endpoint {
|
|
+ remote-endpoint = <&ov5640_0>;
|
|
+ bus-width = <8>;
|
|
+ hsync-active = <0>;
|
|
+ vsync-active = <0>;
|
|
+ pclk-sample = <1>;
|
|
+ pclk-max-frequency = <77000000>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&dfsdm {
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&dfsdm_clkout_pins_a
|
|
+ &dfsdm_data1_pins_a &dfsdm_data3_pins_a>;
|
|
+ pinctrl-1 = <&dfsdm_clkout_sleep_pins_a
|
|
+ &dfsdm_data1_sleep_pins_a &dfsdm_data3_sleep_pins_a>;
|
|
+ spi-max-frequency = <2048000>;
|
|
+
|
|
+ clocks = <&rcc DFSDM_K>, <&rcc ADFSDM_K>;
|
|
+ clock-names = "dfsdm", "audio";
|
|
+ status = "okay";
|
|
+
|
|
+ dfsdm0: filter@0 {
|
|
+ compatible = "st,stm32-dfsdm-dmic";
|
|
+ st,adc-channels = <3>;
|
|
+ st,adc-channel-names = "dmic_u1";
|
|
+ st,adc-channel-types = "SPI_R";
|
|
+ st,adc-channel-clk-src = "CLKOUT";
|
|
+ st,filter-order = <3>;
|
|
+ status = "okay";
|
|
+
|
|
+ asoc_pdm0: dfsdm-dai {
|
|
+ compatible = "st,stm32h7-dfsdm-dai";
|
|
+ #sound-dai-cells = <0>;
|
|
+ io-channels = <&dfsdm0 0>;
|
|
+ status = "okay";
|
|
+
|
|
+ dfsdm0_port: port {
|
|
+ dfsdm_endpoint0: endpoint {
|
|
+ remote-endpoint = <&dmic0_endpoint>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dfsdm1: filter@1 {
|
|
+ compatible = "st,stm32-dfsdm-dmic";
|
|
+ st,adc-channels = <1>;
|
|
+ st,adc-channel-names = "dmic_u2";
|
|
+ st,adc-channel-types = "SPI_F";
|
|
+ st,adc-channel-clk-src = "CLKOUT";
|
|
+ st,filter-order = <3>;
|
|
+ status = "okay";
|
|
+
|
|
+ asoc_pdm1: dfsdm-dai {
|
|
+ compatible = "st,stm32h7-dfsdm-dai";
|
|
+ #sound-dai-cells = <0>;
|
|
+ io-channels = <&dfsdm1 0>;
|
|
+ status = "okay";
|
|
+
|
|
+ dfsdm1_port: port {
|
|
+ dfsdm_endpoint1: endpoint {
|
|
+ remote-endpoint = <&dmic1_endpoint>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dfsdm2: filter@2 {
|
|
+ compatible = "st,stm32-dfsdm-dmic";
|
|
+ st,adc-channels = <3>;
|
|
+ st,adc-channel-names = "dmic_u3";
|
|
+ st,adc-channel-types = "SPI_F";
|
|
+ st,adc-channel-clk-src = "CLKOUT";
|
|
+ st,filter-order = <3>;
|
|
+ status = "okay";
|
|
+
|
|
+ asoc_pdm2: dfsdm-dai {
|
|
+ compatible = "st,stm32h7-dfsdm-dai";
|
|
+ #sound-dai-cells = <0>;
|
|
+ io-channels = <&dfsdm2 0>;
|
|
+ status = "okay";
|
|
+
|
|
+ dfsdm2_port: port {
|
|
+ dfsdm_endpoint2: endpoint {
|
|
+ remote-endpoint = <&dmic2_endpoint>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dfsdm3: filter@3 {
|
|
+ compatible = "st,stm32-dfsdm-dmic";
|
|
+ st,adc-channels = <1>;
|
|
+ st,adc-channel-names = "dmic_u4";
|
|
+ st,adc-channel-types = "SPI_R";
|
|
+ st,adc-channel-clk-src = "CLKOUT";
|
|
+ st,filter-order = <3>;
|
|
+ status = "okay";
|
|
+
|
|
+ asoc_pdm3: dfsdm-dai {
|
|
+ compatible = "st,stm32h7-dfsdm-dai";
|
|
+ #sound-dai-cells = <0>;
|
|
+ io-channels = <&dfsdm3 0>;
|
|
+ status = "okay";
|
|
+
|
|
+ dfsdm3_port: port {
|
|
+ dfsdm_endpoint3: endpoint {
|
|
+ remote-endpoint = <&dmic3_endpoint>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&dsi {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ status = "okay";
|
|
+
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ port@0 {
|
|
+ reg = <0>;
|
|
+ dsi_in: endpoint {
|
|
+ remote-endpoint = <<dc_ep0_out>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ port@1 {
|
|
+ reg = <1>;
|
|
+ dsi_out: endpoint {
|
|
+ remote-endpoint = <&dsi_panel_in>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ panel-dsi@0 {
|
|
+ compatible = "raydium,rm68200";
|
|
+ reg = <0>;
|
|
+ reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
|
|
+ power-supply = <&v1v8>;
|
|
+ backlight = <&panel_backlight>;
|
|
+ status = "okay";
|
|
+
|
|
+ port {
|
|
+ dsi_panel_in: endpoint {
|
|
+ remote-endpoint = <&dsi_out>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+ðernet0 {
|
|
+ status = "okay";
|
|
+ pinctrl-0 = <ðernet0_rgmii_pins_a>;
|
|
+ pinctrl-1 = <ðernet0_rgmii_pins_sleep_a>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ phy-mode = "rgmii";
|
|
+ max-speed = <1000>;
|
|
+ phy-handle = <&phy0>;
|
|
+
|
|
+ mdio0 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ compatible = "snps,dwmac-mdio";
|
|
+ phy0: ethernet-phy@0 {
|
|
+ reg = <0>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&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>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&hdp {
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&hdp0_pins_a &hdp6_pins_a &hdp7_pins_a>;
|
|
+ pinctrl-1 = <&hdp0_pins_sleep_a &hdp6_pins_sleep_a &hdp7_pins_sleep_a>;
|
|
+ status = "disabled";
|
|
+
|
|
+ muxing-hdp = <(STM32_HDP(0, HDP0_GPOVAL_0) |
|
|
+ STM32_HDP(6, HDP6_GPOVAL_6) |
|
|
+ STM32_HDP(7, HDP7_GPOVAL_7))>;
|
|
};
|
|
|
|
&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;
|
|
+
|
|
+ wm8994: wm8994@1b {
|
|
+ compatible = "wlf,wm8994";
|
|
+ #sound-dai-cells = <0>;
|
|
+ reg = <0x1b>;
|
|
+ status = "okay";
|
|
+
|
|
+ gpio-controller;
|
|
+ #gpio-cells = <2>;
|
|
+
|
|
+ DBVDD-supply = <&vdd>;
|
|
+ SPKVDD1-supply = <&vdd>;
|
|
+ SPKVDD2-supply = <&vdd>;
|
|
+ AVDD2-supply = <&v1v8>;
|
|
+ CPVDD-supply = <&v1v8>;
|
|
+
|
|
+ wlf,ldoena-always-driven;
|
|
+
|
|
+ clocks = <&sai2a>;
|
|
+ clock-names = "MCLK1";
|
|
+
|
|
+ wlf,gpio-cfg = <0x8101 0xa100 0xa100 0xa100 0xa101 0xa101 0xa100 0xa101 0xa101 0xa101 0xa101>;
|
|
+
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ wm8994_tx_port: port@0 {
|
|
+ reg = <0>;
|
|
+ wm8994_tx_endpoint: endpoint {
|
|
+ remote-endpoint = <&sai2a_endpoint>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ wm8994_rx_port: port@1 {
|
|
+ reg = <1>;
|
|
+ wm8994_rx_endpoint: endpoint {
|
|
+ remote-endpoint = <&sai2b_endpoint>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ ov5640: camera@3c {
|
|
+ compatible = "ovti,ov5640";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&ov5640_pins>;
|
|
+ reg = <0x3c>;
|
|
+ clocks = <&clk_ext_camera>;
|
|
+ clock-names = "xclk";
|
|
+ DOVDD-supply = <&v2v8>;
|
|
+ powerdown-gpios = <&stmfx_pinctrl 18 GPIO_ACTIVE_HIGH>;
|
|
+ reset-gpios = <&stmfx_pinctrl 19 GPIO_ACTIVE_LOW>;
|
|
+ rotation = <180>;
|
|
+ status = "okay";
|
|
+
|
|
+ port {
|
|
+ ov5640_0: endpoint {
|
|
+ remote-endpoint = <&dcmi_0>;
|
|
+ bus-width = <8>;
|
|
+ data-shift = <2>; /* lines 9:2 are used */
|
|
+ hsync-active = <0>;
|
|
+ vsync-active = <0>;
|
|
+ pclk-sample = <1>;
|
|
+ pclk-max-frequency = <77000000>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ 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>;
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&hog_pins>;
|
|
+
|
|
+ hog_pins: hog {
|
|
+ pins = "gpio14";
|
|
+ drive-push-pull;
|
|
+ bias-pull-down;
|
|
+ };
|
|
+
|
|
+ joystick_pins: joystick {
|
|
+ pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
|
|
+ drive-push-pull;
|
|
+ bias-pull-down;
|
|
+ };
|
|
+
|
|
+ ov5640_pins: camera {
|
|
+ pins = "agpio2", "agpio3"; /* stmfx pins 18 & 19 */
|
|
+ drive-push-pull;
|
|
+ output-low;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ gt9147: goodix_ts@5d {
|
|
+ compatible = "goodix,gt9147";
|
|
+ reg = <0x5d>;
|
|
+ status = "okay";
|
|
+
|
|
+ irq-gpios = <&stmfx_pinctrl 14 GPIO_ACTIVE_HIGH>;
|
|
+ irq-flags = <IRQ_TYPE_EDGE_RISING>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&i2c4 {
|
|
+ pmic: stpmic@33 {
|
|
+ regulators {
|
|
+ v1v8: ldo6 {
|
|
+ regulator-enable-ramp-delay = <300000>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
&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>;
|
|
+ /delete-property/dmas;
|
|
+ /delete-property/dma-names;
|
|
+};
|
|
+
|
|
+<dc {
|
|
+ status = "okay";
|
|
+
|
|
+ port {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ ltdc_ep0_out: endpoint@0 {
|
|
+ reg = <0>;
|
|
+ remote-endpoint = <&dsi_in>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&m_can1 {
|
|
+ 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>;
|
|
@@ -52,6 +573,7 @@
|
|
};
|
|
|
|
flash1: mx66l51235l@1 {
|
|
+ compatible = "jedec,spi-nor";
|
|
reg = <1>;
|
|
spi-rx-bus-width = <4>;
|
|
spi-max-frequency = <108000000>;
|
|
@@ -60,11 +582,110 @@
|
|
};
|
|
};
|
|
|
|
+&sai2 {
|
|
+ clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&sai2a_pins_a>, <&sai2b_pins_a>;
|
|
+ pinctrl-1 = <&sai2a_sleep_pins_a>, <&sai2b_sleep_pins_a>;
|
|
+ clock-names = "pclk", "x8k", "x11k";
|
|
+ status = "okay";
|
|
+
|
|
+ sai2a: audio-controller@4400b004 {
|
|
+ #clock-cells = <0>;
|
|
+ dma-names = "tx";
|
|
+ clocks = <&rcc SAI2_K>;
|
|
+ clock-names = "sai_ck";
|
|
+ status = "okay";
|
|
+
|
|
+ sai2a_port: port {
|
|
+ sai2a_endpoint: endpoint {
|
|
+ remote-endpoint = <&wm8994_tx_endpoint>;
|
|
+ format = "i2s";
|
|
+ mclk-fs = <256>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sai2b: audio-controller@4400b024 {
|
|
+ dma-names = "rx";
|
|
+ clocks = <&rcc SAI2_K>, <&sai2a>;
|
|
+ clock-names = "sai_ck", "MCLK";
|
|
+ status = "okay";
|
|
+
|
|
+ sai2b_port: port {
|
|
+ sai2b_endpoint: endpoint {
|
|
+ remote-endpoint = <&wm8994_rx_endpoint>;
|
|
+ format = "i2s";
|
|
+ mclk-fs = <256>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&sai4 {
|
|
+ clocks = <&rcc SAI4>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
|
|
+ clock-names = "pclk", "x8k", "x11k";
|
|
+ status = "okay";
|
|
+
|
|
+ sai4a: audio-controller@50027004 {
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&sai4a_pins_a>;
|
|
+ pinctrl-1 = <&sai4a_sleep_pins_a>;
|
|
+ dma-names = "tx";
|
|
+ clocks = <&rcc SAI4_K>;
|
|
+ clock-names = "sai_ck";
|
|
+ st,iec60958;
|
|
+ status = "okay";
|
|
+
|
|
+ sai4a_port: port {
|
|
+ sai4a_endpoint: endpoint {
|
|
+ remote-endpoint = <&spdif_out_endpoint>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&sdmmc3 {
|
|
+ pinctrl-names = "default", "opendrain", "sleep";
|
|
+ pinctrl-0 = <&sdmmc3_b4_pins_a>;
|
|
+ pinctrl-1 = <&sdmmc3_b4_od_pins_a>;
|
|
+ pinctrl-2 = <&sdmmc3_b4_sleep_pins_a>;
|
|
+ vmmc-supply = <&v3v3>;
|
|
+ broken-cd;
|
|
+ st,neg-edge;
|
|
+ bus-width = <4>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+&spdifrx {
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&spdifrx_pins_a>;
|
|
+ pinctrl-1 = <&spdifrx_sleep_pins_a>;
|
|
+ status = "okay";
|
|
+
|
|
+ spdifrx_port: port {
|
|
+ spdifrx_endpoint: endpoint {
|
|
+ remote-endpoint = <&spdif_in_endpoint>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&spi1 {
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ pinctrl-0 = <&spi1_pins_a>;
|
|
+ pinctrl-1 = <&spi1_sleep_pins_a>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
&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 {
|
|
@@ -74,9 +695,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 {
|
|
@@ -86,9 +710,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 {
|
|
@@ -96,6 +723,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";
|
|
@@ -114,3 +749,11 @@
|
|
&usbphyc {
|
|
status = "okay";
|
|
};
|
|
+
|
|
+&usbphyc_port0 {
|
|
+ st,phy-tuning = <&usb_phy_tuning>;
|
|
+};
|
|
+
|
|
+&usbphyc_port1 {
|
|
+ st,phy-tuning = <&usb_phy_tuning>;
|
|
+};
|
|
diff --git a/arch/arm/dts/stm32mp157c.dtsi b/arch/arm/dts/stm32mp157c.dtsi
|
|
index 33c5981..4de499e 100644
|
|
--- a/arch/arm/dts/stm32mp157c.dtsi
|
|
+++ b/arch/arm/dts/stm32mp157c.dtsi
|
|
@@ -19,42 +19,28 @@
|
|
compatible = "arm,cortex-a7";
|
|
device_type = "cpu";
|
|
reg = <0>;
|
|
+ clock-frequency = <650000000>;
|
|
};
|
|
|
|
cpu1: cpu@1 {
|
|
compatible = "arm,cortex-a7";
|
|
device_type = "cpu";
|
|
reg = <1>;
|
|
+ clock-frequency = <650000000>;
|
|
};
|
|
};
|
|
|
|
- psci {
|
|
- compatible = "arm,psci";
|
|
- method = "smc";
|
|
- cpu_off = <0x84000002>;
|
|
- cpu_on = <0x84000003>;
|
|
+ arm-pmu {
|
|
+ compatible = "arm,cortex-a7-pmu";
|
|
+ interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-affinity = <&cpu0>, <&cpu1>;
|
|
+ interrupt-parent = <&intc>;
|
|
};
|
|
|
|
- aliases {
|
|
- gpio0 = &gpioa;
|
|
- gpio1 = &gpiob;
|
|
- gpio2 = &gpioc;
|
|
- gpio3 = &gpiod;
|
|
- gpio4 = &gpioe;
|
|
- gpio5 = &gpiof;
|
|
- gpio6 = &gpiog;
|
|
- gpio7 = &gpioh;
|
|
- gpio8 = &gpioi;
|
|
- gpio9 = &gpioj;
|
|
- gpio10 = &gpiok;
|
|
- serial0 = &usart1;
|
|
- serial1 = &usart2;
|
|
- serial2 = &usart3;
|
|
- serial3 = &uart4;
|
|
- serial4 = &uart5;
|
|
- serial5 = &usart6;
|
|
- serial6 = &uart7;
|
|
- serial7 = &uart8;
|
|
+ psci {
|
|
+ compatible = "arm,psci-1.0";
|
|
+ method = "smc";
|
|
};
|
|
|
|
intc: interrupt-controller@a0021000 {
|
|
@@ -104,6 +90,18 @@
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <4000000>;
|
|
};
|
|
+
|
|
+ clk_i2s_ckin: i2s_ckin {
|
|
+ #clock-cells = <0>;
|
|
+ compatible = "fixed-clock";
|
|
+ clock-frequency = <0>;
|
|
+ };
|
|
+
|
|
+ clk_dsi_phy: ck_dsi_phy {
|
|
+ #clock-cells = <0>;
|
|
+ compatible = "fixed-clock";
|
|
+ clock-frequency = <0>;
|
|
+ };
|
|
};
|
|
|
|
pm_domain {
|
|
@@ -126,6 +124,61 @@
|
|
};
|
|
};
|
|
|
|
+ thermal-zones {
|
|
+ cpu_thermal: cpu-thermal {
|
|
+ polling-delay-passive = <0>;
|
|
+ polling-delay = <0>;
|
|
+ thermal-sensors = <&dts>;
|
|
+
|
|
+ trips {
|
|
+ cpu_alert1: cpu-alert1 {
|
|
+ temperature = <85000>;
|
|
+ hysteresis = <0>;
|
|
+ type = "passive";
|
|
+ };
|
|
+
|
|
+ cpu-crit {
|
|
+ temperature = <120000>;
|
|
+ hysteresis = <0>;
|
|
+ type = "critical";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ cooling-maps {
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ reboot {
|
|
+ compatible = "syscon-reboot";
|
|
+ regmap = <&rcc>;
|
|
+ offset = <0x404>;
|
|
+ mask = <0x1>;
|
|
+ };
|
|
+
|
|
+ replicator {
|
|
+ /*
|
|
+ * non-configurable replicators don't show up on the
|
|
+ * AMBA bus. As such no need to add "arm,primecell"
|
|
+ */
|
|
+ compatible = "arm,coresight-replicator";
|
|
+ clocks = <&rcc CK_TRACE>;
|
|
+ clock-names = "apb_pclk";
|
|
+
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ /* replicator output ports */
|
|
+ port@0 {
|
|
+ reg = <0>;
|
|
+ replicator_out_port0: endpoint {
|
|
+ remote-endpoint = <&funnel_in_port4>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
soc {
|
|
compatible = "simple-bus";
|
|
#address-cells = <1>;
|
|
@@ -140,6 +193,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 {
|
|
@@ -161,6 +220,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 {
|
|
@@ -182,6 +248,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 {
|
|
@@ -203,6 +274,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 {
|
|
@@ -224,6 +302,8 @@
|
|
reg = <0x40004000 0x400>;
|
|
clocks = <&rcc TIM6_K>;
|
|
clock-names = "int";
|
|
+ dmas = <&dmamux1 69 0x400 0x5>;
|
|
+ dma-names = "up";
|
|
status = "disabled";
|
|
|
|
timer@5 {
|
|
@@ -240,6 +320,8 @@
|
|
reg = <0x40005000 0x400>;
|
|
clocks = <&rcc TIM7_K>;
|
|
clock-names = "int";
|
|
+ dmas = <&dmamux1 70 0x400 0x5>;
|
|
+ dma-names = "up";
|
|
status = "disabled";
|
|
|
|
timer@6 {
|
|
@@ -319,6 +401,7 @@
|
|
reg = <0x40009000 0x400>;
|
|
clocks = <&rcc LPTIM1_K>;
|
|
clock-names = "mux";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -339,87 +422,196 @@
|
|
};
|
|
};
|
|
|
|
+ spi2: spi@4000b000 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ compatible = "st,stm32h7-spi";
|
|
+ reg = <0x4000b000 0x400>;
|
|
+ interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&rcc SPI2_K>;
|
|
+ resets = <&rcc SPI2_R>;
|
|
+ dmas = <&dmamux1 39 0x400 0x05>,
|
|
+ <&dmamux1 40 0x400 0x05>;
|
|
+ dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ i2s2: audio-controller@4000b000 {
|
|
+ compatible = "st,stm32h7-i2s";
|
|
+ #sound-dai-cells = <0>;
|
|
+ reg = <0x4000b000 0x400>;
|
|
+ interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ dmas = <&dmamux1 39 0x400 0x01>,
|
|
+ <&dmamux1 40 0x400 0x01>;
|
|
+ dma-names = "rx", "tx";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ spi3: spi@4000c000 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ compatible = "st,stm32h7-spi";
|
|
+ reg = <0x4000c000 0x400>;
|
|
+ interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&rcc SPI3_K>;
|
|
+ resets = <&rcc SPI3_R>;
|
|
+ dmas = <&dmamux1 61 0x400 0x05>,
|
|
+ <&dmamux1 62 0x400 0x05>;
|
|
+ dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ i2s3: audio-controller@4000c000 {
|
|
+ compatible = "st,stm32h7-i2s";
|
|
+ #sound-dai-cells = <0>;
|
|
+ reg = <0x4000c000 0x400>;
|
|
+ interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ dmas = <&dmamux1 61 0x400 0x01>,
|
|
+ <&dmamux1 62 0x400 0x01>;
|
|
+ dma-names = "rx", "tx";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ spdifrx: audio-controller@4000d000 {
|
|
+ compatible = "st,stm32h7-spdifrx";
|
|
+ #sound-dai-cells = <0>;
|
|
+ reg = <0x4000d000 0x400>;
|
|
+ clocks = <&rcc SPDIF_K>;
|
|
+ clock-names = "kclk";
|
|
+ interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ dmas = <&dmamux1 93 0x400 0x01>,
|
|
+ <&dmamux1 94 0x400 0x01>;
|
|
+ dma-names = "rx", "rx-ctrl";
|
|
+ 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>;
|
|
+ resets = <&rcc USART2_R>;
|
|
+ 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>;
|
|
+ resets = <&rcc USART3_R>;
|
|
+ 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>;
|
|
+ resets = <&rcc UART4_R>;
|
|
+ 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>;
|
|
+ resets = <&rcc UART5_R>;
|
|
+ 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";
|
|
};
|
|
|
|
@@ -429,6 +621,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";
|
|
};
|
|
|
|
@@ -459,16 +652,26 @@
|
|
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>;
|
|
+ resets = <&rcc UART7_R>;
|
|
+ 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>;
|
|
+ resets = <&rcc UART8_R>;
|
|
+ wakeup-source;
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -479,6 +682,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 {
|
|
@@ -500,6 +712,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 {
|
|
@@ -517,8 +738,54 @@
|
|
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>;
|
|
+ resets = <&rcc USART6_R>;
|
|
+ wakeup-source;
|
|
+ power-domains = <&pd_core>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ spi1: spi@44004000 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ compatible = "st,stm32h7-spi";
|
|
+ reg = <0x44004000 0x400>;
|
|
+ interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&rcc SPI1_K>;
|
|
+ resets = <&rcc SPI1_R>;
|
|
+ dmas = <&dmamux1 37 0x400 0x05>,
|
|
+ <&dmamux1 38 0x400 0x05>;
|
|
+ dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ i2s1: audio-controller@44004000 {
|
|
+ compatible = "st,stm32h7-i2s";
|
|
+ #sound-dai-cells = <0>;
|
|
+ reg = <0x44004000 0x400>;
|
|
+ interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ dmas = <&dmamux1 37 0x400 0x01>,
|
|
+ <&dmamux1 38 0x400 0x01>;
|
|
+ dma-names = "rx", "tx";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ spi4: spi@44005000 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ compatible = "st,stm32h7-spi";
|
|
+ reg = <0x44005000 0x400>;
|
|
+ interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&rcc SPI4_K>;
|
|
+ resets = <&rcc SPI4_R>;
|
|
+ dmas = <&dmamux1 83 0x400 0x05>,
|
|
+ <&dmamux1 84 0x400 0x05>;
|
|
+ dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -529,6 +796,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 {
|
|
@@ -550,6 +822,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 {
|
|
@@ -570,6 +845,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 {
|
|
@@ -584,6 +862,199 @@
|
|
};
|
|
};
|
|
|
|
+ spi5: spi@44009000 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ compatible = "st,stm32h7-spi";
|
|
+ reg = <0x44009000 0x400>;
|
|
+ interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&rcc SPI5_K>;
|
|
+ resets = <&rcc SPI5_R>;
|
|
+ dmas = <&dmamux1 85 0x400 0x05>,
|
|
+ <&dmamux1 86 0x400 0x05>;
|
|
+ dma-names = "rx", "tx";
|
|
+ power-domains = <&pd_core>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ sai1: sai@4400a000 {
|
|
+ compatible = "st,stm32h7-sai";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ranges = <0 0x4400a000 0x400>;
|
|
+ reg = <0x4400a000 0x4>;
|
|
+ interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ resets = <&rcc SAI1_R>;
|
|
+ status = "disabled";
|
|
+
|
|
+ sai1a: audio-controller@4400a004 {
|
|
+ #sound-dai-cells = <0>;
|
|
+
|
|
+ compatible = "st,stm32-sai-sub-a";
|
|
+ reg = <0x4 0x1c>;
|
|
+ dmas = <&dmamux1 87 0x400 0x01>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ sai1b: audio-controller@4400a024 {
|
|
+ #sound-dai-cells = <0>;
|
|
+ compatible = "st,stm32-sai-sub-b";
|
|
+ reg = <0x24 0x1c>;
|
|
+ dmas = <&dmamux1 88 0x400 0x01>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sai2: sai@4400b000 {
|
|
+ compatible = "st,stm32h7-sai";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ranges = <0 0x4400b000 0x400>;
|
|
+ reg = <0x4400b000 0x4>;
|
|
+ interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ resets = <&rcc SAI2_R>;
|
|
+ status = "disabled";
|
|
+
|
|
+ sai2a: audio-controller@4400b004 {
|
|
+ #sound-dai-cells = <0>;
|
|
+ compatible = "st,stm32-sai-sub-a";
|
|
+ reg = <0x4 0x1c>;
|
|
+ dmas = <&dmamux1 89 0x400 0x01>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ sai2b: audio-controller@4400b024 {
|
|
+ #sound-dai-cells = <0>;
|
|
+ compatible = "st,stm32-sai-sub-b";
|
|
+ reg = <0x24 0x1c>;
|
|
+ dmas = <&dmamux1 90 0x400 0x01>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ sai3: sai@4400c000 {
|
|
+ compatible = "st,stm32h7-sai";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ranges = <0 0x4400c000 0x400>;
|
|
+ reg = <0x4400c000 0x4>;
|
|
+ interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ resets = <&rcc SAI3_R>;
|
|
+ status = "disabled";
|
|
+
|
|
+ sai3a: audio-controller@4400c004 {
|
|
+ #sound-dai-cells = <0>;
|
|
+ compatible = "st,stm32-sai-sub-a";
|
|
+ reg = <0x04 0x1c>;
|
|
+ dmas = <&dmamux1 113 0x400 0x01>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ sai3b: audio-controller@4400c024 {
|
|
+ #sound-dai-cells = <0>;
|
|
+ compatible = "st,stm32-sai-sub-b";
|
|
+ reg = <0x24 0x1c>;
|
|
+ dmas = <&dmamux1 114 0x400 0x01>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dfsdm: dfsdm@4400d000 {
|
|
+ compatible = "st,stm32mp1-dfsdm";
|
|
+ reg = <0x4400d000 0x800>;
|
|
+ clocks = <&rcc DFSDM_K>;
|
|
+ clock-names = "dfsdm";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ status = "disabled";
|
|
+
|
|
+ dfsdm0: filter@0 {
|
|
+ compatible = "st,stm32-dfsdm-adc";
|
|
+ #io-channel-cells = <1>;
|
|
+ reg = <0>;
|
|
+ interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ dmas = <&dmamux1 101 0x400 0x01>;
|
|
+ dma-names = "rx";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ dfsdm1: filter@1 {
|
|
+ compatible = "st,stm32-dfsdm-adc";
|
|
+ #io-channel-cells = <1>;
|
|
+ reg = <1>;
|
|
+ interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ dmas = <&dmamux1 102 0x400 0x01>;
|
|
+ dma-names = "rx";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ dfsdm2: filter@2 {
|
|
+ compatible = "st,stm32-dfsdm-adc";
|
|
+ #io-channel-cells = <1>;
|
|
+ reg = <2>;
|
|
+ interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ dmas = <&dmamux1 103 0x400 0x01>;
|
|
+ dma-names = "rx";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ dfsdm3: filter@3 {
|
|
+ compatible = "st,stm32-dfsdm-adc";
|
|
+ #io-channel-cells = <1>;
|
|
+ reg = <3>;
|
|
+ interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ dmas = <&dmamux1 104 0x400 0x01>;
|
|
+ dma-names = "rx";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ dfsdm4: filter@4 {
|
|
+ compatible = "st,stm32-dfsdm-adc";
|
|
+ #io-channel-cells = <1>;
|
|
+ reg = <4>;
|
|
+ interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ dmas = <&dmamux1 91 0x400 0x01>;
|
|
+ dma-names = "rx";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ dfsdm5: filter@5 {
|
|
+ compatible = "st,stm32-dfsdm-adc";
|
|
+ #io-channel-cells = <1>;
|
|
+ reg = <5>;
|
|
+ interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ dmas = <&dmamux1 92 0x400 0x01>;
|
|
+ dma-names = "rx";
|
|
+ status = "disabled";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ m_can1: can@4400e000 {
|
|
+ compatible = "bosch,m_can";
|
|
+ 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>;
|
|
+ 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>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ m_can2: can@4400f000 {
|
|
+ compatible = "bosch,m_can";
|
|
+ reg = <0x4400f000 0x400>, <0x44011000 0x2800>;
|
|
+ reg-names = "m_can", "message_ram";
|
|
+ interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
|
|
+ <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "int0", "int1";
|
|
+ clocks = <&rcc CK_HSE>, <&rcc FDCAN_K>;
|
|
+ clock-names = "hclk", "cclk";
|
|
+ bosch,mram-cfg = <0x1400 0 0 32 0 0 2 2>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
dma1: dma@48000000 {
|
|
compatible = "st,stm32-dma";
|
|
reg = <0x48000000 0x400>;
|
|
@@ -599,6 +1070,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 {
|
|
@@ -616,6 +1096,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 {
|
|
@@ -636,6 +1125,10 @@
|
|
clocks = <&rcc ADC12>, <&rcc ADC12_K>;
|
|
clock-names = "bus", "adc";
|
|
interrupt-controller;
|
|
+ st,syscfg-vbooster = <&syscfg 0x4 0x100>;
|
|
+ st,syscfg-vbooster-clr = <&syscfg 0x44 0x100>;
|
|
+ st,syscfg-anaswvdd = <&syscfg 0x4 0x200>;
|
|
+ st,syscfg-anaswvdd-clr = <&syscfg 0x44 0x200>;
|
|
#interrupt-cells = <1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
@@ -647,6 +1140,8 @@
|
|
reg = <0x0>;
|
|
interrupt-parent = <&adc>;
|
|
interrupts = <0>;
|
|
+ dmas = <&dmamux1 9 0x400 0x05>;
|
|
+ dma-names = "rx";
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -656,18 +1151,57 @@
|
|
reg = <0x100>;
|
|
interrupt-parent = <&adc>;
|
|
interrupts = <1>;
|
|
+ dmas = <&dmamux1 10 0x400 0x05>;
|
|
+ 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 = "st,stm32-sdmmc2";
|
|
+ compatible = "arm,pl18x", "arm,primecell";
|
|
+ arm,primecell-periphid = <0x00253180>;
|
|
reg = <0x48004000 0x400>, <0x48005000 0x400>;
|
|
- reg-names = "sdmmc", "delay";
|
|
- interrupts = <GIC_SPI 137 IRQ_TYPE_NONE>;
|
|
+ interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "cmd_irq";
|
|
clocks = <&rcc SDMMC3_K>;
|
|
+ clock-names = "apb_pclk";
|
|
resets = <&rcc SDMMC3_R>;
|
|
- st,idma = <1>;
|
|
cap-sd-highspeed;
|
|
cap-mmc-highspeed;
|
|
max-frequency = <120000000>;
|
|
@@ -686,34 +1220,66 @@
|
|
g-np-tx-fifo-size = <32>;
|
|
g-tx-fifo-size = <128 128 64 64 64 64 32 32>;
|
|
dr_mode = "otg";
|
|
+ usb33d-supply = <&usb33>;
|
|
power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
+ hsem: hwspinlock@4c000000 {
|
|
+ compatible = "st,stm32-hwspinlock";
|
|
+ #hwlock-cells = <1>;
|
|
+ reg = <0x4c000000 0x400>;
|
|
+ clocks = <&rcc HSEM>;
|
|
+ clock-names = "hsem";
|
|
+ status = "okay";
|
|
+ };
|
|
+
|
|
+ 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";
|
|
+ };
|
|
+
|
|
+ dcmi: dcmi@4c006000 {
|
|
+ compatible = "st,stm32-dcmi";
|
|
+ reg = <0x4c006000 0x400>;
|
|
+ interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ resets = <&rcc CAMITF_R>;
|
|
+ clocks = <&rcc DCMI>;
|
|
+ clock-names = "mclk";
|
|
+ dmas = <&dmamux1 75 0x400 0xd>;
|
|
+ dma-names = "tx";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
rcc: rcc@50000000 {
|
|
compatible = "st,stm32mp1-rcc", "syscon";
|
|
reg = <0x50000000 0x1000>;
|
|
#clock-cells = <1>;
|
|
#reset-cells = <1>;
|
|
- };
|
|
-
|
|
- rcc_reboot: rcc-reboot@50000000 {
|
|
- compatible = "syscon-reboot";
|
|
- regmap = <&rcc>;
|
|
- offset = <0x404>;
|
|
- mask = <0x1>;
|
|
+ interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
|
|
};
|
|
|
|
pwr: pwr@50001000 {
|
|
- compatible = "st,stm32mp1-pwr", "st,stm32-pwr", "syscon", "simple-mfd";
|
|
+ compatible = "st,stm32mp1-pwr", "syscon", "simple-mfd";
|
|
reg = <0x50001000 0x400>;
|
|
- system-power-controller;
|
|
+
|
|
interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
|
|
- st,sysrcc = <&rcc>;
|
|
- clocks = <&rcc PLL2_R>;
|
|
- clock-names = "phyclk";
|
|
|
|
- pwr-regulators@c {
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <3>;
|
|
+
|
|
+ pwr-regulators {
|
|
compatible = "st,stm32mp1,pwr-reg";
|
|
st,tzcr = <&rcc 0x0 0x1>;
|
|
|
|
@@ -742,11 +1308,24 @@
|
|
interrupt-controller;
|
|
#interrupt-cells = <2>;
|
|
reg = <0x5000d000 0x400>;
|
|
+ hwlocks = <&hsem 1>;
|
|
+
|
|
+ /* exti_pwr is an extra interrupt controller used for
|
|
+ * EXTI 55 to 60. It's mapped on pwr interrupt
|
|
+ * controller.
|
|
+ */
|
|
+ exti_pwr: exti-pwr {
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <2>;
|
|
+ interrupt-parent = <&pwr>;
|
|
+ st,irq-number = <6>;
|
|
+ };
|
|
};
|
|
|
|
- syscfg: system-config@50020000 {
|
|
- compatible = "st,stm32-syscfg", "syscon";
|
|
+ syscfg: syscon@50020000 {
|
|
+ compatible = "st,stm32mp157-syscfg", "syscon";
|
|
reg = <0x50020000 0x400>;
|
|
+ clocks = <&rcc SYSCFG>;
|
|
};
|
|
|
|
lptimer2: timer@50021000 {
|
|
@@ -756,6 +1335,7 @@
|
|
reg = <0x50021000 0x400>;
|
|
clocks = <&rcc LPTIM2_K>;
|
|
clock-names = "mux";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -783,6 +1363,7 @@
|
|
reg = <0x50022000 0x400>;
|
|
clocks = <&rcc LPTIM3_K>;
|
|
clock-names = "mux";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -803,6 +1384,7 @@
|
|
reg = <0x50023000 0x400>;
|
|
clocks = <&rcc LPTIM4_K>;
|
|
clock-names = "mux";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -817,6 +1399,7 @@
|
|
reg = <0x50024000 0x400>;
|
|
clocks = <&rcc LPTIM5_K>;
|
|
clock-names = "mux";
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
|
|
pwm {
|
|
@@ -835,6 +1418,196 @@
|
|
status = "disabled";
|
|
};
|
|
|
|
+ sai4: sai@50027000 {
|
|
+ compatible = "st,stm32h7-sai";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ranges = <0 0x50027000 0x400>;
|
|
+ reg = <0x50027000 0x4>;
|
|
+ interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ resets = <&rcc SAI4_R>;
|
|
+ status = "disabled";
|
|
+
|
|
+ sai4a: audio-controller@50027004 {
|
|
+ #sound-dai-cells = <0>;
|
|
+ compatible = "st,stm32-sai-sub-a";
|
|
+ reg = <0x04 0x1c>;
|
|
+ clocks = <&rcc SAI4_K>;
|
|
+ clock-names = "sai_ck";
|
|
+ dmas = <&dmamux1 99 0x400 0x01>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ sai4b: audio-controller@50027024 {
|
|
+ #sound-dai-cells = <0>;
|
|
+ compatible = "st,stm32-sai-sub-b";
|
|
+ reg = <0x24 0x1c>;
|
|
+ dmas = <&dmamux1 100 0x400 0x01>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dts: thermal@50028000 {
|
|
+ compatible = "st,stm32-thermal";
|
|
+ reg = <0x50028000 0x100>;
|
|
+ interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&rcc TMPSENS>;
|
|
+ clock-names = "pclk";
|
|
+ #thermal-sensor-cells = <0>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ hdp: hdp@5002a000 {
|
|
+ compatible = "st,stm32mp1-hdp";
|
|
+ reg = <0x5002a000 0x400>;
|
|
+ clocks = <&rcc HDP>;
|
|
+ clock-names = "hdp";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ funnel: funnel@50091000 {
|
|
+ compatible = "arm,coresight-funnel", "arm,primecell";
|
|
+ reg = <0x50091000 0x1000>;
|
|
+ clocks = <&rcc CK_TRACE>;
|
|
+ clock-names = "apb_pclk";
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ /* funnel input ports */
|
|
+ port@0 {
|
|
+ reg = <0>;
|
|
+ funnel_in_port0: endpoint {
|
|
+ slave-mode;
|
|
+ remote-endpoint = <&stm_out_port>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ port@1 {
|
|
+ reg = <1>;
|
|
+ funnel_in_port1: endpoint {
|
|
+ slave-mode; /* A7-1 input */
|
|
+ remote-endpoint = <&etm1_out_port>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ port@2 {
|
|
+ reg = <2>;
|
|
+ funnel_in_port2: endpoint {
|
|
+ slave-mode; /* A7-2 input */
|
|
+ remote-endpoint = <&etm2_out_port>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ port@4 {
|
|
+ reg = <4>;
|
|
+ funnel_in_port4: endpoint {
|
|
+ slave-mode; /* REPLICATOR input */
|
|
+ remote-endpoint = <&replicator_out_port0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ port@5 {
|
|
+ reg = <0>;
|
|
+ funnel_out_port0: endpoint {
|
|
+ remote-endpoint = <&etf_in_port>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ etf: etf@50092000 {
|
|
+ compatible = "arm,coresight-tmc", "arm,primecell";
|
|
+ reg = <0x50092000 0x1000>;
|
|
+ clocks = <&rcc CK_TRACE>;
|
|
+ clock-names = "apb_pclk";
|
|
+
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ port@0 {
|
|
+ reg = <0>;
|
|
+ etf_in_port: endpoint {
|
|
+ slave-mode;
|
|
+ remote-endpoint = <&funnel_out_port0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ port@1 {
|
|
+ reg = <0>;
|
|
+ etf_out_port: endpoint {
|
|
+ remote-endpoint = <&tpiu_in_port>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ tpiu: tpiu@50093000 {
|
|
+ compatible = "arm,coresight-tpiu", "arm,primecell";
|
|
+ reg = <0x50093000 0x1000>;
|
|
+ clocks = <&rcc CK_TRACE>;
|
|
+ clock-names = "apb_pclk";
|
|
+
|
|
+ port {
|
|
+ tpiu_in_port: endpoint {
|
|
+ slave-mode;
|
|
+ remote-endpoint = <&etf_out_port>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ stm: stm@500a0000 {
|
|
+ compatible = "arm,coresight-stm", "arm,primecell";
|
|
+ reg = <0x500a0000 0x1000>, <0x90000000 0x1000000>,
|
|
+ <0x50094000 0x1000>;
|
|
+ reg-names = "stm-base", "stm-stimulus-base", "cti-base";
|
|
+
|
|
+ clocks = <&rcc CK_TRACE>;
|
|
+ clock-names = "apb_pclk";
|
|
+
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ port@0 {
|
|
+ reg = <0>;
|
|
+ stm_out_port: endpoint {
|
|
+ remote-endpoint = <&funnel_in_port0>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ /* Cortex A7-1 */
|
|
+ etm1: etm@500dc000 {
|
|
+ compatible = "arm,coresight-etm3x", "arm,primecell";
|
|
+ reg = <0x500dc000 0x1000>;
|
|
+ cpu = <&cpu0>;
|
|
+ clocks = <&rcc CK_TRACE>;
|
|
+ clock-names = "apb_pclk";
|
|
+ port {
|
|
+ etm1_out_port: endpoint {
|
|
+ remote-endpoint = <&funnel_in_port1>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ /* Cortex A7-2 */
|
|
+ etm2: etm@500dd000 {
|
|
+ compatible = "arm,coresight-etm3x", "arm,primecell";
|
|
+ reg = <0x500dd000 0x1000>;
|
|
+ cpu = <&cpu1>;
|
|
+ clocks = <&rcc CK_TRACE>;
|
|
+ clock-names = "apb_pclk";
|
|
+
|
|
+ port {
|
|
+ etm2_out_port: endpoint {
|
|
+ remote-endpoint = <&funnel_in_port2>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
cryp1: cryp@54001000 {
|
|
compatible = "st,stm32mp1-cryp";
|
|
reg = <0x54001000 0x400>;
|
|
@@ -844,6 +1617,18 @@
|
|
status = "disabled";
|
|
};
|
|
|
|
+ hash1: hash@54002000 {
|
|
+ compatible = "st,stm32f756-hash";
|
|
+ reg = <0x54002000 0x400>;
|
|
+ interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&rcc HASH1>;
|
|
+ resets = <&rcc HASH1_R>;
|
|
+ dmas = <&mdma1 31 0x10 0x1000A02 0x0 0x0 0x0 0x0>;
|
|
+ dma-names = "in";
|
|
+ dma-maxburst = <2>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
rng1: rng@54003000 {
|
|
compatible = "st,stm32-rng";
|
|
reg = <0x54003000 0x400>;
|
|
@@ -857,28 +1642,52 @@
|
|
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>;
|
|
reg-names = "qspi", "qspi_mm";
|
|
interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ dmas = <&mdma1 22 0x10 0x100002 0x0 0x0 0x0>,
|
|
+ <&mdma1 22 0x10 0x100008 0x0 0x0 0x0>;
|
|
+ dma-names = "tx", "rx";
|
|
clocks = <&rcc QSPI_K>;
|
|
resets = <&rcc QSPI_R>;
|
|
status = "disabled";
|
|
};
|
|
|
|
sdmmc1: sdmmc@58005000 {
|
|
- compatible = "st,stm32-sdmmc2";
|
|
+ compatible = "arm,pl18x", "arm,primecell";
|
|
+ arm,primecell-periphid = <0x00253180>;
|
|
reg = <0x58005000 0x1000>, <0x58006000 0x1000>;
|
|
- reg-names = "sdmmc", "delay";
|
|
+ interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "cmd_irq";
|
|
clocks = <&rcc SDMMC1_K>;
|
|
+ clock-names = "apb_pclk";
|
|
resets = <&rcc SDMMC1_R>;
|
|
- st,idma = <1>;
|
|
cap-sd-highspeed;
|
|
cap-mmc-highspeed;
|
|
max-frequency = <120000000>;
|
|
@@ -886,13 +1695,14 @@
|
|
};
|
|
|
|
sdmmc2: sdmmc@58007000 {
|
|
- compatible = "st,stm32-sdmmc2";
|
|
+ compatible = "arm,pl18x", "arm,primecell";
|
|
+ arm,primecell-periphid = <0x00253180>;
|
|
reg = <0x58007000 0x1000>, <0x58008000 0x1000>;
|
|
- reg-names = "sdmmc", "delay";
|
|
- interrupts = <GIC_SPI 124 IRQ_TYPE_NONE>;
|
|
+ interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "cmd_irq";
|
|
clocks = <&rcc SDMMC2_K>;
|
|
+ clock-names = "apb_pclk";
|
|
resets = <&rcc SDMMC2_R>;
|
|
- st,idma = <1>;
|
|
cap-sd-highspeed;
|
|
cap-mmc-highspeed;
|
|
max-frequency = <120000000>;
|
|
@@ -906,12 +1716,47 @@
|
|
status = "disabled";
|
|
};
|
|
|
|
+ stmmac_axi_config_0: stmmac-axi-config {
|
|
+ snps,wr_osr_lmt = <0x7>;
|
|
+ snps,rd_osr_lmt = <0x7>;
|
|
+ snps,blen = <0 0 0 0 16 8 4>;
|
|
+ };
|
|
+
|
|
+ ethernet0: ethernet@5800a000 {
|
|
+ compatible = "st,stm32mp1-dwmac", "snps,dwmac-4.20a";
|
|
+ reg = <0x5800a000 0x2000>;
|
|
+ reg-names = "stmmaceth";
|
|
+ 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",
|
|
+ "ethstp";
|
|
+ clocks = <&rcc ETHMAC>,
|
|
+ <&rcc ETHTX>,
|
|
+ <&rcc ETHRX>,
|
|
+ <&rcc ETHSTP>;
|
|
+ st,syscon = <&syscfg 0x4>;
|
|
+ snps,mixed-burst;
|
|
+ snps,pbl = <2>;
|
|
+ snps,en-tx-lpi-clockgating;
|
|
+ snps,axi-config = <&stmmac_axi_config_0>;
|
|
+ snps,tso;
|
|
+ power-domains = <&pd_core>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
usbh_ohci: usbh-ohci@5800c000 {
|
|
compatible = "generic-ohci";
|
|
reg = <0x5800c000 0x1000>;
|
|
clocks = <&rcc USBH>;
|
|
resets = <&rcc USBH_R>;
|
|
interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ power-domains = <&pd_core>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -922,6 +1767,17 @@
|
|
resets = <&rcc USBH_R>;
|
|
interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
|
|
companion = <&usbh_ohci>;
|
|
+ power-domains = <&pd_core>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ gpu: gpu@59000000 {
|
|
+ compatible = "vivante,gc";
|
|
+ reg = <0x59000000 0x800>;
|
|
+ interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&rcc GPU>, <&rcc GPU_K>;
|
|
+ clock-names = "bus" ,"core";
|
|
+ resets = <&rcc GPU_R>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -932,6 +1788,7 @@
|
|
clock-names = "pclk", "ref", "px_clk";
|
|
resets = <&rcc DSI_R>;
|
|
reset-names = "apb";
|
|
+ phy-dsi-supply = <®18>;
|
|
status = "disabled";
|
|
};
|
|
|
|
@@ -946,13 +1803,24 @@
|
|
status = "disabled";
|
|
};
|
|
|
|
+ iwdg2: watchdog@5a002000 {
|
|
+ compatible = "st,stm32mp1-iwdg";
|
|
+ reg = <0x5a002000 0x400>;
|
|
+ clocks = <&rcc IWDG2>, <&rcc CK_LSI>;
|
|
+ clock-names = "pclk", "lsi";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
usbphyc: usbphyc@5a006000 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
+ #clock-cells = <0>;
|
|
compatible = "st,stm32mp1-usbphyc";
|
|
reg = <0x5a006000 0x1000>;
|
|
clocks = <&rcc USBPHY_K>;
|
|
resets = <&rcc USBPHY_R>;
|
|
+ vdda1v1-supply = <®11>;
|
|
+ vdda1v8-supply = <®18>;
|
|
status = "disabled";
|
|
|
|
usbphyc_port0: usb-phy@0 {
|
|
@@ -969,35 +1837,136 @@
|
|
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>;
|
|
+ resets = <&rcc USART1_R>;
|
|
+ wakeup-source;
|
|
+ power-domains = <&pd_core>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ spi6: spi@5c001000 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ compatible = "st,stm32h7-spi";
|
|
+ reg = <0x5c001000 0x400>;
|
|
+ interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&rcc SPI6_K>;
|
|
+ resets = <&rcc SPI6_R>;
|
|
+ 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";
|
|
};
|
|
|
|
+ rtc: rtc@5c004000 {
|
|
+ compatible = "st,stm32mp1-rtc";
|
|
+ reg = <0x5c004000 0x400>;
|
|
+ clocks = <&rcc RTCAPB>, <&rcc RTC>;
|
|
+ clock-names = "pclk", "rtc_ck";
|
|
+ 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";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+
|
|
+ ranges = <0x00000000 0x38000000 0x10000>,
|
|
+ <0x30000000 0x30000000 0x60000>,
|
|
+ <0x10000000 0x10000000 0x60000>;
|
|
+ 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";
|
|
};
|
|
};
|
|
+
|
|
+ firmware {
|
|
+ optee {
|
|
+ compatible = "linaro,optee-tz";
|
|
+ method = "smc";
|
|
+ };
|
|
+ };
|
|
};
|
|
diff --git a/arch/arm/dts/stm32mp157caa-pinctrl.dtsi b/arch/arm/dts/stm32mp157caa-pinctrl.dtsi
|
|
new file mode 100644
|
|
index 0000000..9b9cd08
|
|
--- /dev/null
|
|
+++ b/arch/arm/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/dts/stm32mp157cab-pinctrl.dtsi b/arch/arm/dts/stm32mp157cab-pinctrl.dtsi
|
|
new file mode 100644
|
|
index 0000000..c570cf9
|
|
--- /dev/null
|
|
+++ b/arch/arm/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/dts/stm32mp157cac-pinctrl.dtsi b/arch/arm/dts/stm32mp157cac-pinctrl.dtsi
|
|
new file mode 100644
|
|
index 0000000..777f991
|
|
--- /dev/null
|
|
+++ b/arch/arm/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/dts/stm32mp157cad-pinctrl.dtsi b/arch/arm/dts/stm32mp157cad-pinctrl.dtsi
|
|
new file mode 100644
|
|
index 0000000..c4c303a
|
|
--- /dev/null
|
|
+++ b/arch/arm/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>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
|
|
index 57e0dd7..2505d53 100644
|
|
--- a/arch/sandbox/dts/test.dts
|
|
+++ b/arch/sandbox/dts/test.dts
|
|
@@ -712,6 +712,14 @@
|
|
sandbox_tee {
|
|
compatible = "sandbox,tee";
|
|
};
|
|
+
|
|
+ pinctrl {
|
|
+ compatible = "sandbox,pinctrl";
|
|
+ };
|
|
+
|
|
+ hwspinlock@0 {
|
|
+ compatible = "sandbox,hwspinlock";
|
|
+ };
|
|
};
|
|
|
|
#include "sandbox_pmic.dtsi"
|
|
diff --git a/doc/device-tree-bindings/arm/stm32.txt b/doc/device-tree-bindings/arm/stm32.txt
|
|
new file mode 100644
|
|
index 0000000..a871a78
|
|
--- /dev/null
|
|
+++ b/doc/device-tree-bindings/arm/stm32.txt
|
|
@@ -0,0 +1,17 @@
|
|
+STMicroelectronics STM32 Platforms Device Tree Bindings
|
|
+
|
|
+Each device tree must specify which STM32 SoC it uses,
|
|
+using one of the following compatible strings:
|
|
+
|
|
+ st,stm32f429
|
|
+ st,stm32f469
|
|
+ st,stm32f746
|
|
+ st,stm32h743
|
|
+ st,stm32mp157
|
|
+
|
|
+Required nodes:
|
|
+
|
|
+- syscon: some subnode of the STM32 SoC node must be a
|
|
+ system controller node pointing to the control registers,
|
|
+ with the compatible string set to one of these tuples:
|
|
+ "st,stm32-syscfg", "syscon"
|
|
diff --git a/doc/device-tree-bindings/clock/st,stm32-rcc.txt b/doc/device-tree-bindings/clock/st,stm32-rcc.txt
|
|
index 0532d81..b240121 100644
|
|
--- a/doc/device-tree-bindings/clock/st,stm32-rcc.txt
|
|
+++ b/doc/device-tree-bindings/clock/st,stm32-rcc.txt
|
|
@@ -10,6 +10,7 @@ Required properties:
|
|
- compatible: Should be:
|
|
"st,stm32f42xx-rcc"
|
|
"st,stm32f469-rcc"
|
|
+ "st,stm32f746-rcc"
|
|
- reg: should be register base and length as documented in the
|
|
datasheet
|
|
- #reset-cells: 1, see below
|
|
@@ -17,6 +18,9 @@ Required properties:
|
|
property, containing a phandle to the clock device node, an index selecting
|
|
between gated clocks and other clocks and an index specifying the clock to
|
|
use.
|
|
+- clocks: External oscillator clock phandle
|
|
+ - high speed external clock signal (HSE)
|
|
+ - external I2S clock (I2S_CKIN)
|
|
|
|
Example:
|
|
|
|
@@ -25,6 +29,7 @@ Example:
|
|
#clock-cells = <2>
|
|
compatible = "st,stm32f42xx-rcc", "st,stm32-rcc";
|
|
reg = <0x40023800 0x400>;
|
|
+ clocks = <&clk_hse>, <&clk_i2s_ckin>;
|
|
};
|
|
|
|
Specifying gated clocks
|
|
@@ -66,6 +71,38 @@ The secondary index is bound with the following magic numbers:
|
|
|
|
0 SYSTICK
|
|
1 FCLK
|
|
+ 2 CLK_LSI (low-power clock source)
|
|
+ 3 CLK_LSE (generated from a 32.768 kHz low-speed external
|
|
+ crystal or ceramic resonator)
|
|
+ 4 CLK_HSE_RTC (HSE division factor for RTC clock)
|
|
+ 5 CLK_RTC (real-time clock)
|
|
+ 6 PLL_VCO_I2S (vco frequency of I2S pll)
|
|
+ 7 PLL_VCO_SAI (vco frequency of SAI pll)
|
|
+ 8 CLK_LCD (LCD-TFT)
|
|
+ 9 CLK_I2S (I2S clocks)
|
|
+ 10 CLK_SAI1 (audio clocks)
|
|
+ 11 CLK_SAI2
|
|
+ 12 CLK_I2SQ_PDIV (post divisor of pll i2s q divisor)
|
|
+ 13 CLK_SAIQ_PDIV (post divisor of pll sai q divisor)
|
|
+
|
|
+ 14 CLK_HSI (Internal ocscillator clock)
|
|
+ 15 CLK_SYSCLK (System Clock)
|
|
+ 16 CLK_HDMI_CEC (HDMI-CEC clock)
|
|
+ 17 CLK_SPDIF (SPDIF-Rx clock)
|
|
+ 18 CLK_USART1 (U(s)arts clocks)
|
|
+ 19 CLK_USART2
|
|
+ 20 CLK_USART3
|
|
+ 21 CLK_UART4
|
|
+ 22 CLK_UART5
|
|
+ 23 CLK_USART6
|
|
+ 24 CLK_UART7
|
|
+ 25 CLK_UART8
|
|
+ 26 CLK_I2C1 (I2S clocks)
|
|
+ 27 CLK_I2C2
|
|
+ 28 CLK_I2C3
|
|
+ 29 CLK_I2C4
|
|
+ 30 CLK_LPTIMER (LPTimer1 clock)
|
|
+)
|
|
|
|
Example:
|
|
|
|
diff --git a/doc/device-tree-bindings/clock/st,stm32mp1-rcc.txt b/doc/device-tree-bindings/clock/st,stm32mp1-rcc.txt
|
|
new file mode 100644
|
|
index 0000000..fb9495e
|
|
--- /dev/null
|
|
+++ b/doc/device-tree-bindings/clock/st,stm32mp1-rcc.txt
|
|
@@ -0,0 +1,60 @@
|
|
+STMicroelectronics STM32 Peripheral Reset Clock Controller
|
|
+==========================================================
|
|
+
|
|
+The RCC IP is both a reset and a clock controller.
|
|
+
|
|
+RCC makes also power management (resume/supend and wakeup interrupt).
|
|
+
|
|
+Please also refer to reset.txt for common reset controller binding usage.
|
|
+
|
|
+Please also refer to clock-bindings.txt for common clock controller
|
|
+binding usage.
|
|
+
|
|
+
|
|
+Required properties:
|
|
+- compatible: "st,stm32mp1-rcc", "syscon"
|
|
+- reg: should be register base and length as documented in the datasheet
|
|
+- #clock-cells: 1, device nodes should specify the clock in their
|
|
+ "clocks" property, containing a phandle to the clock device node,
|
|
+ an index specifying the clock to use.
|
|
+- #reset-cells: Shall be 1
|
|
+- interrupts: Should contain a general interrupt line and a interrupt line
|
|
+ to the wake-up of processor (CSTOP).
|
|
+
|
|
+Example:
|
|
+ rcc: rcc@50000000 {
|
|
+ compatible = "st,stm32mp1-rcc", "syscon";
|
|
+ reg = <0x50000000 0x1000>;
|
|
+ #clock-cells = <1>;
|
|
+ #reset-cells = <1>;
|
|
+ interrupts = <GIC_SPI 5 IRQ_TYPE_NONE>,
|
|
+ <GIC_SPI 145 IRQ_TYPE_NONE>;
|
|
+ };
|
|
+
|
|
+Specifying clocks
|
|
+=================
|
|
+
|
|
+All available clocks are defined as preprocessor macros in
|
|
+dt-bindings/clock/stm32mp1-clks.h header and can be used in device
|
|
+tree sources.
|
|
+
|
|
+Specifying softreset control of devices
|
|
+=======================================
|
|
+
|
|
+Device nodes should specify the reset channel required in their "resets"
|
|
+property, containing a phandle to the reset device node and an index specifying
|
|
+which channel to use.
|
|
+The index is the bit number within the RCC registers bank, starting from RCC
|
|
+base address.
|
|
+It is calculated as: index = register_offset / 4 * 32 + bit_offset.
|
|
+Where bit_offset is the bit offset within the register.
|
|
+
|
|
+For example on STM32MP1, for LTDC reset:
|
|
+ ltdc = APB4_RSTSETR_offset / 4 * 32 + LTDC_bit_offset
|
|
+ = 0x180 / 4 * 32 + 0 = 3072
|
|
+
|
|
+The list of valid indices for STM32MP1 is available in:
|
|
+include/dt-bindings/reset-controller/stm32mp1-resets.h
|
|
+
|
|
+This file implements defines like:
|
|
+#define LTDC_R 3072
|
|
diff --git a/doc/device-tree-bindings/i2c/i2c-stm32.txt b/doc/device-tree-bindings/i2c/i2c-stm32.txt
|
|
index df03743..352dba5 100644
|
|
--- a/doc/device-tree-bindings/i2c/i2c-stm32.txt
|
|
+++ b/doc/device-tree-bindings/i2c/i2c-stm32.txt
|
|
@@ -1,30 +1,102 @@
|
|
-* I2C controller embedded in STMicroelectronis STM32 platforms
|
|
+* I2C controller embedded in STMicroelectronics STM32 I2C platform
|
|
|
|
Required properties :
|
|
-- compatible : Must be "st,stm32f7-i2c"
|
|
+- compatible : Must be one of the following
|
|
+ - "st,stm32f4-i2c"
|
|
+ - "st,stm32f7-i2c"
|
|
- reg : Offset and length of the register set for the device
|
|
-- resets: Must contain the phandle to the reset controller
|
|
-- clocks: Must contain the input clock of the I2C instance
|
|
+- interrupts : Must contain the interrupt id for I2C event and then the
|
|
+ interrupt id for I2C error.
|
|
+- 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>;
|
|
|
|
Optional properties :
|
|
- clock-frequency : Desired I2C bus clock frequency in Hz. If not specified,
|
|
- the default 100 kHz frequency will be used. As only Normal, Fast and Fast+
|
|
- modes are implemented, possible values are 100000, 400000 and 1000000.
|
|
+ the default 100 kHz frequency will be used.
|
|
+ For STM32F4 SoC Standard-mode and Fast-mode are supported, possible values are
|
|
+ 100000 and 400000.
|
|
+ For STM32F7 SoC, Standard-mode, Fast-mode and Fast-mode Plus are supported,
|
|
+ possible values are 100000, 400000 and 1000000.
|
|
+- i2c-scl-rising-time-ns : Only for STM32F7, I2C SCL Rising time for the board
|
|
+ (default: 25)
|
|
+- 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 :
|
|
|
|
- i2c1: i2c@40005400 {
|
|
- compatible = "st,stm32f7-i2c";
|
|
+ i2c@40005400 {
|
|
+ compatible = "st,stm32f4-i2c";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
reg = <0x40005400 0x400>;
|
|
- resets = <&rcc 181>;
|
|
- clocks = <&clk_pclk1>;
|
|
+ interrupts = <31>,
|
|
+ <32>;
|
|
+ resets = <&rcc 277>;
|
|
+ clocks = <&rcc 0 149>;
|
|
+ pinctrl-0 = <&i2c1_sda_pin>, <&i2c1_scl_pin>;
|
|
pinctrl-names = "default";
|
|
- pinctrl-0 = <&pinctrl_i2c1>;
|
|
- clock-frequency = <400000>;
|
|
+ };
|
|
+
|
|
+ i2c@40005400 {
|
|
+ compatible = "st,stm32f7-i2c";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
+ reg = <0x40005400 0x400>;
|
|
+ interrupts = <31>,
|
|
+ <32>;
|
|
+ resets = <&rcc STM32F7_APB1_RESET(I2C1)>;
|
|
+ clocks = <&rcc 1 CLK_I2C1>;
|
|
+ pinctrl-0 = <&i2c1_sda_pin>, <&i2c1_scl_pin>;
|
|
+ pinctrl-1 = <&i2c1_sda_pin_sleep>, <&i2c1_scl_pin_sleep>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ st,syscfg-fmp = <&syscfg 0x4 0x1>;
|
|
+ };
|
|
+
|
|
+* 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 :
|
|
+- wakeup-source
|
|
+ device can be used as a wakeup source. Valid only if device is a
|
|
+ master.
|
|
+- interrupt-names
|
|
+ should be set as "wakeup" if a dedicated wakeup source is used.
|
|
+ Imply "wakeup-source" property
|
|
+- interrupts
|
|
+ defined dedicated IRQ wakeup source from controller.
|
|
+
|
|
+ i2c@40005400 {
|
|
+ camera@3c {
|
|
+ compatible = "ovti,ov5640";
|
|
+ reg = <0x3c>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ i2c@40005400 {
|
|
+ eeprom@64 {
|
|
+ compatible = "linux,slave-24c02";
|
|
+ reg = <0x40000064>;
|
|
+ wakeup-source;
|
|
+ interrupt-names = "wakeup";
|
|
+ interrupts-extended = <&exti 25 1>;
|
|
+ };
|
|
};
|
|
diff --git a/doc/device-tree-bindings/mfd/stpmic1.txt b/doc/device-tree-bindings/mfd/stpmic1.txt
|
|
new file mode 100644
|
|
index 0000000..eb4d692
|
|
--- /dev/null
|
|
+++ b/doc/device-tree-bindings/mfd/stpmic1.txt
|
|
@@ -0,0 +1,138 @@
|
|
+* STMicroelectronics STPMIC1 Power Management IC
|
|
+
|
|
+Required parent device properties:
|
|
+- compatible: "st,stpmic1"
|
|
+- reg: the I2C slave address for the stpmic1 chip
|
|
+- interrupts-extended: interrupt lines to use: second irq is for wakeup.
|
|
+- #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 is a varied group of sub-devices:
|
|
+
|
|
+Device Description
|
|
+------ ------------
|
|
+stpmic1-onkey : On key
|
|
+stpmic1-regulators : Regulators
|
|
+stpmic1-wdt : Watchdog
|
|
+
|
|
+each sub-device bindings is be described in associated driver
|
|
+documentation section.
|
|
+
|
|
+Example:
|
|
+
|
|
+pmic: stpmic1@33 {
|
|
+ compatible = "st,stpmic1";
|
|
+ reg = <0x33>;
|
|
+ interrupts = <0 2>;
|
|
+ interrupts-extended = <&intc GIC_SPI 149 IRQ_TYPE_NONE>,
|
|
+ <&exti 55 1>;
|
|
+ st,version_status = <0x10>;
|
|
+ st,main_control_register=<0x0c>;
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <2>;
|
|
+ onkey {
|
|
+ compatible = "st,stpmic1-onkey";
|
|
+ interrupt-parent = <&pmic>;
|
|
+ interrupts = <7 0>,<6 1>;
|
|
+ st,onkey-pwroff-enabled;
|
|
+ st,onkey-press-seconds = <10>;
|
|
+ };
|
|
+
|
|
+ watchdog {
|
|
+ compatible = "st,stpmic1-wdt";
|
|
+ };
|
|
+
|
|
+ regulators {
|
|
+ compatible = "st,stpmic1-regulators";
|
|
+
|
|
+ vdd_core: regulator@0 {
|
|
+ regulator-compatible = "buck1";
|
|
+ regulator-name = "vdd_core";
|
|
+ regulator-boot-on;
|
|
+ regulator-min-microvolt = <700000>;
|
|
+ regulator-max-microvolt = <1200000>;
|
|
+ };
|
|
+ vdd: regulator@1 {
|
|
+ regulator-compatible = "buck3";
|
|
+ regulator-name = "vdd";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ regulator-boot-on;
|
|
+ regulator-pull-down;
|
|
+ };
|
|
+ };
|
|
diff --git a/doc/device-tree-bindings/mtd/stm32-fmc2-nand.txt b/doc/device-tree-bindings/mtd/stm32-fmc2-nand.txt
|
|
new file mode 100644
|
|
index 0000000..68eebb6
|
|
--- /dev/null
|
|
+++ b/doc/device-tree-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
|
|
+
|
|
+* NAND device bindings:
|
|
+
|
|
+Required properties:
|
|
+- reg: describes the CS lines assigned to the NAND device.
|
|
+
|
|
+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/doc/device-tree-bindings/mtd/stm32-quadspi.txt b/doc/device-tree-bindings/mtd/stm32-quadspi.txt
|
|
new file mode 100644
|
|
index 0000000..ddd18c1
|
|
--- /dev/null
|
|
+++ b/doc/device-tree-bindings/mtd/stm32-quadspi.txt
|
|
@@ -0,0 +1,43 @@
|
|
+* STMicroelectronics Quad Serial Peripheral Interface(QuadSPI)
|
|
+
|
|
+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 must be a child of the nor_flash node and could have some
|
|
+properties. Also see jedec,spi-nor.txt.
|
|
+
|
|
+Required properties:
|
|
+- reg: chip-Select number (QSPI controller may connect 2 nor flashes)
|
|
+- spi-max-frequency: max frequency of spi bus
|
|
+
|
|
+Optional property:
|
|
+- spi-rx-bus-width: see ../spi/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 {
|
|
+ reg = <0>;
|
|
+ spi-rx-bus-width = <4>;
|
|
+ spi-max-frequency = <108000000>;
|
|
+ ...
|
|
+ };
|
|
+};
|
|
diff --git a/doc/device-tree-bindings/net/snps,dwc-qos-ethernet.txt b/doc/device-tree-bindings/net/snps,dwc-qos-ethernet.txt
|
|
index d93f71c..21d27aa 100644
|
|
--- a/doc/device-tree-bindings/net/snps,dwc-qos-ethernet.txt
|
|
+++ b/doc/device-tree-bindings/net/snps,dwc-qos-ethernet.txt
|
|
@@ -1,5 +1,8 @@
|
|
* Synopsys DWC Ethernet QoS IP version 4.10 driver (GMAC)
|
|
|
|
+This binding is deprecated, but it continues to be supported, but new
|
|
+features should be preferably added to the stmmac binding document.
|
|
+
|
|
This binding supports the Synopsys Designware Ethernet QoS (Quality Of Service)
|
|
IP block. The IP supports multiple options for bus type, clocking and reset
|
|
structure, and feature list. Consequently, a number of properties and list
|
|
diff --git a/doc/device-tree-bindings/net/stm32-dwmac.txt b/doc/device-tree-bindings/net/stm32-dwmac.txt
|
|
new file mode 100644
|
|
index 0000000..73773ec
|
|
--- /dev/null
|
|
+++ b/doc/device-tree-bindings/net/stm32-dwmac.txt
|
|
@@ -0,0 +1,62 @@
|
|
+STMicroelectronics STM32 / MCU DWMAC glue layer controller
|
|
+
|
|
+This file documents platform glue layer for stmmac.
|
|
+Please see stmmac.txt for the other unchanged properties.
|
|
+
|
|
+The device node has following properties.
|
|
+
|
|
+Required properties:
|
|
+- compatible: For MCU family should be "st,stm32-dwmac" to select glue, and
|
|
+ "snps,dwmac-3.50a" to select IP version.
|
|
+ For MPU family should be "st,stm32mp1-dwmac" to select
|
|
+ glue, and "snps,dwmac-4.20a" to select IP version.
|
|
+- clocks: Must contain a phandle for each entry in clock-names.
|
|
+- clock-names: Should be "stmmaceth" for the host clock.
|
|
+ Should be "mac-clk-tx" for the MAC TX clock.
|
|
+ Should be "mac-clk-rx" for the MAC RX clock.
|
|
+ For MPU family need to add also "ethstp" for power mode clock and,
|
|
+ "syscfg-clk" for SYSCFG clock.
|
|
+- interrupt-names: Should contain a list of interrupt names corresponding to
|
|
+ the interrupts in the interrupts property, if available.
|
|
+ Should be "macirq" for the main MAC IRQ
|
|
+ Should be "eth_wake_irq" for the IT which wake up system
|
|
+- st,syscon : Should be phandle/offset pair. The phandle to the syscon node which
|
|
+ encompases the glue register, and the offset of the control register.
|
|
+
|
|
+Optional properties:
|
|
+- clock-names: For MPU family "mac-clk-ck" for PHY without quartz
|
|
+- st,eth_clk_sel (boolean) : set this property in RGMII PHY when you do not want use 125Mhz
|
|
+- st,eth_ref_clk_sel (boolean) : set this property in RMII mode when you have PHY without crystal 50MHz
|
|
+
|
|
+ ---------------------------------------------------------------------------------------
|
|
+ | PHY_MODE | Normal | PHY wo crystal| PHY wo crystal |No 125Mhz from PHY|
|
|
+ | | | 25MHz | 50MHz | |
|
|
+ ---------------------------------------------------------------------------------------
|
|
+ | MII | - | eth-ck | n/a | n/a |
|
|
+ | | | | | |
|
|
+ ---------------------------------------------------------------------------------------
|
|
+ | GMII | - | eth-ck | n/a | n/a |
|
|
+ | | | | | |
|
|
+ ---------------------------------------------------------------------------------------
|
|
+ | RGMII | - | eth-ck | n/a | eth-ck (no pin) |
|
|
+ | | | | | st,eth_clk_sel |
|
|
+ ---------------------------------------------------------------------------------------
|
|
+ | RMII | - | eth-ck | eth-ck | n/a |
|
|
+ | | | | st,eth_ref_clk_sel | |
|
|
+ ---------------------------------------------------------------------------------------
|
|
+
|
|
+Example:
|
|
+
|
|
+ ethernet@40028000 {
|
|
+ compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
|
|
+ reg = <0x40028000 0x8000>;
|
|
+ reg-names = "stmmaceth";
|
|
+ interrupts = <0 61 0>, <0 62 0>;
|
|
+ interrupt-names = "macirq", "eth_wake_irq";
|
|
+ clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
|
|
+ clocks = <&rcc 0 25>, <&rcc 0 26>, <&rcc 0 27>;
|
|
+ st,syscon = <&syscfg 0x4>;
|
|
+ snps,pbl = <8>;
|
|
+ snps,mixed-burst;
|
|
+ dma-ranges;
|
|
+ };
|
|
diff --git a/doc/device-tree-bindings/phy/phy-stm32-usbphyc.txt b/doc/device-tree-bindings/phy/phy-stm32-usbphyc.txt
|
|
index 725ae71..cc44bf4 100644
|
|
--- a/doc/device-tree-bindings/phy/phy-stm32-usbphyc.txt
|
|
+++ b/doc/device-tree-bindings/phy/phy-stm32-usbphyc.txt
|
|
@@ -23,8 +23,12 @@ Required properties:
|
|
- compatible: must be "st,stm32mp1-usbphyc"
|
|
- reg: address and length of the usb phy control register set
|
|
- clocks: phandle + clock specifier for the PLL phy clock
|
|
+- vdda1v1-supply: phandle to the regulator providing 1V1 power to the PHY
|
|
+- vdda1v8-supply: phandle to the regulator providing 1V8 power to the PHY
|
|
+- vdd3v3-supply: phandle to the regulator providing 3V3 power to the PHY
|
|
- #address-cells: number of address cells for phys sub-nodes, must be <1>
|
|
- #size-cells: number of size cells for phys sub-nodes, must be <0>
|
|
+- #clock-cells: number of clock cells for ck_usbo_48m consumer, must be <0>
|
|
|
|
Optional properties:
|
|
- assigned-clocks: phandle + clock specifier for the PLL phy clock
|
|
@@ -34,40 +38,79 @@ Optional properties:
|
|
Required nodes: one sub-node per port the controller provides.
|
|
|
|
Phy sub-nodes
|
|
-==============
|
|
+=============
|
|
|
|
Required properties:
|
|
- reg: phy port index
|
|
-- phy-supply: phandle to the regulator providing 3V3 power to the PHY,
|
|
- see phy-bindings.txt in the same directory.
|
|
-- vdda1v1-supply: phandle to the regulator providing 1V1 power to the PHY
|
|
-- vdda1v8-supply: phandle to the regulator providing 1V8 power to the PHY
|
|
- #phy-cells: see phy-bindings.txt in the same directory, must be <0> for PHY
|
|
port#1 and must be <1> for PHY port#2, to select USB controller
|
|
|
|
+Optional properties:
|
|
+- st,phy-tuning : phandle to the usb phy tuning node, see Phy tuning node below
|
|
+
|
|
+Phy tuning node
|
|
+===============
|
|
+
|
|
+It may be necessary to adjust the phy settings to compensate parasitics, which
|
|
+can be due to USB connector/receptacle, routing, ESD protection component, ...
|
|
+
|
|
+Here is the list of all optional parameters to tune the interface of the phy
|
|
+(HS for High-Speed, FS for Full-Speed, LS for Low-Speed)
|
|
+
|
|
+Optional properties:
|
|
+- st,current-boost: <1> current boosting of 1mA
|
|
+ <2> current boosting of 2mA
|
|
+- st,no-lsfs-fb-cap: disables the LS/FS feedback capacitor
|
|
+- st,hs-slew-ctrl: slows the HS driver slew rate by 10%
|
|
+- st,hs-dc-level: <0> decreases the HS driver DC level by 5 to 7mV
|
|
+ <1> increases the HS driver DC level by 5 to 7mV
|
|
+ <2> increases the HS driver DC level by 10 to 14mV
|
|
+- st,fs-rftime-tuning: enables the FS rise/fall tuning option
|
|
+- st,hs-rftime-reduction: enables the HS rise/fall reduction feature
|
|
+- st,hs-current-trim: controls HS driver current trimming for choke
|
|
+- st,hs-impedance-trim: controls HS driver impedance tuning for choke
|
|
+- st,squelch-level: adjusts the squelch DC threshold value
|
|
+- st,hs-rx-gain-eq: enables the HS Rx gain equalizer
|
|
+- st,hs-rx-offset: adjusts the HS Rx offset
|
|
+- st,no-hs-ftime-ctrl: disables the HS fall time control of single
|
|
+ ended signals during pre-emphasis
|
|
+- st,no-lsfs-sc: disables the short circuit protection in LS/FS driver
|
|
+- st,hs-tx-staggering: enables the basic staggering in HS Tx mode
|
|
+
|
|
|
|
Example:
|
|
+ usb_phy_tuning: usb-phy-tuning {
|
|
+ st,current-boost = <2>;
|
|
+ st,no-lfs-fb-cap;
|
|
+ st,hs-dc-level = <2>;
|
|
+ st,hs-rftime-reduction;
|
|
+ st,hs-current-trim = <5>;
|
|
+ st,hs-impedance-trim = <0>;
|
|
+ st,squelch-level = <1>;
|
|
+ st,no-hs-ftime-ctrl;
|
|
+ st,hs-tx-staggering;
|
|
+ };
|
|
+
|
|
usbphyc: usb-phy@5a006000 {
|
|
compatible = "st,stm32mp1-usbphyc";
|
|
reg = <0x5a006000 0x1000>;
|
|
clocks = <&rcc_clk USBPHY_K>;
|
|
resets = <&rcc_rst USBPHY_R>;
|
|
+ vdda1v1-supply = <®11>;
|
|
+ vdda1v8-supply = <®18>;
|
|
+ vdd3v3-supply = <&vdd_usb>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
+ #clock-cells = <0>;
|
|
|
|
usbphyc_port0: usb-phy@0 {
|
|
reg = <0>;
|
|
- phy-supply = <&vdd_usb>;
|
|
- vdda1v1-supply = <®11>;
|
|
- vdda1v8-supply = <®18>
|
|
#phy-cells = <0>;
|
|
};
|
|
|
|
usbphyc_port1: usb-phy@1 {
|
|
reg = <1>;
|
|
- phy-supply = <&vdd_usb>;
|
|
- vdda1v1-supply = <®11>;
|
|
- vdda1v8-supply = <®18>
|
|
#phy-cells = <1>;
|
|
+ st,phy-tuning = <&usb_phy_tuning>;
|
|
};
|
|
};
|
|
diff --git a/doc/device-tree-bindings/pinctrl/st,stm32-pinctrl.txt b/doc/device-tree-bindings/pinctrl/st,stm32-pinctrl.txt
|
|
index c41ae91..1a5d1e2 100644
|
|
--- a/doc/device-tree-bindings/pinctrl/st,stm32-pinctrl.txt
|
|
+++ b/doc/device-tree-bindings/pinctrl/st,stm32-pinctrl.txt
|
|
@@ -8,8 +8,13 @@ controllers onto these pads.
|
|
Pin controller node:
|
|
Required properies:
|
|
- compatible: value should be one of the following:
|
|
- (a) "st,stm32f429-pinctrl"
|
|
- (b) "st,stm32f746-pinctrl"
|
|
+ "st,stm32f429-pinctrl"
|
|
+ "st,stm32f469-pinctrl"
|
|
+ "st,stm32f746-pinctrl"
|
|
+ "st,stm32f769-pinctrl"
|
|
+ "st,stm32h743-pinctrl"
|
|
+ "st,stm32mp157-pinctrl"
|
|
+ "st,stm32mp157-z-pinctrl"
|
|
- #address-cells: The value of this property must be 1
|
|
- #size-cells : The value of this property must be 1
|
|
- ranges : defines mapping between pin controller node (parent) to
|
|
@@ -32,13 +37,30 @@ Required properties:
|
|
|
|
Optional properties:
|
|
- reset: : Reference to the reset controller
|
|
- - interrupt-parent: phandle of the interrupt parent to which the external
|
|
- GPIO interrupts are forwarded to.
|
|
- - st,syscfg: Should be phandle/offset pair. The phandle to the syscon node
|
|
- which includes IRQ mux selection register, and the offset of the IRQ mux
|
|
- selection register.
|
|
+ - st,syscfg: Should be phandle/offset/mask.
|
|
+ -The phandle to the syscon node which includes IRQ mux selection register.
|
|
+ -The offset of the IRQ mux selection register
|
|
+ -The field mask of IRQ mux, needed if different of 0xf.
|
|
+ - gpio-ranges: Define a dedicated mapping between a pin-controller and
|
|
+ a gpio controller. Format is <&phandle a b c> with:
|
|
+ -(phandle): phandle of pin-controller.
|
|
+ -(a): gpio base offset in range.
|
|
+ -(b): pin base offset in range.
|
|
+ -(c): gpio count in range
|
|
+ This entry has to be used either if there are holes inside a bank:
|
|
+ GPIOB0/B1/B2/B14/B15 (see example 2)
|
|
+ or if banks are not contiguous:
|
|
+ GPIOA/B/C/E...
|
|
+ NOTE: If "gpio-ranges" is used for a gpio controller, all gpio-controller
|
|
+ have to use a "gpio-ranges" entry.
|
|
+ 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
|
|
+ - hwlocks: reference to a phandle of a hardware spinlock provider node.
|
|
|
|
-Example:
|
|
+Example 1:
|
|
#include <dt-bindings/pinctrl/stm32f429-pinfunc.h>
|
|
...
|
|
|
|
@@ -60,6 +82,43 @@ Example:
|
|
pin-functions nodes follow...
|
|
};
|
|
|
|
+Example 2:
|
|
+#include <dt-bindings/pinctrl/stm32f429-pinfunc.h>
|
|
+...
|
|
+
|
|
+ pinctrl: pin-controller {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ compatible = "st,stm32f429-pinctrl";
|
|
+ ranges = <0 0x40020000 0x3000>;
|
|
+ pins-are-numbered;
|
|
+
|
|
+ gpioa: gpio@40020000 {
|
|
+ gpio-controller;
|
|
+ #gpio-cells = <2>;
|
|
+ reg = <0x0 0x400>;
|
|
+ resets = <&reset_ahb1 0>;
|
|
+ st,bank-name = "GPIOA";
|
|
+ gpio-ranges = <&pinctrl 0 0 16>;
|
|
+ };
|
|
+
|
|
+ gpiob: gpio@40020400 {
|
|
+ gpio-controller;
|
|
+ #gpio-cells = <2>;
|
|
+ reg = <0x0 0x400>;
|
|
+ resets = <&reset_ahb1 0>;
|
|
+ st,bank-name = "GPIOB";
|
|
+ ngpios = 4;
|
|
+ gpio-ranges = <&pinctrl 0 16 3>,
|
|
+ <&pinctrl 14 30 2>;
|
|
+ };
|
|
+
|
|
+
|
|
+ ...
|
|
+ pin-functions nodes follow...
|
|
+ };
|
|
+
|
|
+
|
|
Contents of function subnode node:
|
|
----------------------------------
|
|
Subnode format
|
|
@@ -83,14 +142,31 @@ Required properties:
|
|
- port: The gpio port index (PA = 0, PB = 1, ..., PK = 11)
|
|
- line: The line offset within the port (PA0 = 0, PA1 = 1, ..., PA15 = 15)
|
|
- function: The function number, can be:
|
|
- * 0 : GPIO IN
|
|
+ * 0 : GPIO
|
|
* 1 : Alternate Function 0
|
|
* 2 : Alternate Function 1
|
|
* 3 : Alternate Function 2
|
|
* ...
|
|
* 16 : Alternate Function 15
|
|
* 17 : Analog
|
|
- * 18 : GPIO OUT
|
|
+
|
|
+ To simplify the usage, macro is available to generate "pinmux" field.
|
|
+ This macro is available here:
|
|
+ - include/dt-bindings/pinctrl/stm32-pinfunc.h
|
|
+
|
|
+ Some examples of using macro:
|
|
+ /* GPIO A9 set as alernate function 2 */
|
|
+ ... {
|
|
+ pinmux = <STM32_PINMUX('A', 9, AF2)>;
|
|
+ };
|
|
+ /* GPIO A9 set as GPIO */
|
|
+ ... {
|
|
+ pinmux = <STM32_PINMUX('A', 9, GPIO)>;
|
|
+ };
|
|
+ /* GPIO A9 set as analog */
|
|
+ ... {
|
|
+ pinmux = <STM32_PINMUX('A', 9, ANALOG)>;
|
|
+ };
|
|
|
|
Optional properties:
|
|
- GENERIC_PINCONFIG: is the generic pinconfig options to use.
|
|
@@ -114,13 +190,13 @@ pin-controller {
|
|
...
|
|
usart1_pins_a: usart1@0 {
|
|
pins1 {
|
|
- pinmux = <STM32F429_PA9_FUNC_USART1_TX>;
|
|
+ pinmux = <STM32_PINMUX('A', 9, AF7)>;
|
|
bias-disable;
|
|
drive-push-pull;
|
|
slew-rate = <0>;
|
|
};
|
|
pins2 {
|
|
- pinmux = <STM32F429_PA10_FUNC_USART1_RX>;
|
|
+ pinmux = <STM32_PINMUX('A', 10, AF7)>;
|
|
bias-disable;
|
|
};
|
|
};
|
|
@@ -129,5 +205,4 @@ pin-controller {
|
|
&usart1 {
|
|
pinctrl-0 = <&usart1_pins_a>;
|
|
pinctrl-names = "default";
|
|
- status = "okay";
|
|
};
|
|
diff --git a/doc/device-tree-bindings/power/st,stm32mp1-pwr.txt b/doc/device-tree-bindings/power/st,stm32mp1-pwr.txt
|
|
new file mode 100644
|
|
index 0000000..ccdaffc
|
|
--- /dev/null
|
|
+++ b/doc/device-tree-bindings/power/st,stm32mp1-pwr.txt
|
|
@@ -0,0 +1,52 @@
|
|
+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/doc/device-tree-bindings/ram/st,stm32mp1-ddr.txt b/doc/device-tree-bindings/ram/st,stm32mp1-ddr.txt
|
|
index 3028636..e5b1bb5 100644
|
|
--- a/doc/device-tree-bindings/ram/st,stm32mp1-ddr.txt
|
|
+++ b/doc/device-tree-bindings/ram/st,stm32mp1-ddr.txt
|
|
@@ -16,7 +16,7 @@ included in STM32 Cube tool
|
|
info attributes:
|
|
----------------
|
|
- st,mem-name : name for DDR configuration, simple string for information
|
|
-- st,mem-speed : DDR expected speed for the setting in MHz
|
|
+- st,mem-speed : DDR expected speed for the setting in kHz
|
|
- st,mem-size : DDR mem size in byte
|
|
|
|
|
|
@@ -173,7 +173,7 @@ Example:
|
|
"ddrphycapb";
|
|
|
|
st,mem-name = "DDR3 2x4Gb 533MHz";
|
|
- st,mem-speed = <533>;
|
|
+ st,mem-speed = <533000>;
|
|
st,mem-size = <0x40000000>;
|
|
|
|
st,ctl-reg = <
|
|
diff --git a/doc/device-tree-bindings/regulator/st,stm32mp1-pwr-reg.txt b/doc/device-tree-bindings/regulator/st,stm32mp1-pwr-reg.txt
|
|
new file mode 100644
|
|
index 0000000..cee27d5
|
|
--- /dev/null
|
|
+++ b/doc/device-tree-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/doc/device-tree-bindings/serial/st,stm32-usart.txt b/doc/device-tree-bindings/serial/st,stm32-usart.txt
|
|
new file mode 100644
|
|
index 0000000..08b4990
|
|
--- /dev/null
|
|
+++ b/doc/device-tree-bindings/serial/st,stm32-usart.txt
|
|
@@ -0,0 +1,88 @@
|
|
+* STMicroelectronics STM32 USART
|
|
+
|
|
+Required properties:
|
|
+- compatible: can be either:
|
|
+ - "st,stm32-uart",
|
|
+ - "st,stm32f7-uart",
|
|
+ - "st,stm32h7-uart".
|
|
+ depending is compatible with stm32(f4), stm32f7 or stm32h7.
|
|
+- reg: The address and length of the peripheral registers space
|
|
+- 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:
|
|
+- resets: Must contain the phandle to the reset controller.
|
|
+- 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 {
|
|
+ compatible = "st,stm32-uart";
|
|
+ reg = <0x40004c00 0x400>;
|
|
+ interrupts = <52>;
|
|
+ clocks = <&clk_pclk1>;
|
|
+ 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 {
|
|
+ compatible = "st,stm32-uart";
|
|
+ reg = <0x40004400 0x400>;
|
|
+ interrupts = <38>;
|
|
+ clocks = <&clk_pclk1>;
|
|
+ st,hw-flow-ctrl;
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&pinctrl_usart2 &pinctrl_usart2_rtscts>;
|
|
+};
|
|
+
|
|
+usart1: serial@40011000 {
|
|
+ compatible = "st,stm32-uart";
|
|
+ reg = <0x40011000 0x400>;
|
|
+ interrupts = <37>;
|
|
+ clocks = <&rcc 0 164>;
|
|
+ dmas = <&dma2 2 4 0x414 0x0>,
|
|
+ <&dma2 7 4 0x414 0x0>;
|
|
+ dma-names = "rx", "tx";
|
|
+};
|
|
diff --git a/doc/device-tree-bindings/watchdog/st,stm32-iwdg.txt b/doc/device-tree-bindings/watchdog/st,stm32-iwdg.txt
|
|
new file mode 100644
|
|
index 0000000..d8f4430
|
|
--- /dev/null
|
|
+++ b/doc/device-tree-bindings/watchdog/st,stm32-iwdg.txt
|
|
@@ -0,0 +1,26 @@
|
|
+STM32 Independent WatchDoG (IWDG)
|
|
+---------------------------------
|
|
+
|
|
+Required properties:
|
|
+- compatible: Should be either:
|
|
+ - "st,stm32-iwdg"
|
|
+ - "st,stm32mp1-iwdg"
|
|
+- reg: Physical base address and length of the registers set for the device
|
|
+- clocks: Reference to the clock entry lsi. Additional pclk clock entry
|
|
+ is required only for st,stm32mp1-iwdg.
|
|
+- clock-names: Name of the clocks used.
|
|
+ "lsi" for st,stm32-iwdg
|
|
+ "lsi", "pclk" for st,stm32mp1-iwdg
|
|
+
|
|
+Optional Properties:
|
|
+- timeout-sec: Watchdog timeout value in seconds.
|
|
+
|
|
+Example:
|
|
+
|
|
+iwdg: watchdog@40003000 {
|
|
+ compatible = "st,stm32-iwdg";
|
|
+ reg = <0x40003000 0x400>;
|
|
+ clocks = <&clk_lsi>;
|
|
+ clock-names = "lsi";
|
|
+ timeout-sec = <32>;
|
|
+};
|
|
diff --git a/include/dt-bindings/clock/stm32mp1-clks.h b/include/dt-bindings/clock/stm32mp1-clks.h
|
|
index 90ec780..4cdaf13 100644
|
|
--- a/include/dt-bindings/clock/stm32mp1-clks.h
|
|
+++ b/include/dt-bindings/clock/stm32mp1-clks.h
|
|
@@ -248,7 +248,4 @@
|
|
|
|
#define STM32MP1_LAST_CLK 232
|
|
|
|
-#define LTDC_K LTDC_PX
|
|
-#define ETHMAC_K ETHCK_K
|
|
-
|
|
#endif /* _DT_BINDINGS_STM32MP1_CLKS_H_ */
|
|
diff --git a/include/dt-bindings/mfd/st,stpmic1.h b/include/dt-bindings/mfd/st,stpmic1.h
|
|
new file mode 100644
|
|
index 0000000..b2d6c83
|
|
--- /dev/null
|
|
+++ b/include/dt-bindings/mfd/st,stpmic1.h
|
|
@@ -0,0 +1,46 @@
|
|
+/* SPDX-License-Identifier: GPL-2.0 */
|
|
+/*
|
|
+ * Copyright (C) STMicroelectronics 2018 - All Rights Reserved
|
|
+ * Author: Philippe Peurichard <philippe.peurichard@st.com>,
|
|
+ * Pascal Paillet <p.paillet@st.com> for STMicroelectronics.
|
|
+ */
|
|
+
|
|
+#ifndef __DT_BINDINGS_STPMIC1_H__
|
|
+#define __DT_BINDINGS_STPMIC1_H__
|
|
+
|
|
+/* IRQ definitions */
|
|
+#define IT_PONKEY_F 0
|
|
+#define IT_PONKEY_R 1
|
|
+#define IT_WAKEUP_F 2
|
|
+#define IT_WAKEUP_R 3
|
|
+#define IT_VBUS_OTG_F 4
|
|
+#define IT_VBUS_OTG_R 5
|
|
+#define IT_SWOUT_F 6
|
|
+#define IT_SWOUT_R 7
|
|
+
|
|
+#define IT_CURLIM_BUCK1 8
|
|
+#define IT_CURLIM_BUCK2 9
|
|
+#define IT_CURLIM_BUCK3 10
|
|
+#define IT_CURLIM_BUCK4 11
|
|
+#define IT_OCP_OTG 12
|
|
+#define IT_OCP_SWOUT 13
|
|
+#define IT_OCP_BOOST 14
|
|
+#define IT_OVP_BOOST 15
|
|
+
|
|
+#define IT_CURLIM_LDO1 16
|
|
+#define IT_CURLIM_LDO2 17
|
|
+#define IT_CURLIM_LDO3 18
|
|
+#define IT_CURLIM_LDO4 19
|
|
+#define IT_CURLIM_LDO5 20
|
|
+#define IT_CURLIM_LDO6 21
|
|
+#define IT_SHORT_SWOTG 22
|
|
+#define IT_SHORT_SWOUT 23
|
|
+
|
|
+#define IT_TWARN_F 24
|
|
+#define IT_TWARN_R 25
|
|
+#define IT_VINLOW_F 26
|
|
+#define IT_VINLOW_R 27
|
|
+#define IT_SWIN_F 30
|
|
+#define IT_SWIN_R 31
|
|
+
|
|
+#endif /* __DT_BINDINGS_STPMIC1_H__ */
|
|
diff --git a/include/dt-bindings/mfd/st,stpmu1.h b/include/dt-bindings/mfd/st,stpmu1.h
|
|
deleted file mode 100644
|
|
index 81982eb..0000000
|
|
--- a/include/dt-bindings/mfd/st,stpmu1.h
|
|
+++ /dev/null
|
|
@@ -1,60 +0,0 @@
|
|
-/*
|
|
- * This file is part of stpmu1 pmic driver
|
|
- *
|
|
- * Copyright (C) 2017, STMicroelectronics - All Rights Reserved
|
|
- * Author: Pascal Paillet <p.paillet@st.com> for STMicroelectronics.
|
|
- *
|
|
- * License type: GPLv2
|
|
- *
|
|
- * This program is free software; you can redistribute it and/or modify it
|
|
- * under the terms of the GNU General Public License version 2 as published by
|
|
- * the Free Software Foundation.
|
|
- *
|
|
- * This program is distributed in the hope that it will be useful, but
|
|
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
- * or FITNESS FOR A PARTICULAR PURPOSE.
|
|
- * See the GNU General Public License for more details.
|
|
- *
|
|
- * You should have received a copy of the GNU General Public License along with
|
|
- * this program. If not, see <http://www.gnu.org/licenses/>.
|
|
- */
|
|
-
|
|
-#ifndef __DT_BINDINGS_STPMU1_H__
|
|
-#define __DT_BINDINGS_STPMU1_H__
|
|
-
|
|
-/* IRQ definitions */
|
|
-#define IT_PONKEY_F 0
|
|
-#define IT_PONKEY_R 1
|
|
-#define IT_WAKEUP_F 2
|
|
-#define IT_WAKEUP_R 3
|
|
-#define IT_VBUS_OTG_F 4
|
|
-#define IT_VBUS_OTG_R 5
|
|
-#define IT_SWOUT_F 6
|
|
-#define IT_SWOUT_R 7
|
|
-
|
|
-#define IT_CURLIM_BUCK1 8
|
|
-#define IT_CURLIM_BUCK2 9
|
|
-#define IT_CURLIM_BUCK3 10
|
|
-#define IT_CURLIM_BUCK4 11
|
|
-#define IT_OCP_OTG 12
|
|
-#define IT_OCP_SWOUT 13
|
|
-#define IT_OCP_BOOST 14
|
|
-#define IT_OVP_BOOST 15
|
|
-
|
|
-#define IT_CURLIM_LDO1 16
|
|
-#define IT_CURLIM_LDO2 17
|
|
-#define IT_CURLIM_LDO3 18
|
|
-#define IT_CURLIM_LDO4 19
|
|
-#define IT_CURLIM_LDO5 20
|
|
-#define IT_CURLIM_LDO6 21
|
|
-#define IT_SHORT_SWOTG 22
|
|
-#define IT_SHORT_SWOUT 23
|
|
-
|
|
-#define IT_TWARN_F 24
|
|
-#define IT_TWARN_R 25
|
|
-#define IT_VINLOW_F 26
|
|
-#define IT_VINLOW_R 27
|
|
-#define IT_SWIN_F 30
|
|
-#define IT_SWIN_R 31
|
|
-
|
|
-#endif /* __DT_BINDINGS_STPMU1_H__ */
|
|
diff --git a/include/dt-bindings/pinctrl/stm32-pinfunc.h b/include/dt-bindings/pinctrl/stm32-pinfunc.h
|
|
index b5a2174..e928aea 100644
|
|
--- a/include/dt-bindings/pinctrl/stm32-pinfunc.h
|
|
+++ b/include/dt-bindings/pinctrl/stm32-pinfunc.h
|
|
@@ -32,5 +32,11 @@
|
|
|
|
#define STM32_PINMUX(port, line, mode) (((PIN_NO(port, line)) << 8) | (mode))
|
|
|
|
+/* package information */
|
|
+#define STM32MP157CAA 0x1
|
|
+#define STM32MP157CAB 0x2
|
|
+#define STM32MP157CAC 0x4
|
|
+#define STM32MP157CAD 0x8
|
|
+
|
|
#endif /* _DT_BINDINGS_STM32_PINFUNC_H */
|
|
|
|
diff --git a/include/dt-bindings/rtc/rtc-stm32.h b/include/dt-bindings/rtc/rtc-stm32.h
|
|
new file mode 100644
|
|
index 0000000..4373c4d
|
|
--- /dev/null
|
|
+++ b/include/dt-bindings/rtc/rtc-stm32.h
|
|
@@ -0,0 +1,13 @@
|
|
+/* SPDX-License-Identifier: GPL-2.0 */
|
|
+/*
|
|
+ * This header provides constants for STM32_RTC bindings.
|
|
+ */
|
|
+
|
|
+#ifndef _DT_BINDINGS_RTC_RTC_STM32_H
|
|
+#define _DT_BINDINGS_RTC_RTC_STM32_H
|
|
+
|
|
+#define RTC_OUT1 0
|
|
+#define RTC_OUT2 1
|
|
+#define RTC_OUT2_RMP 2
|
|
+
|
|
+#endif
|
|
diff --git a/include/dt-bindings/soc/stm32-hdp.h b/include/dt-bindings/soc/stm32-hdp.h
|
|
new file mode 100644
|
|
index 0000000..d986653
|
|
--- /dev/null
|
|
+++ b/include/dt-bindings/soc/stm32-hdp.h
|
|
@@ -0,0 +1,108 @@
|
|
+/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
|
|
+/*
|
|
+ * Copyright (C) STMicroelectronics 2018 - All Rights Reserved
|
|
+ * Author: Roullier Christophe <christophe.roullier@st.com>
|
|
+ * for STMicroelectronics.
|
|
+ */
|
|
+
|
|
+#ifndef _DT_BINDINGS_STM32_HDP_H
|
|
+#define _DT_BINDINGS_STM32_HDP_H
|
|
+
|
|
+#define STM32_HDP(port, value) ((value) << ((port) * 4))
|
|
+
|
|
+/* define HDP Pins number*/
|
|
+#define HDP0_PWR_PWRWAKE_SYS 0
|
|
+#define HDP0_CM4_SLEEPDEEP 1
|
|
+#define HDP0_PWR_STDBY_WKUP 2
|
|
+#define HDP0_PWR_ENCOMP_VDDCORE 3
|
|
+#define HDP0_BSEC_OUT_SEC_NIDEN 4
|
|
+#define HDP0_RCC_CM4_SLEEPDEEP 6
|
|
+#define HDP0_GPU_DBG7 7
|
|
+#define HDP0_DDRCTRL_LP_REQ 8
|
|
+#define HDP0_PWR_DDR_RET_ENABLE_N 9
|
|
+#define HDP0_GPOVAL_0 15
|
|
+
|
|
+#define HDP1_PWR_PWRWAKE_MCU 0
|
|
+#define HDP1_CM4_HALTED 1
|
|
+#define HDP1_CA7_NAXIERRIRQ 2
|
|
+#define HDP1_PWR_OKIN_MR 3
|
|
+#define HDP1_BSEC_OUT_SEC_DBGEN 4
|
|
+#define HDP1_EXTI_SYS_WAKEUP 5
|
|
+#define HDP1_RCC_PWRDS_MPU 6
|
|
+#define HDP1_GPU_DBG6 7
|
|
+#define HDP1_DDRCTRL_DFI_CTRLUPD_REQ 8
|
|
+#define HDP1_DDRCTRL_CACTIVE_DDRC_ASR 9
|
|
+#define HDP1_GPOVAL_1 15
|
|
+
|
|
+#define HDP2_PWR_PWRWAKE_MPU 0
|
|
+#define HDP2_CM4_RXEV 1
|
|
+#define HDP2_CA7_NPMUIRQ1 2
|
|
+#define HDP2_CA7_NFIQOUT1 3
|
|
+#define HDP2_BSEC_IN_RSTCORE_N 4
|
|
+#define HDP2_EXTI_C2_WAKEUP 5
|
|
+#define HDP2_RCC_PWRDS_MCU 6
|
|
+#define HDP2_GPU_DBG5 7
|
|
+#define HDP2_DDRCTRL_DFI_INIT_COMPLETE 8
|
|
+#define HDP2_DDRCTRL_PERF_OP_IS_REFRESH 9
|
|
+#define HDP2_DDRCTRL_GSKP_DFI_LP_REQ 10
|
|
+#define HDP2_GPOVAL_2 15
|
|
+
|
|
+#define HDP3_PWR_SEL_VTH_VDD_CORE 0
|
|
+#define HDP3_CM4_TXEV 1
|
|
+#define HDP3_CA7_NPMUIRQ0 2
|
|
+#define HDP3_CA7_NFIQOUT0 3
|
|
+#define HDP3_BSEC_OUT_SEC_DFTLOCK 4
|
|
+#define HDP3_EXTI_C1_WAKEUP 5
|
|
+#define HDP3_RCC_PWRDS_SYS 6
|
|
+#define HDP3_GPU_DBG4 7
|
|
+#define HDP3_DDRCTRL_STAT_DDRC_REG_SELREF_TYPE0 8
|
|
+#define HDP3_DDRCTRL_CACTIVE_1 9
|
|
+#define HDP3_GPOVAL_3 15
|
|
+
|
|
+#define HDP4_PWR_PDDS 0
|
|
+#define HDP4_CM4_SLEEPING 1
|
|
+#define HDP4_CA7_NRESET1 2
|
|
+#define HDP4_CA7_NIRQOUT1 3
|
|
+#define HDP4_BSEC_OUT_SEC_DFTEN 4
|
|
+#define HDP4_BSEC_OUT_SEC_DBGSWENABLE 5
|
|
+#define HDP4_ETH_OUT_PMT_INTR_O 6
|
|
+#define HDP4_GPU_DBG3 7
|
|
+#define HDP4_DDRCTRL_STAT_DDRC_REG_SELREF_TYPE1 8
|
|
+#define HDP4_DDRCTRL_CACTIVE_0 9
|
|
+#define HDP4_GPOVAL_4 15
|
|
+
|
|
+#define HDP5_CA7_STANDBYWFIL2 0
|
|
+#define HDP5_PWR_VTH_VDDCORE_ACK 1
|
|
+#define HDP5_CA7_NRESET0 2
|
|
+#define HDP5_CA7_NIRQOUT0 3
|
|
+#define HDP5_BSEC_IN_PWROK 4
|
|
+#define HDP5_BSEC_OUT_SEC_DEVICEEN 5
|
|
+#define HDP5_ETH_OUT_LPI_INTR_O 6
|
|
+#define HDP5_GPU_DBG2 7
|
|
+#define HDP5_DDRCTRL_CACTIVE_DDRC 8
|
|
+#define HDP5_DDRCTRL_WR_CREDIT_CNT 9
|
|
+#define HDP5_GPOVAL_5 15
|
|
+
|
|
+#define HDP6_CA7_STANDBYWFI1 0
|
|
+#define HDP6_CA7_STANDBYWFE1 1
|
|
+#define HDP6_CA7_EVENT0 2
|
|
+#define HDP6_CA7_DBGACK1 3
|
|
+#define HDP6_BSEC_OUT_SEC_SPNIDEN 5
|
|
+#define HDP6_ETH_OUT_MAC_SPEED_O1 6
|
|
+#define HDP6_GPU_DBG1 7
|
|
+#define HDP6_DDRCTRL_CSYSACK_DDRC 8
|
|
+#define HDP6_DDRCTRL_LPR_CREDIT_CNT 9
|
|
+#define HDP6_GPOVAL_6 15
|
|
+
|
|
+#define HDP7_CA7_STANDBYWFI0 0
|
|
+#define HDP7_CA7_STANDBYWFE0 1
|
|
+#define HDP7_CA7_DBGACK0 3
|
|
+#define HDP7_BSEC_OUT_FUSE_OK 4
|
|
+#define HDP7_BSEC_OUT_SEC_SPIDEN 5
|
|
+#define HDP7_ETH_OUT_MAC_SPEED_O0 6
|
|
+#define HDP7_GPU_DBG0 7
|
|
+#define HDP7_DDRCTRL_CSYSREQ_DDRC 8
|
|
+#define HDP7_DDRCTRL_HPR_CREDIT_CNT 9
|
|
+#define HDP7_GPOVAL_7 15
|
|
+
|
|
+#endif /* _DT_BINDINGS_STM32_HDP_H */
|
|
--
|
|
2.7.4
|
|
|