riscv: dts: light-lpi4a-console: add ydx trackpoint, thank ice
authorLu Hui <luhui@sipeed.com>
Mon, 25 Dec 2023 06:52:24 +0000 (14:52 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 13 Mar 2024 06:58:59 +0000 (15:58 +0900)
(cherry picked from commit 37075d067bfe8a723cc390d0bd0393577f607de2)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
arch/riscv/boot/dts/thead/light-lpi4a-console.dts

index 24c9931deb9172ad7821c59e4371403659215837..3dcaa9e4da00031510fd52dc50f5d9850dbb98ad 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (C) 2023 Sipeed.
  */
 
+#include <dt-bindings/interrupt-controller/irq.h>
 #include "light-lpi4a-laptop.dts"
 
 / {
 };
 
 &i2c2 {
-       /*
-       ydx@15 {
-               compatible = "ydx";
+       /* thank ice */
+       trackpoint: trackpad@15 {
+               compatible = "hid-over-i2c";
                reg = <0x15>;
+               hid-descr-addr = <0x0020>;
+               interrupt-parent = <&gpio1_porta>;
+               interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
        };
-       */
 };
 
 &cw2015 {