Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp882991imj; Fri, 15 Feb 2019 08:20:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IYtNh0fSxLimFtNW9W2ekj+Yxgf56agcmSMRB8nJf75yKYBpxrokSMRDEbCkDzD1O37sLHI X-Received: by 2002:a17:902:64:: with SMTP id 91mr11351040pla.229.1550247627603; Fri, 15 Feb 2019 08:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247627; cv=none; d=google.com; s=arc-20160816; b=FsaWu+Ma1J1at+RFYhhDB4lv9Ea2ITF1P5lCb4CQCadN0rP8fKrUQIKl6GxPI6XIrQ exejL1oT/3F6r1mmfuYoUOstM8CDB2N6eoRGiHto+KZIu77oKbsyXfL1DdgPklLmgPji /f7AJngtxoPFxdJa5rHIHbCafW4r9MludB4CwD2h2ZGH3O4FjrBTyNGr2OfSBmXIO4HI zeg4vwkh986xztnY3S141HGAcQgTbXVLIWYa1axyMnWOMaIBCznZtCcibc90OLKvb6Gs 1N8gnUQAtUXIW7AqPSSDJt8LbFjAK1ppZw4p/F5/BW/Mb9cuXAjVsE157LxXEU4f81jj jUww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=Lekc/0b3gbUgYzAvk4aoFrSP8qt7Ka2OmPlTlgXTBRQ=; b=z6zx50UKUWcBS1kTEyzrtfXFi8t9h39S4pX947Uj7bo35SJfpKEKzdV1P4rfC2b1QJ /Ss8JefDtVKKm/DH8PN+tZxGoorz62zpTPSlOimNeXqUHYQO6RPaEsmunMtWqQIRs6E2 3vSrB/FFK/EtShhqVN/IxUrXrYaNpyke9O7RvV0JqX4jDLITxXnut/5gz/QzB7riUMqq cLQQcw1atMAvSawiON+hat89K9tQG7dQ9I/sQrJYhpFQcjMInaF5e6TD6dCSrwdNGrUp tPRdGMAzjfXotJvbFrl7sFIcWFREroXarPuEkDVS4HzS/TciDIDZkNLVxvi3GDVrMvBY rafg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f67si5743971pgc.594.2019.02.15.08.20.11; Fri, 15 Feb 2019 08:20:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437171AbfBOOMC (ORCPT + 99 others); Fri, 15 Feb 2019 09:12:02 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:44675 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405514AbfBOOMA (ORCPT ); Fri, 15 Feb 2019 09:12:00 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id B8D4DFB05; Fri, 15 Feb 2019 15:11:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EKDJlwlJj3iu; Fri, 15 Feb 2019 15:11:53 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 4A4AA48DC3; Fri, 15 Feb 2019 15:11:53 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Dmitry Torokhov , Rob Herring , Mark Rutland , Bastien Nocera , Matthias Brugger , =?UTF-8?q?Guido=20G=C3=BCnther?= , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v3 1/3] input: goodix - support Goodix gt5688 Date: Fri, 15 Feb 2019 15:11:51 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From what I've seen in vendor trees it's fine to treat this as gt1x¹. Tested on the Purism Librem 5 Devkit (Rocktech JH057N00900 panel). [1]: https://github.com/TadiT7/android_kernel_mtk-4.4/tree/master/drivers/input/touchscreen/mediatek/GT5688 Signed-off-by: Guido Günther Reviewed-by: Bastien Nocera --- Documentation/devicetree/bindings/input/touchscreen/goodix.txt | 1 + drivers/input/touchscreen/goodix.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix.txt b/Documentation/devicetree/bindings/input/touchscreen/goodix.txt index f7e95c52f3c7..57d3d8870a09 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/goodix.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/goodix.txt @@ -3,6 +3,7 @@ Device tree bindings for Goodix GT9xx series touchscreen controller Required properties: - compatible : Should be "goodix,gt1151" + or "goodix,gt5688" or "goodix,gt911" or "goodix,gt9110" or "goodix,gt912" diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index f2d9c2c41885..47b1ced41576 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -216,6 +216,7 @@ static const struct goodix_chip_data *goodix_get_chip_data(u16 id) { switch (id) { case 1151: + case 5688: return >1x_chip_data; case 911: @@ -942,6 +943,7 @@ MODULE_DEVICE_TABLE(acpi, goodix_acpi_match); #ifdef CONFIG_OF static const struct of_device_id goodix_of_match[] = { { .compatible = "goodix,gt1151" }, + { .compatible = "goodix,gt5688" }, { .compatible = "goodix,gt911" }, { .compatible = "goodix,gt9110" }, { .compatible = "goodix,gt912" }, -- 2.20.1