Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: stm32: Use new media bus type macros

Now that a header exists with macros for the media interface bus-type
values, replace hardcoding numerical constants with the corresponding
macros in the DT sources.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>

authored by

Laurent Pinchart and committed by
Alexandre Torgue
2f33df88 a1215405

+4 -2
+2 -1
arch/arm/boot/dts/stm32429i-eval.dts
··· 50 50 #include "stm32f429-pinctrl.dtsi" 51 51 #include <dt-bindings/input/input.h> 52 52 #include <dt-bindings/gpio/gpio.h> 53 + #include <dt-bindings/media/video-interfaces.h> 53 54 54 55 / { 55 56 model = "STMicroelectronics STM32429i-EVAL board"; ··· 187 186 port { 188 187 dcmi_0: endpoint { 189 188 remote-endpoint = <&ov2640_0>; 190 - bus-type = <5>; 189 + bus-type = <MEDIA_BUS_TYPE_PARALLEL>; 191 190 bus-width = <8>; 192 191 hsync-active = <0>; 193 192 vsync-active = <0>;
+2 -1
arch/arm/boot/dts/stm32mp157c-ev1.dts
··· 8 8 #include "stm32mp157c-ed1.dts" 9 9 #include <dt-bindings/gpio/gpio.h> 10 10 #include <dt-bindings/input/input.h> 11 + #include <dt-bindings/media/video-interfaces.h> 11 12 12 13 / { 13 14 model = "STMicroelectronics STM32MP157C eval daughter on eval mother"; ··· 91 90 port { 92 91 dcmi_0: endpoint { 93 92 remote-endpoint = <&ov5640_0>; 94 - bus-type = <5>; 93 + bus-type = <MEDIA_BUS_TYPE_PARALLEL>; 95 94 bus-width = <8>; 96 95 hsync-active = <0>; 97 96 vsync-active = <0>;