From 3ef2208b6a96ca15192e1ee6ceaf77e4bcb568fa Mon Sep 17 00:00:00 2001 From: Grzegorz Szymaszek Date: Wed, 21 Apr 2021 19:06:57 +0200 Subject: [PATCH] fdts: stm32mp1: add the I2C2 peripheral in the SoC DTS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some STM32MP1‐based boards, like Seeed Studio’s SoM‐STM32MP157C, have the SoC connected to the PMIC via I2C2 instead of I2C4 (which is used on the official ST development boards). This commit brings TF‑A one step closer to boot on such boards. Signed-off-by: Grzegorz Szymaszek Change-Id: Iec9c80f29ce95496e8f1b079b7a23f1914b74901 --- fdts/stm32mp151.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/fdts/stm32mp151.dtsi b/fdts/stm32mp151.dtsi index 8f175a649..c350c66de 100644 --- a/fdts/stm32mp151.dtsi +++ b/fdts/stm32mp151.dtsi @@ -121,6 +121,21 @@ status = "disabled"; }; + i2c2: i2c@40013000 { + compatible = "st,stm32mp15-i2c"; + reg = <0x40013000 0x400>; + interrupt-names = "event", "error"; + interrupts = <&exti 22 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&rcc I2C2_K>; + resets = <&rcc I2C2_R>; + #address-cells = <1>; + #size-cells = <0>; + st,syscfg-fmp = <&syscfg 0x4 0x2>; + wakeup-source; + status = "disabled"; + }; + uart7: serial@40018000 { compatible = "st,stm32h7-uart"; reg = <0x40018000 0x400>; -- GitLab