diff --git a/patch/kernel/rk35xx-vendor-6.1/0000.patching_config.yaml b/patch/kernel/rk35xx-vendor-6.1/0000.patching_config.yaml index c77f324d61de..5515e6dc3147 100644 --- a/patch/kernel/rk35xx-vendor-6.1/0000.patching_config.yaml +++ b/patch/kernel/rk35xx-vendor-6.1/0000.patching_config.yaml @@ -12,6 +12,12 @@ config: dts-directories: - { source: "dt", target: "arch/arm64/boot/dts/rockchip" } + # every file in these directories will be copied as-is to the build tree; later ones overwrite earlier ones + # This is meant as a way to have overlays, bare, in a directory, without having to null-patch them in. + # @TODO need a solution to auto-Makefile the overlays as well + overlay-directories: + - { source: "overlay", target: "arch/arm64/boot/dts/rockchip/overlay" } + # the Makefile in each of these directories will be magically patched to include the dts files copied # or patched-in; overlay subdir will be included "-y" if it exists. # No more Makefile patching needed, yay! diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay-dtbo.patch b/patch/kernel/rk35xx-vendor-6.1/overlay-dtbo.patch new file mode 100644 index 000000000000..faaa1e67856f --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay-dtbo.patch @@ -0,0 +1,32 @@ +diff --git a/arch/arm64/boot/dts/rockchip/overlay/Makefile b/arch/arm64/boot/dts/rockchip/overlay/Makefile +index f3fc426ec76f..1b4251fd76bb 100644 +--- a/arch/arm64/boot/dts/rockchip/overlay/Makefile ++++ b/arch/arm64/boot/dts/rockchip/overlay/Makefile +@@ -1,3 +1,27 @@ ++dtbo-$(CONFIG_ARCH_ROCKCHIP) += \ ++ adakta-ad-cam0-imx219.dtbo \ ++ adakta-ad-cam1-imx219.dtbo \ ++ adakta-ad-cam2-imx219.dtbo \ ++ adakta-ad-cam3-imx219.dtbo \ ++ adakta-ad-cam4-imx219.dtbo \ ++ adakta-ad-cam5-imx219.dtbo \ ++ adakta-ad-cam0-ov5640.dtbo \ ++ adakta-ad-cam1-ov5640.dtbo \ ++ adakta-ad-cam2-ov5640.dtbo \ ++ adakta-ad-cam3-ov5640.dtbo \ ++ adakta-ad-cam4-ov5640.dtbo \ ++ adakta-ad-cam5-ov5640.dtbo \ ++ adakta-ad-cam0-ov5647.dtbo \ ++ adakta-ad-cam1-ov5647.dtbo \ ++ adakta-ad-cam2-ov5647.dtbo \ ++ adakta-ad-cam3-ov5647.dtbo \ ++ adakta-ad-cam4-ov5647.dtbo \ ++ adakta-ad-cam5-ov5647.dtbo \ ++ adakta-smarc-cam0-imx219.dtbo \ ++ adakta-smarc-cam1-imx219.dtbo \ ++ adakta-smarc-cam0-ov5647.dtbo \ ++ adakta-smarc-cam1-ov5647.dtbo ++ + # SPDX-License-Identifier: GPL-2.0 + dtbo-$(CONFIG_ARCH_ROCKCHIP) += \ + armsom-cm5-rpi-cm4-io-camera0.dtbo \ diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam0-imx219.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam0-imx219.dts new file mode 100644 index 000000000000..0e626f7f4d34 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam0-imx219.dts @@ -0,0 +1,147 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable Raspberry Pi Camera V2 0"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable Raspberry Pi Camera V2 0"; + }; + + fragment@0 { + target = <&i2c3>; + + __overlay__ { + status = "okay"; + + cam0_imx219: cam0_imx219@10 { + status = "okay"; + + compatible = "sony,imx219"; + reg = <0x10>; + + power-domains = <&power RK3588_PD_VI>; + rockchip,grf = <&sys_grf>; + + pinctrl-names = "default"; + pinctrl-0 = <&mipim0_camera1_clk &aw9523_cam0_reset_pins>; + + reset-gpios = <&aw9523 0 GPIO_ACTIVE_HIGH>; + + clocks = <&cru CLK_MIPI_CAMARAOUT_M1>; + clock-names = "xvclk"; + + VANA-supply = <&camera_vdda_2v8>; /* 2.8v */ + VDIG-supply = <&camera_vdddo_1v8>; /* 1.8v */ + VDDL-supply = <&camera_vddd_1v2>; /* 1.2v */ + + rockchip,camera-module-index = <0>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "rpi-camera-v2"; + rockchip,camera-module-lens-name = "default"; + + port { + cam0_imx219_out: endpoint { + remote-endpoint = <&mipi_in_dphy4>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy4>; + + __overlay__ { + remote-endpoint = <&cam0_imx219_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy1_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy4>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi4_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds4>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkcif_mipi_lvds4_sditf>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@9 { + target = <&rkisp0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@10 { + target = <&isp0_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@11 { + target = <&rkisp0_vir2>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam0-ov5640.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam0-ov5640.dts new file mode 100644 index 000000000000..c441356499d0 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam0-ov5640.dts @@ -0,0 +1,116 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable OV5640 MIPI-CSI Camera 0"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable OV5640 MIPI-CSI Camera 0"; + }; + + fragment@0 { + target = <&i2c3>; + + __overlay__ { + status = "okay"; + + cam0_ov5640: cam0_ov5640@3c { + status = "okay"; + + compatible = "ovti,ov5640"; + reg = <0x3c>; + + power-domains = <&power RK3588_PD_VI>; + rockchip,grf = <&sys_grf>; + + pinctrl-names = "default"; + pinctrl-0 = <&mipim0_camera1_clk &aw9523_cam0_powerdown_pins &aw9523_cam0_reset_pins>; + + reset-gpios = <&aw9523 0 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&aw9523 1 GPIO_ACTIVE_LOW>; + + clocks = <&cru CLK_MIPI_CAMARAOUT_M1>; + clock-names = "xclk"; + + AVDD-supply = <&camera_vdda_2v8>; + DOVDD-supply = <&camera_vdddo_1v8>; + DVDD-supply = <&camera_vddd_1v5>; + + rockchip,camera-module-index = <0>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-KD6-OV5640"; + rockchip,camera-module-lens-name = "default"; + + port { + cam0_ov5640_out: endpoint { + remote-endpoint = <&mipi_in_dphy4>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy4>; + + __overlay__ { + remote-endpoint = <&cam0_ov5640_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy1_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy4>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi4_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds4>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam0-ov5647.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam0-ov5647.dts new file mode 100644 index 000000000000..c44a443e24f1 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam0-ov5647.dts @@ -0,0 +1,143 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable OV5647 MIPI-CSI Camera 0"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable OV5647 MIPI-CSI Camera 0"; + }; + + fragment@0 { + target = <&i2c3>; + + __overlay__ { + status = "okay"; + + cam0_ov5647: cam0_ov5647@36 { + status = "okay"; + + compatible = "ovti,ov5647"; + reg = <0x36>; + + power-domains = <&power RK3588_PD_VI>; + rockchip,grf = <&sys_grf>; + + pinctrl-names = "default"; + pinctrl-0 = <&mipim0_camera1_clk &aw9523_cam0_powerdown_pins>; + + pwdn-gpios = <&aw9523 1 GPIO_ACTIVE_LOW>; + + clocks = <&cru CLK_MIPI_CAMARAOUT_M1>; + clock-names = "xvclk"; + + rockchip,camera-module-index = <0>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-OV5647"; + rockchip,camera-module-lens-name = "default"; + + port { + cam0_ov5647_out: endpoint { + remote-endpoint = <&mipi_in_dphy4>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy4>; + + __overlay__ { + remote-endpoint = <&cam0_ov5647_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy1_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy4>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi4_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds4>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkcif_mipi_lvds4_sditf>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@9 { + target = <&rkisp0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@10 { + target = <&isp0_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@11 { + target = <&rkisp0_vir2>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam1-imx219.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam1-imx219.dts new file mode 100644 index 000000000000..9bea59cf0535 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam1-imx219.dts @@ -0,0 +1,147 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable Raspberry Pi Camera V2 1"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable Raspberry Pi Camera V2 1"; + }; + + fragment@0 { + target = <&i2c4>; + + __overlay__ { + status = "okay"; + + cam1_imx219: cam1_imx219@10 { + status = "okay"; + + compatible = "sony,imx219"; + reg = <0x10>; + + power-domains = <&power RK3588_PD_VI>; + rockchip,grf = <&sys_grf>; + + pinctrl-names = "default"; + pinctrl-0 = <&mipim0_camera2_clk &aw9523_cam1_reset_pins>; + + reset-gpios = <&aw9523 2 GPIO_ACTIVE_HIGH>; + + clocks = <&cru CLK_MIPI_CAMARAOUT_M2>; + clock-names = "xvclk"; + + VANA-supply = <&camera_vdda_2v8>; /* 2.8v */ + VDIG-supply = <&camera_vdddo_1v8>; /* 1.8v */ + VDDL-supply = <&camera_vddd_1v2>; /* 1.2v */ + + rockchip,camera-module-index = <1>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "rpi-camera-v2"; + rockchip,camera-module-lens-name = "default"; + + port { + cam1_imx219_out: endpoint { + remote-endpoint = <&mipi_in_dphy5>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy5>; + + __overlay__ { + remote-endpoint = <&cam1_imx219_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy1_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy5>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi5_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds5>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkcif_mipi_lvds5_sditf>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@9 { + target = <&rkisp1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@10 { + target = <&isp1_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@11 { + target = <&rkisp1_vir2>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam1-ov5640.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam1-ov5640.dts new file mode 100644 index 000000000000..08e31b2aa801 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam1-ov5640.dts @@ -0,0 +1,116 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable OV5640 MIPI-CSI Camera 1"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable OV5640 MIPI-CSI Camera 1"; + }; + + fragment@0 { + target = <&i2c4>; + + __overlay__ { + status = "okay"; + + cam1_ov5640: cam1_ov5640@3c { + status = "okay"; + + compatible = "ovti,ov5640"; + reg = <0x3c>; + + power-domains = <&power RK3588_PD_VI>; + rockchip,grf = <&sys_grf>; + + pinctrl-names = "default"; + pinctrl-0 = <&mipim0_camera2_clk &aw9523_cam1_powerdown_pins &aw9523_cam1_reset_pins>; + + reset-gpios = <&aw9523 2 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&aw9523 3 GPIO_ACTIVE_LOW>; + + clocks = <&cru CLK_MIPI_CAMARAOUT_M2>; + clock-names = "xclk"; + + AVDD-supply = <&camera_vdda_2v8>; + DOVDD-supply = <&camera_vdddo_1v8>; + DVDD-supply = <&camera_vddd_1v5>; + + rockchip,camera-module-index = <1>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-KD6-OV5640"; + rockchip,camera-module-lens-name = "default"; + + port { + cam1_ov5640_out: endpoint { + remote-endpoint = <&mipi_in_dphy5>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy5>; + + __overlay__ { + remote-endpoint = <&cam1_ov5640_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy1_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy5>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi5_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds5>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam1-ov5647.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam1-ov5647.dts new file mode 100644 index 000000000000..f15c525562c9 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam1-ov5647.dts @@ -0,0 +1,143 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable OV5647 MIPI-CSI Camera 1"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable OV5647 MIPI-CSI Camera 1"; + }; + + fragment@0 { + target = <&i2c4>; + + __overlay__ { + status = "okay"; + + cam1_ov5647: cam1_ov5647@36 { + status = "okay"; + + compatible = "ovti,ov5647"; + reg = <0x36>; + + power-domains = <&power RK3588_PD_VI>; + rockchip,grf = <&sys_grf>; + + pinctrl-names = "default"; + pinctrl-0 = <&mipim0_camera2_clk &aw9523_cam1_powerdown_pins>; + + pwdn-gpios = <&aw9523 3 GPIO_ACTIVE_LOW>; + + clocks = <&cru CLK_MIPI_CAMARAOUT_M2>; + clock-names = "xvclk"; + + rockchip,camera-module-index = <1>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-OV5647"; + rockchip,camera-module-lens-name = "default"; + + port { + cam1_ov5647_out: endpoint { + remote-endpoint = <&mipi_in_dphy5>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy5>; + + __overlay__ { + remote-endpoint = <&cam1_ov5647_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy1_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy5>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi5_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds5>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkcif_mipi_lvds5_sditf>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@9 { + target = <&rkisp1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@10 { + target = <&isp1_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@11 { + target = <&rkisp1_vir2>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam2-imx219.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam2-imx219.dts new file mode 100644 index 000000000000..138a273bd7a5 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam2-imx219.dts @@ -0,0 +1,147 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable Raspberry Pi Camera V2 2"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable Raspberry Pi Camera V2 2"; + }; + + fragment@0 { + target = <&i2c5>; + + __overlay__ { + status = "okay"; + + cam2_imx219: cam2_imx219@10 { + status = "okay"; + + compatible = "sony,imx219"; + reg = <0x10>; + + power-domains = <&power RK3588_PD_VI>; + rockchip,grf = <&sys_grf>; + + pinctrl-names = "default"; + pinctrl-0 = <&mipim0_camera3_clk &aw9523_cam2_reset_pins>; + + reset-gpios = <&aw9523 4 GPIO_ACTIVE_HIGH>; + + clocks = <&cru CLK_MIPI_CAMARAOUT_M3>; + clock-names = "xvclk"; + + VANA-supply = <&camera_vdda_2v8>; /* 2.8v */ + VDIG-supply = <&camera_vdddo_1v8>; /* 1.8v */ + VDDL-supply = <&camera_vddd_1v2>; /* 1.2v */ + + rockchip,camera-module-index = <2>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "rpi-camera-v2"; + rockchip,camera-module-lens-name = "default"; + + port { + cam2_imx219_out: endpoint { + remote-endpoint = <&mipi_in_dphy1>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy1>; + + __overlay__ { + remote-endpoint = <&cam2_imx219_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy0_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi2_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkcif_mipi_lvds2_sditf>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@9 { + target = <&rkisp0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@10 { + target = <&isp0_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@11 { + target = <&rkisp0_vir1>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam2-ov5640.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam2-ov5640.dts new file mode 100644 index 000000000000..ce084f74ae39 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam2-ov5640.dts @@ -0,0 +1,116 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable OV5640 MIPI-CSI Camera 2"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable OV5640 MIPI-CSI Camera 2"; + }; + + fragment@0 { + target = <&i2c5>; + + __overlay__ { + status = "okay"; + + cam2_ov5640: cam2_ov5640@3c { + status = "okay"; + + compatible = "ovti,ov5640"; + reg = <0x3c>; + + power-domains = <&power RK3588_PD_VI>; + rockchip,grf = <&sys_grf>; + + pinctrl-names = "default"; + pinctrl-0 = <&mipim0_camera3_clk &aw9523_cam2_powerdown_pins &aw9523_cam2_reset_pins>; + + reset-gpios = <&aw9523 4 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&aw9523 5 GPIO_ACTIVE_LOW>; + + clocks = <&cru CLK_MIPI_CAMARAOUT_M3>; + clock-names = "xclk"; + + AVDD-supply = <&camera_vdda_2v8>; + DOVDD-supply = <&camera_vdddo_1v8>; + DVDD-supply = <&camera_vddd_1v5>; + + rockchip,camera-module-index = <2>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-KD6-OV5640"; + rockchip,camera-module-lens-name = "default"; + + port { + cam2_ov5640_out: endpoint { + remote-endpoint = <&mipi_in_dphy1>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy1>; + + __overlay__ { + remote-endpoint = <&cam2_ov5640_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy0_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi2_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds2>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam2-ov5647.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam2-ov5647.dts new file mode 100644 index 000000000000..efede7624569 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam2-ov5647.dts @@ -0,0 +1,143 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable OV5647 MIPI-CSI Camera 2"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable OV5647 MIPI-CSI Camera 2"; + }; + + fragment@0 { + target = <&i2c5>; + + __overlay__ { + status = "okay"; + + cam2_ov5647: cam2_ov5647@36 { + status = "okay"; + + compatible = "ovti,ov5647"; + reg = <0x36>; + + power-domains = <&power RK3588_PD_VI>; + rockchip,grf = <&sys_grf>; + + pinctrl-names = "default"; + pinctrl-0 = <&mipim0_camera3_clk &aw9523_cam2_powerdown_pins>; + + pwdn-gpios = <&aw9523 5 GPIO_ACTIVE_LOW>; + + clocks = <&cru CLK_MIPI_CAMARAOUT_M3>; + clock-names = "xvclk"; + + rockchip,camera-module-index = <2>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-OV5647"; + rockchip,camera-module-lens-name = "default"; + + port { + cam2_ov5647_out: endpoint { + remote-endpoint = <&mipi_in_dphy1>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy1>; + + __overlay__ { + remote-endpoint = <&cam2_ov5647_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy0_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi2_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkcif_mipi_lvds2_sditf>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@9 { + target = <&rkisp0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@10 { + target = <&isp0_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@11 { + target = <&rkisp0_vir1>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam3-imx219.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam3-imx219.dts new file mode 100644 index 000000000000..dbc4c0901c62 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam3-imx219.dts @@ -0,0 +1,147 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable Raspberry Pi Camera V2 3"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable Raspberry Pi Camera V2 3"; + }; + + fragment@0 { + target = <&i2c7>; + + __overlay__ { + status = "okay"; + + cam3_imx219: cam3_imx219@10 { + status = "okay"; + + compatible = "sony,imx219"; + reg = <0x10>; + + power-domains = <&power RK3588_PD_VI>; + rockchip,grf = <&sys_grf>; + + pinctrl-names = "default"; + pinctrl-0 = <&mipim0_camera4_clk &aw9523_cam3_reset_pins>; + + reset-gpios = <&aw9523 7 GPIO_ACTIVE_HIGH>; + + clocks = <&cru CLK_MIPI_CAMARAOUT_M4>; + clock-names = "xvclk"; + + VANA-supply = <&camera_vdda_2v8>; /* 2.8v */ + VDIG-supply = <&camera_vdddo_1v8>; /* 1.8v */ + VDDL-supply = <&camera_vddd_1v2>; /* 1.2v */ + + rockchip,camera-module-index = <3>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "rpi-camera-v2"; + rockchip,camera-module-lens-name = "default"; + + port { + cam3_imx219_out: endpoint { + remote-endpoint = <&mipi_in_dphy2>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy2>; + + __overlay__ { + remote-endpoint = <&cam3_imx219_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy0_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi3_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds3>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkcif_mipi_lvds3_sditf>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@9 { + target = <&rkisp1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@10 { + target = <&isp1_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@11 { + target = <&rkisp1_vir1>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam3-ov5640.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam3-ov5640.dts new file mode 100644 index 000000000000..89319ba6125a --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam3-ov5640.dts @@ -0,0 +1,116 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable OV5640 MIPI-CSI Camera 3"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable OV5640 MIPI-CSI Camera 3"; + }; + + fragment@0 { + target = <&i2c7>; + + __overlay__ { + status = "okay"; + + cam3_ov5640: cam3_ov5640@3c { + status = "okay"; + + compatible = "ovti,ov5640"; + reg = <0x3c>; + + power-domains = <&power RK3588_PD_VI>; + rockchip,grf = <&sys_grf>; + + pinctrl-names = "default"; + pinctrl-0 = <&mipim0_camera4_clk &aw9523_cam3_powerdown_pins &aw9523_cam3_reset_pins>; + + reset-gpios = <&aw9523 7 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&aw9523 6 GPIO_ACTIVE_LOW>; + + clocks = <&cru CLK_MIPI_CAMARAOUT_M4>; + clock-names = "xclk"; + + AVDD-supply = <&camera_vdda_2v8>; + DOVDD-supply = <&camera_vdddo_1v8>; + DVDD-supply = <&camera_vddd_1v5>; + + rockchip,camera-module-index = <3>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-KD6-OV5640"; + rockchip,camera-module-lens-name = "default"; + + port { + cam3_ov5640_out: endpoint { + remote-endpoint = <&mipi_in_dphy2>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy2>; + + __overlay__ { + remote-endpoint = <&cam3_ov5640_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy0_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi3_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds3>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam3-ov5647.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam3-ov5647.dts new file mode 100644 index 000000000000..c84493d224e9 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam3-ov5647.dts @@ -0,0 +1,143 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable OV5647 MIPI-CSI Camera 3"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable OV5647 MIPI-CSI Camera 3"; + }; + + fragment@0 { + target = <&i2c7>; + + __overlay__ { + status = "okay"; + + cam3_ov5647: cam3_ov5647@36 { + status = "okay"; + + compatible = "ovti,ov5647"; + reg = <0x36>; + + power-domains = <&power RK3588_PD_VI>; + rockchip,grf = <&sys_grf>; + + pinctrl-names = "default"; + pinctrl-0 = <&mipim0_camera4_clk &aw9523_cam3_powerdown_pins>; + + pwdn-gpios = <&aw9523 6 GPIO_ACTIVE_LOW>; + + clocks = <&cru CLK_MIPI_CAMARAOUT_M4>; + clock-names = "xvclk"; + + rockchip,camera-module-index = <3>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-OV5647"; + rockchip,camera-module-lens-name = "default"; + + port { + cam3_ov5647_out: endpoint { + remote-endpoint = <&mipi_in_dphy2>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy2>; + + __overlay__ { + remote-endpoint = <&cam3_ov5647_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy0_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi3_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds3>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkcif_mipi_lvds3_sditf>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@9 { + target = <&rkisp1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@10 { + target = <&isp1_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@11 { + target = <&rkisp1_vir1>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam4-imx219.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam4-imx219.dts new file mode 100644 index 000000000000..c7eb6ceb0581 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam4-imx219.dts @@ -0,0 +1,144 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable Raspberry Pi Camera V2 4"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable Raspberry Pi Camera V2 4"; + }; + + fragment@0 { + target = <&i2c3>; + + __overlay__ { + status = "okay"; + + cam4_imx219: cam4_imx219@3c { + status = "okay"; + + compatible = "sony,imx219"; + reg = <0x10>; + + pinctrl-names = "default"; + pinctrl-0 = <&aw9523_cam4_reset_pins>; + + reset-gpios = <&aw9523 9 GPIO_ACTIVE_HIGH>; + + clocks = <&ext_cam_clk>; + clock-names = "xvclk"; + + VANA-supply = <&camera_vdda_2v8>; /* 2.8v */ + VDIG-supply = <&camera_vdddo_1v8>; /* 1.8v */ + VDDL-supply = <&camera_vddd_1v2>; /* 1.2v */ + + rockchip,camera-module-index = <4>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "rpi-camera-v2"; + rockchip,camera-module-lens-name = "default"; + + port { + cam4_imx219_out: endpoint { + remote-endpoint = <&mipi_in_dcphy0>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dcphy0>; + + __overlay__ { + remote-endpoint = <&cam4_imx219_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&mipi_dcphy0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dcphy0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi0_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkcif_mipi_lvds_sditf>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@9 { + target = <&rkisp0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@10 { + target = <&isp0_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@11 { + target = <&rkisp0_vir0>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam4-ov5640.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam4-ov5640.dts new file mode 100644 index 000000000000..81b2da5f2fa5 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam4-ov5640.dts @@ -0,0 +1,113 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable OV5640 MIPI-CSI Camera 4"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable OV5640 MIPI-CSI Camera 4"; + }; + + fragment@0 { + target = <&i2c3>; + + __overlay__ { + status = "okay"; + + cam4_ov5640: cam4_ov5640@3c { + status = "okay"; + + compatible = "ovti,ov5640"; + reg = <0x3c>; + + pinctrl-names = "default"; + pinctrl-0 = <&aw9523_cam4_powerdown_pins &aw9523_cam4_reset_pins>; + + reset-gpios = <&aw9523 9 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&aw9523 8 GPIO_ACTIVE_LOW>; + + clocks = <&ext_cam_clk>; + clock-names = "xclk"; + + AVDD-supply = <&camera_vdda_2v8>; + DOVDD-supply = <&camera_vdddo_1v8>; + DVDD-supply = <&camera_vddd_1v5>; + + rockchip,camera-module-index = <4>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-KD6-OV5640"; + rockchip,camera-module-lens-name = "default"; + + port { + cam4_ov5640_out: endpoint { + remote-endpoint = <&mipi_in_dcphy0>; + data-lanes = <1 2 3 4>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dcphy0>; + + __overlay__ { + remote-endpoint = <&cam4_ov5640_out>; + data-lanes = <1 2 3 4>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&mipi_dcphy0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dcphy0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi0_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam4-ov5647.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam4-ov5647.dts new file mode 100644 index 000000000000..a54799a55839 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam4-ov5647.dts @@ -0,0 +1,140 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable Raspberry Pi Camera V2 4"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable Raspberry Pi Camera V2 4"; + }; + + fragment@0 { + target = <&i2c3>; + + __overlay__ { + status = "okay"; + + cam4_ov5647: cam4_ov5647@36 { + status = "okay"; + + compatible = "ovti,ov5647"; + reg = <0x36>; + + pinctrl-names = "default"; + pinctrl-0 = <&aw9523_cam4_powerdown_pins>; + + pwdn-gpios = <&aw9523 8 GPIO_ACTIVE_LOW>; + + clocks = <&ext_cam_clk>; + clock-names = "xvclk"; + + rockchip,camera-module-index = <4>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-OV5647"; + rockchip,camera-module-lens-name = "default"; + + port { + cam4_ov5647_out: endpoint { + remote-endpoint = <&mipi_in_dcphy0>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dcphy0>; + + __overlay__ { + remote-endpoint = <&cam4_ov5647_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&mipi_dcphy0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dcphy0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi0_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkcif_mipi_lvds_sditf>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@9 { + target = <&rkisp0>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@10 { + target = <&isp0_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@11 { + target = <&rkisp0_vir0>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam5-imx219.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam5-imx219.dts new file mode 100644 index 000000000000..65a28919f376 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam5-imx219.dts @@ -0,0 +1,144 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable Raspberry Pi Camera V2 5"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable Raspberry Pi Camera V2 5"; + }; + + fragment@0 { + target = <&i2c4>; + + __overlay__ { + status = "okay"; + + cam5_imx219: cam5_imx219@3c { + status = "okay"; + + compatible = "sony,imx219"; + reg = <0x10>; + + pinctrl-names = "default"; + pinctrl-0 = <&aw9523_cam5_reset_pins>; + + reset-gpios = <&aw9523 11 GPIO_ACTIVE_HIGH>; + + clocks = <&ext_cam_clk>; + clock-names = "xvclk"; + + VANA-supply = <&camera_vdda_2v8>; /* 2.8v */ + VDIG-supply = <&camera_vdddo_1v8>; /* 1.8v */ + VDDL-supply = <&camera_vddd_1v2>; /* 1.2v */ + + rockchip,camera-module-index = <5>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "rpi-camera-v2"; + rockchip,camera-module-lens-name = "default"; + + port { + cam5_imx219_out: endpoint { + remote-endpoint = <&mipi_in_dcphy1>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dcphy1>; + + __overlay__ { + remote-endpoint = <&cam5_imx219_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&mipi_dcphy1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dcphy1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi1_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkcif_mipi_lvds1_sditf>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@9 { + target = <&rkisp1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@10 { + target = <&isp1_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@11 { + target = <&rkisp1_vir0>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam5-ov5640.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam5-ov5640.dts new file mode 100644 index 000000000000..4d15f6cfc2a1 --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam5-ov5640.dts @@ -0,0 +1,113 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable OV5640 MIPI-CSI Camera 5"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable OV5640 MIPI-CSI Camera 5"; + }; + + fragment@0 { + target = <&i2c4>; + + __overlay__ { + status = "okay"; + + cam5_ov5640: cam5_ov5640@3c { + status = "okay"; + + compatible = "ovti,ov5640"; + reg = <0x3c>; + + pinctrl-names = "default"; + pinctrl-0 = <&aw9523_cam5_powerdown_pins &aw9523_cam5_reset_pins>; + + reset-gpios = <&aw9523 11 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&aw9523 10 GPIO_ACTIVE_LOW>; + + clocks = <&ext_cam_clk>; + clock-names = "xclk"; + + AVDD-supply = <&camera_vdda_2v8>; + DOVDD-supply = <&camera_vdddo_1v8>; + DVDD-supply = <&camera_vddd_1v5>; + + rockchip,camera-module-index = <5>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-KD6-OV5640"; + rockchip,camera-module-lens-name = "default"; + + port { + cam5_ov5640_out: endpoint { + remote-endpoint = <&mipi_in_dcphy1>; + data-lanes = <1 2 3 4>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dcphy1>; + + __overlay__ { + remote-endpoint = <&cam5_ov5640_out>; + data-lanes = <1 2 3 4>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&mipi_dcphy1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dcphy1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi1_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds1>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam5-ov5647.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam5-ov5647.dts new file mode 100644 index 000000000000..77e0ff3bb67c --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-ad-cam5-ov5647.dts @@ -0,0 +1,140 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable Raspberry Pi Camera V2 5"; + compatible = "adakta,adakta-ad-rk3588"; + category = "camera"; + description = "Enable Raspberry Pi Camera V2 5"; + }; + + fragment@0 { + target = <&i2c4>; + + __overlay__ { + status = "okay"; + + cam5_ov5647: cam5_ov5647@36 { + status = "okay"; + + compatible = "ovti,ov5647"; + reg = <0x36>; + + pinctrl-names = "default"; + pinctrl-0 = <&aw9523_cam5_powerdown_pins>; + + pwdn-gpios = <&aw9523 10 GPIO_ACTIVE_LOW>; + + clocks = <&ext_cam_clk>; + clock-names = "xvclk"; + + rockchip,camera-module-index = <5>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-OV5647"; + rockchip,camera-module-lens-name = "default"; + + port { + cam5_ov5647_out: endpoint { + remote-endpoint = <&mipi_in_dcphy1>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dcphy1>; + + __overlay__ { + remote-endpoint = <&cam5_ov5647_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&mipi_dcphy1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dcphy1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&mipi1_csi2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkcif_mipi_lvds1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkcif_mipi_lvds1_sditf>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@9 { + target = <&rkisp1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@10 { + target = <&isp1_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@11 { + target = <&rkisp1_vir0>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-cam0-imx219.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-cam0-imx219.dts new file mode 100644 index 000000000000..3049cddd35bd --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-cam0-imx219.dts @@ -0,0 +1,117 @@ +/dts-v1/; +/plugin/; + +#include +#include + +/ { + metadata { + title = "Enable Raspberry Pi Camera V2 0"; + compatible = "adakta,adakta-smarc-rk3568"; + category = "camera"; + description = "Enable Raspberry Pi Camera V2 0"; + }; + + fragment@0 { + target = <&i2c4>; + + __overlay__ { + status = "okay"; + + cam0_imx219: cam0_imx219@10 { + status = "okay"; + + compatible = "sony,imx219"; + reg = <0x10>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam0_powerdown>; + + pwdn-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; + + clocks = <&ext_cam_clk>; + clock-names = "xvclk"; + + rockchip,camera-module-index = <0>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "rpi-camera-v2"; + rockchip,camera-module-lens-name = "default"; + + port { + cam0_imx219_out: endpoint { + status = "okay"; + remote-endpoint = <&mipi_in_dphy1>; + data-lanes = <1 2>; + clock-noncontinuous; + link-frequencies = /bits/ 64 <456000000>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy1>; + + __overlay__ { + remote-endpoint = <&cam0_imx219_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&rkisp>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkisp_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkisp_vir0>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-cam0-ov5647.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-cam0-ov5647.dts new file mode 100644 index 000000000000..cdd74dcbad9c --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-cam0-ov5647.dts @@ -0,0 +1,114 @@ +/dts-v1/; +/plugin/; + +#include +#include + +/ { + metadata { + title = "Enable Raspberry Pi Camera V1.3 0"; + compatible = "adakta,adakta-smarc-rk3568"; + category = "camera"; + description = "Enable Raspberry Pi Camera V1.3 0"; + }; + + fragment@0 { + target = <&i2c4>; + + __overlay__ { + status = "okay"; + + cam0_ov5647: cam0_ov5647@36 { + status = "okay"; + + compatible = "ovti,ov5647"; + reg = <0x36>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam0_powerdown>; + + pwdn-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>; + + clocks = <&ext_cam_clk>; + clock-names = "xvclk"; + + rockchip,camera-module-index = <0>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-OV5647"; + rockchip,camera-module-lens-name = "default"; + + port { + cam0_ov5647_out: endpoint { + remote-endpoint = <&mipi_in_dphy1>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy1>; + + __overlay__ { + remote-endpoint = <&cam0_ov5647_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy1>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&rkisp>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkisp_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkisp_vir0>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-cam1-imx219.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-cam1-imx219.dts new file mode 100644 index 000000000000..987e6c4572bd --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-cam1-imx219.dts @@ -0,0 +1,119 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable Raspberry Pi Camera V2 1"; + compatible = "adakta,adakta-smarc-rk3568"; + category = "camera"; + description = "Enable Raspberry Pi Camera V2 1"; + }; + + fragment@0 { + target = <&i2c3>; + + __overlay__ { + status = "okay"; + + cam1_imx219: cam1_imx219@10 { + status = "okay"; + + compatible = "sony,imx219"; + reg = <0x10>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam1_powerdown>; + + pwdn-gpios = <&gpio3 RK_PD3 GPIO_ACTIVE_HIGH>; + + clocks = <&ext_cam_clk>; + clock-names = "xvclk"; + + rockchip,camera-module-index = <1>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "rpi-camera-v2"; + rockchip,camera-module-lens-name = "default"; + + port { + cam1_imx219_out: endpoint { + status = "okay"; + remote-endpoint = <&mipi_in_dphy2>; + data-lanes = <1 2>; + clock-noncontinuous; + link-frequencies = /bits/ 64 <456000000>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy2>; + + __overlay__ { + remote-endpoint = <&cam1_imx219_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&rkisp>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkisp_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkisp_vir1>; + + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-cam1-ov5647.dts b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-cam1-ov5647.dts new file mode 100644 index 000000000000..d11d1992f70c --- /dev/null +++ b/patch/kernel/rk35xx-vendor-6.1/overlay/adakta-smarc-cam1-ov5647.dts @@ -0,0 +1,116 @@ +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +/ { + metadata { + title = "Enable Raspberry Pi Camera V1.3 1"; + compatible = "adakta,adakta-smarc-rk3568"; + category = "camera"; + description = "Enable Raspberry Pi Camera V1.3 1"; + }; + + fragment@0 { + target = <&i2c3>; + + __overlay__ { + status = "okay"; + + cam1_ov5647: cam1_ov5647@36 { + status = "okay"; + + compatible = "ovti,ov5647"; + reg = <0x36>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam1_powerdown>; + + pwdn-gpios = <&gpio3 RK_PD3 GPIO_ACTIVE_LOW>; + + clocks = <&ext_cam_clk>; + clock-names = "xvclk"; + + rockchip,camera-module-index = <1>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "KLT-OV5647"; + rockchip,camera-module-lens-name = "default"; + + port { + cam1_ov5647_out: endpoint { + remote-endpoint = <&mipi_in_dphy2>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; + + fragment@1 { + target = <&mipi_in_dphy2>; + + __overlay__ { + remote-endpoint = <&cam1_ov5647_out>; + data-lanes = <1 2>; + }; + }; + + fragment@2 { + target = <&rkcif>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&rkcif_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&csi2_dphy_hw>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&csi2_dphy2>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&rkisp>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&rkisp_mmu>; + + __overlay__ { + status = "okay"; + }; + }; + + fragment@8 { + target = <&rkisp_vir1>; + + __overlay__ { + status = "okay"; + }; + }; +};