Skip to content
Snippets Groups Projects
Commit bcf7f995 authored by Helen Koike's avatar Helen Koike
Browse files

tmp: ov5647 / rockpi 4

parent ba8478a9
No related branches found
No related tags found
No related merge requests found
......@@ -414,9 +414,65 @@
};
&i2c4 {
i2c-scl-rising-time-ns = <600>;
i2c-scl-falling-time-ns = <20>;
/// i2c-scl-rising-time-ns = <600>;
/// i2c-scl-falling-time-ns = <20>;
clock-frequency = <400000>;
status = "okay";
/*
rpicamv2: camera@10 {
compatible = "sony,imx219";
reg = <0x10>;
clocks = <&rpicamclk2>;
pinctrl-names = "default";
pinctrl-0 = <&enable>;
status = "disabled";
rpicamclk2: camera-clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <25000000>;
};
port {
csi1_out_2: endpoint {
remote-endpoint = <&csi1_ep1>;
clock-lanes = <0>;
data-lanes = <1 2>;
};
};
};
*/
rpicamv1: camera@36 {
compatible = "ovti,ov5647";
reg = <0x36>;
clocks = <&rpicamclk1>;
pinctrl-names = "default";
status = "okay";
/* CAM_GPIO is an enable GPIO and
* CAM_MCLK is actually controlling the red LED
*/
pinctrl-0 = <&enable>, <&camled>;
enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
/* The camera module has an internal clock */
rpicamclk1: camera-clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <25000000>;
};
port {
csi1_out_1: endpoint {
remote-endpoint = <&csi1_ep1>;
clock-lanes = <0>;
data-lanes = <1 2>;
};
};
};
};
&i2s0 {
......@@ -482,6 +538,17 @@
rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
cam_pins {
enable: enable-pins {
rockchip,pins =
<1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
};
camled: cam_led_pins {
rockchip,pins =
<2 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};
&pwm2 {
......@@ -610,3 +677,28 @@
&vopl_mmu {
status = "okay";
};
&i2c6 {
status = "okay";
};
&i2c4 {
};
&mipi_dphy_rx0 {
status = "okay";
};
&isp0 {
status = "okay";
ports {
port@0 {
csi1_ep1: endpoint@1 {
reg = <1>;
remote-endpoint = <&csi1_out_1>;
data-lanes = <1 2>;
};
};
};
};
......@@ -575,6 +575,18 @@ config VIDEO_IMX214
To compile this driver as a module, choose M here: the
module will be called imx214.
config VIDEO_IMX219
tristate "Sony IMX219 sensor support"
depends on GPIOLIB && I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
depends on MEDIA_CAMERA_SUPPORT
depends on V4L2_FWNODE
help
This is a Video4Linux2 sensor driver for the Sony
IMX214 camera.
To compile this driver as a module, choose M here: the
module will be called imx219.
config VIDEO_IMX258
tristate "Sony IMX258 sensor support"
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
......
......@@ -109,6 +109,7 @@ obj-$(CONFIG_VIDEO_ML86V7667) += ml86v7667.o
obj-$(CONFIG_VIDEO_OV2659) += ov2659.o
obj-$(CONFIG_VIDEO_TC358743) += tc358743.o
obj-$(CONFIG_VIDEO_IMX214) += imx214.o
obj-$(CONFIG_VIDEO_IMX219) += imx219.o
obj-$(CONFIG_VIDEO_IMX258) += imx258.o
obj-$(CONFIG_VIDEO_IMX274) += imx274.o
obj-$(CONFIG_VIDEO_IMX319) += imx319.o
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment