From patchwork Tue Jul 31 15:18:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10550909 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E55B11708 for ; Tue, 31 Jul 2018 15:18:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4A902B062 for ; Tue, 31 Jul 2018 15:18:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C84DF2B0E2; Tue, 31 Jul 2018 15:18:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 369712B062 for ; Tue, 31 Jul 2018 15:18:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P2wjT10rTwGY7Tpsgc+qkz8DuO2opqV0q5lddYtTuUY=; b=soFfeb4X4N+qRs M1qdYfbprmxNoEAdGPUQm22UuZFbiuRf1vDtDs4z/keUhr9RPaJ42ZfjMMkyox4+Wg3cX+0NeCuMg s/fIwd6prjml0EY9XbcdlLTvTpVIZVEyGA2BM33mZPWgHz6apCy6adZlaaDQkP7/E/xt/UD+cLYnk 1V3D7Q5dBEy+9GEBcpLENAoFD5mZEjzRFgxQviI6z/bvFU++gC2TzIjaHWL/xhS8i++j3p9urx13b d4nQNuAoaI742PG4iCxBCtmulufcugFOlB9EDIcouToA6ou1tLM/QehVy6zixpzGVMPXtU3tU1YlQ jlZNeltUzZIHh1dwve6w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkWQ8-0008Uy-9G; Tue, 31 Jul 2018 15:18:44 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkWPx-0008Fe-7G for linux-arm-kernel@lists.infradead.org; Tue, 31 Jul 2018 15:18:34 +0000 Received: by mail-lj1-x243.google.com with SMTP id s12-v6so14072292ljj.0 for ; Tue, 31 Jul 2018 08:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OZ94a8W+BvjEbwmHniIBt9d9Nc6fsheuNctdvesDdc8=; b=eXqw1/1CKd3PdVIAa30McnUNJJ4ysC0/HgBx2i00jwKFRhCFW1Xyczpj8H812WrYbA ybPIGIgkpBJmYxWtcyXV5UOz1VrCFT/c8qDzaEuCinzHL5DQdtMJ4JFv4EcwRHvTm97y PyiUDUA1lS4IrM6d2v4Zb04q34TXjTwFxwJhjhZES8eUwTGq504Y+GlWmZxHxdYirFXe HAcdb0tQJw39pIuGGPaJDNs5Oaq5zBp/H27oJiyp1b8/yhZ855iRFca2PsnSEYQIJjKk dsaJo22KMgGGctfHXg3t+xUsebVH1BKUVqBnA8TsPWTIZlmHIn9mXr6Fuhsu6I6StmRu ueGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OZ94a8W+BvjEbwmHniIBt9d9Nc6fsheuNctdvesDdc8=; b=T6b2y80ff5eGQDHO/PraYxmDEnLZ80f2c14gGHAIiFiOWdVB2WHJCIAvBhHoNtsbX9 0lbqK28ffrmKWx3K9e57/dkQoghwP/8BdKgw0WHZlhSTpPjgDU4zw5ckP8dI6MadkeJk H0yH3EhERhlipfXlw1GkBqQPYfA27BjqYY+PdaDg8PCfGEHk1qetO0DSdVG/vV/cwIf8 H3djDgPqc4HenXC6dxIWu/VK0LNjL+VLLm1eiMYLVmwhh1jfWumM4QGWh649T9mlEKPm sBl0v0OyscXEM/E9ggCjLEgQuDO86uDHXXVJClb9zoQcWfOzgzeKqH8T7aF5lmA5V9ur Qw2Q== X-Gm-Message-State: AOUpUlE/jbK/ho/vuJ0oSYD1eeWr9nsLxFgxPb4ArnjcLLvUA3s7NY0R Ao+bwRDqqQ3M4j7kw6IQ7Rg= X-Google-Smtp-Source: AAOMgpdptiUabp5AVa30SIhYXopXkcC0/vAlc9HrefE3Hvtoh/8KgU60xuI/O+ao5PCb9Wr4d5P49Q== X-Received: by 2002:a2e:4d9d:: with SMTP id c29-v6mr15693014ljd.132.1533050301996; Tue, 31 Jul 2018 08:18:21 -0700 (PDT) Received: from localhost.localdomain (user-94-254-173-71.play-internet.pl. [94.254.173.71]) by smtp.googlemail.com with ESMTPSA id p88-v6sm2606209ljp.90.2018.07.31.08.18.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Jul 2018 08:18:21 -0700 (PDT) From: =?utf-8?q?Pawe=C5=82_Chmiel?= To: nick@shmanahar.org Subject: [PATCH v3 1/3] Input: atmel_mxt_ts: Add support for optional regulators. Date: Tue, 31 Jul 2018 17:18:09 +0200 Message-Id: <1533050291-11502-2-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1533050291-11502-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1533050291-11502-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180731_081833_300165_B8E9B4D7 X-CRM114-Status: GOOD ( 20.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, alexandre.belloni@bootlin.com, dmitry.torokhov@gmail.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Pawe=C5=82_Chmiel?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds optional regulators, which can be used to power up touchscreen. After enabling regulators, we need to wait 150msec. This value is taken from official driver. It was tested on Samsung Galaxy i9000 (based on Samsung S5PV210 SOC). Signed-off-by: Paweł Chmiel --- Changes from v2: - Move code enabling regulators into separate method, to make code more readable. Changes from v1: - Enable regulators only if reset_gpio is present. - Switch from devm_regulator_get_optional to devm_regulator_get --- drivers/input/touchscreen/atmel_mxt_ts.c | 65 +++++++++++++++++++++++++++++--- 1 file changed, 59 insertions(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 54fe190fd4bc..2cd7f6db6ba9 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -194,10 +195,10 @@ enum t100_type { /* Delay times */ #define MXT_BACKUP_TIME 50 /* msec */ -#define MXT_RESET_GPIO_TIME 20 /* msec */ #define MXT_RESET_INVALID_CHG 100 /* msec */ #define MXT_RESET_TIME 200 /* msec */ #define MXT_RESET_TIMEOUT 3000 /* msec */ +#define MXT_REGULATOR_DELAY 150 /* msec */ #define MXT_CRC_TIMEOUT 1000 /* msec */ #define MXT_FW_RESET_TIME 3000 /* msec */ #define MXT_FW_CHG_TIMEOUT 300 /* msec */ @@ -310,6 +311,8 @@ struct mxt_data { struct t7_config t7_cfg; struct mxt_dbg dbg; struct gpio_desc *reset_gpio; + struct regulator *vdd_reg; + struct regulator *avdd_reg; /* Cached parameters from object table */ u16 T5_address; @@ -3016,6 +3019,38 @@ static const struct dmi_system_id chromebook_T9_suspend_dmi[] = { { } }; +static int mxt_regulator_enable(struct mxt_data *data) +{ + int error; + + if (data->reset_gpio) { + error = regulator_enable(data->vdd_reg); + if (error) { + dev_err(&data->client->dev, "Failed to enable vdd regulator: %d\n", + error); + return error; + } + + error = regulator_enable(data->avdd_reg); + if (error) { + dev_err(&data->client->dev, "Failed to enable avdd regulator: %d\n", + error); + return error; + } + + /* + * According to maXTouch power sequencing specification, RESET line + * must be kept low until some time after regulators come up to + * voltage + */ + msleep(MXT_REGULATOR_DELAY); + gpiod_set_value(data->reset_gpio, 1); + msleep(MXT_RESET_INVALID_CHG); + } + + return 0; +} + static int mxt_probe(struct i2c_client *client, const struct i2c_device_id *id) { struct mxt_data *data; @@ -3076,6 +3111,22 @@ static int mxt_probe(struct i2c_client *client, const struct i2c_device_id *id) return error; } + data->vdd_reg = devm_regulator_get(&client->dev, "vdd"); + if (IS_ERR(data->vdd_reg)) { + error = PTR_ERR(data->vdd_reg); + dev_err(&client->dev, "Failed to get vdd regulator: %d\n", + error); + return error; + } + + data->avdd_reg = devm_regulator_get(&client->dev, "avdd"); + if (IS_ERR(data->avdd_reg)) { + error = PTR_ERR(data->avdd_reg); + dev_err(&client->dev, "Failed to get avdd regulator: %d\n", + error); + return error; + } + error = devm_request_threaded_irq(&client->dev, client->irq, NULL, mxt_interrupt, IRQF_ONESHOT, client->name, data); @@ -3086,11 +3137,9 @@ static int mxt_probe(struct i2c_client *client, const struct i2c_device_id *id) disable_irq(client->irq); - if (data->reset_gpio) { - msleep(MXT_RESET_GPIO_TIME); - gpiod_set_value(data->reset_gpio, 1); - msleep(MXT_RESET_INVALID_CHG); - } + error = mxt_regulator_enable(data); + if (error) + return error; error = mxt_initialize(data); if (error) @@ -3116,6 +3165,10 @@ static int mxt_remove(struct i2c_client *client) struct mxt_data *data = i2c_get_clientdata(client); disable_irq(data->irq); + if (data->reset_gpio) { + regulator_disable(data->avdd_reg); + regulator_disable(data->vdd_reg); + } sysfs_remove_group(&client->dev.kobj, &mxt_attr_group); mxt_free_input_device(data); mxt_free_object_table(data); From patchwork Tue Jul 31 15:18:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10550911 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DB6E913B8 for ; Tue, 31 Jul 2018 15:19:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7FD52B062 for ; Tue, 31 Jul 2018 15:19:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEF022B0E1; Tue, 31 Jul 2018 15:19:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 621452B062 for ; Tue, 31 Jul 2018 15:19:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6a0B5fwNSWDoGiEPbRMCyIrgidCKqyx2gXErUFXv7h4=; b=rWKfWMQuJhtTkx X3v9DrmI49BteQTSu1c7DXAI3ncZUdY0fFYXdcYCr7HnDXq0ICcxxrf+pbj9HbJ5BG/BiH7oWMRAI sxwgPJLfgMwhQMy/jM+yfEOBcF+hetqE7JQKIDkHImdZq0H1ti7A7tvtXJMEvbUDGQvnYiRi7/+Cc szOJpOrw+I/x7l7DI+M2AiA2hoQtDhqYLHImS6BqpzRWMO5AYHkUMCPxdeJOrN7QTyzwxbOXRMER5 ooxPiqbX9B319xj2HhvJT1hLzOmlfwHC5xZ+jym5rMIOZoZZl/xGvbsTCd0BFn0fwzZnLwfq/eSTz Lh+T4M+ifpmo+ey3Ji0A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkWQe-0000f2-H0; Tue, 31 Jul 2018 15:19:16 +0000 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkWPz-0008Ff-9k for linux-arm-kernel@lists.infradead.org; Tue, 31 Jul 2018 15:18:36 +0000 Received: by mail-lj1-x241.google.com with SMTP id v9-v6so14070002ljk.4 for ; Tue, 31 Jul 2018 08:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oDFpD0XD10AgLdPz8ese+ZwKGg/jgVOPdmYGBME+5IY=; b=E9XHWvhN5FI7YmYY0EdAm/mUUcuzhDrJRJDgxFXh89blslJEGE54hCxGHen4KODisp iJXv1cppINm0Bb/ZBpO83Nx2ecfBAsb+vsXc8ip7kjBSNVNlGRY2D7BoJUJFchaH4/AY JpAjqUmG7x3qr5WqO7+lINTFCxWdat6WAAqQ02SLnxYRN9jrHu2V8nTbKcffeyhBKj8o 6L0ryIitoq0SXNpG/1/CjuOF8JQKGK5Dkc83nqjwjJ+X8A9uUfXpH/ZeGWPltm9Dwe8X VCt0lsk116YSZYOIxYT7QAOmFiXGhSj+xq+lA/nIxjssZPA5lO4rze7kcPG4EB9QzsVm ShqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oDFpD0XD10AgLdPz8ese+ZwKGg/jgVOPdmYGBME+5IY=; b=JDPKZhTZejVUKW7Ofwq/9/4YBC/Cazkho3IEDdKIu6pWra7KSzDIirEcsfuzeMZ1DX DoHJLRnsmz22/VPg3W+VUndetZXWY5jnI5igdDPeRe4tXl6Ux684f0ZDKU4gd4EvOQfK UyFmYVhPBQp5nvbzPFfZHJP1srRlGmRzTDm4HNttRztaLu8A3jnad+eh+sI36uTkRorg +/PmZiZRyNVfFQ/KXwemQSHqgar4a6IaxVqjrXe9HqPq7d6amaj9A3yNCZz/oAbePhuW vtJL5M1xW49tDiCimrdhuZ9Ohabir9YBF/QkGmAmjvgJfT3AEIVIOK3ts2GrYAhVaes8 /2bw== X-Gm-Message-State: AOUpUlFYl+WrXSotSLTD3+RDL7reN/cHF0Ku2jotYz8jTFoqtUMEg3iO vVrqdyvWAQ7+KFp2k/6ECMA= X-Google-Smtp-Source: AAOMgpd5vAZQ4cR3dc+7QPzWJsQzsqW1Uibyl9sL/eIa76qFyGInDJUztPW27RS/EW+naM+neDXscQ== X-Received: by 2002:a2e:6d0a:: with SMTP id i10-v6mr17416037ljc.145.1533050303364; Tue, 31 Jul 2018 08:18:23 -0700 (PDT) Received: from localhost.localdomain (user-94-254-173-71.play-internet.pl. [94.254.173.71]) by smtp.googlemail.com with ESMTPSA id p88-v6sm2606209ljp.90.2018.07.31.08.18.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Jul 2018 08:18:22 -0700 (PDT) From: =?utf-8?q?Pawe=C5=82_Chmiel?= To: nick@shmanahar.org Subject: [PATCH v3 2/3] Input: atmel_mxt_ts: Wait for device be ready for communication Date: Tue, 31 Jul 2018 17:18:10 +0200 Message-Id: <1533050291-11502-3-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1533050291-11502-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1533050291-11502-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180731_081835_339291_D3359156 X-CRM114-Status: GOOD ( 13.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, alexandre.belloni@bootlin.com, dmitry.torokhov@gmail.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Pawe=C5=82_Chmiel?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP According to documentation, device isn't ready for communication, until firmware asserts the CHG line. Add missing wait for this. Signed-off-by: Paweł Chmiel --- drivers/input/touchscreen/atmel_mxt_ts.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 2cd7f6db6ba9..79e08916359f 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -202,6 +202,7 @@ enum t100_type { #define MXT_CRC_TIMEOUT 1000 /* msec */ #define MXT_FW_RESET_TIME 3000 /* msec */ #define MXT_FW_CHG_TIMEOUT 300 /* msec */ +#define MXT_POWERON_DELAY 150 /* msec */ /* Command to unlock bootloader */ #define MXT_UNLOCK_CMD_MSB 0xaa @@ -3046,6 +3047,16 @@ static int mxt_regulator_enable(struct mxt_data *data) msleep(MXT_REGULATOR_DELAY); gpiod_set_value(data->reset_gpio, 1); msleep(MXT_RESET_INVALID_CHG); + +retry_wait: + reinit_completion(&data->bl_completion); + data->in_bootloader = true; + error = mxt_wait_for_completion(data, &data->bl_completion, + MXT_POWERON_DELAY); + if (error == -EINTR) + goto retry_wait; + + data->in_bootloader = false; } return 0; From patchwork Tue Jul 31 15:18:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10550913 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5607B1708 for ; Tue, 31 Jul 2018 15:19:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 465052B062 for ; Tue, 31 Jul 2018 15:19:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39D0E2B0E1; Tue, 31 Jul 2018 15:19:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D54342B062 for ; Tue, 31 Jul 2018 15:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hJlt+JxZIhe6UJ36QA4PYCZptue/sVFDGrmDiT7IpaQ=; b=MoTp9Aw6NHX83V jFnBafq3vLi7csyD3/2evyZLEzZ7AWlhIc4sn/A87yFVebeU9SfwWXbyM7BgiVIxbNYQO63apJat1 3cGGCqh5hUk0v+1TY8W14tVp2PQ45yQaWfbZn2qOGJI6DiboF4OS8mU2v82+L17VBDuSW6PgWOCgU SUn4CI+yDeyNlySaxdxuxET30M1Cltr2+IYJravp9RQ+yunYoC9orfug+yqsfbWAcFF9M0jCXUpwY RdKjQnu7IfUPVZKHERMn3blSoasvodsOyoFS/2vtlF0l8tcXkt7nh2mJ+nv//QNPidOyKIX2TprGe 9lbYLrSjriuCUxRltpPA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkWQn-0000ox-6E; Tue, 31 Jul 2018 15:19:25 +0000 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkWQ0-0008Fi-MT for linux-arm-kernel@lists.infradead.org; Tue, 31 Jul 2018 15:18:38 +0000 Received: by mail-lj1-x242.google.com with SMTP id v9-v6so14070090ljk.4 for ; Tue, 31 Jul 2018 08:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ozyljyZE5/C7EY8axOryS5s7IqJ0ZZxO+Vl7BYdn5iY=; b=VRuh8ctHjQjGIBoqE2jaQ97QN9brDFtuKJs6VBAaft+92mB5NlGc7MPgMhJZ7XP5ok JUEEva1RAP5kiPT7f8kLrDmMTzRCfVenhKNbmEWjw5grD1Z0Khs7f+Ob3AcdLpUYimph 1hYPzjEJFjjak1KuwMExPVsu4RDqrNflT82WQg7BckKpAlb4d/X10obykr82m+pr9DZO Fb6DCATN8uUerapCXH0PV4xlG+kHfdrBe1scP66OkJ1YkMyjWLT90OGbLKvXuYqHdlCH iVwlwIbFoyXfVsAQDIZNqHfobLAFtJ6HJUHX2tKVmJ1BsflLmlEguDVqGYXThQe6yr0A pSXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ozyljyZE5/C7EY8axOryS5s7IqJ0ZZxO+Vl7BYdn5iY=; b=SnT9vkP3Xsma9IZInC1jKYZpDyYYdpOF+tR8fo4AOf+wlugmNrypKawvK5qr3XSOVI I3cTn+eg1nVJyM2KMW66qib3Ds9prF3Z1FItNRXso3woPikAYcSos6qtDs2h3l3EXD4q QLiRYqR1Nm1ILwuXGsRcGUhj0lPfjOgf+tYJ+U/2Xuhv48B/I7hkhKXGgvOU742E0Y4M D6L6SKkJC15qsz4eSDPYuS1wZ+hSkYJj7pvnw88EXkNqEErHmOXyezTVRPOuUUrdqUpn vuarZZc6PlXpg7t1Ls3t8jHh0lTsinNoYb8cApCcGdUx6Fjd1JoUe17LpRRZcfK05Vz3 jxew== X-Gm-Message-State: AOUpUlGneIwmOEJ18MBdQs90EvN5xrfaKqeatSUgC1M5XK4IiYU4zkRB 55fTgycQmqfKxUK/0sl1jSY= X-Google-Smtp-Source: AAOMgpcl1yxJL5lSenU9P6c/GEPj7+8QwNHgltsab8X96sMwEmy/V2177dO5mfnPo+WcyMlRdUY1LA== X-Received: by 2002:a2e:8:: with SMTP id 8-v6mr16647901lja.112.1533050304738; Tue, 31 Jul 2018 08:18:24 -0700 (PDT) Received: from localhost.localdomain (user-94-254-173-71.play-internet.pl. [94.254.173.71]) by smtp.googlemail.com with ESMTPSA id p88-v6sm2606209ljp.90.2018.07.31.08.18.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Jul 2018 08:18:24 -0700 (PDT) From: =?utf-8?q?Pawe=C5=82_Chmiel?= To: nick@shmanahar.org Subject: [PATCH v3 3/3] Input: atmel_mxt_ts: Document optional voltage regulators Date: Tue, 31 Jul 2018 17:18:11 +0200 Message-Id: <1533050291-11502-4-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1533050291-11502-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1533050291-11502-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180731_081836_748542_BE0F09AD X-CRM114-Status: GOOD ( 13.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, alexandre.belloni@bootlin.com, dmitry.torokhov@gmail.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Pawe=C5=82_Chmiel?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Document new optional voltage regulators, which can be used to power down/up touchscreen. Signed-off-by: Paweł Chmiel Reviewed-by: Rob Herring --- Changes from v1: - Added reviewed-by --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt index c88919480d37..17930ecadad3 100644 --- a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt +++ b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt @@ -31,6 +31,12 @@ Optional properties for main touchpad device: - reset-gpios: GPIO specifier for the touchscreen's reset pin (active low) +- avdd-supply: Analog power supply. It powers up the analog channel block + of the controller to detect the touches. + +- vdd-supply: Digital power supply. It powers up the digital block + of the controller to enable i2c communication. + Example: touch@4b { @@ -38,4 +44,6 @@ Example: reg = <0x4b>; interrupt-parent = <&gpio>; interrupts = ; + avdd-supply = <&atsp_reg>; + vdd-supply = <&tsp_reg>; };