forked from ruyisdk/linux-xuantie-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dts: k230: update k230-canmv DTS, add BPI canmv k230d zero DTS
Signed-off-by: 黄子懿 <[email protected]>
- Loading branch information
Showing
8 changed files
with
221 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// SPDX-License-Identifier: GPL-2.0 OR MIT | ||
/* | ||
* Copyright (C) 2024 Yangyu Chen <[email protected]> | ||
*/ | ||
|
||
#include "k230.dtsi" | ||
#include "display-st7701-480x800.dtsi" | ||
|
||
/ { | ||
model = "Banana Pi CanMV K230D Zero"; | ||
compatible = "canaan,canmv-k230", "canaan,kendryte-k230"; | ||
|
||
aliases { | ||
serial2 = &uart2; | ||
}; | ||
|
||
chosen { | ||
stdout-path = "serial0:115200n8"; | ||
bootargs = "root=/dev/mmcblk0p2 loglevel=8 rw rootdelay=4 \ | ||
rootfstype=ext4 console=ttyS0,115200 earlycon=sbi"; | ||
}; | ||
|
||
ddr: memory@0 { | ||
device_type = "memory"; | ||
reg = <0x0 0x0 0x0 0x8000000>; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
status = "okay"; | ||
}; | ||
&uart2 { | ||
status = "okay"; | ||
}; | ||
&mmc_sd1{ | ||
status = "okay"; | ||
no-1-8-v; | ||
cap-sd-highspeed; | ||
mshc_ctrl_r = <0x00>; | ||
}; | ||
&usb0 { | ||
status = "okay"; | ||
}; | ||
&usb1 { | ||
status = "okay"; | ||
}; | ||
|
||
&i2c4 { | ||
status = "okay"; | ||
touchscreen@38 { | ||
compatible = "edt,edt-ft5306"; | ||
reg = <0x38>; | ||
reset-gpios = <&gpio1_ports 4 GPIO_ACTIVE_LOW>; | ||
interrupt-parent = <&gpio1_ports>; | ||
interrupts = <27 IRQ_TYPE_EDGE_FALLING>; | ||
}; | ||
}; | ||
|
||
&lcd { | ||
dsi_reset-gpios = <&gpio1_ports 5 GPIO_ACTIVE_HIGH>; | ||
}; |
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,56 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
&vo { | ||
vth_line = <11>; | ||
}; | ||
|
||
&lcd { | ||
panel-width-mm = <1080>; | ||
panel-height-mm = <1920>; | ||
panel-dsi-lane = <4>; | ||
|
||
panel-init-sequence = [ | ||
39 00 04 B9 FF 83 99 | ||
39 00 02 D2 AA | ||
39 00 10 B1 02 04 71 91 01 32 33 11 11 ab 4d 56 73 02 02 | ||
39 00 10 B2 00 80 80 ae 05 07 5a 11 00 00 10 1e 70 03 d4 | ||
39 00 2d B4 00 FF 02 C0 02 c0 00 00 08 00 04 06 00 32 04 0a | ||
08 21 03 01 | ||
00 0f b8 8b 02 c0 02 c0 00 00 08 00 04 06 00 32 04 0a 08 01 | ||
00 0f b8 01 | ||
39 00 22 D3 00 00 00 00 00 00 06 00 00 10 04 00 04 00 00 00 | ||
00 00 00 00 00 00 00 01 00 05 05 07 00 00 00 05 40 | ||
39 00 21 D5 18 18 19 19 18 18 21 20 01 00 07 06 05 04 03 02 | ||
18 18 18 18 18 18 2f 2f 30 30 31 31 18 18 18 18 | ||
39 00 21 D6 18 18 19 19 40 40 20 21 02 03 04 05 06 07 00 01 | ||
40 40 40 40 40 40 2f 2f 30 30 31 31 40 40 40 40 | ||
39 00 11 D8 a2 aa 02 a0 a2 a8 02 a0 b0 00 00 00 b0 00 00 00 | ||
39 00 02 BD 01 | ||
39 00 11 D8 B0 00 00 00 B0 00 00 00 E2 AA 03 F0 E2 AA 03 F0 | ||
39 00 02 BD 02 | ||
39 00 09 D8 E2 AA 03 F0 E2 AA 03 F0 | ||
39 00 02 BD 00 | ||
39 00 03 B6 8D 8D | ||
39 00 02 CC 04 | ||
39 00 03 C6 FF F9 | ||
39 00 37 E0 00 12 1f 1a 40 4a 59 55 5e 67 6f 75 7a 82 8b 90 | ||
95 9f a3 ad a2 b2 B6 5e 5a 65 77 00 12 1f 1a 40 4a 59 55 5e | ||
67 6f 75 7a 82 8b 90 95 | ||
9f a3 ad a2 b2 B6 5e 5a 65 77 | ||
39 ff 01 11 | ||
39 ff 01 29 | ||
]; | ||
|
||
display-timings { | ||
timing-0 { | ||
clock-frequency = <74250000>; | ||
hactive = <1080>; | ||
vactive = <1920>; | ||
hfront-porch = <40>; | ||
hback-porch = <20>; | ||
hsync-len = <20>; | ||
vfront-porch = <206>; | ||
vback-porch = <8>; | ||
vsync-len = <5>; | ||
}; | ||
}; | ||
}; |
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,71 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
&vo { | ||
vth_line = <10>; | ||
}; | ||
|
||
&lcd { | ||
panel-width-mm = <480>; | ||
panel-height-mm = <800>; | ||
panel-dsi-lane = <2>; | ||
|
||
panel-init-sequence = [ | ||
39 00 06 ff 77 01 00 00 13 | ||
39 00 02 ef 08 | ||
39 00 06 ff 77 01 00 00 10 | ||
39 00 03 c0 63 00 | ||
39 00 03 c1 10 02 | ||
39 00 03 c2 31 02 | ||
39 00 02 cc 10 | ||
39 00 11 b0 c0 0c 92 0c 10 05 02 0d 07 21 04 53 11 6a 32 1f | ||
39 00 11 b1 c0 87 cf 0c 10 06 00 03 08 1d 06 54 12 e6 ec 0f | ||
39 00 06 ff 77 01 00 00 11 | ||
39 00 02 b0 5d | ||
39 00 02 b1 62 | ||
39 00 02 b2 82 | ||
39 00 02 b3 80 | ||
39 00 02 b5 42 | ||
39 00 02 b7 85 | ||
39 00 02 b8 20 | ||
39 00 02 c0 09 | ||
39 00 02 c1 78 | ||
39 00 02 c2 78 | ||
39 00 02 d0 88 | ||
39 ff 02 ee 42 | ||
39 00 04 e0 00 00 02 | ||
39 00 0c e1 04 a0 06 a0 05 a0 07 a0 00 44 44 | ||
39 00 0d e2 00 00 33 33 01 a0 00 00 01 a0 00 00 | ||
39 00 05 e3 00 00 33 33 | ||
39 00 03 e4 44 44 | ||
39 00 11 e5 0c 30 a0 a0 0e 32 a0 a0 08 2c a0 a0 0a 2e a0 a0 | ||
39 00 05 e6 00 00 33 33 | ||
39 00 03 e7 44 44 | ||
39 00 11 e8 0d 31 a0 a0 0f 33 a0 a0 09 2d a0 a0 0b 2f a0 a0 | ||
39 00 08 eb 00 01 e4 e4 44 88 00 | ||
39 00 11 ed ff f5 47 6f 0b a1 a2 bf fb 2a 1a b0 f6 74 5f ff | ||
39 00 07 ef 08 08 08 40 3f 64 | ||
39 00 06 ff 77 01 00 00 13 | ||
39 00 03 e8 00 0e | ||
39 00 06 ff 77 01 00 00 00 | ||
39 ff 01 11 | ||
39 00 06 ff 77 01 00 00 13 | ||
39 ff 03 e8 00 0c | ||
39 00 03 e8 00 00 | ||
39 00 06 ff 77 01 00 00 00 | ||
39 00 02 3a 50 | ||
39 ff 01 29 | ||
]; | ||
|
||
display-timings { | ||
timing-0 { | ||
clock-frequency = <39600000>; | ||
hactive = <480>; | ||
vactive = <800>; | ||
hfront-porch = <80>; | ||
hback-porch = <20>; | ||
hsync-len = <20>; | ||
vfront-porch = <220>; | ||
vback-porch = <70>; | ||
vsync-len = <10>; | ||
}; | ||
}; | ||
}; |
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
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
Oops, something went wrong.