Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ dtb-$(CONFIG_CPU_RK3588) += \
rock-5-itx-rpi-camera-v2-on-cam0.dtbo \
rock-5-itx-rpi-camera-v2-on-cam1.dtbo \
rock-5a-okdo-5mp-camera.dtbo \
rock-5a-radxa-camera-12m-577.dtbo \
rock-5a-radxa-camera-4k.dtbo \
rock-5a-radxa-camera-8m-219.dtbo \
rock-5a-radxa-camera-13m-214.dtbo \
Expand All @@ -640,6 +641,7 @@ dtb-$(CONFIG_CPU_RK3588) += \
rock-5a-rpi-camera-v1_3.dtbo \
rock-5b-allnet-5inch-display.dtbo \
rock-5b-okdo-5mp-camera.dtbo \
rock-5b-radxa-camera-12m-577.dtbo \
rock-5b-radxa-camera-13m-214.dtbo \
rock-5b-radxa-camera-4k.dtbo \
rock-5b-radxa-camera-8m-219.dtbo \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
/dts-v1/;
/plugin/;

#include <dt-bindings/clock/rk3588-cru.h>
#include <dt-bindings/power/rk3588-power.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>

/ {
metadata {
title = "Enable Radxa Camera 12M 577";
compatible = "radxa,rock-5a", "radxa,rock-5c";
category = "camera";
exclusive = "GPIO1_D2","GPIO1_D3","csi2_dphy0","i2c3";
description = "Enable Radxa Camera 12M 577.";
};
};

&{/} {
camera_power_gpio: camera-power-gpio {
compatible = "regulator-fixed";
regulator-name = "camera_power_gpio";
regulator-always-on;
enable-active-high;
gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&cam_power_gpio>;
};
};

&i2c3 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

imx577: imx577@1a {
status = "okay";
compatible = "sony,imx577";
reg = <0x1a>;
clocks = <&cru CLK_MIPI_CAMARAOUT_M2>;
clock-names = "xvclk";
pinctrl-names = "default";
pinctrl-0 = <&mipim0_camera2_clk>;
power-domains = <&power RK3588_PD_VI>;
reset-gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
rockchip,camera-module-index = <0>;
rockchip,camera-module-facing = "back";
rockchip,camera-module-name = "RADXA-CAMERA-12M";
rockchip,camera-module-lens-name = "default";
port {
imx577_out0: endpoint {
remote-endpoint = <&mipidphy0_in_ucam0>;
data-lanes = <1 2 3 4>;
};
};
};
};

&csi2_dphy0_hw {
status = "okay";
};

&csi2_dphy0 {
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;

mipidphy0_in_ucam0: endpoint@1 {
reg = <1>;
remote-endpoint = <&imx577_out0>;
data-lanes = <1 2 3 4>;
};
};

port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;

csidphy0_out: endpoint@0 {
reg = <0>;
remote-endpoint = <&mipi2_csi2_input>;
};
};
};
};

&mipi2_csi2 {
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;

mipi2_csi2_input: endpoint@1 {
reg = <1>;
remote-endpoint = <&csidphy0_out>;
};
};

port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;

mipi2_csi2_output: endpoint@0 {
reg = <0>;
remote-endpoint = <&cif_mipi2_in0>;
};
};
};
};

&rkcif {
status = "okay";
};

&rkcif_mipi_lvds2 {
status = "okay";

port {
cif_mipi2_in0: endpoint {
remote-endpoint = <&mipi2_csi2_output>;
};
};
};

&rkcif_mipi_lvds2_sditf {
status = "okay";

port {
mipi_lvds2_sditf: endpoint {
remote-endpoint = <&isp0_vir0>;
};
};
};

&rkcif_mmu {
status = "okay";
};

&isp0_mmu {
status = "okay";
};

&rkisp0 {
status = "okay";
};

&rkisp0_vir0 {
status = "okay";

port {
#address-cells = <1>;
#size-cells = <0>;

isp0_vir0: endpoint@0 {
reg = <0>;
remote-endpoint = <&mipi_lvds2_sditf>;
};
};
};

&pinctrl {
camera {
cam_power_gpio: cam-power-gpio {
rockchip,pins = <1 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
/dts-v1/;
/plugin/;

#include <dt-bindings/clock/rk3588-cru.h>
#include <dt-bindings/power/rk3588-power.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>

/ {
metadata {
title = "Enable Radxa Camera 12M 577";
compatible = "radxa,rock-5b";
category = "camera";
exclusive = "GPIO1_B0","GPIO4_A0","csi2_dphy0","i2c3";
description = "Enable Radxa Camera 12M 577.";
};
};

&{/} {
camera_power_gpio: camera-power-gpio {
compatible = "regulator-fixed";
regulator-name = "camera_power_gpio";
regulator-always-on;
enable-active-high;
gpio = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&cam_power_gpio>;
};
};

&i2c3 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

imx577: imx577@1a {
status = "okay";
compatible = "sony,imx577";
reg = <0x1a>;
clocks = <&cru CLK_MIPI_CAMARAOUT_M3>;
clock-names = "xvclk";
pinctrl-names = "default";
pinctrl-0 = <&mipim0_camera3_clk>;
power-domains = <&power RK3588_PD_VI>;
reset-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_HIGH>;
rockchip,camera-module-index = <0>;
rockchip,camera-module-facing = "back";
rockchip,camera-module-name = "RADXA-CAMERA-12M";
rockchip,camera-module-lens-name = "default";
port {
imx577_out0: endpoint {
remote-endpoint = <&mipidphy0_in_ucam0>;
data-lanes = <1 2 3 4>;
};
};
};
};

&csi2_dphy0_hw {
status = "okay";
};

&csi2_dphy0 {
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;

mipidphy0_in_ucam0: endpoint@1 {
reg = <1>;
remote-endpoint = <&imx577_out0>;
data-lanes = <1 2 3 4>;
};
};

port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;

csidphy0_out: endpoint@0 {
reg = <0>;
remote-endpoint = <&mipi2_csi2_input>;
};
};
};
};

&mipi2_csi2 {
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;

mipi2_csi2_input: endpoint@1 {
reg = <1>;
remote-endpoint = <&csidphy0_out>;
};
};

port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;

mipi2_csi2_output: endpoint@0 {
reg = <0>;
remote-endpoint = <&cif_mipi2_in0>;
};
};
};
};

&rkcif {
status = "okay";
};

&rkcif_mipi_lvds2 {
status = "okay";

port {
cif_mipi2_in0: endpoint {
remote-endpoint = <&mipi2_csi2_output>;
};
};
};

&rkcif_mipi_lvds2_sditf {
status = "okay";

port {
mipi_lvds2_sditf: endpoint {
remote-endpoint = <&isp0_vir0>;
};
};
};

&rkcif_mmu {
status = "okay";
};

&isp0_mmu {
status = "okay";
};

&rkisp0 {
status = "okay";
};

&rkisp0_vir0 {
status = "okay";

port {
#address-cells = <1>;
#size-cells = <0>;

isp0_vir0: endpoint@0 {
reg = <0>;
remote-endpoint = <&mipi_lvds2_sditf>;
};
};
};

&pinctrl {
camera {
cam_power_gpio: cam-power-gpio {
rockchip,pins = <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};