]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ARM: dts: stm32: configure i2c5 support on stm32mp15xx-dkx
authorFabrice Gasnier <fabrice.gasnier@st.com>
Tue, 23 Jun 2020 09:31:12 +0000 (11:31 +0200)
committerAlexandre Torgue <alexandre.torgue@st.com>
Tue, 21 Jul 2020 08:11:48 +0000 (10:11 +0200)
Configure I2C5 on stm32mp15 DK boards. It's available and can be used on:
- Arduino connector
- GPIO expansion connector
Keep it disabled by default, so the pins are kept in their initial state to
lower power consumption. This way they can also be used as GPIO.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Alain Volmat <alain.volmat@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32mp15xx-dkx.dtsi

index 493f3b1112e1e7c9ca48ee2fb618998b30a427b2..62b1e71fc7eb17582405b06b34da063a2113fdaa 100644 (file)
        };
 };
 
+&i2c5 {
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&i2c5_pins_a>;
+       pinctrl-1 = <&i2c5_sleep_pins_a>;
+       i2c-scl-rising-time-ns = <185>;
+       i2c-scl-falling-time-ns = <20>;
+       clock-frequency = <400000>;
+       /* spare dmas for other usage */
+       /delete-property/dmas;
+       /delete-property/dma-names;
+       status = "disabled";
+};
+
 &i2s2 {
        clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
        clock-names = "pclk", "i2sclk", "x8k", "x11k";