arm64: dts: rockchip: add cif camera config for rk3326 863/evb board
Change-Id: I87ad58868029dc969d2abb349b21b78323215ab2 Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
This commit is contained in:
parent
640193f76b
commit
4e15e8d473
3 changed files with 69 additions and 5 deletions
46
arch/arm64/boot/dts/rockchip/rk3326-863-cif-sensor.dtsi
Normal file
46
arch/arm64/boot/dts/rockchip/rk3326-863-cif-sensor.dtsi
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
*/
|
||||
|
||||
#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 13 GPIO_ACTIVE_HIGH>;
|
||||
pwdn_active = <gc2145_PWRDN_ACTIVE>;
|
||||
pwr_active = <PWR_ACTIVE_HIGH>;
|
||||
mir = <0>;
|
||||
flash_attach = <0>;
|
||||
resolution = <gc2145_FULL_RESOLUTION>;
|
||||
powerup_sequence = <gc2145_PWRSEQ>;
|
||||
orientation = <90>;
|
||||
i2c_add = <gc2145_I2C_ADDR>;
|
||||
i2c_chl = <2>;
|
||||
cif_chl = <0>;
|
||||
mclk_rate = <24>;
|
||||
};
|
||||
|
||||
gc0312_f {
|
||||
is_front = <1>;
|
||||
powerdown-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
|
||||
pwdn_active = <gc0312_PWRDN_ACTIVE>;
|
||||
pwr_active = <PWR_ACTIVE_HIGH>;
|
||||
mir = <0>;
|
||||
flash_attach = <0>;
|
||||
resolution = <gc0312_FULL_RESOLUTION>;
|
||||
powerup_sequence = <gc0312_PWRSEQ>;
|
||||
orientation = <90>;
|
||||
i2c_add = <gc0312_I2C_ADDR>;
|
||||
i2c_chl = <2>;
|
||||
cif_chl = <0>;
|
||||
mclk_rate = <24>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -5,16 +5,17 @@
|
|||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/display/drm_mipi_dsi.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include <dt-bindings/sensor-dev.h>
|
||||
#include "rk3326.dtsi"
|
||||
#include "rk3326-863-cif-sensor.dtsi"
|
||||
#include "px30-android.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Rockchip rk3326 f863 board";
|
||||
model = "Rockchip rk3326 863 board";
|
||||
compatible = "rockchip,rk3326-863-lp3-v10", "rockchip,rk3326";
|
||||
|
||||
adc-keys {
|
||||
|
|
@ -111,6 +112,14 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cif {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&cif_sensor {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&display_subsystem {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,12 +5,13 @@
|
|||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/display/drm_mipi_dsi.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include <dt-bindings/sensor-dev.h>
|
||||
#include "rk3326.dtsi"
|
||||
#include "rk3326-863-cif-sensor.dtsi"
|
||||
#include "px30-android.dtsi"
|
||||
|
||||
/ {
|
||||
|
|
@ -171,6 +172,14 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cif {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&cif_sensor {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&display_subsystem {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue