arm: dts: rk3126-bnd-d708.dts: add cif and sensor

Add new file for rk3126-m708-cif-sensor.dtsi

Change-Id: I882084dc84afbc43398fb6eb41eb09a712b645bf
Signed-off-by: Peng Zhou <benjo.zhou@rock-chips.com>
This commit is contained in:
Peng Zhou 2017-11-07 15:41:38 +08:00
commit 465219ff46
2 changed files with 47 additions and 0 deletions

View file

@ -46,6 +46,7 @@
#include <dt-bindings/sensor-dev.h>
#include "rk3126.dtsi"
#include "rk312x-android.dtsi"
#include "rk3126-m708-cif-sensor.dtsi"
/ {
model = "Rockchip RK3126 bnd-d708 board";
@ -160,6 +161,14 @@
};
};
&cif {
status = "okay";
};
&cif_sensor {
status = "okay";
};
&cpu0 {
cpu-supply = <&vdd_arm>;
};

View file

@ -0,0 +1,38 @@
#include "../../../../drivers/soc/rockchip/rk_camera_sensor_info.h"
/{
cif_sensor: cif_sensor {
compatible = "rockchip,sensor";
status = "disabled";
gc2145_b {
is_front = <0>;
powerdown-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
pwdn_active = <gc2145_PWRDN_ACTIVE>;
mir = <0>;
flash_attach = <0>;
resolution = <gc2145_FULL_RESOLUTION>;
powerup_sequence = <gc2145_PWRSEQ>;
orientation = <180>;
i2c_add = <gc2145_I2C_ADDR>;
i2c_chl = <0>;
cif_chl = <0>;
mclk_rate = <24>;
};
gc0329_f {
is_front = <1>;
powerdown-gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_HIGH>;
pwdn_active = <gc0329_PWRDN_ACTIVE>;
mir = <0>;
flash_attach = <0>;
resolution = <gc0329_FULL_RESOLUTION>;
powerup_sequence = <gc0329_PWRSEQ>;
orientation = <0>;
i2c_add = <gc0329_I2C_ADDR>;
i2c_chl = <0>;
cif_chl = <0>;
mclk_rate = <24>;
};
};
};