Commit 16b7543b authored by Nícolas F. R. A. Prado's avatar Nícolas F. R. A. Prado
Browse files

tmp add camera

parent f40ddce8
......@@ -31,6 +31,33 @@ sdio_pwrseq: sdio-pwrseq {
reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
};
cam_v_ana: camera-reg@0 {
compatible = "regulator-fixed";
regulator-name = "cam_v_ana";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
};
cam_v_dig: camera-reg@1 {
compatible = "regulator-fixed";
regulator-name = "cam_v_dig";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
cam_v_ddl: camera-reg@2 {
compatible = "regulator-fixed";
regulator-name = "cam_v_ddl";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
vcc12v_dcin: dc-12v {
compatible = "regulator-fixed";
regulator-name = "vcc12v_dcin";
......@@ -426,9 +453,38 @@ &i2c3 {
};
&i2c4 {
i2c-scl-rising-time-ns = <600>;
i2c-scl-falling-time-ns = <20>;
status = "okay";
clock-frequency = <400000>;
imx219: sensor@10 {
status = "okay";
compatible = "sony,imx219";
reg = <0x10>;
pinctrl-names = "default";
pinctrl-0 = <&cam_en>;
clocks = <&imx219_clk>;
clock-names = "xclk";
xclr-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
VANA-supply = <&cam_v_ana>;
VDIG-supply = <&cam_v_dig>;
VDDL-supply = <&cam_v_ddl>;
imx219_clk: camera-clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <24000000>;
};
port {
csi1_out_1: endpoint {
remote-endpoint = <&csi1_ep1>;
clock-lanes = <0>;
data-lanes = <1 2>;
clock-noncontinuous;
link-frequencies = /bits/ 64 <456000000>;
};
};
};
};
&i2s0 {
......@@ -541,6 +597,12 @@ usb2 {
vcc5v0_host_en: vcc5v0-host-en {
rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
cam_pins {
cam_en: i2c4-enable-pins {
rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
wifi {
......@@ -552,6 +614,17 @@ wifi_host_wake_l: wifi-host-wake-l {
rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
cam_pins {
enable: enable-pins {
rockchip,pins =
<1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
};
camled: cam_led_pins {
rockchip,pins =
<2 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};
&pwm2 {
......@@ -700,3 +773,25 @@ &vopl {
&vopl_mmu {
status = "okay";
};
&i2c6 {
status = "okay";
};
&mipi_dphy_rx0 {
status = "okay";
};
&isp0 {
status = "okay";
ports {
port@0 {
csi1_ep1: endpoint@1 {
reg = <1>;
remote-endpoint = <&csi1_out_1>;
data-lanes = <1 2>;
};
};
};
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment