diff --git a/patch/kernel/rk35xx-vendor-6.1/dt/rk3588-adakta-ad-base-camera.dtsi b/patch/kernel/rk35xx-vendor-6.1/dt/rk3588-adakta-ad-base-camera.dtsi index 849ee7f00178..772d25539cec 100644 --- a/patch/kernel/rk35xx-vendor-6.1/dt/rk3588-adakta-ad-base-camera.dtsi +++ b/patch/kernel/rk35xx-vendor-6.1/dt/rk3588-adakta-ad-base-camera.dtsi @@ -30,6 +30,13 @@ #clock-cells = <0>; }; + fake_imx219_clk: fake-imx219-clock { + compatible = "fixed-clock"; + clock-frequency = <24000000>; + clock-output-names = "CLK_CAMERA_24MHZ"; + #clock-cells = <0>; + }; + camera_vdddo_1v8: camera-vdddo-1v8 { compatible = "regulator-fixed"; regulator-name = "camera_vdddo_1v8"; 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 index 0e626f7f4d34..1c5cd48e61b8 100644 --- 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 @@ -1,8 +1,6 @@ /dts-v1/; /plugin/; -#include -#include #include #include @@ -26,15 +24,12 @@ 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>; + pinctrl-0 = <&aw9523_cam0_powerdown_pins>; - reset-gpios = <&aw9523 0 GPIO_ACTIVE_HIGH>; + reset-gpios = <&aw9523 1 GPIO_ACTIVE_HIGH>; - clocks = <&cru CLK_MIPI_CAMARAOUT_M1>; + clocks = <&fake_imx219_clk>; clock-names = "xvclk"; VANA-supply = <&camera_vdda_2v8>; /* 2.8v */ @@ -48,8 +43,11 @@ port { cam0_imx219_out: endpoint { + status = "okay"; remote-endpoint = <&mipi_in_dphy4>; data-lanes = <1 2>; + clock-noncontinuous; + link-frequencies = /bits/ 64 <456000000>; }; }; }; 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 index c441356499d0..d3493e7a526f 100644 --- 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 @@ -32,8 +32,8 @@ 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>; + reset-gpios = <&aw9523 0 GPIO_ACTIVE_LOW>; + powerdown-gpios = <&aw9523 1 GPIO_ACTIVE_HIGH>; clocks = <&cru CLK_MIPI_CAMARAOUT_M1>; clock-names = "xclk"; 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 index 9bea59cf0535..c47f8f892fac 100644 --- 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 @@ -1,8 +1,6 @@ /dts-v1/; /plugin/; -#include -#include #include #include @@ -26,15 +24,12 @@ 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>; + pinctrl-0 = <&aw9523_cam1_powerdown_pins>; - reset-gpios = <&aw9523 2 GPIO_ACTIVE_HIGH>; + reset-gpios = <&aw9523 3 GPIO_ACTIVE_HIGH>; - clocks = <&cru CLK_MIPI_CAMARAOUT_M2>; + clocks = <&fake_imx219_clk>; clock-names = "xvclk"; VANA-supply = <&camera_vdda_2v8>; /* 2.8v */ @@ -48,8 +43,11 @@ port { cam1_imx219_out: endpoint { + status = "okay"; remote-endpoint = <&mipi_in_dphy5>; data-lanes = <1 2>; + clock-noncontinuous; + link-frequencies = /bits/ 64 <456000000>; }; }; }; 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 index 08e31b2aa801..85d2456633e1 100644 --- 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 @@ -32,8 +32,8 @@ 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>; + reset-gpios = <&aw9523 2 GPIO_ACTIVE_LOW>; + powerdown-gpios = <&aw9523 3 GPIO_ACTIVE_HIGH>; clocks = <&cru CLK_MIPI_CAMARAOUT_M2>; clock-names = "xclk"; 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 index 138a273bd7a5..6b3f0df34d44 100644 --- 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 @@ -1,8 +1,6 @@ /dts-v1/; /plugin/; -#include -#include #include #include @@ -26,15 +24,12 @@ 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>; + pinctrl-0 = <&aw9523_cam2_powerdown_pins>; - reset-gpios = <&aw9523 4 GPIO_ACTIVE_HIGH>; + reset-gpios = <&aw9523 5 GPIO_ACTIVE_HIGH>; - clocks = <&cru CLK_MIPI_CAMARAOUT_M3>; + clocks = <&fake_imx219_clk>; clock-names = "xvclk"; VANA-supply = <&camera_vdda_2v8>; /* 2.8v */ @@ -48,8 +43,11 @@ port { cam2_imx219_out: endpoint { + status = "okay"; remote-endpoint = <&mipi_in_dphy1>; data-lanes = <1 2>; + clock-noncontinuous; + link-frequencies = /bits/ 64 <456000000>; }; }; }; 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 index ce084f74ae39..7f9860924af9 100644 --- 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 @@ -32,8 +32,8 @@ 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>; + reset-gpios = <&aw9523 4 GPIO_ACTIVE_LOW>; + powerdown-gpios = <&aw9523 5 GPIO_ACTIVE_HIGH>; clocks = <&cru CLK_MIPI_CAMARAOUT_M3>; clock-names = "xclk"; 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 index dbc4c0901c62..a7b04064b24c 100644 --- 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 @@ -1,8 +1,6 @@ /dts-v1/; /plugin/; -#include -#include #include #include @@ -26,15 +24,12 @@ 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>; + pinctrl-0 = <&aw9523_cam3_powerdown_pins>; reset-gpios = <&aw9523 7 GPIO_ACTIVE_HIGH>; - clocks = <&cru CLK_MIPI_CAMARAOUT_M4>; + clocks = <&fake_imx219_clk>; clock-names = "xvclk"; VANA-supply = <&camera_vdda_2v8>; /* 2.8v */ @@ -48,8 +43,11 @@ port { cam3_imx219_out: endpoint { + status = "okay"; remote-endpoint = <&mipi_in_dphy2>; data-lanes = <1 2>; + clock-noncontinuous; + link-frequencies = /bits/ 64 <456000000>; }; }; }; 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 index 89319ba6125a..0cd65cee6e2f 100644 --- 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 @@ -32,8 +32,8 @@ 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>; + reset-gpios = <&aw9523 6 GPIO_ACTIVE_LOW>; + powerdown-gpios = <&aw9523 7 GPIO_ACTIVE_HIGH>; clocks = <&cru CLK_MIPI_CAMARAOUT_M4>; clock-names = "xclk"; 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 index c84493d224e9..0e669a2a06ea 100644 --- 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 @@ -32,7 +32,7 @@ pinctrl-names = "default"; pinctrl-0 = <&mipim0_camera4_clk &aw9523_cam3_powerdown_pins>; - pwdn-gpios = <&aw9523 6 GPIO_ACTIVE_LOW>; + pwdn-gpios = <&aw9523 7 GPIO_ACTIVE_LOW>; clocks = <&cru CLK_MIPI_CAMARAOUT_M4>; clock-names = "xvclk"; 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 index c7eb6ceb0581..5305ea7e7f6c 100644 --- 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 @@ -1,8 +1,6 @@ /dts-v1/; /plugin/; -#include -#include #include #include @@ -20,18 +18,18 @@ __overlay__ { status = "okay"; - cam4_imx219: cam4_imx219@3c { + cam4_imx219: cam4_imx219@10 { status = "okay"; compatible = "sony,imx219"; reg = <0x10>; pinctrl-names = "default"; - pinctrl-0 = <&aw9523_cam4_reset_pins>; + pinctrl-0 = <&aw9523_cam4_powerdown_pins>; reset-gpios = <&aw9523 9 GPIO_ACTIVE_HIGH>; - clocks = <&ext_cam_clk>; + clocks = <&fake_imx219_clk>; clock-names = "xvclk"; VANA-supply = <&camera_vdda_2v8>; /* 2.8v */ @@ -45,8 +43,11 @@ port { cam4_imx219_out: endpoint { + status = "okay"; remote-endpoint = <&mipi_in_dcphy0>; data-lanes = <1 2>; + clock-noncontinuous; + link-frequencies = /bits/ 64 <456000000>; }; }; }; 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 index 81b2da5f2fa5..5a8dad7be468 100644 --- 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 @@ -29,8 +29,8 @@ 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>; + reset-gpios = <&aw9523 8 GPIO_ACTIVE_LOW>; + powerdown-gpios = <&aw9523 9 GPIO_ACTIVE_HIGH>; clocks = <&ext_cam_clk>; clock-names = "xclk"; 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 index a54799a55839..aaffe0de652c 100644 --- 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 @@ -29,7 +29,7 @@ pinctrl-names = "default"; pinctrl-0 = <&aw9523_cam4_powerdown_pins>; - pwdn-gpios = <&aw9523 8 GPIO_ACTIVE_LOW>; + pwdn-gpios = <&aw9523 9 GPIO_ACTIVE_LOW>; clocks = <&ext_cam_clk>; clock-names = "xvclk"; 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 index 65a28919f376..38e2a95c845c 100644 --- 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 @@ -20,18 +20,18 @@ __overlay__ { status = "okay"; - cam5_imx219: cam5_imx219@3c { + cam5_imx219: cam5_imx219@10 { status = "okay"; compatible = "sony,imx219"; reg = <0x10>; pinctrl-names = "default"; - pinctrl-0 = <&aw9523_cam5_reset_pins>; + pinctrl-0 = <&aw9523_cam5_powerdown_pins>; reset-gpios = <&aw9523 11 GPIO_ACTIVE_HIGH>; - clocks = <&ext_cam_clk>; + clocks = <&fake_imx219_clk>; clock-names = "xvclk"; VANA-supply = <&camera_vdda_2v8>; /* 2.8v */ @@ -45,8 +45,11 @@ port { cam5_imx219_out: endpoint { + status = "okay"; remote-endpoint = <&mipi_in_dcphy1>; data-lanes = <1 2>; + clock-noncontinuous; + link-frequencies = /bits/ 64 <456000000>; }; }; }; 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 index 4d15f6cfc2a1..78309597910b 100644 --- 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 @@ -29,8 +29,8 @@ 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>; + reset-gpios = <&aw9523 10 GPIO_ACTIVE_LOW>; + powerdown-gpios = <&aw9523 11 GPIO_ACTIVE_HIGH>; clocks = <&ext_cam_clk>; clock-names = "xclk"; 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 index 77e0ff3bb67c..45e043eab396 100644 --- 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 @@ -29,7 +29,7 @@ pinctrl-names = "default"; pinctrl-0 = <&aw9523_cam5_powerdown_pins>; - pwdn-gpios = <&aw9523 10 GPIO_ACTIVE_LOW>; + pwdn-gpios = <&aw9523 11 GPIO_ACTIVE_LOW>; clocks = <&ext_cam_clk>; clock-names = "xvclk";