opi5plus: Support gc5035 camera
This commit is contained in:
parent
49b8ddea2b
commit
94bb56ba77
|
|
@ -50,6 +50,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
|
|||
rk3588-ov13855-c1.dtbo \
|
||||
rk3588-ov13855-c2.dtbo \
|
||||
rk3588-ov13855-c3.dtbo \
|
||||
rk3588-opi5plus-gc5035.dtbo \
|
||||
rk3588-opi5plus-ov13850.dtbo \
|
||||
rk3588-opi5plus-ov13855.dtbo \
|
||||
rk3588-dmc.dtbo \
|
||||
|
|
|
|||
|
|
@ -0,0 +1,96 @@
|
|||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&csi2_dphy0_hw>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&csi2_dphy0>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&mipi2_csi2>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@3 {
|
||||
target = <&rkcif_mipi_lvds2>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@4 {
|
||||
target = <&rkcif_mipi_lvds2_sditf>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@5 {
|
||||
target = <&rkisp0_vir1>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@6 {
|
||||
target = <&i2c3>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
gc5035@37 {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@7 {
|
||||
target = <&rkcif>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@8 {
|
||||
target = <&rkcif_mmu>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@9 {
|
||||
target = <&rkisp0>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@10 {
|
||||
target = <&isp0_mmu>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -29,6 +29,12 @@
|
|||
remote-endpoint = <&ov13855_out2>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
mipi_in_ucam2: endpoint@2 {
|
||||
reg = <2>;
|
||||
remote-endpoint = <&gc5035_out>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
|
|
@ -111,6 +117,31 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
gc5035: gc5035@37 {
|
||||
compatible = "galaxycore,gc5035";
|
||||
status = "okay";
|
||||
reg = <0x37>;
|
||||
clocks = <&cru CLK_MIPI_CAMARAOUT_M3>;
|
||||
clock-names = "xvclk";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&mipim1_camera3_clk>;
|
||||
|
||||
//reset pin control by hardware,used this pin switch to mipi input
|
||||
//0->FRONT camera, 1->REAR camera
|
||||
reset-gpios = <&gpio1 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
pwdn-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "front";
|
||||
rockchip,camera-module-name = "XHG-RKX11F-V5";
|
||||
rockchip,camera-module-lens-name = "HR232H65";
|
||||
port {
|
||||
gc5035_out: endpoint {
|
||||
remote-endpoint = <&mipi_in_ucam2>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mipi2_csi2 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue