Skip to content

Commit

Permalink
dts: k230: update CSI dts, support bananapi K230D
Browse files Browse the repository at this point in the history
Signed-off-by: 黄子懿 <[email protected]>
  • Loading branch information
MrThanlon authored and RevySR committed Oct 16, 2024
1 parent ad82ba5 commit a597154
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 2 deletions.
17 changes: 17 additions & 0 deletions arch/riscv/boot/dts/canaan/bananapi-canmv-k230d-zero.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,20 @@
&lcd {
dsi_reset-gpios = <&gpio1_ports 5 GPIO_ACTIVE_HIGH>;
};

&mipi0 {
// set to csi2
id = <2>;
reg = <0x0 0x9000a800 0x0 0x800>;
interrupts = <121 IRQ_TYPE_LEVEL_HIGH>;
resets = <&sysctl_reset
K230_RESET_CSI2_REG_OFFSET
K230_RESET_CSI2_TYPE
K230_RESET_CSI2_DONE_BIT
K230_RESET_CSI2_ASSERT_BIT>,
<&sysctl_reset
K230_RESET_M2_REG_OFFSET
K230_RESET_M2_TYPE
K230_RESET_M2_DONE_BIT
K230_RESET_M2_ASSERT_BIT>;
};
42 changes: 40 additions & 2 deletions arch/riscv/boot/dts/canaan/k230.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,9 @@
status = "okay";
};

mipi: mipi.0 {
mipi0: mipi.0 {
compatible = "verisilicon,mipi";
id = <1>;
id = <0>;
reg = <0x0 0x90009800 0x0 0x800>;
interrupts = <115 IRQ_TYPE_LEVEL_HIGH>;
resets = <&sysctl_reset
Expand All @@ -571,6 +571,44 @@
status = "okay";
};

mipi1: mipi.1 {
compatible = "verisilicon,mipi";
id = <1>;
reg = <0x0 0x9000a000 0x0 0x800>;
interrupts = <118 IRQ_TYPE_LEVEL_HIGH>;
resets = <&sysctl_reset
K230_RESET_CSI1_REG_OFFSET
K230_RESET_CSI1_TYPE
K230_RESET_CSI1_DONE_BIT
K230_RESET_CSI1_ASSERT_BIT>,
<&sysctl_reset
K230_RESET_M1_REG_OFFSET
K230_RESET_M1_TYPE
K230_RESET_M1_DONE_BIT
K230_RESET_M1_ASSERT_BIT>;
reset-names = "csi", "sensor";
status = "disabled";
};

mipi2: mipi.2 {
compatible = "verisilicon,mipi";
id = <2>;
reg = <0x0 0x9000a800 0x0 0x800>;
interrupts = <121 IRQ_TYPE_LEVEL_HIGH>;
resets = <&sysctl_reset
K230_RESET_CSI2_REG_OFFSET
K230_RESET_CSI2_TYPE
K230_RESET_CSI2_DONE_BIT
K230_RESET_CSI2_ASSERT_BIT>,
<&sysctl_reset
K230_RESET_M2_REG_OFFSET
K230_RESET_M2_TYPE
K230_RESET_M2_DONE_BIT
K230_RESET_M2_ASSERT_BIT>;
reset-names = "csi", "sensor";
status = "disabled";
};

display: display-subsystem {
compatible = "canaan,display-subsystem";
ports = <&vo_out>;
Expand Down
2 changes: 2 additions & 0 deletions arch/riscv/configs/k230_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,5 @@ CONFIG_DRM_LONTIUM_LT9611=y
CONFIG_CFG80211=y
CONFIG_CFG80211_WEXT=y
CONFIG_MAC80211=y
CONFIG_MEDIA_USB_SUPPORT=y
CONFIG_USB_VIDEO_CLASS=y

0 comments on commit a597154

Please sign in to comment.