From patchwork Fri Dec 14 15:12: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: 10731341 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 7FD00746 for ; Fri, 14 Dec 2018 15:13:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 573A22811A for ; Fri, 14 Dec 2018 15:13:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48DE4288F8; Fri, 14 Dec 2018 15:13:38 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 F34802811A for ; Fri, 14 Dec 2018 15:13:37 +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=xP2o9PbR3M/WicELNAwYnv6DvzNH2bypCWG7NczZxDs=; b=Rz/GpTqvBj5pNB MXRPTPry25xVbrxKYKoSgxuf/3NTUfOOqEPv1RIqW47Fvqm6WOujLGwXe4Wb9ZN9MUxRMo93sFr3t MjGFCfCY1WbhdMpF1Ks7j5W/CEZ+GoBiEKJuvDUgS2oDYN2yDCbd44Yz2Rt1f9yRVJ8TFTkOXq0k9 +pH2S/wDZ2MU4jwta5drDXSV9lnreeB77xGWm+H0tJ+EW+0xcYWw/qOSV1T27qEceiqz4mPYLmBqx gsiT1esvSa/TzFZZYCw1v4O/vHiHQX21IOiLBBq0mUZ2sdP8pEBpe1OoHiPqPC3u26JeY7SlpJUie VQ6TtIsc8sMZ/ZET6XUw==; 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 1gXp9k-0001yz-5m; Fri, 14 Dec 2018 15:13:36 +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 1gXp90-0001EM-CO for linux-arm-kernel@lists.infradead.org; Fri, 14 Dec 2018 15:13:04 +0000 Received: by mail-lj1-x243.google.com with SMTP id e5-v6so5195959lja.4 for ; Fri, 14 Dec 2018 07:12:40 -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:mime-version :content-transfer-encoding; bh=OPHoOoeJrXFhGW2NBg+BqikfLbQmuY9aUqs4/W1ky7c=; b=W2Yeas6ZXnzwszhlrs0ZnACmpcAZ9cbC3GBmbyIXz4dpJz1UR8r8UQkptMVFfw9zG/ LQgCKTHvkCozMA+GdaA1YUOuwZyarbwEap0SnZepjk2hxeVp3TUJacwX9v/FdDjjR3XP qbUcNjROXPKo26zMxTP3/U8GZPRtSVFd8/NFqcn2xGglj3MALW0Xu029bDOt0kmR5O9I puXi1MYcH5q2O08MuF8OzTQ1NstIa8Z+SH6NaxXrFVTzinp4SUGsnnFWcAqyAEUZbtlg 6E8gbOnKeXUHqZe4l8E7mPQDGBQDM6uRk91C0EPqCreOX3rJUjQu5QMGrrZvVM9mm8Ju maxg== 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=OPHoOoeJrXFhGW2NBg+BqikfLbQmuY9aUqs4/W1ky7c=; b=WWM/vRLu6CC84d6C/zSX3TFbCihi/1QbSl/qB2mK/T91hSqGKJHeVrY/ynNOlugd0H 8i0mmn26T2k8abFH6iAdEcjQ3Vfxrf1AeiGqbfJgQS1C1XLwYf03y1PGkCaXPrjMCVPV vPBSAFsjHsduTZlBTpiu3HpaSmP/dMSZATBchmUzMzYpyE7YJEqIHdZ3J1k4O30Z3AI4 WZ7NBM+PzhoOpNH3jfy3jjV/G4E7vl6y/ydfxq/g5nOxRjdcPVd+A/Ryf0aiKtXY93NY eEwEkmvu9YWu8KtXM1SOEXuW0fXJybExNmuBXyTKfyJYuM88JfWKUI8g6LybdncfVGeJ SFow== X-Gm-Message-State: AA+aEWZATAiifm0I7j8Rp7PdquGvI0R1/qJ2G4FV+LgnvGK9DIstYpmP PYzyOV7GeXfC1bjKK/DDNM8= X-Google-Smtp-Source: AFSGD/U+9KaXGsGqwuBABPN/lwCpvYF8mj5iSDHz0VERNJNL16gje4tgrlv3GuDznjavpqJHE9Mg5g== X-Received: by 2002:a2e:9983:: with SMTP id w3-v6mr2256449lji.133.1544800358706; Fri, 14 Dec 2018 07:12:38 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:976:99fb:a7e3:627c]) by smtp.googlemail.com with ESMTPSA id o17sm951975lff.77.2018.12.14.07.12.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Dec 2018 07:12:37 -0800 (PST) From: =?utf-8?q?Pawe=C5=82_Chmiel?= To: nick@shmanahar.org Subject: [PATCH v5 0/3] Input: atmel_mxt_ts: Add support for optional regulators Date: Fri, 14 Dec 2018 16:12:11 +0100 Message-Id: <20181214151214.5391-1-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181214_071250_867738_35540242 X-CRM114-Status: GOOD ( 13.39 ) 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 v4: - Add missing regulator_disable for vdd in case of error, when enabling avdd regulator Changes from v3: - Checkpatch fixes - Drop punctuation from subject of one of patches 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 .../bindings/input/atmel,maxtouch.txt | 8 ++ drivers/input/touchscreen/atmel_mxt_ts.c | 78 +++++++++++++++++-- 2 files changed, 80 insertions(+), 6 deletions(-)