From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751335AbdGQLPV (ORCPT ); Mon, 17 Jul 2017 07:15:21 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:47556 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751279AbdGQLPU (ORCPT ); Mon, 17 Jul 2017 07:15:20 -0400 Subject: Re: [PATCH 0/2] use correct values for startup time bits for AXP22X/AXP8XX PEKs To: dmitry.torokhov@gmail.com, wens@csie.org, lee.jones@linaro.org Cc: hdegoede@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@free-electrons.com, maxime.ripard@free-electrons.com References: <20170717095307.15986-1-quentin.schulz@free-electrons.com> From: Quentin Schulz Message-ID: Date: Mon, 17 Jul 2017 13:15:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170717095307.15986-1-quentin.schulz@free-electrons.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, On 17/07/2017 11:53, Quentin Schulz wrote: > 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. > I forgot to add that it depends on this patch series (particularly the third patch (3/6) "mfd: axp20x: Add support for AXP813 PMIC") from Chen-Yu: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1428284.html Quentin > Thanks, > Quentin > > Quentin Schulz (2): > Input: axp20x-pek: add support for AXP221 PEK > mfd: axp20x: use correct platform device id for many PEK > > drivers/input/misc/axp20x-pek.c | 62 ++++++++++++++++++++++++++++++++++------- > drivers/mfd/axp20x.c | 12 ++++---- > 2 files changed, 58 insertions(+), 16 deletions(-) > -- Quentin Schulz, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com