From patchwork Tue Jul 31 15:18:08 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: 10550905 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 02FA71708 for ; Tue, 31 Jul 2018 15:18:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E742D2B0E1 for ; Tue, 31 Jul 2018 15:18:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB0AD2B0EA; Tue, 31 Jul 2018 15:18:41 +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 80F7F2B0E1 for ; Tue, 31 Jul 2018 15:18:41 +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: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:In-Reply-To:References: List-Owner; bh=ehjUaBz8KWCE1Ke/LpZ+PE6+6MzaLIBUWyGar0BgHA8=; b=NYon0U+5g+U4xc 4XX4q5Ai03gKsG2V+y7nF2kVihH/yKE7Phqeny5kJRVz4ygMuNq07PLSPWn62kso4b4N/1QmEl+7O YIzlY/Zr511bc663oCe+8jpx39nLrA2FoLMSSGzndR7z+DN0ZuOkGQliSW3DtWfRZ3jBUhpV4KZVW 9BmjVTiPYjUKy8Hth+ttdZh37ZsxDO/bwNob+7WW3MrDQkABkV52bPDxA5eHyFE2UCxOk8zMYW5SP 3hEOQbRnyD2cQFUCNR5kpeuLQh23dHWmhT5ILXm0EOtLXwNpJ9bzJnkJz9B/ykjN6/KLDIw3+6JG8 3d3gpFxCNV7RICFghkYg==; 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 1fkWQ1-0008Ly-1U; Tue, 31 Jul 2018 15:18:37 +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-0008FG-9R 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 r13-v6so14072249ljg.10 for ; Tue, 31 Jul 2018 08:18:22 -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:mime-version :content-transfer-encoding; bh=sIWxCQcNhmHMDRvdWTVb2439FNYZts1ZgsX6p9AdvEw=; b=chKVjw2/xgyzSYD7pb8Zf0Cv0Ldhurf0zIp+xdRDUptcua1eaCeqaTwz9NsyVCiO+q q+XDthYos0NCZgCbo8LmK4iHzy3qAp5/L2eeeDLqqN6S0C908CAsF2AbaUXlzfgd4UQt Pm4KIZnfvvxb1ts/tDMN0KXkjelFeKRhJDukj5zoh+UQo0sz83sigRtycHvjgkhS73sU 2VHjZGb3MXHd/9+76D4NrsU27qy2BxLS8URIFOTzxVCpsEnCkFJSZb2+UzQYf+M3sS3q LndYrpuD5VseYZqqNHPPCA2opOSc3xduUkOq9Y6Xm6IFvBBSNx6G7e/EkGysv6gS7Bp4 9V3g== 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:mime-version :content-transfer-encoding; bh=sIWxCQcNhmHMDRvdWTVb2439FNYZts1ZgsX6p9AdvEw=; b=Wl2suyJrdUvkJurLetbACklt8hLH5eWqbdusLCPgjyqovP+GZnHNjR04Bf4RrYcT2E rIL4ANJgz7lHiHvSfshInazbFAXXtYYdrYIe+WF01Kj1i94gNVbuigRlTQf57B5/E8rM 0Teg8ZRl+Knb5U1lob8Z9kIEuZXqkR7hzfPgRAeeRoQV/TU9yrJ3ul8UDZgkhWVrbkEa 7EITTrMpq6NVhQeakgtQuSM/AE22YPOSjmszumeQVBp6etx+RbmqjzF3DFV+LyW3xyCH dKd9IXB5GThEsHU422XPD/sXD786LBV6WMTMCAyVTe0NvN960aqtjHCOAtfn+oHaZX8k 9gFw== X-Gm-Message-State: AOUpUlE+l80HJuEwjpr+e4O52f1lukiibz6GaQSCzyY9XwSOBlVxCQF/ iIc57YEThOkkUheJX10ooyk= X-Google-Smtp-Source: AAOMgpdR7wUCKkmtv3jpHuO2KIh+DpDUHwZbTRevCbvVcCSpQEGwgF8YrgEo5xJKEWA18PkEpX+BwQ== X-Received: by 2002:a2e:1b83:: with SMTP id c3-v6mr15945669ljf.0.1533050300476; Tue, 31 Jul 2018 08:18:20 -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.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Jul 2018 08:18:19 -0700 (PDT) From: =?utf-8?q?Pawe=C5=82_Chmiel?= To: nick@shmanahar.org Subject: [PATCH v3 0/3] Input: atmel_mxt_ts: Add support for optional regulators Date: Tue, 31 Jul 2018 17:18:08 +0200 Message-Id: <1533050291-11502-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180731_081833_353787_FA5C65DA X-CRM114-Status: GOOD ( 12.93 ) 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 series adds optional regulator support to atmel_mxt_ts. First patch adds regulators to driver. Second patch ensures that device is ready for communication. Third patch updates documentation. Changes from v2: - Add reviewed-by to one patch - Move code for enabling regulators into separate method, to make code more readable. - Add wait code, to ensure that device is ready for communication. Changes from v1: - Enable regulators only if reset_gpio is present. - Switch from devm_regulator_get_optional to devm_regulator_get. Paweł Chmiel (3): Input: atmel_mxt_ts: Add support for optional regulators. Input: atmel_mxt_ts: Wait for device be ready for communication Input: atmel_mxt_ts: Document optional voltage regulators .../devicetree/bindings/input/atmel,maxtouch.txt | 8 +++ drivers/input/touchscreen/atmel_mxt_ts.c | 76 ++++++++++++++++++++-- 2 files changed, 78 insertions(+), 6 deletions(-)