Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dts: k230: update CSI dts, support bananapi K230D #181

Merged
merged 1 commit into from
Oct 16, 2024
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
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