Skip to content

Commit

Permalink
dts: k230: update K230 EVB defconfig and DTS
Browse files Browse the repository at this point in the history
Signed-off-by: 黄子懿 <[email protected]>
  • Loading branch information
MrThanlon authored and RevySR committed Jul 10, 2024
1 parent 011eb4c commit 512d048
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 4 deletions.
52 changes: 48 additions & 4 deletions arch/riscv/boot/dts/canaan/k230-evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,52 @@
};

&mmc_sd1{
status = "okay";
no-1-8-v;
cap-sd-highspeed;
mshc_ctrl_r = <0x00>;
status = "okay";
no-1-8-v;
cap-sd-highspeed;
mshc_ctrl_r = <0x00>;
};

&usb0 {
status = "okay";
};

&usb1 {
status = "okay";
};

&i2c4 {
status = "okay";
gt911: touchscreen@5d {
compatible = "goodix,gt911";
reg = <0x14>;

interrupt-parent = <&gpio0_ports>;
interrupts = <29 IRQ_TYPE_EDGE_RISING>; /*IRQ_TYPE_LEVEL_HIGH*/
irq-gpios = <&gpio0_ports 29 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio0_ports 30 GPIO_ACTIVE_HIGH>;

goodix,cfg-group0 = [
44 38 04 80 07 05 35 00 01 08
28 08 50 32 03 05 00 00 00 00
11 11 05 18 1A 1E 14 89 29 0C
3D 3F 0C 08 00 00 00 2A 02 2C
32 00 00 00 00 03 64 32 00 00
00 2D 5A 94 D5 02 00 00 00 04
8E 30 00 80 37 00 74 3F 00 69
49 00 60 54 00 60 00 00 00 00
00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00
00 00 18 16 14 12 10 0E 0C 0A
08 06 04 02 FF FF 00 00 00 00
00 00 00 00 00 00 00 00 00 00
00 00 00 02 04 06 08 0A 0F 10
12 22 21 20 1F 1E 1D 1C 18 16
FF FF FF FF FF FF FF FF 00 00
00 00 00 00 00 00 00 00 00 00
00 00 00 00 34 01
];
status = "okay";
};
};
1 change: 1 addition & 0 deletions arch/riscv/configs/k230_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ CONFIG_I2C_CHARDEV=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_EDT_FT5X06=y
CONFIG_TOUCHSCREEN_GOODIX=y
CONFIG_INPUT_EVDEV=y
CONFIG_GPU_VGLITE=y
CONFIG_BACKLIGHT_CLASS_DEVICE=y

0 comments on commit 512d048

Please sign in to comment.