Hi, Gregor. Just wrote some my test module-stub, mix of acpi and just direct i2cdev creation on i2c-4 0x48, anyway it is even possible just used echo icn8528 0x48 > /sys/bus/i2c/devices/i2c-4/newdevice instead it. The main question is - wakeup chip, and gpios pins.
Actually, the procedure of hw_init icn85xx taken from https://github.com/bbelos/rk3188-kernel/blob/master/drivers/input/touchscreen/ICN8503/icn85xx.c is the following: MAIN QUESTIONS: how to find out analogs of CTP_RST_PORT, CTP_POWER_PORT. CTP_NAME is CHPN0001 (taken from ACPI). Kind regards, Serge Kolotylo. PS: actually I am missing a good explanation also of how to check what i have received from ACPI when I've used in during i2c client driver. I will ask this part at linux-input in ACPI and touchscreen thread. static int icn85xx_hw_init(void) { int err = 0; err = gpio_request(CTP_RST_PORT, CTP_NAME); if ( err ) { err = -EINVAL; return err; } err = gpio_direction_output(CTP_RST_PORT, 1); if ( err ) { err = -EINVAL; return err; } if(gpio_request(POWER_PORT,NULL) != 0){ gpio_free(POWER_PORT); printk("zhongchu_init_platform_hw gpio_request error\n"); return -EIO; } gpio_direction_output(POWER_PORT, 0); gpio_set_value(POWER_PORT,GPIO_LOW); msleep(20); gpio_set_value_cansleep(CTP_RST_PORT, 0); msleep(100); gpio_set_value_cansleep(CTP_RST_PORT, 1); msleep(300); return err; } -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
