From patchwork Wed Jul 19 07:43:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 108252 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp523489obm; Wed, 19 Jul 2017 00:44:05 -0700 (PDT) X-Received: by 10.101.73.11 with SMTP id p11mr1755609pgs.234.1500450245033; Wed, 19 Jul 2017 00:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500450245; cv=none; d=google.com; s=arc-20160816; b=UNbzVMRI8vKcW6qRXK9RZb12jXBxXXmpCHuVmW8rOPD1Fmm8iOz5RG7IpVlyuP9J5q /2MSuFyCFjHqSMl5cH1e6NhxW60YolwoTx1b5gwvHFEtX6BXB/WhnaqyEqkQyaju/zSC u3Tpmtkj+rMW4oTk16Lowwm02ynrNbnolANpaPC0FrrHJ/rS6covKiTuvl632KI6C5m4 ZdFw35OaEZHhFFP4rlitzkicgqDWzzDFUkWbNXGg958SQdyflD0e9SmQk+2iNzGPcgEc 9ozyyfSiAs5bbVpTCfX7WK0wmUVzIRNPLydPhtbdRaU/hW9B4qWFJ6VVFxYTGtx+/qSk wUrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=aA3C3BvwRvochlsv4R3iZIciQogvw5dXXdRg2LiKhMk=; b=bcOkn1pCvkH1zSpSnptHHN850nO7VthsGcnCFR3UKKTiilhLoSdy/OjIPcH0a64yCK Gs2jDmXKdI7jXlj3ie/LhhZ6we/lqdkwHvNQJ4HbSHHAObl3LzVnIi2VkJw85yYVOUPH NuY96kn7toGUisE++NzRWf8fjuZYreSIUPLRe9/z1XDaeKUTLX3wWd9T2m9zk7QMYDb/ x76er3K9HohqaXGvx7MNxnZM30K6tKwUKFo8MB0FwT9mLh/hw34Jjkquil94YFPrBUC3 Uetx2KhoyFgTYIq6IgAxmnbmPlKgkCAWPxO0tWka9YXjk/lI6Z+Kv/rBMUfujT19lfnN 0YlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z12si3697785pge.264.2017.07.19.00.44.04 for ; Wed, 19 Jul 2017 00:44:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751548AbdGSHoC (ORCPT ); Wed, 19 Jul 2017 03:44:02 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:54387 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751683AbdGSHoB (ORCPT ); Wed, 19 Jul 2017 03:44:01 -0400 Received: by mail.free-electrons.com (Postfix, from userid 110) id 6453B21E5E; Wed, 19 Jul 2017 09:43:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 206CD207C0; Wed, 19 Jul 2017 09:43:48 +0200 (CEST) From: Quentin Schulz To: dmitry.torokhov@gmail.com, wens@csie.org, lee.jones@linaro.org Cc: Quentin Schulz , hdegoede@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@free-electrons.com, maxime.ripard@free-electrons.com Subject: [PATCH v2 0/3] add support for AXP22X/AXP288/AXP8XX PEK Date: Wed, 19 Jul 2017 09:43:34 +0200 Message-Id: <20170719074337.19189-1-quentin.schulz@free-electrons.com> X-Mailer: git-send-email 2.11.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org According to their datasheets, the AXP221, AXP223, AXP288, AXP803, AXP809 and AXP813 PEK have different values for startup time bits from the AXP20X PEK (which are currently used for all the aforementioned PMICs). This patch series adds support for platform_device_id to axp20x-pek driver to support different startup time bits depending on PMIC's variant and set the correct platform_device_id in the mfd. This has been tested on AXP813. To perform the test, modify the value of startup and/or shutdown of the pek in sysfs. Press the button soldered to PEK input of the AXP the amount of time you set in sysfs. The PMIC shuts down the board without needing to unplug any power supply. Press PEK button the amount of time you set in sysfs for startup and the PMIC will start the board. Note that the time bits are obivoulsy hardware reset to their default when you unplug all power supplies from the board. v2: - instead of duplicating all extended attributes, use the driver_data of platform_device_id to get startup and shutdown times and their respective masks, - remove extended attributes and use the structure storing startup and shutdown times and their respective masks, - separate in different patches, - removed mfd patch to correct mfd cell name since Chen-Yu will take care of it in another patch series, Thanks, Quentin Quentin Schulz (3): Input: axp20x-pek: use driver_data of platform_device_id instead of extended attributes Input: axp20x-pek: remove mention to extended attributes Input: axp20x-pek: add support for AXP221 PEK drivers/input/misc/axp20x-pek.c | 146 ++++++++++++++++++++++++++++------------ 1 file changed, 103 insertions(+), 43 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html