ARM: dts: stm32: set the DCMI pins on stm32mp157c-odyssey
authorGrzegorz Szymaszek <gszymaszek@short.pl>
Thu, 26 Aug 2021 14:45:43 +0000 (16:45 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 15 Oct 2021 14:51:09 +0000 (16:51 +0200)
The Seeed Odyssey-STM32MP157C board has a 20-pin DVP camera output. The
DCMI pins used on this output are defined in the pin state definition
&pinctrl/dcmi-1, AKA &dcmi_pins_b (added in mainline commit
02814a41529a55dbfb9fbb2a3728e78e70646ea6). Set these pins as the default
pinctrl of the DCMI peripheral in the board device tree.

The pins are not used for any other purpose, so it seems safe to assume
most users will not need to override (delete) what this patch provides.
status defaults to "disabled", so the peripheral will not be
unnecessarily started. And the users who actually intend to make use of
a camera on the DVP port will have this little part of the configuration
ready.

Signed-off-by: Grzegorz Szymaszek <gszymaszek@short.pl>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/stm32mp157c-odyssey.dts

index be1dd5e9e7443f642afd0a22b5f894a37afe9e37..554f5d3bcdc31f91bfe7131f0ba7429a1190dfcd 100644 (file)
        };
 };
 
+&dcmi {
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&dcmi_pins_b>;
+       pinctrl-1 = <&dcmi_sleep_pins_b>;
+};
+
 &ethernet0 {
        status = "okay";
        pinctrl-0 = <&ethernet0_rgmii_pins_a>;