Rework and fix STM32MP15x PHYTEC dts
Subsystems (2)
v2 cover Rework and fix STM32MP15x PHYTEC dts
This patch series rename and reorganize the STM32MP15x PHYTEC baseboard (phyBOARD-Sargas) and SoM (phyCORE-STM32MP15x) device tree files.
Indeed, the current device tree naming and organization is not really consistent as it does not align with others STM32MP boards (use common dtsi file as much as possible, use one dtsi for SoM and one dtsi for baseboard).
The series also fixes some important pinctrl issues and minor one (coding style). Additional pinctrl is also added for the optionnal interfaces that are not enabled by default (FMC, LTDC, DCMI, PWM).
Changes in v2:
- Rebase on v6.16-rc5
- Rework Patch 3 (stm32.yaml): for board description, keep "compatible" string identifiers as before to not break ABI. But use "enum" type instead of "const" for the SoM and phyBOARD indentifiers.
Christophe Parant (11):
ARM: dts: stm32: phycore-stm32mp15: Rename device tree files
ARM: dts: stm32: phyboard-sargas: Introduce SoM device tree
dt-bindings: arm: stm32: Modify STM32MP15x Phytec board items types
ARM: dts: stm32: Add new pinmux groups for phyboard-sargas and phycore
ARM: dts: stm32: phyboard-sargas: Fix uart4 and sai2 pinctrl
ARM: dts: stm32: phycore-stm32mp15: qspi: Fix memory map and pinctrl
ARM: dts: stm32: phycore-stm32mp15: Add dummy memory-node
ARM: dts: stm32: phyboard-sargas: Move aliases from dts to dtsi
ARM: dts: stm32: phycore-stm32mp15: Disable optional SoM peripherals
ARM: dts: stm32: phyboard-sargas and phycore: Fix coding style issues
ARM: dts: stm32: phyboard-sargas and phycore: Add optional interfaces
.../devicetree/bindings/arm/stm32/stm32.yaml | 8 +-
arch/arm/boot/dts/st/Makefile | 2 +-
arch/arm/boot/dts/st/stm32mp15-pinctrl.dtsi | 164 +++++++++
...ts => stm32mp157c-phyboard-sargas-rdk.dts} | 24 +-
.../dts/st/stm32mp15xx-phyboard-sargas.dtsi | 285 +++++++++++++++
...-som.dtsi => stm32mp15xx-phycore-som.dtsi} | 344 ++++--------------
6 files changed, 525 insertions(+), 302 deletions(-)
rename arch/arm/boot/dts/st/{stm32mp157c-phycore-stm32mp1-3.dts => stm32mp157c-phyboard-sargas-rdk.dts} (58%)
create mode 100644 arch/arm/boot/dts/st/stm32mp15xx-phyboard-sargas.dtsi
rename arch/arm/boot/dts/st/{stm32mp157c-phycore-stm32mp15-som.dtsi => stm32mp15xx-phycore-som.dtsi} (53%)Signature · 1 line
2.34.1
PATCH v2 1/11 ARM: dts: stm32: phycore-stm32mp15: Rename device tree files
Rename "stm32mp157c-phycore-*" device tree for the following reasons:
- The name of the dts should match to the phyBOARD name and not the name of the SoM ("phycore-stm32mp1-3" was initialy coming from the name of the yocto machine from meta-phytec).
- PHYTEC manages different SoM configurations with different STM32MP15x SoC versions, so common dtsi files starting with "stm32mp15xx-*" should be used (as it is done for ST boards for example).
- Add "-rdk" as suffix (for "Rapid Development Kit") to match our others phytec boards dts names (imx6, imx6ul,..).
- "model" property is updated to introduce the name "phyBOARD-Sargas".
---
arch/arm/boot/dts/st/Makefile | 2 +-
...ore-stm32mp1-3.dts => stm32mp157c-phyboard-sargas-rdk.dts} | 4 ++--
...re-stm32mp15-som.dtsi => stm32mp15xx-phyboard-sargas.dtsi} | 3 ---
3 files changed, 3 insertions(+), 6 deletions(-)
rename arch/arm/boot/dts/st/{stm32mp157c-phycore-stm32mp1-3.dts => stm32mp157c-phyboard-sargas-rdk.dts} (89%)
rename arch/arm/boot/dts/st/{stm32mp157c-phycore-stm32mp15-som.dtsi => stm32mp15xx-phyboard-sargas.dtsi} (99%)arch/arm/boot/dts/st/Makefile +1 -1
@@ -71,7 +71,7 @@ dtb-$(CONFIG_ARCH_STM32) += \ stm32mp157c-lxa-tac-gen2.dtb \ stm32mp157c-odyssey.dtb \ stm32mp157c-osd32mp1-red.dtb \ - stm32mp157c-phycore-stm32mp1-3.dtb \ + stm32mp157c-phyboard-sargas-rdk.dtb \ stm32mp157c-ultra-fly-sbc.dtb dtb-$(CONFIG_ARCH_U8500) += \ ste-snowball.dtb \
arch/arm/boot/dts/st/stm32mp157c-phyboard-sargas-rdk.dts renamed from arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp1-3.dts +2 -2
@@ -10,10 +10,10 @@ #include "stm32mp157.dtsi" #include "stm32mp15xc.dtsi" #include "stm32mp15xxac-pinctrl.dtsi" -#include "stm32mp157c-phycore-stm32mp15-som.dtsi" +#include "stm32mp15xx-phyboard-sargas.dtsi" / { - model = "PHYTEC phyCORE-STM32MP1-3 Dev Board"; + model = "PHYTEC phyBOARD-Sargas STM32MP157C"; compatible = "phytec,phycore-stm32mp1-3", "phytec,phycore-stm32mp157c-som", "st,stm32mp157";
arch/arm/boot/dts/st/stm32mp15xx-phyboard-sargas.dtsi renamed from arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi +0 -3
@@ -16,9 +16,6 @@ #include "stm32mp15-pinctrl.dtsi" / { - model = "PHYTEC phyCORE-STM32MP15 SOM"; - compatible = "phytec,phycore-stm32mp157c-som", "st,stm32mp157"; - aliases { ethernet0 = ðernet0; rtc0 = &i2c4_rtc;
Signature · 1 line
2.34.1
PATCH v2 2/11 ARM: dts: stm32: phyboard-sargas: Introduce SoM device tree
In reply to Christophe ParantAdd stm32mp15xx-phycore-som.dtsi device tree file to split hardware features between the phyBOARD (baseboard) and the phyCORE (SoM).
--- .../st/stm32mp157c-phyboard-sargas-rdk.dts | 2 +- .../dts/st/stm32mp15xx-phyboard-sargas.dtsi | 317 +---------------- .../boot/dts/st/stm32mp15xx-phycore-som.dtsi | 329 ++++++++++++++++++ 3 files changed, 331 insertions(+), 317 deletions(-) create mode 100644 arch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi
arch/arm/boot/dts/st/stm32mp157c-phyboard-sargas-rdk.dts +1 -1
@@ -9,7 +9,7 @@ #include <dt-bindings/pinctrl/stm32-pinfunc.h> #include "stm32mp157.dtsi" #include "stm32mp15xc.dtsi" -#include "stm32mp15xxac-pinctrl.dtsi" +#include "stm32mp15xx-phycore-som.dtsi" #include "stm32mp15xx-phyboard-sargas.dtsi" / {
arch/arm/boot/dts/st/stm32mp15xx-phyboard-sargas.dtsi +1 -316
359 lines not on this page · raw message
arch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi new file +329 -0
329 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v2 3/11 dt-bindings: arm: stm32: Modify STM32MP15x Phytec board items types
In reply to Christophe ParantAs Phytec manages different SoM configurations with different STM32MP15 SoC versions, modify the phyBOARD and SoM compatible items to "enum" instead of "const".
The description concerns PHYTEC SoM equipped with STM32MP157 ("st,stm32mp157" is "const").
Also add comments in front of the enum items to be able to identify the compatible string with the phyBOARD/phyCORE names.
--- Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +5 -3
@@ -182,10 +182,12 @@ properties: - const: seeed,stm32mp157c-odyssey-som - const: st,stm32mp157 - - description: Phytec STM32MP1 SoM based Boards + - description: Phytec STM32MP157 SoM based Boards items: - - const: phytec,phycore-stm32mp1-3 - - const: phytec,phycore-stm32mp157c-som + - enum: + - phytec,phycore-stm32mp1-3 # phyBOARD-Sargas with phyCORE-STM32MP157C SoM + - enum: + - phytec,phycore-stm32mp157c-som # phyCORE-STM32MP157C SoM - const: st,stm32mp157 - description: Ultratronik STM32MP1 SBC based Boards
Signature · 1 line
2.34.1
Rob Herring
maintainerRe: [PATCH v2 03/11] dt-bindings: arm: stm32: Modify STM32MP15x Phytec board items types
Quoted 7 lines · Christophe Parant
As Phytec manages different SoM configurations with different STM32MP15 SoC versions, modify the phyBOARD and SoM compatible items to "enum" instead of "const".
The description concerns PHYTEC SoM equipped with STM32MP157 ("st,stm32mp157" is "const").
Also add comments in front of the enum items to be able to identify the compatible string with the phyBOARD/phyCORE names.
I don't understand the point of this patch.
Quoted 12 lines
Signed-off-by Christophe Parant <[email protected]>--- Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/arm/stm32/stm32.yaml +0
-0@@ -182,10 +182,12 @@ properties: - const: seeed,stm32mp157c-odyssey-som - const: st,stm32mp157
Documentation/devicetree/bindings/arm/stm32/stm32.yaml properties: · line 190
Quoted 10 lines
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +5
-3- - description: Phytec STM32MP1 SoM based Boards + - description: Phytec STM32MP157 SoM based Boards items: - - const: phytec,phycore-stm32mp1-3 - - const: phytec,phycore-stm32mp157c-som + - enum: + - phytec,phycore-stm32mp1-3 # phyBOARD-Sargas with phyCORE-STM32MP157C SoM + - enum: + - phytec,phycore-stm32mp157c-som # phyCORE-STM32MP157C SoM
Are you going to add more entries to the enums? Wouldn't those be a different SoC and a whole other 'items' list because it wouldn't be the 157 SoC?
Quoted 6 lines
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +0
-0- const: st,stm32mp157 - description: Ultratronik STM32MP1 SBC based BoardsSignature · 1 line
2.34.1
Re: [PATCH v2 03/11] dt-bindings: arm: stm32: Modify STM32MP15x Phytec board items types
Hello Rob,
Le jeudi 10 juillet 2025 à 17:25 -0500, Rob Herring a écrit :
Quoted 12 lines · Christophe Parant
Quoted 10 lines
As Phytec manages different SoM configurations with different STM32MP15
SoC versions, modify the phyBOARD and SoM compatible items to "enum"
instead of "const".
The description concerns PHYTEC SoM equipped with STM32MP157 ("st,stm32mp157" is "const").
Also add comments in front of the enum items to be able to identify the
compatible string with the phyBOARD/phyCORE names.
Quoted 2 lines
I don't understand the point of this patch.
Thank your for your feedback.
Quoted 23 lines
Quoted 23 lines
Signed-off-by Christophe Parant <[email protected]>---
Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 8 +++++-- -1 file changed, 5 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/arm/stm32/stm32.yaml +0
-0@@ -182,10 +182,12 @@ properties:- const: seeed,stm32mp157c-odyssey-som
- const: st,stm32mp157
- - description: Phytec STM32MP1 SoM based Boards + - description: Phytec STM32MP157 SoM based Boards items:
- - const: phytec,phycore-stm32mp1-3
- - const: phytec,phycore-stm32mp157c-som
+ - enum:
+ - phytec,phycore-stm32mp1-3 # phyBOARD-Sargas with phyCORE-STM32MP157C SoM
Quoted 9 lines
Quoted 3 lines
+ - enum:
+ - phytec,phycore-stm32mp157c-som # phyCORE- STM32MP157C SoMAre you going to add more entries to the enums? Wouldn't those be a different SoC and a whole other 'items' list because it wouldn't be the
157 SoC?
Yes, here we would also like to add our "phycore-stm32mp1-4" which is equipped with the "F" version of stm32mp157: "stm32mp157f" (which is another board device tree).
But didn't want to add it now in this patch series.
We also have "phycore-stm32mp1-6" which is equipped with "stm32mp153a". The idea was to keep this Description section for the "st,stm32mp157" (const items) and would need another section for the "st,stm32mp13a".
Best Regards,
Christophe
Quoted 6 lines
Quoted 6 lines
- const: st,stm32mp157
- description: Ultratronik STM32MP1 SBC based BoardsSignature · 1 line
2.34.1
PATCH v2 4/11 ARM: dts: stm32: Add new pinmux groups for phyboard-sargas and phycore
In reply to Christophe ParantAdd add alternate pinmux for following interfaces used on phyBOARD-Sargas:
- UART4
- LTDC
- DCMI
- TIM5
- SAI2
Fix "ethernet0_rgmii_pins_d" pinmux used on phyCORE-STM32MP15x:ETH_RGMII_GTX_CLK pin was missing.
--- arch/arm/boot/dts/st/stm32mp15-pinctrl.dtsi | 164 ++++++++++++++++++++ 1 file changed, 164 insertions(+)
arch/arm/boot/dts/st/stm32mp15-pinctrl.dtsi +164 -0
@@ -223,6 +223,45 @@ pins { }; }; + /omit-if-no-ref/ + dcmi_pins_d: dcmi-3 { + 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('C', 7, AF13)>,/* DCMI_D1 */ + <STM32_PINMUX('E', 0, AF13)>,/* DCMI_D2 */ + <STM32_PINMUX('E', 1, AF13)>,/* DCMI_D3 */ + <STM32_PINMUX('H', 14, AF13)>,/* DCMI_D4 */ + <STM32_PINMUX('I', 4, AF13)>,/* DCMI_D5 */ + <STM32_PINMUX('E', 5, AF13)>,/* DCMI_D6 */ + <STM32_PINMUX('I', 7, AF13)>,/* DCMI_D7 */ + <STM32_PINMUX('I', 1, AF13)>,/* DCMI_D8 */ + <STM32_PINMUX('H', 7, AF13)>;/* DCMI_D9 */ + bias-disable; + }; + }; + + /omit-if-no-ref/ + dcmi_sleep_pins_d: dcmi-sleep-3 { + 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('C', 7, ANALOG)>,/* DCMI_D1 */ + <STM32_PINMUX('E', 0, ANALOG)>,/* DCMI_D2 */ + <STM32_PINMUX('E', 1, ANALOG)>,/* DCMI_D3 */ + <STM32_PINMUX('H', 14, ANALOG)>,/* DCMI_D4 */ + <STM32_PINMUX('I', 4, ANALOG)>,/* DCMI_D5 */ + <STM32_PINMUX('E', 5, ANALOG)>,/* DCMI_D6 */ + <STM32_PINMUX('I', 7, ANALOG)>,/* DCMI_D7 */ + <STM32_PINMUX('I', 1, ANALOG)>,/* DCMI_D8 */ + <STM32_PINMUX('H', 7, ANALOG)>;/* DCMI_D9 */ + }; + }; + /omit-if-no-ref/ ethernet0_rgmii_pins_a: rgmii-0 { pins1 {
@@ -386,6 +425,7 @@ pins1 { ethernet0_rgmii_pins_d: rgmii-3 { 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 */
@@ -1304,6 +1344,65 @@ pins { }; }; + /omit-if-no-ref/ + ltdc_pins_f: ltdc-5 { + 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('E', 13, AF14)>, /* LCD_DE */ + <STM32_PINMUX('C', 10, AF14)>, /* LCD_R2 */ + <STM32_PINMUX('B', 0, AF9)>, /* LCD_R3 */ + <STM32_PINMUX('H', 10, AF14)>, /* LCD_R4 */ + <STM32_PINMUX('H', 11, AF14)>, /* LCD_R5 */ + <STM32_PINMUX('H', 12, AF14)>, /* LCD_R6 */ + <STM32_PINMUX('E', 15, AF14)>, /* LCD_R7 */ + <STM32_PINMUX('H', 13, AF14)>, /* LCD_G2 */ + <STM32_PINMUX('E', 11, AF14)>, /* LCD_G3 */ + <STM32_PINMUX('H', 15, AF14)>, /* LCD_G4 */ + <STM32_PINMUX('H', 4, AF9)>, /* LCD_G5 */ + <STM32_PINMUX('I', 11, AF9)>, /* LCD_G6 */ + <STM32_PINMUX('I', 2, AF14)>, /* LCD_G7 */ + <STM32_PINMUX('G', 10, AF14)>, /* LCD_B2 */ + <STM32_PINMUX('G', 11, AF14)>, /* LCD_B3 */ + <STM32_PINMUX('E', 12, AF14)>, /* LCD_B4 */ + <STM32_PINMUX('I', 5, 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>; + }; + }; + + /omit-if-no-ref/ + ltdc_sleep_pins_f: ltdc-sleep-5 { + 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('E', 13, ANALOG)>, /* LCD_DE */ + <STM32_PINMUX('C', 10, ANALOG)>, /* LCD_R2 */ + <STM32_PINMUX('B', 0, ANALOG)>, /* LCD_R3 */ + <STM32_PINMUX('H', 10, ANALOG)>, /* LCD_R4 */ + <STM32_PINMUX('H', 11, ANALOG)>, /* LCD_R5 */ + <STM32_PINMUX('H', 12, ANALOG)>, /* LCD_R6 */ + <STM32_PINMUX('E', 15, ANALOG)>, /* LCD_R7 */ + <STM32_PINMUX('H', 13, ANALOG)>, /* LCD_G2 */ + <STM32_PINMUX('E', 11, ANALOG)>, /* LCD_G3 */ + <STM32_PINMUX('H', 15, ANALOG)>, /* LCD_G4 */ + <STM32_PINMUX('H', 4, ANALOG)>, /* LCD_G5 */ + <STM32_PINMUX('I', 11, ANALOG)>, /* LCD_G6 */ + <STM32_PINMUX('I', 2, ANALOG)>, /* LCD_G7 */ + <STM32_PINMUX('G', 10, ANALOG)>, /* LCD_B2 */ + <STM32_PINMUX('G', 11, ANALOG)>, /* LCD_B3 */ + <STM32_PINMUX('E', 12, ANALOG)>, /* LCD_B4 */ + <STM32_PINMUX('I', 5, ANALOG)>, /* LCD_B5 */ + <STM32_PINMUX('B', 8, ANALOG)>, /* LCD_B6 */ + <STM32_PINMUX('D', 8, ANALOG)>; /* LCD_B7 */ + }; + }; + /omit-if-no-ref/ mco1_pins_a: mco1-0 { pins {
@@ -1644,6 +1743,23 @@ pins { }; }; + /omit-if-no-ref/ + pwm5_pins_c: pwm5-2 { + pins { + pinmux = <STM32_PINMUX('I', 0, AF2)>; /* TIM5_CH4 */ + bias-pull-down; + drive-push-pull; + slew-rate = <0>; + }; + }; + + /omit-if-no-ref/ + pwm5_sleep_pins_c: pwm5-sleep-2 { + pins { + pinmux = <STM32_PINMUX('I', 0, ANALOG)>; /* TIM5_CH4 */ + }; + }; + /omit-if-no-ref/ pwm8_pins_a: pwm8-0 { pins {
@@ -1869,6 +1985,21 @@ pins { }; }; + /omit-if-no-ref/ + sai2a_pins_d: sai2a-3 { + pins { + pinmux = <STM32_PINMUX('I', 6, AF10)>; /* SAI2_SD_A */ + bias-disable; + }; + }; + + /omit-if-no-ref/ + sai2a_sleep_pins_d: sai2a-3 { + pins { + pinmux = <STM32_PINMUX('I', 6, ANALOG)>; /* SAI2_SD_A */ + }; + }; + /omit-if-no-ref/ sai2b_pins_a: sai2b-0 { pins1 {
@@ -2856,6 +2987,39 @@ pins { }; }; + /omit-if-no-ref/ + uart4_pins_f: uart4-5 { + pins1 { + pinmux = <STM32_PINMUX('B', 9, AF8)>; /* UART4_TX */ + bias-disable; + drive-push-pull; + slew-rate = <0>; + }; + pins2 { + pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */ + bias-disable; + }; + }; + + /omit-if-no-ref/ + uart4_idle_pins_f: uart4-idle-5 { + pins1 { + pinmux = <STM32_PINMUX('B', 9, ANALOG)>; /* UART4_TX */ + }; + pins2 { + pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */ + bias-disable; + }; + }; + + /omit-if-no-ref/ + uart4_sleep_pins_f: uart4-sleep-5 { + pins { + pinmux = <STM32_PINMUX('B', 9, ANALOG)>, /* UART4_TX */ + <STM32_PINMUX('B', 2, ANALOG)>; /* UART4_RX */ + }; + }; + /omit-if-no-ref/ uart5_pins_a: uart5-0 { pins1 {
Signature · 1 line
2.34.1
PATCH v2 5/11 ARM: dts: stm32: phyboard-sargas: Fix uart4 and sai2 pinctrl
In reply to Christophe Parant- UART4:
"uart4_pins_a" pinmux option does not apply here, as PB9 should be used for UART4_TX instead of PG11 (PG11 is LCD_B3 on Sargas). Use "uart4_pins_f" instead.
Also remove "pinctrl-3" which is useless (identical to "pinctrl-1").
- SAI2 A:
"sai2a_pins_b" pinmux option does not apply here, as only PI6 is used for SAI2 A ("SAI2_SD_A"). Other pins of this group (PI7 and PD13) are not used for audio.
Use "sai2a_sleep_pins_d" instead.
--- arch/arm/boot/dts/st/stm32mp15xx-phyboard-sargas.dtsi | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
arch/arm/boot/dts/st/stm32mp15xx-phyboard-sargas.dtsi +5 -6
@@ -143,8 +143,8 @@ &sai2 { clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>; clock-names = "pclk", "x8k", "x11k"; pinctrl-names = "default", "sleep"; - pinctrl-0 = <&sai2a_pins_b>, <&sai2b_pins_d>; - pinctrl-1 = <&sai2a_sleep_pins_b>, <&sai2b_sleep_pins_d>; + pinctrl-0 = <&sai2a_pins_d>, <&sai2b_pins_d>; + pinctrl-1 = <&sai2a_sleep_pins_d>, <&sai2b_sleep_pins_d>; status = "okay"; };
@@ -202,10 +202,9 @@ &spi1 { &uart4 { pinctrl-names = "default", "sleep", "idle"; - pinctrl-0 = <&uart4_pins_a>; - pinctrl-1 = <&uart4_sleep_pins_a>; - pinctrl-2 = <&uart4_idle_pins_a>; - pinctrl-3 = <&uart4_pins_a>; + pinctrl-0 = <&uart4_pins_f>; + pinctrl-1 = <&uart4_sleep_pins_f>; + pinctrl-2 = <&uart4_idle_pins_f>; /delete-property/dmas; /delete-property/dma-names; status = "okay";
Signature · 1 line
2.34.1
PATCH v2 6/11 ARM: dts: stm32: phycore-stm32mp15: qspi: Fix memory map and pinctrl
In reply to Christophe Parant- Add missing chip select pin group in pinctrl.
- Overwrite the memory map to the Flash device size (16MB) is necessary to avoid waste of virtual memory that will not be used. Without this modification, qspi probe fails because of ioremap error.
--- arch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
arch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi +8 -2
@@ -290,8 +290,14 @@ &pwr_regulators { &qspi { pinctrl-names = "default", "sleep"; - pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>; - pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a>; + pinctrl-0 = <&qspi_clk_pins_a + &qspi_bk1_pins_a + &qspi_cs1_pins_a>; + pinctrl-1 = <&qspi_clk_sleep_pins_a + &qspi_bk1_sleep_pins_a + &qspi_cs1_sleep_pins_a>; + reg = <0x58003000 0x1000>, + <0x70000000 0x1000000>; status = "okay"; flash0: flash@0 {
Signature · 1 line
2.34.1
PATCH v2 7/11 ARM: dts: stm32: phycore-stm32mp15: Add dummy memory-node
In reply to Christophe Parant"memory" node is not necessary as the bootloader is taking care of passing the correct DDR size.
However keep a dummy memory node with the minimum DDR size (512MB) with comment explaining that.
--- arch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi +9 -0
@@ -22,6 +22,15 @@ aliases { rtc1 = &rtc; }; + /* + * Set the minimum memory size here and + * let the bootloader set the real size. + */ + memory@c0000000 { + device_type = "memory"; + reg = <0xc0000000 0x20000000>; + }; + reserved-memory { #address-cells = <1>; #size-cells = <1>;
Signature · 1 line
2.34.1
PATCH v2 8/11 ARM: dts: stm32: phyboard-sargas: Move aliases from dts to dtsi
In reply to Christophe Parantaliases are common to every phyboard-sargas version. So move it to the common phyboard dtsi file.
--- arch/arm/boot/dts/st/stm32mp157c-phyboard-sargas-rdk.dts | 9 --------- arch/arm/boot/dts/st/stm32mp15xx-phyboard-sargas.dtsi | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-)
arch/arm/boot/dts/st/stm32mp157c-phyboard-sargas-rdk.dts +0 -9
@@ -16,15 +16,6 @@ / { model = "PHYTEC phyBOARD-Sargas STM32MP157C"; compatible = "phytec,phycore-stm32mp1-3", "phytec,phycore-stm32mp157c-som", "st,stm32mp157"; - - aliases { - mmc0 = &sdmmc1; - mmc1 = &sdmmc2; - mmc2 = &sdmmc3; - serial0 = &uart4; - serial1 = &usart3; - serial2 = &usart1; - }; }; &cryp1 {
arch/arm/boot/dts/st/stm32mp15xx-phyboard-sargas.dtsi +9 -0
@@ -12,6 +12,15 @@ #include <dt-bindings/leds/leds-pca9532.h> / { + aliases { + mmc0 = &sdmmc1; + mmc1 = &sdmmc2; + mmc2 = &sdmmc3; + serial0 = &uart4; + serial1 = &usart3; + serial2 = &usart1; + }; + chosen { stdout-path = "serial0:115200n8"; };
Signature · 1 line
2.34.1
PATCH v2 9/11 ARM: dts: stm32: phycore-stm32mp15: Disable optional SoM peripherals
In reply to Christophe ParantFollowing peripherals are optional on phyCORE-STM32MP15x following PHYTEC standard SoM variants: external RTC, EEPROM, SPI NOR. Also NAND (fmc) can be populated instead of eMMC (sdmmc2).
So disable those peripherals on SoM dtsi file and enable them on board dts file.
Additionally, enable by default the "DTS" SoC IP on common SoM dtsi file as it is not an optional IP in STM32MP15x SoC.
--- arch/arm/boot/dts/st/stm32mp157c-phyboard-sargas-rdk.dts | 8 -------- arch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi | 9 ++++++++- 2 files changed, 8 insertions(+), 9 deletions(-)
arch/arm/boot/dts/st/stm32mp157c-phyboard-sargas-rdk.dts +0 -8
@@ -22,14 +22,6 @@ &cryp1 { status = "okay"; }; -&dts { - status = "okay"; -}; - -&fmc { - status = "disabled"; -}; - &gpu { status = "okay"; };
arch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi +8 -1
@@ -265,11 +265,13 @@ i2c4_eeprom: eeprom@50 { compatible = "microchip,24c32", "atmel,24c32"; reg = <0x50>; + status = "disabled"; }; i2c4_rtc: rtc@52 { compatible = "microcrystal,rv3028"; reg = <0x52>; + status = "disabled"; }; };
@@ -307,7 +309,7 @@ &qspi_bk1_sleep_pins_a &qspi_cs1_sleep_pins_a>; reg = <0x58003000 0x1000>, <0x70000000 0x1000000>; - status = "okay"; + status = "disabled"; flash0: flash@0 { compatible = "winbond,w25q128", "jedec,spi-nor";
@@ -328,6 +330,10 @@ &rtc { status = "okay"; }; +&dts { + status = "okay"; +}; + &sdmmc2 { pinctrl-names = "default", "opendrain", "sleep"; pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_e>;
@@ -341,4 +347,5 @@ &sdmmc2 { vmmc-supply = <&v3v3>; vqmmc-supply = <&v3v3>; mmc-ddr-3_3v; + status = "disabled"; };
Signature · 1 line
2.34.1
PATCH v2 10/11 ARM: dts: stm32: phyboard-sargas and phycore: Fix coding style issues
In reply to Christophe Parant- Remove "stm32-pinfunc.h" include as it is already include in "stm32mp15-pinctrl.dtsi" file.
- reserved-memory: reorder the memory sections (lower to higher addresses).
- Move vendor properties (go last).
- Remove useless compatible values:
- QSPI flash: remove the winbond compatible. jedec is enought as the NOR flahses are detectable.
- EEPROM: "atmel,24c32" is enought.
- Use uppercase for regulator-name properties.
- In pmic node: use the names from the PHYTEC SoM schematics.
- stmpe811 touch: fix dts schema to comply with st,stmpe.yaml.
- Fix one "multiple blank lines" detected by checkpatch.
--- .../st/stm32mp157c-phyboard-sargas-rdk.dts | 1 - .../dts/st/stm32mp15xx-phyboard-sargas.dtsi | 13 ++-- .../boot/dts/st/stm32mp15xx-phycore-som.dtsi | 64 +++++++++---------- 3 files changed, 36 insertions(+), 42 deletions(-)
arch/arm/boot/dts/st/stm32mp157c-phyboard-sargas-rdk.dts +0 -1
@@ -6,7 +6,6 @@ /dts-v1/; -#include <dt-bindings/pinctrl/stm32-pinfunc.h> #include "stm32mp157.dtsi" #include "stm32mp15xc.dtsi" #include "stm32mp15xx-phycore-som.dtsi"
arch/arm/boot/dts/st/stm32mp15xx-phyboard-sargas.dtsi +6 -7
@@ -5,7 +5,6 @@ * Author: Dom VOVARD <[email protected]>. */ - #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/leds/common.h>
@@ -101,13 +100,13 @@ touch@44 { interrupt-parent = <&gpioi>; vio-supply = <&v3v3>; vcc-supply = <&v3v3>; + st,sample-time = <4>; + st,mod-12b = <1>; + st,ref-sel = <0>; + st,adc-freq = <1>; touchscreen { compatible = "st,stmpe-ts"; - st,sample-time = <4>; - st,mod-12b = <1>; - st,ref-sel = <0>; - st,adc-freq = <1>; st,ave-ctrl = <1>; st,touch-det-delay = <2>; st,settling = <2>;
@@ -159,10 +158,10 @@ &sai2 { &sai2a { dma-names = "rx"; - st,sync = <&sai2b 2>; clocks = <&rcc SAI2_K>, <&sai2b>; clock-names = "sai_ck", "MCLK"; #clock-cells = <0>; + st,sync = <&sai2b 2>; sai2a_port: port { sai2a_endpoint: endpoint {
@@ -195,9 +194,9 @@ &sdmmc1 { pinctrl-2 = <&sdmmc1_b4_sleep_pins_b>; cd-gpios = <&gpiof 3 GPIO_ACTIVE_LOW>; disable-wp; - st,neg-edge; bus-width = <4>; vmmc-supply = <&v3v3>; + st,neg-edge; status = "okay"; };
arch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi +30 -34
192 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v2 11/11 ARM: dts: stm32: phyboard-sargas and phycore: Add optional interfaces
In reply to Christophe Parant- stm32mp15xx-phycore-som: add NAND device on FMC interface to support the SoM version equipped with NAND flash instead of eMMC.
- stm32mp15xx-phyboard-sargas: define pinctrl for PWM5, LTDC and DCMI interfaces used on phyBOARD-Sargas. Those interfaces are not enabled by default as PHYTEC displays and PHYTEC cameras are enabled and configured throught device tree overlays.
PWM5 is used for LCD backlight command.
--- .../dts/st/stm32mp15xx-phyboard-sargas.dtsi | 23 +++++++++++++++++++ .../boot/dts/st/stm32mp15xx-phycore-som.dtsi | 16 +++++++++++++ 2 files changed, 39 insertions(+)
arch/arm/boot/dts/st/stm32mp15xx-phyboard-sargas.dtsi +23 -0
@@ -260,3 +260,26 @@ &usbphyc_port0 { &usbphyc_port1 { phy-supply = <&vdd_usb>; }; + +&timers5 { + /* spare dmas for other usage */ + /delete-property/dmas; + /delete-property/dma-names; + pwm5: pwm { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pwm5_pins_c>; + pinctrl-1 = <&pwm5_sleep_pins_c>; + }; +}; + +<dc { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <<dc_pins_f>; + pinctrl-1 = <<dc_sleep_pins_f>; +}; + +&dcmi { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&dcmi_pins_d>; + pinctrl-1 = <&dcmi_sleep_pins_d>; +};
arch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi +16 -0
@@ -345,3 +345,19 @@ &sdmmc2 { st,neg-edge; status = "disabled"; }; + +&fmc { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&fmc_pins_a>; + pinctrl-1 = <&fmc_sleep_pins_a>; + status = "disabled"; + + nand-controller@4,0 { + nand0: nand@0 { + reg = <0>; + nand-on-flash-bbt; + nand-ecc-strength = <4>; + nand-ecc-step-size = <512>; + }; + }; +};
Signature · 1 line
2.34.1