From 465219ff467f4ea46cfae9d9f55d111ff3dbee5d Mon Sep 17 00:00:00 2001 From: Peng Zhou Date: Tue, 7 Nov 2017 15:41:38 +0800 Subject: [PATCH] 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 --- arch/arm/boot/dts/rk3126-bnd-d708.dts | 9 +++++ arch/arm/boot/dts/rk3126-m708-cif-sensor.dtsi | 38 +++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 arch/arm/boot/dts/rk3126-m708-cif-sensor.dtsi diff --git a/arch/arm/boot/dts/rk3126-bnd-d708.dts b/arch/arm/boot/dts/rk3126-bnd-d708.dts index 29d7a35e6417..2be1afade31a 100644 --- a/arch/arm/boot/dts/rk3126-bnd-d708.dts +++ b/arch/arm/boot/dts/rk3126-bnd-d708.dts @@ -46,6 +46,7 @@ #include #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>; }; diff --git a/arch/arm/boot/dts/rk3126-m708-cif-sensor.dtsi b/arch/arm/boot/dts/rk3126-m708-cif-sensor.dtsi new file mode 100644 index 000000000000..d38a0a315ead --- /dev/null +++ b/arch/arm/boot/dts/rk3126-m708-cif-sensor.dtsi @@ -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 = ; + mir = <0>; + flash_attach = <0>; + resolution = ; + powerup_sequence = ; + orientation = <180>; + i2c_add = ; + i2c_chl = <0>; + cif_chl = <0>; + mclk_rate = <24>; + }; + + gc0329_f { + is_front = <1>; + powerdown-gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_HIGH>; + pwdn_active = ; + mir = <0>; + flash_attach = <0>; + resolution = ; + powerup_sequence = ; + orientation = <0>; + i2c_add = ; + i2c_chl = <0>; + cif_chl = <0>; + mclk_rate = <24>; + }; + }; +}; +