From patchwork Mon Mar 2 10:18:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yannick FERTRE X-Patchwork-Id: 11415223 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F366B17E0 for ; Mon, 2 Mar 2020 10:18:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D2D0021739 for ; Mon, 2 Mar 2020 10:18:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=st.com header.i=@st.com header.b="ly1l1Lrf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727426AbgCBKSm (ORCPT ); Mon, 2 Mar 2020 05:18:42 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:46848 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727267AbgCBKSm (ORCPT ); Mon, 2 Mar 2020 05:18:42 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 022AHOdU029111; Mon, 2 Mar 2020 11:18:35 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=sQGS3ajcizRpXz7eztz3fMHKRX1ok8Cx3ATqa3t8sXI=; b=ly1l1LrfmdW+OA8JjznUO/o8/hrhHzc8ZE1lYr+bUD0ZbxNLB8bH8vsDmC2sV5HO8FgH 4gM0FO13G6HTzpMSinxFUGe0S8TsPsuwlbZnjRfRUo6BL6I6mId0juive/qBoBXNUrkO rtbzHbR2BT8YK5ghnPD1EpE/035ubzQf9YSwudleXKhqGp3EHiqKPTxMuAM5S6BSP1dB XrbyfKOrJMizyQuD88IOszjxAA6YQ39yNig774CbYT0XA+pNa5kl4CYI+DOIxfEvz5T2 lcz93ysZ3/a7iFP0DmljDLUBrVoFZWaLd3z3lpQxeTw6nJv5adsLNtiCBW2Ux5+9ZHYi zw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2yffqpjqar-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Mar 2020 11:18:35 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7B46A100038; Mon, 2 Mar 2020 11:18:30 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag6node1.st.com [10.75.127.16]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 688A32B62F4; Mon, 2 Mar 2020 11:18:30 +0100 (CET) Received: from localhost (10.75.127.44) by SFHDAG6NODE1.st.com (10.75.127.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 2 Mar 2020 11:18:29 +0100 From: Yannick Fertre To: Bastien Nocera , Dmitry Torokhov , Rob Herring , Mark Rutland , Benjamin Gaignard , Yannick Fertre , , , Subject: [PATCH v1 1/2] dt-bindings: touchscreen: goodix: support of gt9147 Date: Mon, 2 Mar 2020 11:18:27 +0100 Message-ID: <1583144308-3781-2-git-send-email-yannick.fertre@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583144308-3781-1-git-send-email-yannick.fertre@st.com> References: <1583144308-3781-1-git-send-email-yannick.fertre@st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG1NODE1.st.com (10.75.127.1) To SFHDAG6NODE1.st.com (10.75.127.16) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-03-02_03:2020-02-28,2020-03-02 signatures=0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Add support for it by adding compatible. The chip data on GT9147 is similar to GT912, like - config data register has 0x8047 address - config data register max len is 240 - config data checksum has 8-bit Signed-off-by: Yannick Fertre Acked-by: Rob Herring --- Documentation/devicetree/bindings/input/touchscreen/goodix.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml b/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml index d7c3262..9f65d67 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml @@ -21,6 +21,7 @@ properties: - goodix,gt911 - goodix,gt9110 - goodix,gt912 + - goodix,gt9147 - goodix,gt927 - goodix,gt9271 - goodix,gt928 From patchwork Mon Mar 2 10:18:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yannick FERTRE X-Patchwork-Id: 11415219 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C2558109A for ; Mon, 2 Mar 2020 10:18:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9F92B21739 for ; Mon, 2 Mar 2020 10:18:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=st.com header.i=@st.com header.b="MLjyrgYA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727406AbgCBKSm (ORCPT ); Mon, 2 Mar 2020 05:18:42 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:46850 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726654AbgCBKSm (ORCPT ); Mon, 2 Mar 2020 05:18:42 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 022AHPre029337; Mon, 2 Mar 2020 11:18:35 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=lVNZlW2TEVzdSx5uY5AV+8wsV6wkYAOCEPlhpaxFhqE=; b=MLjyrgYA4M86XIJV8V7CqZt4mKdphl5A8zC7n7GdYWWo/M8so1U+8ZgLWDXQzUc0MZav edN/c6ChqRYWX8ssrxtoN2DFg6W2YS7WEszimG4CYm8LHyfDKZxwZ+q3em7TeWZoyM4F M7Ut6WWdNQvzW3DUsVXy64iQgihAn41cbBc2DW36eKgEHOCX39fJCrCK13+S/6SrO98c 6hT42Ffzs7eW/ZukXB1oCVRS73NiqT9W7yx7dIdIUDYSuxSjAgNW29boqB4EWcAIeDwH d2nnDfleC7Nv3w798YPN5tnc13vYQ7dIHb+z/RZHIAA4cH/FP8YJ9EAuhLyONf6uggp/ EQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2yffqpjqat-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Mar 2020 11:18:35 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3008C10003A; Mon, 2 Mar 2020 11:18:31 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag6node1.st.com [10.75.127.16]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 243CF2B62F5; Mon, 2 Mar 2020 11:18:31 +0100 (CET) Received: from localhost (10.75.127.46) by SFHDAG6NODE1.st.com (10.75.127.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 2 Mar 2020 11:18:30 +0100 From: Yannick Fertre To: Bastien Nocera , Dmitry Torokhov , Rob Herring , Mark Rutland , Benjamin Gaignard , Yannick Fertre , , , Subject: [PATCH v1 2/2] Input: goodix - support gt9147 touchpanel Date: Mon, 2 Mar 2020 11:18:28 +0100 Message-ID: <1583144308-3781-3-git-send-email-yannick.fertre@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583144308-3781-1-git-send-email-yannick.fertre@st.com> References: <1583144308-3781-1-git-send-email-yannick.fertre@st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG1NODE3.st.com (10.75.127.3) To SFHDAG6NODE1.st.com (10.75.127.16) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-03-02_03:2020-02-28,2020-03-02 signatures=0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Add support for it by adding compatible and supported chip data (default settings used). The chip data on GT9147 is similar to GT912, like - config data register has 0x8047 address - config data register max len is 240 - config data checksum has 8-bit Signed-off-by: Yannick Fertre Reviewed-by: Bastien Nocera --- drivers/input/touchscreen/goodix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index 0403102..8851a35 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -251,6 +251,7 @@ static const struct goodix_chip_data *goodix_get_chip_data(u16 id) return >911_chip_data; case 912: + case 9147: case 967: return >967_chip_data; @@ -1054,6 +1055,7 @@ static const struct of_device_id goodix_of_match[] = { { .compatible = "goodix,gt9271" }, { .compatible = "goodix,gt928" }, { .compatible = "goodix,gt967" }, + { .compatible = "goodix,gt9147",}, { } }; MODULE_DEVICE_TABLE(of, goodix_of_match);