From patchwork Sun Dec 6 21:22:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 339320 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89222C2BBCA for ; Sun, 6 Dec 2020 21:24:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5333D2335A for ; Sun, 6 Dec 2020 21:24:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728311AbgLFVYJ (ORCPT ); Sun, 6 Dec 2020 16:24:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726862AbgLFVYJ (ORCPT ); Sun, 6 Dec 2020 16:24:09 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD3D0C0613D2; Sun, 6 Dec 2020 13:23:28 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id d3so9855247wmb.4; Sun, 06 Dec 2020 13:23:28 -0800 (PST) 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=YUCdqSWayGE2L1mNvPdD51yYQKe14Hi3uCXNm1Fq/s8=; b=UDml71/9v3kNN4UJDQKqgEFpEMw6QpHpEhnAkuTO9lQ0TiwbhleXDPfmGE7ZB34WIT 0UNFtpSV9VGyDMN6lREZ1qfPBFq3PP0cD+am0Wp28TRzE79lYKcHNx92meuzUeGuvZgL W6xjYvBgqahxNNErHkkfL31A1gKl1Pmfh80sfU5Ycepl2Y8C8KU1izjT1shDMEzkD1NH BY+hV+yZTQXoW6Cbf3AtgnpO3EfuTT7diI9AWyFLhEiHnp834i5naPl1fmzakdBLG0Hm Uh39rawGy5dT4yeWfD7LUd5tsyBQSRU6dF0P5/KCpo6dXho0WBKduQhwo9w2GXZIktJH HXyg== 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=YUCdqSWayGE2L1mNvPdD51yYQKe14Hi3uCXNm1Fq/s8=; b=YT/yKWcnVHixiPZ4eZsW62tiqwug/ZOQqBG50vjwCAVDbVUsh9kRhihy7UCbxSUe01 GTpaFKKFWzaWj2lLhLj7cV4+XCiCLSS246mxhEe9howFRn7l8r2av2/YoRPBxXLhehr3 ZzG072mYRLPcxii9amNO9vUIS8uz3XuLinrhbycnXn9MhmiPuSMaQ1Uj1uYRCoj4Iw3W 2iuJHair5XfM1LVnzMusXoExznZiIZ72XCHpM3YN9YY2DfNmsk2LeVthG1/E1ps18KDf xK14QP1RCb2yACVWFG0BBe05YAswy8YuHUBuT9dvNd1nBkHa026AaITbgBsHOBlI6lXr DMXQ== X-Gm-Message-State: AOAM533sVwlTVmP92gNpQlQP/LG5UD0eKnWeXxRWa9oJ3DlgM7ZotC7R eQPVrWs3PRTEjswQHsrVbO0= X-Google-Smtp-Source: ABdhPJzlnsNMtolLAlMHcMCvVimXMcXpIkj9pYjBQ1IpPHw6j9y3FlEr/drg80OOqRCVOOZgx8H+tw== X-Received: by 2002:a1c:6055:: with SMTP id u82mr15530487wmb.61.1607289807694; Sun, 06 Dec 2020 13:23:27 -0800 (PST) Received: from localhost.localdomain (109-252-192-53.dynamic.spd-mgts.ru. [109.252.192.53]) by smtp.gmail.com with ESMTPSA id l24sm12737540wrb.28.2020.12.06.13.23.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Dec 2020 13:23:27 -0800 (PST) From: Dmitry Osipenko To: Nick Dyer , Dmitry Torokhov , Rob Herring , Thierry Reding , Jonathan Hunter , Linus Walleij , Jiada Wang Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/3] dt-bindings: input: atmel_mxt_ts: Document atmel, wakeup-method and wake-GPIO Date: Mon, 7 Dec 2020 00:22:15 +0300 Message-Id: <20201206212217.6857-2-digetx@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201206212217.6857-1-digetx@gmail.com> References: <20201206212217.6857-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Some Atmel touchscreen controllers have a WAKE line that needs to be asserted low in order to wake up controller from a deep sleep. Document the wakeup methods and the wake-GPIO properties. Reviewed-by: Linus Walleij Signed-off-by: Dmitry Osipenko --- .../bindings/input/atmel,maxtouch.yaml | 29 +++++++++++++++++++ include/dt-bindings/input/atmel-maxtouch.h | 10 +++++++ 2 files changed, 39 insertions(+) create mode 100644 include/dt-bindings/input/atmel-maxtouch.h diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml b/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml index 8c6418f76e94..e6b03a1e7c30 100644 --- a/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml +++ b/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml @@ -39,6 +39,13 @@ properties: (active low). The line must be flagged with GPIO_ACTIVE_LOW. + wake-gpios: + maxItems: 1 + description: + Optional GPIO specifier for the touchscreen's wake pin + (active low). The line must be flagged with + GPIO_ACTIVE_LOW. + linux,gpio-keymap: $ref: /schemas/types.yaml#/definitions/uint32-array description: | @@ -53,6 +60,26 @@ properties: or experiment to determine which bit corresponds to which input. Use KEY_RESERVED for unused padding values. + atmel,wakeup-method: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The WAKE line is an active-low input that is used to wake up the touch + controller from deep-sleep mode before communication with the controller + could be started. This optional feature used to minimize current + consumption when the controller is in deep sleep mode. This feature is + relevant only to some controller families, like mXT1386 controller for + example. + + The WAKE pin can be connected in one of the following ways: + 1) left permanently low + 2) connected to the I2C-compatible SCL pin + 3) connected to a GPIO pin on the host + enum: + - 0 # ATMEL_MXT_WAKEUP_NONE + - 1 # ATMEL_MXT_WAKEUP_I2C_SCL + - 2 # ATMEL_MXT_WAKEUP_GPIO + default: 0 + required: - compatible - reg @@ -63,6 +90,7 @@ additionalProperties: false examples: - | #include + #include #include i2c { #address-cells = <1>; @@ -75,6 +103,7 @@ examples: reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>; vdda-supply = <&ab8500_ldo_aux2_reg>; vdd-supply = <&ab8500_ldo_aux5_reg>; + atmel,wakeup-method = ; }; }; diff --git a/include/dt-bindings/input/atmel-maxtouch.h b/include/dt-bindings/input/atmel-maxtouch.h new file mode 100644 index 000000000000..7345ab32224d --- /dev/null +++ b/include/dt-bindings/input/atmel-maxtouch.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +#ifndef _DT_BINDINGS_ATMEL_MAXTOUCH_H +#define _DT_BINDINGS_ATMEL_MAXTOUCH_H + +#define ATMEL_MXT_WAKEUP_NONE 0 +#define ATMEL_MXT_WAKEUP_I2C_SCL 1 +#define ATMEL_MXT_WAKEUP_GPIO 2 + +#endif /* _DT_BINDINGS_ATMEL_MAXTOUCH_H */ From patchwork Sun Dec 6 21:22:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 338899 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 290C1C2BB3F for ; Sun, 6 Dec 2020 21:24:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EEC1B23110 for ; Sun, 6 Dec 2020 21:24:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728444AbgLFVYO (ORCPT ); Sun, 6 Dec 2020 16:24:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726862AbgLFVYK (ORCPT ); Sun, 6 Dec 2020 16:24:10 -0500 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3283DC0613D3; Sun, 6 Dec 2020 13:23:30 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id l9so1704933wrt.13; Sun, 06 Dec 2020 13:23:30 -0800 (PST) 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=1Pxze4A2dAo5atO70R2d45Qf30We6Z6MMBVebyesSn4=; b=ieytLu/xvQbk87BLGNWqsdZ33M0ByUU9EDKLnzp4qAPNrpWzgWtyNlB1Or2GnxiHF5 1CK3fxx8eq2B1JRneXIZVcP0Aa0hsnm17i9GOraaXONQtT01NnaCMXiZvVFvovcsM8aw xaz6AU4qcLhfaBIu03OfEpYTU7+r4nB1zEvbDsvk/2q6B1aWS2AuB6xAZk+NqRdcwciu 5WToGrTEYXASER+P75wF6/oSGCiK7/E11/yI7plnk3DQ7zkN8Kb5qmLa5NYm1A0L/uNS eNTrsDB0YMj7BUIy4o7YroJFd88w1NRBTCb0fHQvpTZvWsqmbUWX2TN4V5wNFpS/y8lM MmmA== 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=1Pxze4A2dAo5atO70R2d45Qf30We6Z6MMBVebyesSn4=; b=JAzCKqhzx0UVlitsRoFlqV7i8JGI8+47yALfP1aF1WIzV4sRZ0VLa/C1nL40SOZa0X YH84LGVcE2gd8YAHlxtV9EfHSp0NOBD/Fs8l/dkovf/QZbfKvUTPpworXK1Gj7anw3i5 OLV/xEiC9R6MpSmi1lUN3nW2CuklxZa/++ANhGHDgu6yJ6ycSH1lKZiDMB/00r24B/ki 32ZoXoesNVZps4uFxPTK3Jo9hRTvQXzhUA+jY7YyCAin9CQSUjdSCOM3BAiCk3ceUEsb OVbR/ODLP+8RaICudiQWnzm73yvRdTNHy5Rv5HxSEU8ZczplcHMLdbuGk75g7ntVKG+1 eMwQ== X-Gm-Message-State: AOAM533/W/6CogKTb/9MTuSJUnkjpUUUxrEJ0zdnGU6qH0albN303zD+ O1L+zEJUhtl/Bp5pbf18lF4= X-Google-Smtp-Source: ABdhPJzZ1Z/ZXLxVCm4zOSPHF9zguGoJUyh5/GifccWjsXlk/xG1IFphiHQRfMgXN3WrpiAMLCE0FA== X-Received: by 2002:a5d:4141:: with SMTP id c1mr16251519wrq.80.1607289808907; Sun, 06 Dec 2020 13:23:28 -0800 (PST) Received: from localhost.localdomain (109-252-192-53.dynamic.spd-mgts.ru. [109.252.192.53]) by smtp.gmail.com with ESMTPSA id l24sm12737540wrb.28.2020.12.06.13.23.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Dec 2020 13:23:28 -0800 (PST) From: Dmitry Osipenko To: Nick Dyer , Dmitry Torokhov , Rob Herring , Thierry Reding , Jonathan Hunter , Linus Walleij , Jiada Wang Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] Input: atmel_mxt_ts - support wakeup methods Date: Mon, 7 Dec 2020 00:22:16 +0300 Message-Id: <20201206212217.6857-3-digetx@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201206212217.6857-1-digetx@gmail.com> References: <20201206212217.6857-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org According to datasheets, chips like mXT1386 have a WAKE line, it is used to wake the chip up from deep sleep mode before communicating with it via the I2C-compatible interface. If the WAKE line is connected to a GPIO line, the line must be asserted 25 ms before the host attempts to communicate with the controller. If the WAKE line is connected to the SCL pin, the controller will send a NACK on the first attempt to address it, the host must then retry 25 ms later. Implement the wake-up methods in the driver. Touchscreen now works properly on devices like Acer A500 tablet, fixing problems like this: atmel_mxt_ts 0-004c: __mxt_read_reg: i2c transfer failed (-121) atmel_mxt_ts 0-004c: mxt_bootloader_read: i2c recv failed (-121) atmel_mxt_ts 0-004c: Trying alternate bootloader address atmel_mxt_ts 0-004c: mxt_bootloader_read: i2c recv failed (-121) atmel_mxt_ts: probe of 0-004c failed with error -121 Signed-off-by: Jiada Wang Signed-off-by: Dmitry Osipenko --- drivers/input/touchscreen/atmel_mxt_ts.c | 78 ++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 2b3fff0822fe..e3342fdfe9f3 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -31,6 +31,7 @@ #include #include #include +#include /* Firmware files */ #define MXT_FW_NAME "maxtouch.fw" @@ -199,6 +200,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_WAKEUP_TIME 25 /* msec */ /* Command to unlock bootloader */ #define MXT_UNLOCK_CMD_MSB 0xaa @@ -312,6 +314,7 @@ struct mxt_data { struct mxt_dbg dbg; struct regulator_bulk_data regulators[2]; struct gpio_desc *reset_gpio; + struct gpio_desc *wake_gpio; bool use_retrigen_workaround; /* Cached parameters from object table */ @@ -342,6 +345,8 @@ struct mxt_data { unsigned int t19_num_keys; enum mxt_suspend_mode suspend_mode; + + u32 wakeup_method; }; struct mxt_vb2_buffer { @@ -626,10 +631,42 @@ static int mxt_send_bootloader_cmd(struct mxt_data *data, bool unlock) return 0; } +static bool mxt_wakeup_toggle(struct i2c_client *client, + bool wake_up, bool in_i2c) +{ + struct mxt_data *data = i2c_get_clientdata(client); + + switch (data->wakeup_method) { + case ATMEL_MXT_WAKEUP_I2C_SCL: + if (!in_i2c) + return false; + break; + + case ATMEL_MXT_WAKEUP_GPIO: + if (in_i2c) + return false; + + gpiod_set_value(data->wake_gpio, wake_up); + break; + + default: + return false; + } + + if (wake_up) { + dev_dbg(&client->dev, "waking up controller\n"); + + msleep(MXT_WAKEUP_TIME); + } + + return true; +} + static int __mxt_read_reg(struct i2c_client *client, u16 reg, u16 len, void *val) { struct i2c_msg xfer[2]; + bool retried = false; u8 buf[2]; int ret; @@ -648,9 +685,13 @@ static int __mxt_read_reg(struct i2c_client *client, xfer[1].len = len; xfer[1].buf = val; +retry: ret = i2c_transfer(client->adapter, xfer, 2); if (ret == 2) { ret = 0; + } else if (!retried && mxt_wakeup_toggle(client, true, true)) { + retried = true; + goto retry; } else { if (ret >= 0) ret = -EIO; @@ -664,6 +705,7 @@ static int __mxt_read_reg(struct i2c_client *client, static int __mxt_write_reg(struct i2c_client *client, u16 reg, u16 len, const void *val) { + bool retried = false; u8 *buf; size_t count; int ret; @@ -677,9 +719,13 @@ static int __mxt_write_reg(struct i2c_client *client, u16 reg, u16 len, buf[1] = (reg >> 8) & 0xff; memcpy(&buf[2], val, len); +retry: ret = i2c_master_send(client, buf, count); if (ret == count) { ret = 0; + } else if (!retried && mxt_wakeup_toggle(client, true, true)) { + retried = true; + goto retry; } else { if (ret >= 0) ret = -EIO; @@ -2980,6 +3026,8 @@ static const struct attribute_group mxt_attr_group = { static void mxt_start(struct mxt_data *data) { + mxt_wakeup_toggle(data->client, true, false); + switch (data->suspend_mode) { case MXT_SUSPEND_T9_CTRL: mxt_soft_reset(data); @@ -3014,6 +3062,8 @@ static void mxt_stop(struct mxt_data *data) mxt_set_t7_power_cfg(data, MXT_POWER_CFG_DEEPSLEEP); break; } + + mxt_wakeup_toggle(data->client, false, false); } static int mxt_input_open(struct input_dev *dev) @@ -3160,6 +3210,15 @@ static int mxt_probe(struct i2c_client *client, const struct i2c_device_id *id) return error; } + /* Request the WAKE line as asserted so we go out of sleep */ + data->wake_gpio = devm_gpiod_get_optional(&client->dev, + "wake", GPIOD_OUT_HIGH); + if (IS_ERR(data->wake_gpio)) { + error = PTR_ERR(data->wake_gpio); + dev_err(&client->dev, "Failed to get wake gpio: %d\n", error); + return error; + } + error = devm_request_threaded_irq(&client->dev, client->irq, NULL, mxt_interrupt, IRQF_ONESHOT, client->name, data); @@ -3190,6 +3249,25 @@ static int mxt_probe(struct i2c_client *client, const struct i2c_device_id *id) msleep(MXT_RESET_INVALID_CHG); } + /* + * Controllers like mXT1386 have a dedicated WAKE line that could be + * connected to a GPIO or to I2C SCL pin, or permanently asserted low. + * + * This WAKE line is used for waking controller from a deep-sleep and + * it needs to be asserted low for 25 milliseconds before I2C transfers + * could be accepted by controller if it was in a deep-sleep mode. + * Controller will go into sleep automatically after 2 seconds of + * inactivity if WAKE line is deasserted and deep sleep is activated. + * + * If WAKE line is connected to I2C SCL pin, then the first I2C transfer + * will get an instant NAK and transfer needs to be retried after 25ms. + * + * If WAKE line is connected to a GPIO line, the line must be asserted + * 25ms before the host attempts to communicate with the controller. + */ + device_property_read_u32(&client->dev, "atmel,wakeup-method", + &data->wakeup_method); + error = mxt_initialize(data); if (error) goto err_disable_regulators; From patchwork Sun Dec 6 21:22:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 338900 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A06FC19425 for ; Sun, 6 Dec 2020 21:24:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7D2BC23101 for ; Sun, 6 Dec 2020 21:24:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728358AbgLFVYN (ORCPT ); Sun, 6 Dec 2020 16:24:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728356AbgLFVYL (ORCPT ); Sun, 6 Dec 2020 16:24:11 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A4A1C0613D4; Sun, 6 Dec 2020 13:23:31 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id 3so11855681wmg.4; Sun, 06 Dec 2020 13:23:31 -0800 (PST) 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=y9gRg52LFimb3ceOLj9UGDG1IkEgZHW2S4OzYw39/xU=; b=d7O0my1wBVi1u1gtjj4jjGlO8BWfXhGjjM23J6VRYei48Yys8pDpV2EQtxxZnohaM7 UFEfYFD7AaQVaNa9JbIBnbT8EeuFyLfbHZUDSnzSf0BcrQAB4hGCGo2K9PYpHsGvwqxl 5T2lrcjUKHvwoBW2EteXUMBjz/aSlK2j+tPXiC9U1cPMHpsWbrMq2uB3upji+eyIxC0l dWRwkYAmAG7cmee7cR/2jk71CngxTPJuEcxOhkSvmClPm645SpRTNAbPwdlwXw1/oHcs xM2GDsvrvnxNZxXJnB6DGUobM+SZw0F1JY1mc7lOGd2KaoB7Knf4G6/qmj0PknU2bfuQ Q2Kg== 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=y9gRg52LFimb3ceOLj9UGDG1IkEgZHW2S4OzYw39/xU=; b=PCDSgg2TLfiBAtsptb6rcA7bHN4etTo+aM3NDIVlzWrOC5ACme2jf6jx1CawjJ8yTt 1XAaWmVaenEnqaFV9AH2dgJrC44DDywLHekjiMPOhvMlQKCs06FkNQ87mGoEkO8vLU7g bDSM/GlSsKDhNipQ0b5Zx8at0KIVTQBfLpYHR+vCT/1Ha6shBz1NUB4SPFQpBGfg0Duq JH7ivHZF9lYuAzxDreBbO7GI9zdA6yUWSLAEY2P5gZuyY7w4x8zR0bpniZmh/JIUYr31 vi/+Ez0e4Safgpy4hbJeK4bsnT3W7DNOfk9NjqdFzUQzU5Yddu/VCMNSs9lKDlBBkxlO +NLA== X-Gm-Message-State: AOAM5316yTtnGuLS0VhPhzoxEJBc4YKiUXgsLcZN7YMGBIeXGaf/H2VG aZ1aiZlQtz0r102YiDBN87M= X-Google-Smtp-Source: ABdhPJy9NBN3kkvBfGdqYfnw9bTVuONN3G+ZpBDYqXmWuw1LROkYuyN1GceG+MLBXwmmERRuQBaqwA== X-Received: by 2002:a1c:9916:: with SMTP id b22mr14670639wme.182.1607289810102; Sun, 06 Dec 2020 13:23:30 -0800 (PST) Received: from localhost.localdomain (109-252-192-53.dynamic.spd-mgts.ru. [109.252.192.53]) by smtp.gmail.com with ESMTPSA id l24sm12737540wrb.28.2020.12.06.13.23.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Dec 2020 13:23:29 -0800 (PST) From: Dmitry Osipenko To: Nick Dyer , Dmitry Torokhov , Rob Herring , Thierry Reding , Jonathan Hunter , Linus Walleij , Jiada Wang Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/3] ARM: tegra: acer-a500: Add atmel, wakeup-method property Date: Mon, 7 Dec 2020 00:22:17 +0300 Message-Id: <20201206212217.6857-4-digetx@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201206212217.6857-1-digetx@gmail.com> References: <20201206212217.6857-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Add atmel,wakeup-method property to the touchscreen node. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts b/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts index d3b99535d755..40c1bab22155 100644 --- a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts +++ b/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 /dts-v1/; +#include #include #include #include @@ -450,6 +451,8 @@ touchscreen@4c { avdd-supply = <&vdd_3v3_sys>; vdd-supply = <&vdd_3v3_sys>; + + atmel,wakeup-method = ; }; gyroscope@68 {