Skip to content

Commit 5ba2b36

Browse files
wzyy2jamess-huang
authored andcommitted
ov5647 mess changes
Change-Id: I407b319e6cd2943bef2437398f9d4b69c2b292b4 Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com> Reviewed-on: https://tp-biosrd-v02/gerrit/79943 Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com> Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
1 parent 66eb4f5 commit 5ba2b36

4 files changed

Lines changed: 139 additions & 398 deletions

File tree

arch/arm/boot/dts/rk3288-miniarm.dts

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,28 @@
218218
regulator-max-microvolt = <1000000>;
219219
regulator-name = "vdd_logic";
220220
};
221+
222+
vcc_cam: vcc-cam {
223+
compatible = "regulator-fixed";
224+
regulator-name = "vcc_cam";
225+
pinctrl-names = "default";
226+
pinctrl-0 = <&cam_pwr>;
227+
enable-active-high;
228+
gpio = <&gpio2 0 GPIO_ACTIVE_HIGH>;
229+
regulator-always-on;
230+
regulator-boot-on;
231+
};
232+
233+
vcc_led: vcc-led {
234+
compatible = "regulator-fixed";
235+
regulator-name = "vcc_cam";
236+
pinctrl-names = "default";
237+
pinctrl-0 = <&cam_mclk>;
238+
enable-active-high;
239+
gpio = <&gpio2 11 GPIO_ACTIVE_HIGH>;
240+
regulator-always-on;
241+
regulator-boot-on;
242+
};
221243
};
222244

223245
&cif_isp0 {
@@ -475,22 +497,15 @@
475497
&i2c2 {
476498
status = "okay";
477499

478-
camera0: camera-module@10 {
500+
camera0: camera-module@36 {
479501
status = "okay";
480-
compatible = "sony,imx219-v4l2-i2c-subdev";
481-
reg = <0x10>;
502+
compatible = "ovti,ov7750-v4l2-i2c-subdev";
503+
reg = <0x36>;
482504
device_type = "v4l2-i2c-subdev";
483505

484506
clocks = <&cru SCLK_VIP_OUT>;
485507
clock-names = "clk_cif_out";
486508

487-
pinctrl-names = "rockchip,camera_default",
488-
"rockchip,camera_sleep";
489-
pinctrl-0 = <&cam0_default_pins>;
490-
pinctrl-1 = <&cam0_sleep_pins>;
491-
492-
rockchip,pd-gpio = <&gpio2 0 GPIO_ACTIVE_LOW>;
493-
494509
rockchip,camera-module-mclk-name = "clk_cif_out";
495510
rockchip,camera-module-regulator-names = "vcc33_mipi";
496511
rockchip,camera-module-regulator-voltages = <3300000>;
@@ -788,17 +803,14 @@
788803
};
789804
};
790805

806+
791807
cam_pins {
792-
cam0_default_pins: cam0-default-pins {
793-
rockchip,pins = <0 17 RK_FUNC_GPIO &pcfg_pull_none>,
794-
<2 0 RK_FUNC_GPIO &pcfg_pull_none>,
795-
<2 11 RK_FUNC_1 &pcfg_pull_none>;
808+
cam_mclk: cam-mclk {
809+
rockchip,pins = <2 11 RK_FUNC_GPIO &pcfg_pull_none>;
796810
};
797811

798-
cam0_sleep_pins: cam0-sleep-pins {
799-
rockchip,pins = <0 17 RK_FUNC_GPIO &pcfg_pull_none>,
800-
<2 0 RK_FUNC_GPIO &pcfg_pull_none>,
801-
<2 11 RK_FUNC_GPIO &pcfg_pull_none>;
812+
cam_pwr: cam-pwr {
813+
rockchip,pins = <2 0 RK_FUNC_GPIO &pcfg_pull_none>;
802814
};
803815
};
804816
};

arch/arm/configs/miniarm-rk3288_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,8 @@ CONFIG_V4L_MEM2MEM_DRIVERS=y
502502
CONFIG_VIDEO_ROCKCHIP_VPU=y
503503
CONFIG_V4L_TEST_DRIVERS=y
504504
CONFIG_VIDEO_IMX219=y
505+
CONFIG_VIDEO_OV7750=y
506+
# CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set
505507
CONFIG_DRM=y
506508
CONFIG_DRM_ROCKCHIP=y
507509
CONFIG_ROCKCHIP_DW_HDMI=y

0 commit comments

Comments
 (0)