From 964da7030d6bceb265999baba48790b1b4fa978f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=AD=90=E6=87=BF?= Date: Tue, 9 Jul 2024 10:35:21 +0800 Subject: [PATCH] dts: k230: update K230 EVB defconfig and DTS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄子懿 --- arch/riscv/boot/dts/canaan/k230-evb.dts | 52 +++++++++++++++++++++++-- arch/riscv/configs/k230_defconfig | 1 + 2 files changed, 49 insertions(+), 4 deletions(-) diff --git a/arch/riscv/boot/dts/canaan/k230-evb.dts b/arch/riscv/boot/dts/canaan/k230-evb.dts index 21f0fe04d4a2e..6ddfffa188322 100644 --- a/arch/riscv/boot/dts/canaan/k230-evb.dts +++ b/arch/riscv/boot/dts/canaan/k230-evb.dts @@ -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"; + }; }; diff --git a/arch/riscv/configs/k230_defconfig b/arch/riscv/configs/k230_defconfig index 1dce021da19a9..d1512dee1f070 100644 --- a/arch/riscv/configs/k230_defconfig +++ b/arch/riscv/configs/k230_defconfig @@ -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