Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5278586imm; Tue, 31 Jul 2018 08:19:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcBI2XVOv6Ef1WGHIM5VmwbD6ule8W1OxXtjkQFAg2cERKsMRCrsvwy/2HJxs2ayKgliTzC X-Received: by 2002:a63:eb0e:: with SMTP id t14-v6mr20696638pgh.198.1533050373535; Tue, 31 Jul 2018 08:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533050373; cv=none; d=google.com; s=arc-20160816; b=alzsNJ48+BfcWVXy+R7sR0BnT6ayu9Pu+aY1AhEmlHOr8FymaPZPYHapAyGigUPsLS +oBOD5z7XebVJvJiZf2aGHTc45+T4mAgcc4nAYHitrR1AIPypLZSt5V8OorsvI3WpDan Gj5pqOFYEkD1Xp5rTu+TX0u4i4YUYI4ouF+W9cyUKMIO8hxitYJU3ifnWlMQxFKroZ5m QkkAIOtrmf+GjfvOgdSlLTGmO9QPKjqkxoOEMNrzbUhVgLc85TDyLXxC5B9gUbsqHExO 1r9E5JgiNn1QoZpJRi46RWjTdkU2R9dVjfBUzEF4nKi1ZDLU7yvtzy7U7WC7vQaV69j2 403A== 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 :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=sIWxCQcNhmHMDRvdWTVb2439FNYZts1ZgsX6p9AdvEw=; b=uzjOZNBQmbMlD0UKQ+sJWZ0/g01garUW4LYo/ZP83EYh1/rBLhOCLf2jUMZIPMa24o TjOYOOaJc4+CBUe4YjMy8J/r/VYf6y3iumK396M0HPwkLqlIGLkygw5Mnb2IBc+nnF47 xH6LFBEqhxaaL0cTZLJrnyuXlJjxvYhdNsd07ky/+1agoKMecHehJ6SaDNbX60Fe1iFM Dqz/WgdoyPbUXKP8x7SOSUsF4RcadvLznmbRFa4EU0CLSN0k8zCYAhKiGghn7KIBrycV +jYi57ziWbf2QHzphd9Uzs10VabeIofbdJrF1avrBXMQ7TwIxENdy6jkd/sukVDITgwm u58w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="chKVjw2/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11-v6si15137470pli.86.2018.07.31.08.19.17; Tue, 31 Jul 2018 08:19:33 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="chKVjw2/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732447AbeGaQ7K (ORCPT + 99 others); Tue, 31 Jul 2018 12:59:10 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:41274 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732330AbeGaQ7K (ORCPT ); Tue, 31 Jul 2018 12:59:10 -0400 Received: by mail-lj1-f195.google.com with SMTP id y17-v6so14057614ljy.8; Tue, 31 Jul 2018 08:18:21 -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=W1995J7Ot2aG3L9TbVHKqAa/18WJKRA1AZBr4HPLgBuTx2UtMI8mtZo6TIledXYZ9L 2hbX0zAN/MJGSOw6LW0hZKOoT+6GLP/n5bYpZ6yMfthNl5bjb5jcfI/kv6sAd7UucoGO kW0HVEO1ovVspnDGADc5TTCZ8WxZbTshwcHcdqGvTCB4L8K8AI0AC4wFPK5/suvk+22P H1uqIQ6rCW6UUfm3ypbDozCQpz+E7ns5CMRj7wf7C5UlSmy6NMIEId2abfHUBoe/3102 rmjC5jTLIFRi7DpqmensB9cQKSu5pM0CqmKrvzKwk3WGnttZ6E6UiCJnxa8wJx4L+dzs HYtw== X-Gm-Message-State: AOUpUlGFfgin10xX82nok0MxK5nQqBDJMAHNNv4iOAM7Ky//Ch9fae+X 28TjuqGzBeR7X2sKbsFMDHIxNwCG 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=20Chmiel?= To: nick@shmanahar.org Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Pawe=C5=82=20Chmiel?= 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 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 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(-) -- 2.7.4