sunxi: include the OV5640 dtsi in the BananaPi P2 Zero board
authorZoltan HERPAI <wigyori@uid0.hu>
Sun, 29 Oct 2023 17:56:14 +0000 (18:56 +0100)
committerZoltan HERPAI <wigyori@uid0.hu>
Sun, 29 Oct 2023 17:59:22 +0000 (18:59 +0100)
root@OpenWrt:/# v4l2-ctl -D
Driver Info:
        Driver name      : sun6i-csi
        Card type        : sun6i-csi
        Bus info         : platform:1cb0000.camera
        Driver version   : 6.1.55
        Capabilities     : 0x84200001
                Video Capture
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x04200001
                Video Capture
                Streaming
                Extended Pix Format
Media Driver Info:
        Driver name      : sun6i-csi
        Model            : Allwinner A31 CSI Device
        Serial           :
        Bus info         : platform:1cb0000.camera
        Media version    : 6.1.55
        Hardware revision: 0x00000000 (0)
        Driver version   : 6.1.55
Interface Info:
        ID               : 0x03000003
        Type             : V4L Video
Entity Info:
        ID               : 0x00000001 (1)
        Name             : sun6i-csi
        Function         : V4L2 I/O
        Pad 0x01000002   : 0: Sink, Must Connect
          Link 0x02000007: from remote pad 0x1000006 of entity 'ov5640 2-003c' (Camera Sensor): Data, Enabled, Immutable

-------------

root@OpenWrt:/# media-ctl /dev/video0 --print-topology
Media controller API version 6.1.55

Media device information
------------------------
driver          sun6i-csi
model           Allwinner A31 CSI Device
serial
bus info        platform:1cb0000.camera
hw revision     0x0
driver version  6.1.55

Device topology
- entity 1: sun6i-csi (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
        pad0: Sink
                <- "ov5640 2-003c":0 [ENABLED,IMMUTABLE]

- entity 5: ov5640 2-003c (1 pad, 1 link)
            type V4L2 subdev subtype Sensor flags 0
            device node name /dev/v4l-subdev0
        pad0: Source
                [fmt:UYVY8_2X8/640x480@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range
                 crop.bounds:(0,0)/2624x1964
                 crop:(0,4)/2624x1944]
                -> "sun6i-csi":0 [ENABLED,IMMUTABLE]

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
target/linux/sunxi/patches-6.1/901-dts-sunxi-bpi-p2zero-include-OV5640-dtsi.patch [new file with mode: 0644]

diff --git a/target/linux/sunxi/patches-6.1/901-dts-sunxi-bpi-p2zero-include-OV5640-dtsi.patch b/target/linux/sunxi/patches-6.1/901-dts-sunxi-bpi-p2zero-include-OV5640-dtsi.patch
new file mode 100644 (file)
index 0000000..e9ea515
--- /dev/null
@@ -0,0 +1,9 @@
+diff -ruN a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-p2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-p2-zero.dts
+--- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-p2-zero.dts     2023-10-03 12:10:35.914199741 +0200
++++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-p2-zero.dts     2023-10-29 18:16:11.351027778 +0100
+@@ -277,3 +277,5 @@
+        */
+       status = "okay";
+ };
++
++#include "sunxi-h2-h3-ov5640.dtsi"