|
发表于 2019-2-27 10:28:50
只看该作者
22#
我把J24对应的camera的dts配置修改如下:
&cif_isp0 {
rockchip,camera-modules-attached = <&camera0>;
rockchip,gpios-cifpower = <&gpio1 22 GPIO_ACTIVE_HIGH>;
status = "okay";
};
&i2c1 {
status = "okay";
i2c-scl-rising-time-ns = <300>;
i2c-scl-falling-time-ns = <15>;
rt5640: rt5640@1c {
#sound-dai-cells = <0>;
compatible = "realtek,rt5640";
reg = <0x1c>;
clocks = <&cru SCLK_I2S_8CH_OUT>;
clock-names = "mclk";
realtek,in1-differential;
pinctrl-names = "default";
pinctrl-0 = <&rt5640_hpcon>;
hp-con-gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>;
//hp-det-gpio = <&gpio4 28 GPIO_ACTIVE_LOW>;
io-channels = <&saradc 4>;
hp-det-adc-value = <500>;
};
camera0: camera-module@10 {
status = "okay";
compatible = "omnivision,ov13850-v4l2-i2c-subdev";
reg = < 0x10 >;
device_type = "v4l2-i2c-subdev";
clocks = <&cru SCLK_CIF_OUT>;
clock-names = "clk_cif_out";
rockchip,camera-module-mclk-name = "clk_cif_out";
rockchip,camera-module-dovdd = "1.8v";
pinctrl-names = "rockchip,camera_default", "rockchip,camera_sleep";
pinctrl-0 = <&cam0_default_pins>;
pinctrl-1 = <&cam0_sleep_pins>;
/*GPIO2 B4 = 12 B6 = 14 MIPI0 D4 = 27 C7 = 23 */
rockchip,pwr-gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>; /*Power GPIO1_C7 */
rockchip,pd-gpio = <&gpio2 28 GPIO_ACTIVE_LOW>; /*Power Down GPIO2_B4 12 OR GPIO2_D4 28 */
// rst 硬件上拉 无需配置
//rockchip,rst-gpio = <&gpio0 8 GPIO_ACTIVE_LOW>; /*Reset GPIO0_B0 */
rockchip,camera-module-facing = "back";
rockchip,camera-module-name = "cmk-cb0695-fv1";
rockchip,camera-module-len-name = "lg9569a2";
rockchip,camera-module-fov-h = "66.0";
rockchip,camera-module-fov-v = "50.1";
rockchip,camera-module-orientation = <0>;
rockchip,camera-module-iq-flip = <0>;
rockchip,camera-module-iq-mirror = <0>;
rockchip,camera-module-flip = <0>;
rockchip,camera-module-mirror = <0>;
rockchip,camera-module-defrect0 = <3264 2448 0 0 3264 2448>;
rockchip,camera-module-flash-support = <0>; /*闪光灯控制开关*/
rockchip,camera-module-mipi-dphy-index = <0>; /*MIPI 接口索引*/
};
}; |
|