Skip to content

Commit

Permalink
dts: k230: add ISP node
Browse files Browse the repository at this point in the history
Signed-off-by: 黄子懿 <[email protected]>
  • Loading branch information
MrThanlon committed Jul 26, 2024
1 parent 82dc121 commit 41ad776
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions arch/riscv/boot/dts/canaan/k230.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,94 @@
status = "okay";
};

isp: isp.0 {
compatible = "verisilicon,isp";
id = <0>;
reg = <0x0 0x90000000 0x0 0x8000>;
interrupts = <129 IRQ_TYPE_LEVEL_HIGH>, <127 IRQ_TYPE_LEVEL_HIGH>, <128 IRQ_TYPE_LEVEL_HIGH>;

Check failure on line 543 in arch/riscv/boot/dts/canaan/k230.dtsi

View workflow job for this annotation

GitHub Actions / checkpatch

WARNING: line length of 117 exceeds 100 columns
resets = <&sysctl_reset K230_RESET_ISP_REG_OFFSET K230_RESET_ISP_TYPE K230_RESET_ISP_DONE_BIT K230_RESET_ISP_ASSERT_BIT>;

Check failure on line 544 in arch/riscv/boot/dts/canaan/k230.dtsi

View workflow job for this annotation

GitHub Actions / checkpatch

WARNING: line length of 145 exceeds 100 columns
reset-names = "isp";
status = "okay";
};

mipi: mipi.0 {
compatible = "verisilicon,mipi";
id = <1>;
reg = <0x0 0x90009800 0x0 0x800>;
interrupts = <115 IRQ_TYPE_LEVEL_HIGH>;
resets = <&sysctl_reset
K230_RESET_CSI0_REG_OFFSET
K230_RESET_CSI0_TYPE
K230_RESET_CSI0_DONE_BIT
K230_RESET_CSI0_ASSERT_BIT
>,
<&sysctl_reset
K230_RESET_M0_REG_OFFSET
K230_RESET_M0_TYPE
K230_RESET_M0_DONE_BIT
K230_RESET_M0_ASSERT_BIT
>;
reset-names = "csi", "sensor";
status = "okay";
};

vvcam_isp_0: vvcam_isp.0 {
compatible = "verisilicon,isp-v4l2";
status = "okay";
id = <0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;
vvcam_isp_port0_mp: endpoint {
remote-endpoint = <&vvcam_video0>;
};
};
port@2 {
reg = <2>;
vvcam_isp_port0_sp1: endpoint {
remote-endpoint = <&vvcam_video1>;
};
};
port@3 {
reg = <3>;
vvcam_isp_port0_sp2: endpoint {
remote-endpoint = <&vvcam_video2>;
};
};
};
};

vvcam_video_0: vvcam_video.0 {
compatible = "verisilicon,video";
id = <0>;
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
vvcam_video0: endpoint {
remote-endpoint = <&vvcam_isp_port0_mp>;
};
};
port@1 {
reg = <1>;
vvcam_video1: endpoint {
remote-endpoint = <&vvcam_isp_port0_sp1>;
};
};
port@2 {
reg = <2>;
vvcam_video2: endpoint {
remote-endpoint = <&vvcam_isp_port0_sp2>;
};
};
};
};

display: display-subsystem {
compatible = "canaan,display-subsystem";
ports = <&vo_out>;
Expand Down

0 comments on commit 41ad776

Please sign in to comment.