-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: 黄子懿 <[email protected]>
- Loading branch information
Showing
9 changed files
with
322 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
// SPDX-License-Identifier: GPL-2.0 OR MIT | ||
/* | ||
* Copyright (C) 2024 Yangyu Chen <[email protected]> | ||
*/ | ||
|
||
#include "k230.dtsi" | ||
#include "display-st7701-480x800.dtsi" | ||
|
||
/ { | ||
model = "Canaan CanMV-K230"; | ||
compatible = "canaan,canmv-k230", "canaan,kendryte-k230"; | ||
|
||
aliases { | ||
serial3 = &uart3; | ||
}; | ||
|
||
chosen { | ||
stdout-path = "serial0:115200n8"; | ||
}; | ||
|
||
ddr: memory@0 { | ||
device_type = "memory"; | ||
reg = <0x0 0x0 0x0 0x20000000>; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
status = "okay"; | ||
}; | ||
&uart3 { | ||
status = "okay"; | ||
}; | ||
&mmc_sd1{ | ||
status = "okay"; | ||
no-1-8-v; | ||
cap-sd-highspeed; | ||
mshc_ctrl_r = <0x00>; | ||
}; | ||
|
||
&usb0 { | ||
status = "okay"; | ||
}; | ||
&usb1 { | ||
status = "okay"; | ||
}; | ||
|
||
&i2c3 { | ||
status = "okay"; | ||
}; | ||
|
||
&i2c4 { | ||
status = "okay"; | ||
touchscreen@38 { | ||
compatible = "edt,edt-ft5306"; | ||
reg = <0x38>; | ||
reset-gpios = <&gpio0_ports 21 GPIO_ACTIVE_LOW>; | ||
interrupt-parent = <&gpio0_ports>; | ||
interrupts = <22 IRQ_TYPE_EDGE_FALLING>; | ||
}; | ||
}; | ||
&dsi { | ||
ports { | ||
port@1 { | ||
reg = <1>; | ||
dsi_out_st7701: endpoint { | ||
remote-endpoint = <&st7701_in>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&lcd { | ||
dsi_reset-gpios = <&gpio0_ports 20 GPIO_ACTIVE_HIGH>; | ||
backlight_gpio-gpios = <&gpio0_ports 25 GPIO_ACTIVE_HIGH>; | ||
ports { | ||
port@0 { | ||
reg = <0>; | ||
st7701_in: endpoint { | ||
remote-endpoint = <&dsi_out_st7701>; | ||
}; | ||
}; | ||
}; | ||
}; |
Oops, something went wrong.