Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[General] Kernel panic when add ov4689 csi camera

132

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
132
Posted at 8/12/2022 03:53:08      1#
I 'm using a OV4689 with the the motherboard (MB-JD4-
RV11091126) with this device tree, note that I use two lanes:

  1. ov4689: ov4689@36 {
  2.                 compatible = "ovti,ov4689";
  3.                 reg = <0x36>;
  4.                 clocks = <&cru CLK_MIPICSI_OUT>;
  5.                 clock-names = "xvclk";
  6.                 power-domains = <&power RV1126_PD_VI>;
  7.                 pinctrl-names = "rockchip,camera_default";
  8.                 pinctrl-0 = <&mipicsi_clk0>;
  9.                 avdd-supply = <&vcc_avdd>; // 2.8V
  10.                 //dovdd-supply = <&vcc_dovdd>; // 1.8V
  11.                 dovdd-supply = <&vcc_1v8>;
  12.                 dvdd-supply = <&vcc_dvdd>; // 1.2V
  13.                 //pwdn-gpios = <&gpio2 RK_PA7 GPIO_ACTIVE_HIGH>;
  14.                 pwdn-gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>;
  15.                 reset-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_LOW>;
  16.                 rockchip,camera-module-index = <1>;
  17.                 rockchip,camera-module-facing = "front";
  18.                 rockchip,camera-module-name = "Unknown";
  19.                 rockchip,camera-module-lens-name = "Unknown";
  20.                 //rockchip,camera-module-name = "JSD3425-C1";
  21.                 //rockchip,camera-module-lens-name = "JSD3425-C1";
  22.                 // NO_HDR:0 HDR_X2:5 HDR_X3:6
  23.                 rockchip,camera-hdr-mode = <0>;
  24.                 port {
  25.                         ucam_out0: endpoint {
  26.                                 remote-endpoint = <&mipi_in_ucam0>;
  27.                                 data-lanes = <1 2>;
  28.                         };
  29.                 };

  30.         };

  31. &csi_dphy0 {
  32.         status = "okay";

  33.         ports {
  34.                 #address-cells = <1>;
  35.                 #size-cells = <0>;
  36.                 port@0 {
  37.                         reg = <0>;
  38.                         #address-cells = <1>;
  39.                         #size-cells = <0>;

  40.                         mipi_in_ucam0: endpoint@1 {
  41.                                 reg = <1>;
  42.                                 remote-endpoint = <&ucam_out0>;
  43.                                 data-lanes = <1 2>;
  44.                         };
  45.                 };
  46.                 port@1 {
  47.                         reg = <1>;
  48.                         #address-cells = <1>;
  49.                         #size-cells = <0>;

  50.                         csidphy0_out: endpoint@0 {
  51.                                 reg = <0>;
  52.                                 remote-endpoint = <&isp_in>;
  53.                         };

  54.                 };
  55.         };
  56. };

  57. &rkisp {
  58.         status = "okay";
  59. };

  60. &rkisp_vir0 {
  61.         status = "okay";

  62.         ports {
  63.                 port@0 {
  64.                         reg = <0>;
  65.                         #address-cells = <1>;
  66.                         #size-cells = <0>;

  67.                         isp_in: endpoint@0 {
  68.                                 reg = <0>;
  69.                                 remote-endpoint = <&csidphy0_out>;
  70.                         };
  71.                 };
  72.                 port@1 {
  73.                         reg = <1>;
  74.                         #address-cells = <1>;
  75.                         #size-cells = <0>;
  76.                         isp0_out: endpoint@1 {
  77.                                 reg = <1>;
  78.                                 // ispp port name, isp output to ispp
  79.                                 remote-endpoint = <&ispp0_in>;
  80.                         };
  81. }                ;
  82.         };
  83. };

  84. &rkispp_vir0 {
  85.         status = "okay";
  86.         port {
  87.                 #address-cells = <1>;
  88.                 #size-cells = <0>;
  89.                 ispp0_in: endpoint@0 {
  90.                         reg = <0>;
  91.                         // isp port name, ispp input
  92.                         remote-endpoint = <&isp0_out>;
  93.                 };
  94.         };
  95.         
  96. };

  97. &rkispp_mmu {
  98.         status = "okay";
  99. };
Copy the code
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list