diff --git a/fdts/stm32mp13-bl2.dtsi b/fdts/stm32mp13-bl2.dtsi index 2b23daf39..06db79662 100644 --- a/fdts/stm32mp13-bl2.dtsi +++ b/fdts/stm32mp13-bl2.dtsi @@ -3,15 +3,6 @@ * Copyright (c) 2022-2023, STMicroelectronics - All Rights Reserved */ -/omit-if-no-ref/ &i2c4_pins_a; -/omit-if-no-ref/ &sdmmc1_b4_pins_a; -/omit-if-no-ref/ &sdmmc1_clk_pins_a; -/omit-if-no-ref/ &sdmmc2_b4_pins_a; -/omit-if-no-ref/ &sdmmc2_clk_pins_a; -/omit-if-no-ref/ &uart4_pins_a; -/omit-if-no-ref/ &uart8_pins_a; -/omit-if-no-ref/ &usart1_pins_a; - / { aliases { #if !STM32MP_EMMC && !STM32MP_SDMMC diff --git a/fdts/stm32mp13-pinctrl.dtsi b/fdts/stm32mp13-pinctrl.dtsi index 323d5ba66..6de9bb0f6 100644 --- a/fdts/stm32mp13-pinctrl.dtsi +++ b/fdts/stm32mp13-pinctrl.dtsi @@ -6,6 +6,7 @@ #include &pinctrl { + /omit-if-no-ref/ i2c4_pins_a: i2c4-0 { pins { pinmux = , /* I2C4_SCL */ @@ -16,6 +17,7 @@ }; }; + /omit-if-no-ref/ sdmmc1_b4_pins_a: sdmmc1-b4-0 { pins { pinmux = , /* SDMMC1_D0 */ @@ -29,6 +31,7 @@ }; }; + /omit-if-no-ref/ sdmmc1_clk_pins_a: sdmmc1-clk-0 { pins { pinmux = ; /* SDMMC1_CK */ @@ -38,6 +41,7 @@ }; }; + /omit-if-no-ref/ sdmmc2_b4_pins_a: sdmmc2-b4-0 { pins { pinmux = , /* SDMMC2_D0 */ @@ -51,6 +55,7 @@ }; }; + /omit-if-no-ref/ sdmmc2_clk_pins_a: sdmmc2-clk-0 { pins { pinmux = ; /* SDMMC2_CK */ @@ -60,6 +65,7 @@ }; }; + /omit-if-no-ref/ uart4_pins_a: uart4-0 { pins1 { pinmux = ; /* UART4_TX */ @@ -73,6 +79,7 @@ }; }; + /omit-if-no-ref/ usart1_pins_a: usart1-0 { pins1 { pinmux = , /* USART1_TX */ @@ -88,6 +95,7 @@ }; }; + /omit-if-no-ref/ uart8_pins_a: uart8-0 { pins1 { pinmux = ; /* UART8_TX */ diff --git a/fdts/stm32mp131.dtsi b/fdts/stm32mp131.dtsi index 2be39afcf..8bcf363b6 100644 --- a/fdts/stm32mp131.dtsi +++ b/fdts/stm32mp131.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) /* - * Copyright (C) STMicroelectronics 2022 - All Rights Reserved + * Copyright (C) 2022-2023, STMicroelectronics - All Rights Reserved * Author: Alexandre Torgue for STMicroelectronics. */ #include @@ -276,23 +276,20 @@ }; fmc: memory-controller@58002000 { - #address-cells = <2>; - #size-cells = <1>; compatible = "st,stm32mp1-fmc2-ebi"; reg = <0x58002000 0x1000>; - clocks = <&rcc FMC_K>; - resets = <&rcc FMC_R>; - status = "disabled"; - ranges = <0 0 0x60000000 0x04000000>, /* EBI CS 1 */ <1 0 0x64000000 0x04000000>, /* EBI CS 2 */ <2 0 0x68000000 0x04000000>, /* EBI CS 3 */ <3 0 0x6c000000 0x04000000>, /* EBI CS 4 */ <4 0 0x80000000 0x10000000>; /* NAND */ + #address-cells = <2>; + #size-cells = <1>; + clocks = <&rcc FMC_K>; + resets = <&rcc FMC_R>; + status = "disabled"; nand-controller@4,0 { - #address-cells = <1>; - #size-cells = <0>; compatible = "st,stm32mp1-fmc2-nfc"; reg = <4 0x00000000 0x1000>, <4 0x08010000 0x1000>, @@ -300,6 +297,8 @@ <4 0x01000000 0x1000>, <4 0x09010000 0x1000>, <4 0x09020000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; interrupts = ; status = "disabled"; }; @@ -341,7 +340,7 @@ status = "disabled"; }; - usbh_ohci: usbh-ohci@5800c000 { + usbh_ohci: usb@5800c000 { compatible = "generic-ohci"; reg = <0x5800c000 0x1000>; clocks = <&rcc USBH>; @@ -350,7 +349,7 @@ status = "disabled"; }; - usbh_ehci: usbh-ehci@5800d000 { + usbh_ehci: usb@5800d000 { compatible = "generic-ehci"; reg = <0x5800d000 0x1000>; clocks = <&rcc USBH>; @@ -424,7 +423,7 @@ cfg0_otp: cfg0_otp@0 { reg = <0x0 0x2>; }; - part_number_otp: part_number_otp@4 { + part_number_otp: part-number-otp@4 { reg = <0x4 0x2>; }; monotonic_otp: monotonic_otp@10 { @@ -470,7 +469,6 @@ ranges = <0 0x50002000 0x8400>; interrupt-parent = <&exti>; st,syscfg = <&exti 0x60 0xff>; - pins-are-numbered; gpioa: gpio@50002000 { gpio-controller; diff --git a/fdts/stm32mp15-bl2.dtsi b/fdts/stm32mp15-bl2.dtsi index 53aeec55e..18a4ba932 100644 --- a/fdts/stm32mp15-bl2.dtsi +++ b/fdts/stm32mp15-bl2.dtsi @@ -3,37 +3,8 @@ * Copyright (c) 2020-2023, STMicroelectronics - All Rights Reserved */ -/omit-if-no-ref/ &fmc_pins_a; -/omit-if-no-ref/ &i2c2_pins_a; -/omit-if-no-ref/ &i2c4_pins_a; /omit-if-no-ref/ &i2c6; -/omit-if-no-ref/ &qspi_bk1_pins_a; -/omit-if-no-ref/ &qspi_bk2_pins_a; -/omit-if-no-ref/ &qspi_clk_pins_a; -/omit-if-no-ref/ &sdmmc1_b4_pins_a; -/omit-if-no-ref/ &sdmmc1_dir_pins_a; -/omit-if-no-ref/ &sdmmc1_dir_pins_b; -/omit-if-no-ref/ &sdmmc2_b4_pins_a; -/omit-if-no-ref/ &sdmmc2_b4_pins_b; -/omit-if-no-ref/ &sdmmc2_d47_pins_a; -/omit-if-no-ref/ &sdmmc2_d47_pins_b; -/omit-if-no-ref/ &sdmmc2_d47_pins_c; -/omit-if-no-ref/ &sdmmc2_d47_pins_d; /omit-if-no-ref/ &spi6; -/omit-if-no-ref/ &uart4_pins_a; -/omit-if-no-ref/ &uart4_pins_b; -/omit-if-no-ref/ &uart7_pins_a; -/omit-if-no-ref/ &uart7_pins_b; -/omit-if-no-ref/ &uart7_pins_c; -/omit-if-no-ref/ &uart8_pins_a; -/omit-if-no-ref/ &usart2_pins_a; -/omit-if-no-ref/ &usart2_pins_b; -/omit-if-no-ref/ &usart2_pins_c; -/omit-if-no-ref/ &usart3_pins_a; -/omit-if-no-ref/ &usart3_pins_b; -/omit-if-no-ref/ &usart3_pins_c; -/omit-if-no-ref/ &usbotg_fs_dp_dm_pins_a; -/omit-if-no-ref/ &usbotg_hs_pins_a; / { #if !STM32MP_EMMC && !STM32MP_SDMMC diff --git a/fdts/stm32mp15-bl32.dtsi b/fdts/stm32mp15-bl32.dtsi index 7b63f1bda..688222498 100644 --- a/fdts/stm32mp15-bl32.dtsi +++ b/fdts/stm32mp15-bl32.dtsi @@ -3,37 +3,8 @@ * Copyright (c) 2020-2023, STMicroelectronics - All Rights Reserved */ -/omit-if-no-ref/ &fmc_pins_a; -/omit-if-no-ref/ &i2c2_pins_a; -/omit-if-no-ref/ &i2c4_pins_a; /omit-if-no-ref/ &i2c6; -/omit-if-no-ref/ &qspi_bk1_pins_a; -/omit-if-no-ref/ &qspi_bk2_pins_a; -/omit-if-no-ref/ &qspi_clk_pins_a; -/omit-if-no-ref/ &sdmmc1_b4_pins_a; -/omit-if-no-ref/ &sdmmc1_dir_pins_a; -/omit-if-no-ref/ &sdmmc1_dir_pins_b; -/omit-if-no-ref/ &sdmmc2_b4_pins_a; -/omit-if-no-ref/ &sdmmc2_b4_pins_b; -/omit-if-no-ref/ &sdmmc2_d47_pins_a; -/omit-if-no-ref/ &sdmmc2_d47_pins_b; -/omit-if-no-ref/ &sdmmc2_d47_pins_c; -/omit-if-no-ref/ &sdmmc2_d47_pins_d; /omit-if-no-ref/ &spi6; -/omit-if-no-ref/ &uart4_pins_a; -/omit-if-no-ref/ &uart4_pins_b; -/omit-if-no-ref/ &uart7_pins_a; -/omit-if-no-ref/ &uart7_pins_b; -/omit-if-no-ref/ &uart7_pins_c; -/omit-if-no-ref/ &uart8_pins_a; -/omit-if-no-ref/ &usart2_pins_a; -/omit-if-no-ref/ &usart2_pins_b; -/omit-if-no-ref/ &usart2_pins_c; -/omit-if-no-ref/ &usart3_pins_a; -/omit-if-no-ref/ &usart3_pins_b; -/omit-if-no-ref/ &usart3_pins_c; -/omit-if-no-ref/ &usbotg_fs_dp_dm_pins_a; -/omit-if-no-ref/ &usbotg_hs_pins_a; / { aliases { diff --git a/fdts/stm32mp15-pinctrl.dtsi b/fdts/stm32mp15-pinctrl.dtsi index a1be44781..70d1db140 100644 --- a/fdts/stm32mp15-pinctrl.dtsi +++ b/fdts/stm32mp15-pinctrl.dtsi @@ -6,6 +6,7 @@ #include &pinctrl { + /omit-if-no-ref/ fmc_pins_a: fmc-0 { pins1 { pinmux = , /* FMC_NOE */ @@ -31,6 +32,7 @@ }; }; + /omit-if-no-ref/ i2c2_pins_a: i2c2-0 { pins { pinmux = , /* I2C2_SCL */ @@ -41,6 +43,7 @@ }; }; + /omit-if-no-ref/ qspi_clk_pins_a: qspi-clk-0 { pins { pinmux = ; /* QSPI_CLK */ @@ -50,8 +53,9 @@ }; }; + /omit-if-no-ref/ qspi_bk1_pins_a: qspi-bk1-0 { - pins1 { + pins { pinmux = , /* QSPI_BK1_IO0 */ , /* QSPI_BK1_IO1 */ , /* QSPI_BK1_IO2 */ @@ -60,16 +64,11 @@ drive-push-pull; slew-rate = <1>; }; - pins2 { - pinmux = ; /* QSPI_BK1_NCS */ - bias-pull-up; - drive-push-pull; - slew-rate = <1>; - }; }; + /omit-if-no-ref/ qspi_bk2_pins_a: qspi-bk2-0 { - pins1 { + pins { pinmux = , /* QSPI_BK2_IO0 */ , /* QSPI_BK2_IO1 */ , /* QSPI_BK2_IO2 */ @@ -78,7 +77,21 @@ drive-push-pull; slew-rate = <1>; }; - pins2 { + }; + + /omit-if-no-ref/ + qspi_cs1_pins_a: qspi-cs1-0 { + pins { + pinmux = ; /* QSPI_BK1_NCS */ + bias-pull-up; + drive-push-pull; + slew-rate = <1>; + }; + }; + + /omit-if-no-ref/ + qspi_cs2_pins_a: qspi-cs2-0 { + pins { pinmux = ; /* QSPI_BK2_NCS */ bias-pull-up; drive-push-pull; @@ -86,6 +99,7 @@ }; }; + /omit-if-no-ref/ sdmmc1_b4_pins_a: sdmmc1-b4-0 { pins1 { pinmux = , /* SDMMC1_D0 */ @@ -105,6 +119,7 @@ }; }; + /omit-if-no-ref/ sdmmc1_dir_pins_a: sdmmc1-dir-0 { pins1 { pinmux = , /* SDMMC1_D0DIR */ @@ -120,6 +135,7 @@ }; }; + /omit-if-no-ref/ sdmmc1_dir_pins_b: sdmmc1-dir-1 { pins1 { pinmux = , /* SDMMC1_D0DIR */ @@ -129,12 +145,13 @@ drive-push-pull; bias-pull-up; }; - pins2{ + pins2 { pinmux = ; /* SDMMC1_CKIN */ bias-pull-up; }; }; + /omit-if-no-ref/ sdmmc2_b4_pins_a: sdmmc2-b4-0 { pins1 { pinmux = , /* SDMMC2_D0 */ @@ -154,6 +171,7 @@ }; }; + /omit-if-no-ref/ sdmmc2_b4_pins_b: sdmmc2-b4-1 { pins1 { pinmux = , /* SDMMC2_D0 */ @@ -173,6 +191,7 @@ }; }; + /omit-if-no-ref/ sdmmc2_d47_pins_a: sdmmc2-d47-0 { pins { pinmux = , /* SDMMC2_D4 */ @@ -185,6 +204,7 @@ }; }; + /omit-if-no-ref/ sdmmc2_d47_pins_b: sdmmc2-d47-1 { pins { pinmux = , /* SDMMC2_D4 */ @@ -197,6 +217,7 @@ }; }; + /omit-if-no-ref/ sdmmc2_d47_pins_c: sdmmc2-d47-2 { pins { pinmux = , /* SDMMC2_D4 */ @@ -209,6 +230,7 @@ }; }; + /omit-if-no-ref/ sdmmc2_d47_pins_d: sdmmc2-d47-3 { pins { pinmux = , /* SDMMC2_D4 */ @@ -218,6 +240,7 @@ }; }; + /omit-if-no-ref/ uart4_pins_a: uart4-0 { pins1 { pinmux = ; /* UART4_TX */ @@ -231,6 +254,7 @@ }; }; + /omit-if-no-ref/ uart4_pins_b: uart4-1 { pins1 { pinmux = ; /* UART4_TX */ @@ -244,6 +268,7 @@ }; }; + /omit-if-no-ref/ uart7_pins_a: uart7-0 { pins1 { pinmux = ; /* UART7_TX */ @@ -259,6 +284,7 @@ }; }; + /omit-if-no-ref/ uart7_pins_b: uart7-1 { pins1 { pinmux = ; /* UART7_TX */ @@ -272,6 +298,7 @@ }; }; + /omit-if-no-ref/ uart7_pins_c: uart7-2 { pins1 { pinmux = ; /* UART7_TX */ @@ -281,10 +308,11 @@ }; pins2 { pinmux = ; /* UART7_RX */ - bias-disable; + bias-pull-up; }; }; + /omit-if-no-ref/ uart8_pins_a: uart8-0 { pins1 { pinmux = ; /* UART8_TX */ @@ -298,6 +326,7 @@ }; }; + /omit-if-no-ref/ usart2_pins_a: usart2-0 { pins1 { pinmux = , /* USART2_TX */ @@ -313,6 +342,7 @@ }; }; + /omit-if-no-ref/ usart2_pins_b: usart2-1 { pins1 { pinmux = , /* USART2_TX */ @@ -328,13 +358,14 @@ }; }; + /omit-if-no-ref/ usart2_pins_c: usart2-2 { pins1 { pinmux = , /* USART2_TX */ ; /* USART2_RTS */ bias-disable; drive-push-pull; - slew-rate = <3>; + slew-rate = <0>; }; pins2 { pinmux = , /* USART2_RX */ @@ -343,6 +374,7 @@ }; }; + /omit-if-no-ref/ usart3_pins_a: usart3-0 { pins1 { pinmux = ; /* USART3_TX */ @@ -356,6 +388,7 @@ }; }; + /omit-if-no-ref/ usart3_pins_b: usart3-1 { pins1 { pinmux = , /* USART3_TX */ @@ -371,6 +404,7 @@ }; }; + /omit-if-no-ref/ usart3_pins_c: usart3-2 { pins1 { pinmux = , /* USART3_TX */ @@ -386,12 +420,14 @@ }; }; + /omit-if-no-ref/ usbotg_hs_pins_a: usbotg-hs-0 { pins { pinmux = ; /* OTG_ID */ }; }; + /omit-if-no-ref/ usbotg_fs_dp_dm_pins_a: usbotg-fs-dp-dm-0 { pins { pinmux = , /* OTG_FS_DM */ @@ -401,6 +437,7 @@ }; &pinctrl_z { + /omit-if-no-ref/ i2c4_pins_a: i2c4-0 { pins { pinmux = , /* I2C4_SCL */ diff --git a/fdts/stm32mp151.dtsi b/fdts/stm32mp151.dtsi index 869b9127c..7a22a1c78 100644 --- a/fdts/stm32mp151.dtsi +++ b/fdts/stm32mp151.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) /* - * Copyright (c) 2017-2022, STMicroelectronics - All Rights Reserved + * Copyright (c) 2017-2023, STMicroelectronics - All Rights Reserved * Author: Ludovic Barre for STMicroelectronics. */ #include @@ -324,9 +324,8 @@ sdmmc1: mmc@58005000 { compatible = "st,stm32-sdmmc2", "arm,pl18x", "arm,primecell"; arm,primecell-periphid = <0x00253180>; - reg = <0x58005000 0x1000>, <0x58006000 0x1000>; + reg = <0x58005000 0x1000>; interrupts = ; - interrupt-names = "cmd_irq"; clocks = <&rcc SDMMC1_K>; clock-names = "apb_pclk"; resets = <&rcc SDMMC1_R>; @@ -339,9 +338,8 @@ sdmmc2: mmc@58007000 { compatible = "st,stm32-sdmmc2", "arm,pl18x", "arm,primecell"; arm,primecell-periphid = <0x00253180>; - reg = <0x58007000 0x1000>, <0x58008000 0x1000>; + reg = <0x58007000 0x1000>; interrupts = ; - interrupt-names = "cmd_irq"; clocks = <&rcc SDMMC2_K>; clock-names = "apb_pclk"; resets = <&rcc SDMMC2_R>; @@ -463,7 +461,7 @@ cfg0_otp: cfg0_otp@0 { reg = <0x0 0x1>; }; - part_number_otp: part_number_otp@4 { + part_number_otp: part-number-otp@4 { reg = <0x4 0x1>; }; monotonic_otp: monotonic_otp@10 { @@ -523,7 +521,7 @@ }; tamp: tamp@5c00a000 { - compatible = "st,stm32-tamp", "simple-bus", "syscon", "simple-mfd"; + compatible = "st,stm32-tamp", "syscon", "simple-mfd"; reg = <0x5c00a000 0x400>; secure-interrupts = ; clocks = <&rcc RTCAPB>; @@ -540,7 +538,6 @@ ranges = <0 0x50002000 0xa400>; interrupt-parent = <&exti>; st,syscfg = <&exti 0x60 0xff>; - pins-are-numbered; gpioa: gpio@50002000 { gpio-controller; @@ -669,7 +666,6 @@ #size-cells = <1>; compatible = "st,stm32mp157-z-pinctrl"; ranges = <0 0x54004000 0x400>; - pins-are-numbered; interrupt-parent = <&exti>; st,syscfg = <&exti 0x60 0xff>; diff --git a/fdts/stm32mp151a-prtt1a.dts b/fdts/stm32mp151a-prtt1a.dts index be9bdae7c..363462081 100644 --- a/fdts/stm32mp151a-prtt1a.dts +++ b/fdts/stm32mp151a-prtt1a.dts @@ -39,7 +39,9 @@ &qspi { pinctrl-names = "default", "sleep"; - pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>; + pinctrl-0 = <&qspi_clk_pins_a + &qspi_bk1_pins_a + &qspi_cs1_pins_a>; reg = <0x58003000 0x1000>, <0x70000000 0x4000000>; #address-cells = <1>; #size-cells = <0>; @@ -56,7 +58,7 @@ }; &qspi_bk1_pins_a { - pins1 { + pins { bias-pull-up; drive-push-pull; slew-rate = <1>; diff --git a/fdts/stm32mp157a-dk1.dts b/fdts/stm32mp157a-dk1.dts index a73bef8ee..b4d5d20cd 100644 --- a/fdts/stm32mp157a-dk1.dts +++ b/fdts/stm32mp157a-dk1.dts @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) /* - * Copyright (C) STMicroelectronics 2019 - All Rights Reserved + * Copyright (C) 2019-2023, STMicroelectronics - All Rights Reserved * Author: Alexandre Torgue for STMicroelectronics. */ @@ -15,12 +15,6 @@ model = "STMicroelectronics STM32MP157A-DK1 Discovery Board"; compatible = "st,stm32mp157a-dk1", "st,stm32mp157"; - aliases { - serial0 = &uart4; - serial1 = &usart3; - serial2 = &uart7; - }; - chosen { stdout-path = "serial0:115200n8"; }; diff --git a/fdts/stm32mp157c-dk2.dts b/fdts/stm32mp157c-dk2.dts index be8300e9e..f6f3782e2 100644 --- a/fdts/stm32mp157c-dk2.dts +++ b/fdts/stm32mp157c-dk2.dts @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) /* - * Copyright (C) STMicroelectronics 2019 - All Rights Reserved + * Copyright (C) 2019-2023, STMicroelectronics - All Rights Reserved * Author: Alexandre Torgue for STMicroelectronics. */ @@ -17,9 +17,6 @@ compatible = "st,stm32mp157c-dk2", "st,stm32mp157"; aliases { - serial0 = &uart4; - serial1 = &usart3; - serial2 = &uart7; serial3 = &usart2; }; diff --git a/fdts/stm32mp157c-ed1.dts b/fdts/stm32mp157c-ed1.dts index 63753bdd3..949c929af 100644 --- a/fdts/stm32mp157c-ed1.dts +++ b/fdts/stm32mp157c-ed1.dts @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) /* - * Copyright (c) 2017-2022, STMicroelectronics - All Rights Reserved + * Copyright (c) 2017-2023, STMicroelectronics - All Rights Reserved * Author: Ludovic Barre for STMicroelectronics. */ /dts-v1/; @@ -16,6 +16,10 @@ model = "STMicroelectronics STM32MP157C eval daughter"; compatible = "st,stm32mp157c-ed1", "st,stm32mp157"; + aliases { + serial0 = &uart4; + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -24,10 +28,6 @@ device_type = "memory"; reg = <0xC0000000 0x40000000>; }; - - aliases { - serial0 = &uart4; - }; }; &bsec { diff --git a/fdts/stm32mp157c-ev1.dts b/fdts/stm32mp157c-ev1.dts index 02840a2e5..e2746456b 100644 --- a/fdts/stm32mp157c-ev1.dts +++ b/fdts/stm32mp157c-ev1.dts @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) /* - * Copyright (c) 2017-2021, STMicroelectronics - All Rights Reserved + * Copyright (c) 2017-2023, STMicroelectronics - All Rights Reserved * Author: Ludovic Barre for STMicroelectronics. */ /dts-v1/; @@ -11,13 +11,13 @@ 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; }; + + chosen { + stdout-path = "serial0:115200n8"; + }; }; &fmc { @@ -39,13 +39,15 @@ &qspi { pinctrl-names = "default"; - pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>; + pinctrl-0 = <&qspi_clk_pins_a + &qspi_bk1_pins_a + &qspi_cs1_pins_a>; reg = <0x58003000 0x1000>, <0x70000000 0x4000000>; #address-cells = <1>; #size-cells = <0>; status = "okay"; - flash0: mx66l51235l@0 { + flash0: flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-rx-bus-width = <4>; diff --git a/fdts/stm32mp15xx-dhcom-som.dtsi b/fdts/stm32mp15xx-dhcom-som.dtsi index c9f21b0e6..7737a4477 100644 --- a/fdts/stm32mp15xx-dhcom-som.dtsi +++ b/fdts/stm32mp15xx-dhcom-som.dtsi @@ -2,6 +2,7 @@ /* * Copyright (C) 2019-2020 Marek Vasut * Copyright (C) 2022 DH electronics GmbH + * Copyright (C) 2023, STMicroelectronics - All Rights Reserved */ #include "stm32mp15-pinctrl.dtsi" @@ -169,7 +170,9 @@ &qspi { pinctrl-names = "default"; - pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>; + pinctrl-0 = <&qspi_clk_pins_a + &qspi_bk1_pins_a + &qspi_cs1_pins_a>; reg = <0x58003000 0x1000>, <0x70000000 0x4000000>; #address-cells = <1>; #size-cells = <0>; diff --git a/fdts/stm32mp15xx-dhcor-som.dtsi b/fdts/stm32mp15xx-dhcor-som.dtsi index c241efc48..8d829a416 100644 --- a/fdts/stm32mp15xx-dhcor-som.dtsi +++ b/fdts/stm32mp15xx-dhcor-som.dtsi @@ -4,6 +4,7 @@ * Author: Manivannan Sadhasivam * Copyright (C) 2020 Marek Vasut * Copyright (C) 2022 DH electronics GmbH + * Copyright (C) 2023, STMicroelectronics - All Rights Reserved */ #include "stm32mp15-pinctrl.dtsi" @@ -164,7 +165,9 @@ &qspi { pinctrl-names = "default"; - pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>; + pinctrl-0 = <&qspi_clk_pins_a + &qspi_bk1_pins_a + &qspi_cs1_pins_a>; reg = <0x58003000 0x1000>, <0x70000000 0x200000>; #address-cells = <1>; #size-cells = <0>; diff --git a/fdts/stm32mp15xx-dkx.dtsi b/fdts/stm32mp15xx-dkx.dtsi index 52d4170fd..f8baa9d4a 100644 --- a/fdts/stm32mp15xx-dkx.dtsi +++ b/fdts/stm32mp15xx-dkx.dtsi @@ -8,6 +8,12 @@ #include "stm32mp15-ddr3-1x4Gb-1066-binG.dtsi" / { + aliases { + serial0 = &uart4; + serial1 = &usart3; + serial2 = &uart7; + }; + memory@c0000000 { device_type = "memory"; reg = <0xc0000000 0x20000000>; diff --git a/fdts/stm32mp25-bl2.dtsi b/fdts/stm32mp25-bl2.dtsi index 7a6bbbe54..438a58ca8 100644 --- a/fdts/stm32mp25-bl2.dtsi +++ b/fdts/stm32mp25-bl2.dtsi @@ -2,5 +2,3 @@ /* * Copyright (C) 2023, STMicroelectronics - All Rights Reserved */ - -/omit-if-no-ref/ &usart2_pins_a; diff --git a/fdts/stm32mp25-pinctrl.dtsi b/fdts/stm32mp25-pinctrl.dtsi index 8d0eaafe9..05876a394 100644 --- a/fdts/stm32mp25-pinctrl.dtsi +++ b/fdts/stm32mp25-pinctrl.dtsi @@ -6,6 +6,7 @@ #include &pinctrl { + /omit-if-no-ref/ usart2_pins_a: usart2-0 { pins1 { pinmux = ; /* USART2_TX */ diff --git a/fdts/stm32mp251.dtsi b/fdts/stm32mp251.dtsi index 821eb496a..f55a3b973 100644 --- a/fdts/stm32mp251.dtsi +++ b/fdts/stm32mp251.dtsi @@ -67,7 +67,7 @@ <0x0 0x4ac60000 0x0 0x2000>; }; - timer: timer { + timer { compatible = "arm,armv8-timer"; interrupt-parent = <&intc>; interrupts = , diff --git a/fdts/stm32mp257f-ev1.dts b/fdts/stm32mp257f-ev1.dts index 916d1e2c3..b7e92e47c 100644 --- a/fdts/stm32mp257f-ev1.dts +++ b/fdts/stm32mp257f-ev1.dts @@ -25,7 +25,7 @@ memory@80000000 { device_type = "memory"; - reg = <0x0 0x80000000 0x1 0x00000000>; + reg = <0x0 0x80000000 0x1 0x0>; }; }; diff --git a/plat/st/stm32mp1/stm32mp1_def.h b/plat/st/stm32mp1/stm32mp1_def.h index 0fa6c73c9..6530957c3 100644 --- a/plat/st/stm32mp1/stm32mp1_def.h +++ b/plat/st/stm32mp1/stm32mp1_def.h @@ -427,7 +427,7 @@ enum ddr_type { /* OTP labels */ #define CFG0_OTP "cfg0_otp" -#define PART_NUMBER_OTP "part_number_otp" +#define PART_NUMBER_OTP "part-number-otp" #if STM32MP15 #define PACKAGE_OTP "package_otp" #endif