From b0ce326666eaf6803bcc5723af14c513eff895d5 Mon Sep 17 00:00:00 2001 From: Arnav Singh Date: Mon, 6 May 2024 16:36:04 -0700 Subject: arm64: dts: sun50i: Define orientation and rotation for PinePhone rear camera This enables libcamera to detect the correct orientation from the device tree and propagate it further to e.g. Pipewire. Signed-off-by: Arnav Singh --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index e7e90e5baff4..1a57720c25ef 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -617,6 +617,9 @@ ov5640: rear-camera@4c { reset-gpios = <&pio 3 3 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; /* PD3 */ powerdown-gpios = <&pio 2 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; /* PC0 */ + orientation = <1>; + rotation = <270>; + port { ov5640_ep: endpoint { remote-endpoint = <&csi_ov5640_ep>; -- 2.35.3