Skip to content

Commit 1c40af5

Browse files
Caesar-githubrkhuangtao
authored andcommitted
arm64: dts: rockchip: rk3326-evb-linux-lp3-v10: add the ov5695 for rk3326 mipi
This patch adds the ov5695 releated configure with rk3326 mipi/isp. Change-Id: I62d6d8854d7e66fac521b3fea0f4dd35dc2799c4 Signed-off-by: Caesar Wang <wxt@rock-chips.com>
1 parent a657b85 commit 1c40af5

1 file changed

Lines changed: 76 additions & 5 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3326-evb-linux-lp3-v10.dts

Lines changed: 76 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,35 @@
687687

688688
&i2c2 {
689689
status = "okay";
690+
clock-frequency = <400000>;
691+
692+
/* These are relatively safe rise/fall times; TODO: measure */
693+
i2c-scl-falling-time-ns = <50>;
694+
i2c-scl-rising-time-ns = <300>;
695+
696+
ov5695: ov5695@36 {
697+
compatible = "ovti,ov5695";
698+
reg = <0x36>;
699+
pinctrl-names = "default";
700+
pinctrl-0 = <&cif_clkout_m0>;
701+
702+
clocks = <&cru SCLK_CIF_OUT>;
703+
clock-names = "xvclk";
704+
705+
avdd-supply = <&vcc2v8_dvp>;
706+
dovdd-supply = <&vcc1v8_dvp>;
707+
dvdd-supply = <&vcc1v8_dvp>;
708+
709+
/*reset-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;*/
710+
pwdn-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
711+
712+
port {
713+
ucam_out: endpoint {
714+
remote-endpoint = <&mipi_in_ucam>;
715+
data-lanes = <1 2>;
716+
};
717+
};
718+
};
690719
};
691720

692721
&i2s1_2ch {
@@ -700,7 +729,7 @@
700729
vccio1-supply = <&vcc1v8_soc>;
701730
vccio2-supply = <&vccio_sd>;
702731
vccio3-supply = <&vcc1v8_dvp>;
703-
vccio4-supply = <&vcc_3v0>;
732+
vccio4-supply = <&vcc1v8_soc>;
704733
vccio5-supply = <&vcc_3v0>;
705734
};
706735

@@ -730,10 +759,56 @@
730759
status = "okay";
731760
};
732761

762+
&mipi_dphy_rx0 {
763+
status = "okay";
764+
765+
ports {
766+
#address-cells = <1>;
767+
#size-cells = <0>;
768+
769+
port@0 {
770+
reg = <0>;
771+
#address-cells = <1>;
772+
#size-cells = <0>;
773+
774+
mipi_in_ucam: endpoint@1 {
775+
reg = <1>;
776+
remote-endpoint = <&ucam_out>;
777+
data-lanes = <1 2>;
778+
};
779+
};
780+
781+
port@1 {
782+
reg = <1>;
783+
#address-cells = <1>;
784+
#size-cells = <0>;
785+
786+
dphy_rx0_out: endpoint@0 {
787+
reg = <0>;
788+
remote-endpoint = <&isp0_mipi_in>;
789+
};
790+
};
791+
};
792+
};
793+
733794
&nandc0 {
734795
status = "okay";
735796
};
736797

798+
&rkisp1 {
799+
status = "okay";
800+
801+
port {
802+
#address-cells = <1>;
803+
#size-cells = <0>;
804+
805+
isp0_mipi_in: endpoint@0 {
806+
reg = <0>;
807+
remote-endpoint = <&dphy_rx0_out>;
808+
};
809+
};
810+
};
811+
737812
&pinctrl {
738813
headphone {
739814
hp_det: hp-det {
@@ -781,10 +856,6 @@
781856
status = "okay";
782857
};
783858

784-
&rk_isp {
785-
status = "okay";
786-
};
787-
788859
&rk_rga {
789860
status = "okay";
790861
};

0 commit comments

Comments
 (0)