简化设备树结构,用以适配摄像头设备树插件
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
#include "rk3566.dtsi"
|
||||
|
||||
//MIPI摄像头配置
|
||||
#include "rk3566-lubancat-csi2.dtsi"
|
||||
#include "rk3568-lubancat-csi2.dtsi"
|
||||
|
||||
/* 屏幕设置,通用镜像使用设备树插件,默认开启hdmi
|
||||
专用镜像如果要开启MIPI屏幕支持,按屏幕型号开启2-4
|
||||
@ -569,6 +569,32 @@
|
||||
};
|
||||
};
|
||||
|
||||
//cam-gpio-setting
|
||||
&ov5647 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&ov5648 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&ov8858 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&ov13850 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&sc132gs {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
|
||||
&iep {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
#include "rk3566.dtsi"
|
||||
|
||||
//MIPI摄像头配置
|
||||
#include "rk3566-lubancat-csi2.dtsi"
|
||||
#include "rk3568-lubancat-csi2-double-1.dtsi"
|
||||
|
||||
/* 屏幕设置,通用镜像使用设备树插件,默认开启hdmi
|
||||
专用镜像如果要开启MIPI屏幕支持,按屏幕型号开启2-4
|
||||
@ -27,7 +27,6 @@
|
||||
// #include "rk3566-lubancat-dsi0-ebf410125_1080p.dtsi" //野火5.5寸 1080P
|
||||
// #include "rk3566-lubancat-dsi0-rpi.dtsi" //树莓派 5寸 800x480
|
||||
|
||||
|
||||
/ {
|
||||
model = "EmbedFire LubanCat-1";
|
||||
compatible = "embedfire,lubancat-1", "rockchip,rk3566";
|
||||
@ -164,48 +163,6 @@
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
vdd_cam_5v: vdd-cam-5v-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd_cam_5v";
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&cam_pwr_en>;
|
||||
enable-active-high;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
cam_dovdd: cam-dovdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam_dovdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
vin-supply = <&vdd_cam_5v>;
|
||||
};
|
||||
|
||||
cam_avdd: cam-avdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam_avdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
vin-supply = <&vdd_cam_5v>;
|
||||
};
|
||||
|
||||
cam_dvdd: cam-dvdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam_dvdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1200000>;
|
||||
regulator-max-microvolt = <1200000>;
|
||||
vin-supply = <&vdd_cam_5v>;
|
||||
};
|
||||
|
||||
leds: leds {
|
||||
status = "okay";
|
||||
compatible = "gpio-leds";
|
||||
@ -251,13 +208,6 @@
|
||||
io-channels = <&saradc 1>;
|
||||
};
|
||||
|
||||
ext_cam_clk: external-camera-clock {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <24000000>;
|
||||
clock-output-names = "CLK_CAMERA1_24MHZ";
|
||||
};
|
||||
|
||||
backlight: backlight {
|
||||
status = "okay";
|
||||
compatible = "pwm-backlight";
|
||||
@ -298,6 +248,115 @@
|
||||
>;
|
||||
default-brightness-level = <200>;
|
||||
};
|
||||
|
||||
ext_cam_clk: external-camera0-clock {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <24000000>;
|
||||
clock-output-names = "CLK_CAMERA0_24MHZ";
|
||||
};
|
||||
|
||||
ext_cam_25m_clk: external-camera0-25m-clock {
|
||||
compatible = "fixed-clock";
|
||||
clock-frequency = <25000000>;
|
||||
clock-output-names = "ext_cam_25m_clk";
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
ext_cam1_clk: external-camera1-clock {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <24000000>;
|
||||
clock-output-names = "CLK_CAMERA1_24MHZ";
|
||||
};
|
||||
|
||||
ext_cam1_25m_clk: external-camera1-25m-clock {
|
||||
compatible = "fixed-clock";
|
||||
clock-frequency = <25000000>;
|
||||
clock-output-names = "ext_cam1_25m_clk";
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
vdd_cam_5v: vdd-cam-5v-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd_cam_5v";
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&cam_pwr_en>;
|
||||
enable-active-high;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
cam_dovdd: cam-dovdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam_dovdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
vin-supply = <&vdd_cam_5v>;
|
||||
};
|
||||
|
||||
cam_avdd: cam-avdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam_avdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
vin-supply = <&vdd_cam_5v>;
|
||||
};
|
||||
|
||||
cam_dvdd: cam-dvdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam_dvdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1200000>;
|
||||
regulator-max-microvolt = <1200000>;
|
||||
vin-supply = <&vdd_cam_5v>;
|
||||
};
|
||||
|
||||
vdd_cam1_5v: vdd-cam1-5v-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd_cam1_5v";
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
enable-active-high;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
cam1_dovdd: cam1-dovdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam1_dovdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
vin-supply = <&vdd_cam1_5v>;
|
||||
};
|
||||
|
||||
cam1_avdd: cam1-avdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam1_avdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
vin-supply = <&vdd_cam1_5v>;
|
||||
};
|
||||
|
||||
cam1_dvdd: cam1-dvdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam1_dvdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1200000>;
|
||||
regulator-max-microvolt = <1200000>;
|
||||
vin-supply = <&vdd_cam1_5v>;
|
||||
};
|
||||
};
|
||||
|
||||
&saradc {
|
||||
@ -381,6 +440,10 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
|
||||
@ -694,6 +757,48 @@
|
||||
};
|
||||
};
|
||||
|
||||
//cam0-gpio-setting
|
||||
&ov5647 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&ov5648 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&ov8858 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&sc132gs {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
|
||||
//cam1-gpio-setting
|
||||
&cam1_ov5647 {
|
||||
pwdn-gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&cam1_ov5648 {
|
||||
pwdn-gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&cam1_ov8858 {
|
||||
pwdn-gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&cam1_sc132gs {
|
||||
pwdn-gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
|
||||
&iep {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
#include "rk3566.dtsi"
|
||||
|
||||
//MIPI摄像头配置
|
||||
#include "rk3566-lubancat-csi2.dtsi"
|
||||
#include "rk3568-lubancat-csi2.dtsi"
|
||||
|
||||
/* 屏幕设置,通用镜像使用设备树插件,默认开启hdmi
|
||||
专用镜像如果要开启MIPI屏幕支持,按屏幕型号开启2-4
|
||||
@ -658,6 +658,31 @@
|
||||
};
|
||||
};
|
||||
|
||||
//cam-gpio-setting
|
||||
&ov5647 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&ov5648 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&ov8858 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&ov13850 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&sc132gs {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
clock-frequency = <100000>;
|
||||
|
||||
@ -1,27 +0,0 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Copyright (c) 2020 Rockchip Electronics Co., Ltd.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "rk3568-lubancat-csi2.dtsi"
|
||||
|
||||
&ov5647 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&ov5648 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&ov8858 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&ov13850 {
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
@ -706,6 +706,32 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
//cam-gpio-setting
|
||||
&ov5647 {
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&ov5648 {
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&ov8858 {
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&ov13850 {
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&sc132gs {
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
clock-frequency = <100000>;
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
#include "rk3568-lubancat-2m-port.dtsi"
|
||||
|
||||
//MIPI摄像头配置
|
||||
#include "rk3568-lubancat-2io-cam.dtsi"
|
||||
#include "rk3568-lubancat-csi2-double-2.dtsi"
|
||||
|
||||
// 屏幕设置,通用镜像使用设备树插件
|
||||
// 以下屏幕配置同时只能使用一个
|
||||
@ -31,6 +31,119 @@
|
||||
regulator-max-microvolt = <12000000>;
|
||||
};
|
||||
|
||||
ext_cam_clk: external-camera0-clock {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <24000000>;
|
||||
clock-output-names = "CLK_CAMERA0_24MHZ";
|
||||
};
|
||||
|
||||
ext_cam_25m_clk: external-camera0-25m-clock {
|
||||
compatible = "fixed-clock";
|
||||
clock-frequency = <25000000>;
|
||||
clock-output-names = "ext_cam_25m_clk";
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
vdd_cam_5v: vdd-cam0-5v-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd_cam_5v";
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
gpio = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&cam_pwr_en>;
|
||||
enable-active-high;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
cam_dovdd: cam_dovdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam_dovdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
vin-supply = <&vdd_cam_5v>;
|
||||
};
|
||||
|
||||
cam_avdd: cam_avdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam_avdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
vin-supply = <&vdd_cam_5v>;
|
||||
};
|
||||
|
||||
cam_dvdd: cam_dvdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam_dvdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1200000>;
|
||||
regulator-max-microvolt = <1200000>;
|
||||
vin-supply = <&vdd_cam_5v>;
|
||||
};
|
||||
|
||||
ext_cam1_clk: external-camera1-clock {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <24000000>;
|
||||
clock-output-names = "CLK_CAMERA1_24MHZ";
|
||||
};
|
||||
|
||||
ext_cam1_25m_clk: external-camera1-25m-clock {
|
||||
compatible = "fixed-clock";
|
||||
clock-frequency = <25000000>;
|
||||
clock-output-names = "ext_cam1_25m_clk";
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
|
||||
vdd_cam1_5v: vdd-cam1-5v-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd_cam1_5v";
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
gpio = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&cam1_pwr_en>;
|
||||
enable-active-high;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
cam1_dovdd: cam1-dovdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam1_dovdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
vin-supply = <&vdd_cam1_5v>;
|
||||
};
|
||||
|
||||
cam1_avdd: cam1-avdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam1_avdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
vin-supply = <&vdd_cam1_5v>;
|
||||
};
|
||||
|
||||
cam1_dvdd: cam1-dvdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam1_dvdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1200000>;
|
||||
regulator-max-microvolt = <1200000>;
|
||||
vin-supply = <&vdd_cam1_5v>;
|
||||
};
|
||||
|
||||
vdd_5v: vdd-5v {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd_5v";
|
||||
@ -523,6 +636,53 @@
|
||||
};
|
||||
};
|
||||
|
||||
&i2c5 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
//cam0-gpio-setting
|
||||
&ov5647 {
|
||||
pwdn-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&ov5648 {
|
||||
pwdn-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&ov8858 {
|
||||
pwdn-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&sc132gs {
|
||||
pwdn-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
|
||||
//cam1-gpio-setting
|
||||
&cam1_ov5647 {
|
||||
pwdn-gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&cam1_ov5648 {
|
||||
pwdn-gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&cam1_ov8858 {
|
||||
pwdn-gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&cam1_sc132gs {
|
||||
pwdn-gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
&i2c0 {
|
||||
rx8010: rx8010@32 {
|
||||
compatible = "epson,rx8010";
|
||||
@ -722,6 +882,15 @@
|
||||
};
|
||||
};
|
||||
|
||||
cam {
|
||||
cam_pwr_en: cam_pwr_en {
|
||||
rockchip,pins = <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
cam1_pwr_en: cam1_pwr_en {
|
||||
rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
lcd {
|
||||
edp_lcd_pwr_en: edp-lcd-pwr-en {
|
||||
rockchip,pins = <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
@ -742,7 +911,7 @@
|
||||
|
||||
rx8010 {
|
||||
rx8010_irq: rx8010-irq {
|
||||
rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@ -751,6 +751,31 @@
|
||||
};
|
||||
};
|
||||
|
||||
//cam-gpio-setting
|
||||
&ov5647 {
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&ov5648 {
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
&ov8858 {
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&ov13850 {
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&sc132gs {
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
clock-frequency = <100000>;
|
||||
|
||||
@ -4,121 +4,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/ {
|
||||
ext_cam0_clk: external-camera0-clock {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <24000000>;
|
||||
clock-output-names = "CLK_CAMERA0_24MHZ";
|
||||
};
|
||||
|
||||
ext_cam0_25m_clk: external-camera0-25m-clock {
|
||||
compatible = "fixed-clock";
|
||||
clock-frequency = <25000000>;
|
||||
clock-output-names = "ext_cam0_25m_clk";
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
vdd_cam0_5v: vdd-cam0-5v-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd_cam0_5v";
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
enable-active-high;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
cam0_dovdd: cam0-dovdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam0_dovdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
vin-supply = <&vdd_cam0_5v>;
|
||||
};
|
||||
|
||||
cam0_avdd: cam0-avdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam0_avdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
vin-supply = <&vdd_cam0_5v>;
|
||||
};
|
||||
|
||||
cam0_dvdd: cam0-dvdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam0_dvdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1200000>;
|
||||
regulator-max-microvolt = <1200000>;
|
||||
vin-supply = <&vdd_cam0_5v>;
|
||||
};
|
||||
|
||||
ext_cam1_clk: external-camera1-clock {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <24000000>;
|
||||
clock-output-names = "CLK_CAMERA1_24MHZ";
|
||||
};
|
||||
|
||||
ext_cam1_25m_clk: external-camera1-25m-clock {
|
||||
compatible = "fixed-clock";
|
||||
clock-frequency = <25000000>;
|
||||
clock-output-names = "ext_cam1_25m_clk";
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
|
||||
vdd_cam1_5v: vdd-cam1-5v-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd_cam1_5v";
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
enable-active-high;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
cam1_dovdd: cam1-dovdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam1_dovdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
vin-supply = <&vdd_cam1_5v>;
|
||||
};
|
||||
|
||||
cam1_avdd: cam1-avdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam1_avdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
vin-supply = <&vdd_cam1_5v>;
|
||||
};
|
||||
|
||||
cam1_dvdd: cam1-dvdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam1_dvdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1200000>;
|
||||
regulator-max-microvolt = <1200000>;
|
||||
vin-supply = <&vdd_cam1_5v>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
// ov5648 Camare
|
||||
cam0_dw9714: cam0_dw9714@0c {
|
||||
status = "okay";
|
||||
dw9714: dw9714@0c {
|
||||
status = "disable";
|
||||
compatible = "dongwoon,dw9714";
|
||||
reg = <0x0c>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
@ -132,28 +22,26 @@
|
||||
rockchip,camera-module-facing = "back";
|
||||
};
|
||||
|
||||
cam0_ov5648: cam0_camera@36 {
|
||||
ov5648: camera@36 {
|
||||
compatible = "ovti,ov5648";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam0_clk>;
|
||||
clocks = <&ext_cam_clk>;
|
||||
clock-names = "xvclk";
|
||||
dovdd-supply= <&cam0_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam0_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam0_dvdd>; /* 1.2v */
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
|
||||
dovdd-supply= <&cam_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam_dvdd>; /* 1.2v */
|
||||
rotation = <180>;
|
||||
status = "okay";
|
||||
status = "disable";
|
||||
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "THDS11073";
|
||||
rockchip,camera-module-lens-name = "Largan-40122a1";
|
||||
lens-focus = <&cam0_dw9714>;
|
||||
lens-focus = <&dw9714>;
|
||||
|
||||
port {
|
||||
/* MIPI CSI-2 bus endpoint */
|
||||
cam0_ov5648_out: endpoint {
|
||||
ov5648_out: endpoint {
|
||||
remote-endpoint = <&dphy1_in_ov5648>;
|
||||
clock-lanes = <0>;
|
||||
data-lanes = <1 2>;
|
||||
@ -163,22 +51,20 @@
|
||||
|
||||
ov8858: ov8858@36 {
|
||||
compatible = "ovti,ov8858";
|
||||
status = "disable";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam0_clk>;
|
||||
clocks = <&ext_cam_clk>;
|
||||
clock-names = "xvclk";
|
||||
dovdd-supply= <&cam0_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam0_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam0_dvdd>; /* 1.2v */
|
||||
pwdn-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
dovdd-supply= <&cam_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam_dvdd>; /* 1.2v */
|
||||
rotation = <180>;
|
||||
status = "okay";
|
||||
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "HS5885-BNSM1018-V01";
|
||||
rockchip,camera-module-lens-name = "default";
|
||||
lens-focus = <&cam0_dw9714>;
|
||||
lens-focus = <&dw9714>;
|
||||
|
||||
port {
|
||||
/* MIPI CSI-2 bus endpoint */
|
||||
@ -189,15 +75,56 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ov5647: ov5647@36 {
|
||||
compatible = "ovti,ov5647";
|
||||
status = "disable";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam_25m_clk>;
|
||||
clock-names = "ext_cam_25m_clk";
|
||||
lens-focus = <&dw9714>;
|
||||
|
||||
port {
|
||||
ov5647_out: endpoint {
|
||||
remote-endpoint = <&dphy1_in_ov5647>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
sc132gs: sc132gs@30 {
|
||||
compatible = "smartsens,sc132gs";
|
||||
status = "disable";
|
||||
reg = <0x30>;
|
||||
clocks = <&ext_cam_clk>;
|
||||
clock-names = "xvclk";
|
||||
|
||||
dovdd-supply= <&cam_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam_dvdd>; /* 1.2v */
|
||||
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "default";
|
||||
rockchip,camera-module-lens-name = "default";
|
||||
|
||||
port {
|
||||
sc132gs_out: endpoint {
|
||||
remote-endpoint = <&dphy1_in_sc132gs>;
|
||||
clock-lanes = <0>;
|
||||
data-lanes = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2c4m1_xfer>;
|
||||
status = "okay";
|
||||
status = "disable";
|
||||
// ov5648 Camare
|
||||
cam1_dw9714: cam1_dw9714@0c {
|
||||
status = "okay";
|
||||
status = "disable";
|
||||
compatible = "dongwoon,dw9714";
|
||||
reg = <0x0c>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
@ -213,16 +140,14 @@
|
||||
|
||||
cam1_ov5648: cam1_camera@36 {
|
||||
compatible = "ovti,ov5648";
|
||||
status = "disable";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam1_clk>;
|
||||
clock-names = "xvclk";
|
||||
dovdd-supply= <&cam1_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam1_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam1_dvdd>; /* 1.2v */
|
||||
pwdn-gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_LOW>;
|
||||
rotation = <180>;
|
||||
status = "okay";
|
||||
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "front";
|
||||
@ -242,17 +167,15 @@
|
||||
|
||||
cam1_ov8858: cam1_ov8858@36 {
|
||||
compatible = "ovti,ov8858";
|
||||
status = "disable";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam1_clk>;
|
||||
clock-names = "xvclk";
|
||||
dovdd-supply= <&cam1_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam1_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam1_dvdd>; /* 1.2v */
|
||||
pwdn-gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>;
|
||||
rotation = <180>;
|
||||
status = "okay";
|
||||
|
||||
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "front";
|
||||
rockchip,camera-module-name = "HS5885-BNSM1018-V01";
|
||||
@ -268,6 +191,47 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cam1_ov5647: cam1_ov5647@36 {
|
||||
compatible = "ovti,ov5647";
|
||||
status = "disabled";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam1_25m_clk>;
|
||||
clock-names = "ext_cam1_25m_clk";
|
||||
lens-focus = <&dw9714>;
|
||||
|
||||
port {
|
||||
cam1_ov5647_out: endpoint {
|
||||
remote-endpoint = <&dphy2_in_ov5647>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cam1_sc132gs: cam1_sc132gs@30 {
|
||||
compatible = "smartsens,sc132gs";
|
||||
status = "disable";
|
||||
reg = <0x30>;
|
||||
clocks = <&ext_cam1_clk>;
|
||||
clock-names = "xvclk";
|
||||
|
||||
dovdd-supply= <&cam1_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam1_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam1_dvdd>; /* 1.2v */
|
||||
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "default";
|
||||
rockchip,camera-module-lens-name = "default";
|
||||
|
||||
port {
|
||||
cam1_sc132gs_out: endpoint {
|
||||
remote-endpoint = <&dphy2_in_sc132gs>;
|
||||
clock-lanes = <0>;
|
||||
data-lanes = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&csi2_dphy_hw {
|
||||
@ -292,7 +256,7 @@
|
||||
|
||||
dphy1_in_ov5648: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&cam0_ov5648_out>;
|
||||
remote-endpoint = <&ov5648_out>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
@ -301,6 +265,18 @@
|
||||
remote-endpoint = <&ov8858_out>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
dphy1_in_ov5647: endpoint@3 {
|
||||
reg = <3>;
|
||||
remote-endpoint = <&ov5647_out>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
dphy1_in_sc132gs: endpoint@4 {
|
||||
reg = <4>;
|
||||
remote-endpoint = <&sc132gs_out>;
|
||||
data-lanes = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
@ -317,7 +293,7 @@
|
||||
};
|
||||
|
||||
&csi2_dphy2 {
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
@ -339,6 +315,18 @@
|
||||
remote-endpoint = <&cam1_ov8858_out>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
dphy2_in_ov5647: endpoint@3 {
|
||||
reg = <3>;
|
||||
remote-endpoint = <&cam1_ov5647_out>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
dphy2_in_sc132gs: endpoint@4 {
|
||||
reg = <4>;
|
||||
remote-endpoint = <&cam1_sc132gs_out>;
|
||||
data-lanes = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
@ -355,7 +343,7 @@
|
||||
};
|
||||
|
||||
&mipi_csi2 {
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
@ -387,7 +375,7 @@
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds {
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
port {
|
||||
cif_mipi_in: endpoint {
|
||||
remote-endpoint = <&mipi_csi2_output>;
|
||||
@ -397,7 +385,7 @@
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds_sditf {
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
port {
|
||||
mipi_lvds_sditf: endpoint {
|
||||
remote-endpoint = <&isp1_in>;
|
||||
@ -431,7 +419,7 @@
|
||||
};
|
||||
|
||||
&rkisp_vir1 {
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
@ -4,127 +4,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/ {
|
||||
ext_cam0_clk: external-camera0-clock {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <24000000>;
|
||||
clock-output-names = "CLK_CAMERA0_24MHZ";
|
||||
};
|
||||
|
||||
ext_cam0_25m_clk: external-camera0-25m-clock {
|
||||
compatible = "fixed-clock";
|
||||
clock-frequency = <25000000>;
|
||||
clock-output-names = "ext_cam0_25m_clk";
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
vdd_cam0_5v: vdd-cam0-5v-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd_cam0_5v";
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
gpio = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&cam0_pwr_en>;
|
||||
enable-active-high;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
cam0_dovdd: cam0-dovdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam0_dovdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
vin-supply = <&vdd_cam0_5v>;
|
||||
};
|
||||
|
||||
cam0_avdd: cam0-avdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam0_avdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
vin-supply = <&vdd_cam0_5v>;
|
||||
};
|
||||
|
||||
cam0_dvdd: cam0-dvdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam0_dvdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1200000>;
|
||||
regulator-max-microvolt = <1200000>;
|
||||
vin-supply = <&vdd_cam0_5v>;
|
||||
};
|
||||
|
||||
ext_cam1_clk: external-camera1-clock {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <24000000>;
|
||||
clock-output-names = "CLK_CAMERA1_24MHZ";
|
||||
};
|
||||
|
||||
ext_cam1_25m_clk: external-camera1-25m-clock {
|
||||
compatible = "fixed-clock";
|
||||
clock-frequency = <25000000>;
|
||||
clock-output-names = "ext_cam1_25m_clk";
|
||||
#clock-cells = <0>;
|
||||
};
|
||||
|
||||
|
||||
vdd_cam1_5v: vdd-cam1-5v-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vdd_cam1_5v";
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
gpio = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&cam1_pwr_en>;
|
||||
enable-active-high;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
cam1_dovdd: cam1-dovdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam1_dovdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
vin-supply = <&vdd_cam1_5v>;
|
||||
};
|
||||
|
||||
cam1_avdd: cam1-avdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam1_avdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <2800000>;
|
||||
regulator-max-microvolt = <2800000>;
|
||||
vin-supply = <&vdd_cam1_5v>;
|
||||
};
|
||||
|
||||
cam1_dvdd: cam1-dvdd {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "cam1_dvdd";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1200000>;
|
||||
regulator-max-microvolt = <1200000>;
|
||||
vin-supply = <&vdd_cam1_5v>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
// ov5648 Camare
|
||||
cam0_dw9714: cam0_dw9714@0c {
|
||||
status = "okay";
|
||||
dw9714: dw9714@0c {
|
||||
status = "disable";
|
||||
compatible = "dongwoon,dw9714";
|
||||
reg = <0x0c>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
@ -138,52 +22,49 @@
|
||||
rockchip,camera-module-facing = "back";
|
||||
};
|
||||
|
||||
cam0_ov5648: cam0_camera@36 {
|
||||
ov5648: camera@36 {
|
||||
compatible = "ovti,ov5648";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam0_clk>;
|
||||
clocks = <&ext_cam_clk>;
|
||||
clock-names = "xvclk";
|
||||
dovdd-supply= <&cam0_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam0_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam0_dvdd>; /* 1.2v */
|
||||
pwdn-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>;
|
||||
dovdd-supply= <&cam_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam_dvdd>; /* 1.2v */
|
||||
rotation = <180>;
|
||||
status = "okay";
|
||||
status = "disable";
|
||||
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "THDS11073";
|
||||
rockchip,camera-module-lens-name = "Largan-40122a1";
|
||||
lens-focus = <&cam0_dw9714>;
|
||||
lens-focus = <&dw9714>;
|
||||
|
||||
port {
|
||||
/* MIPI CSI-2 bus endpoint */
|
||||
cam0_ov5648_out: endpoint {
|
||||
ov5648_out: endpoint {
|
||||
remote-endpoint = <&dphy1_in_ov5648>;
|
||||
clock-lanes = <0>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ov8858: ov8858@36 {
|
||||
compatible = "ovti,ov8858";
|
||||
status = "disable";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam0_clk>;
|
||||
clocks = <&ext_cam_clk>;
|
||||
clock-names = "xvclk";
|
||||
dovdd-supply= <&cam0_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam0_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam0_dvdd>; /* 1.2v */
|
||||
pwdn-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>;
|
||||
dovdd-supply= <&cam_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam_dvdd>; /* 1.2v */
|
||||
rotation = <180>;
|
||||
status = "okay";
|
||||
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "HS5885-BNSM1018-V01";
|
||||
rockchip,camera-module-lens-name = "default";
|
||||
lens-focus = <&cam0_dw9714>;
|
||||
lens-focus = <&dw9714>;
|
||||
|
||||
port {
|
||||
/* MIPI CSI-2 bus endpoint */
|
||||
@ -194,16 +75,58 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ov5647: ov5647@36 {
|
||||
compatible = "ovti,ov5647";
|
||||
status = "disable";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam_25m_clk>;
|
||||
clock-names = "ext_cam_25m_clk";
|
||||
lens-focus = <&dw9714>;
|
||||
|
||||
port {
|
||||
ov5647_out: endpoint {
|
||||
remote-endpoint = <&dphy1_in_ov5647>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
sc132gs: sc132gs@30 {
|
||||
compatible = "smartsens,sc132gs";
|
||||
status = "disable";
|
||||
reg = <0x30>;
|
||||
clocks = <&ext_cam_clk>;
|
||||
clock-names = "xvclk";
|
||||
|
||||
dovdd-supply= <&cam_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam_dvdd>; /* 1.2v */
|
||||
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "default";
|
||||
rockchip,camera-module-lens-name = "default";
|
||||
|
||||
port {
|
||||
sc132gs_out: endpoint {
|
||||
remote-endpoint = <&dphy1_in_sc132gs>;
|
||||
clock-lanes = <0>;
|
||||
data-lanes = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c5 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
status = "disable";
|
||||
// ov5648 Camare
|
||||
cam1_dw9714: cam1_dw9714@0c {
|
||||
status = "okay";
|
||||
status = "disable";
|
||||
compatible = "dongwoon,dw9714";
|
||||
reg = <0x0c>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,vcm-max-current = <100>;
|
||||
rockchip,vcm-start-current = <0>;
|
||||
rockchip,vcm-rated-current = <100>;
|
||||
@ -211,24 +134,22 @@
|
||||
rockchip,vcm-dlc-enable = <0>;
|
||||
rockchip,vcm-mclk = <0>;
|
||||
rockchip,vcm-t-src = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-facing = "front";
|
||||
};
|
||||
|
||||
cam1_ov5648: cam1_camera@36 {
|
||||
compatible = "ovti,ov5648";
|
||||
status = "disable";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam1_clk>;
|
||||
clock-names = "xvclk";
|
||||
dovdd-supply= <&cam1_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam1_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam1_dvdd>; /* 1.2v */
|
||||
pwdn-gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_LOW>;
|
||||
rotation = <180>;
|
||||
status = "okay";
|
||||
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "front";
|
||||
rockchip,camera-module-name = "THDS11073";
|
||||
rockchip,camera-module-lens-name = "Largan-40122a1";
|
||||
lens-focus = <&cam1_dw9714>;
|
||||
@ -245,19 +166,17 @@
|
||||
|
||||
cam1_ov8858: cam1_ov8858@36 {
|
||||
compatible = "ovti,ov8858";
|
||||
status = "disable";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam1_clk>;
|
||||
clock-names = "xvclk";
|
||||
dovdd-supply= <&cam1_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam1_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam1_dvdd>; /* 1.2v */
|
||||
pwdn-gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
|
||||
rotation = <180>;
|
||||
status = "okay";
|
||||
|
||||
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-facing = "front";
|
||||
rockchip,camera-module-name = "HS5885-BNSM1018-V01";
|
||||
rockchip,camera-module-lens-name = "default";
|
||||
lens-focus = <&cam1_dw9714>;
|
||||
@ -271,14 +190,57 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cam1_ov5647: cam1_ov5647@36 {
|
||||
compatible = "ovti,ov5647";
|
||||
status = "disabled";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam1_25m_clk>;
|
||||
clock-names = "ext_cam1_25m_clk";
|
||||
lens-focus = <&dw9714>;
|
||||
|
||||
port {
|
||||
cam1_ov5647_out: endpoint {
|
||||
remote-endpoint = <&dphy2_in_ov5647>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cam1_sc132gs: cam1_sc132gs@30 {
|
||||
compatible = "smartsens,sc132gs";
|
||||
status = "disable";
|
||||
reg = <0x30>;
|
||||
clocks = <&ext_cam1_clk>;
|
||||
clock-names = "xvclk";
|
||||
|
||||
dovdd-supply= <&cam1_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam1_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam1_dvdd>; /* 1.2v */
|
||||
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "default";
|
||||
rockchip,camera-module-lens-name = "default";
|
||||
|
||||
port {
|
||||
cam1_sc132gs_out: endpoint {
|
||||
remote-endpoint = <&dphy2_in_sc132gs>;
|
||||
clock-lanes = <0>;
|
||||
data-lanes = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
&csi2_dphy_hw {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&csi2_dphy0 {
|
||||
status = "disable";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&csi2_dphy1 {
|
||||
@ -295,7 +257,7 @@
|
||||
|
||||
dphy1_in_ov5648: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&cam0_ov5648_out>;
|
||||
remote-endpoint = <&ov5648_out>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
@ -304,6 +266,18 @@
|
||||
remote-endpoint = <&ov8858_out>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
dphy1_in_ov5647: endpoint@3 {
|
||||
reg = <3>;
|
||||
remote-endpoint = <&ov5647_out>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
dphy1_in_sc132gs: endpoint@4 {
|
||||
reg = <4>;
|
||||
remote-endpoint = <&sc132gs_out>;
|
||||
data-lanes = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
@ -320,7 +294,7 @@
|
||||
};
|
||||
|
||||
&csi2_dphy2 {
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
@ -342,6 +316,18 @@
|
||||
remote-endpoint = <&cam1_ov8858_out>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
dphy2_in_ov5647: endpoint@3 {
|
||||
reg = <3>;
|
||||
remote-endpoint = <&cam1_ov5647_out>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
dphy2_in_sc132gs: endpoint@4 {
|
||||
reg = <4>;
|
||||
remote-endpoint = <&cam1_sc132gs_out>;
|
||||
data-lanes = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
@ -358,7 +344,7 @@
|
||||
};
|
||||
|
||||
&mipi_csi2 {
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
@ -390,7 +376,7 @@
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds {
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
port {
|
||||
cif_mipi_in: endpoint {
|
||||
remote-endpoint = <&mipi_csi2_output>;
|
||||
@ -400,7 +386,7 @@
|
||||
};
|
||||
|
||||
&rkcif_mipi_lvds_sditf {
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
port {
|
||||
mipi_lvds_sditf: endpoint {
|
||||
remote-endpoint = <&isp1_in>;
|
||||
@ -411,6 +397,7 @@
|
||||
|
||||
&rkisp {
|
||||
status = "okay";
|
||||
max-input = <2592 1944 30>;
|
||||
};
|
||||
|
||||
&rkisp_mmu {
|
||||
@ -433,7 +420,7 @@
|
||||
};
|
||||
|
||||
&rkisp_vir1 {
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
@ -458,14 +445,3 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
cam {
|
||||
cam0_pwr_en: cam0_pwr_en {
|
||||
rockchip,pins = <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
cam1_pwr_en: cam1_pwr_en {
|
||||
rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
@ -1,102 +0,0 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Copyright (c) 2020 Rockchip Electronics Co., Ltd.
|
||||
*
|
||||
*/
|
||||
|
||||
&i2c1 {
|
||||
sc132gs: sc132gs@30 {
|
||||
compatible = "smartsens,sc132gs";
|
||||
status = "okay";
|
||||
reg = <0x30>;
|
||||
clocks = <&ext_cam_clk>;
|
||||
clock-names = "xvclk";
|
||||
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_LOW>;
|
||||
dovdd-supply= <&cam_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam_dvdd>; /* 1.2v */
|
||||
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "default";
|
||||
rockchip,camera-module-lens-name = "default";
|
||||
|
||||
port {
|
||||
sc132gs_out: endpoint {
|
||||
remote-endpoint = <&dphy0_in_sc132gs>;
|
||||
clock-lanes = <0>;
|
||||
data-lanes = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&csi2_dphy_hw {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&csi2_dphy0 {
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
dphy0_in_sc132gs: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&sc132gs_out>;
|
||||
data-lanes = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
dphy0_out: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <&isp0_in>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkisp {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkisp_vir0 {
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
isp0_in: endpoint@0 {
|
||||
reg = <0>;
|
||||
// csi2 dphy端的 port名
|
||||
remote-endpoint = <&dphy0_out>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&rkcif_mmu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rkcif {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@ -16,8 +16,8 @@
|
||||
&i2c1 {
|
||||
// ov5648 Camare
|
||||
dw9714: dw9714@0c {
|
||||
status = "okay";
|
||||
compatible = "dongwoon,dw9714";
|
||||
status = "disabled";
|
||||
reg = <0x0c>;
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,vcm-max-current = <100>;
|
||||
@ -32,10 +32,10 @@
|
||||
|
||||
ov5647: ov5647@36 {
|
||||
compatible = "ovti,ov5647";
|
||||
status = "disabled";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam_25m_clk>;
|
||||
clock-names = "ext_cam_25m_clk";
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_LOW>;
|
||||
lens-focus = <&dw9714>;
|
||||
|
||||
port {
|
||||
@ -48,16 +48,14 @@
|
||||
|
||||
ov5648: camera@36 {
|
||||
compatible = "ovti,ov5648";
|
||||
status = "disabled";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam_clk>;
|
||||
clock-names = "xvclk";
|
||||
dovdd-supply= <&cam_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam_dvdd>; /* 1.2v */
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_LOW>;
|
||||
rotation = <180>;
|
||||
status = "okay";
|
||||
|
||||
rockchip,camera-module-index = <0>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
@ -77,16 +75,14 @@
|
||||
|
||||
ov8858: ov8858@36 {
|
||||
compatible = "ovti,ov8858";
|
||||
status = "disabled";
|
||||
reg = <0x36>;
|
||||
clocks = <&ext_cam_clk>;
|
||||
clock-names = "xvclk";
|
||||
dovdd-supply= <&cam_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam_dvdd>; /* 1.2v */
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
rotation = <180>;
|
||||
status = "okay";
|
||||
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
@ -106,16 +102,14 @@
|
||||
|
||||
ov13850: ov13850@10 {
|
||||
compatible = "ovti,ov13850";
|
||||
status = "disable";
|
||||
reg = <0x10>;
|
||||
clocks = <&ext_cam_clk>;
|
||||
clock-names = "xvclk";
|
||||
dovdd-supply= <&cam_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam_dvdd>; /* 1.2v */
|
||||
pwdn-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
|
||||
rotation = <180>;
|
||||
status = "okay";
|
||||
|
||||
rockchip,camera-module-index = <2>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
@ -131,7 +125,32 @@
|
||||
data-lanes = <1 2 3 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
sc132gs: sc132gs@30 {
|
||||
compatible = "smartsens,sc132gs";
|
||||
status = "disable";
|
||||
reg = <0x30>;
|
||||
clocks = <&ext_cam_clk>;
|
||||
clock-names = "xvclk";
|
||||
|
||||
dovdd-supply= <&cam_dovdd>; /* 1.8v */
|
||||
avdd-supply = <&cam_avdd>; /* 2.8v */
|
||||
dvdd-supply = <&cam_dvdd>; /* 1.2v */
|
||||
|
||||
rockchip,camera-module-index = <1>;
|
||||
rockchip,camera-module-facing = "back";
|
||||
rockchip,camera-module-name = "default";
|
||||
rockchip,camera-module-lens-name = "default";
|
||||
|
||||
port {
|
||||
sc132gs_out: endpoint {
|
||||
remote-endpoint = <&dphy0_in_sc132gs>;
|
||||
clock-lanes = <0>;
|
||||
data-lanes = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&csi2_dphy_hw {
|
||||
@ -173,6 +192,12 @@
|
||||
remote-endpoint = <&ov5647_out>;
|
||||
data-lanes = <1 2>;
|
||||
};
|
||||
|
||||
dphy0_in_sc132gs: endpoint@5 {
|
||||
reg = <5>;
|
||||
remote-endpoint = <&sc132gs_out>;
|
||||
data-lanes = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
port@1 {
|
||||
|
||||
Reference in New Issue
Block a user