From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leonard Crestez Subject: [PATCH v2 0/3] mfd: bd718x7: Set button press duration via dt only Date: Tue, 21 May 2019 20:41:10 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Language: en-US Content-ID: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Matti Vaittinen , Lee Jones , Mark Brown Cc: Mark Rutland , Aisheng Dong , "devicetree@vger.kernel.org" , Angus Ainslie , Rob Herring , dl-linux-imx , "kernel@pengutronix.de" , Fabio Estevam , Robin Gong , Shawn Guo , "linux-arm-kernel@lists.infradead.org" List-Id: devicetree@vger.kernel.org The reset button on imx8mm-evk is tied to PWRON_B pin of bd71847 and the long press duration is set to zero from OTP. The linux driver overrides those values and breaks reset from button. Overwriting OTP or bootloader configuration with some hardcoded defaults is not desirable, power button should behave identically from bootloader to kernel. Add DT properties to allow explicitly overriding press durations but don't do anything by default. Changes since v1: * Attempt to round to closest supporting value * Spelling fix in PATCH 2 commit message * Collect acks Link to v1: https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=119597 Leonard Crestez (3): mfd: bd718x7: Remove hardcoded config for button press duration dt-bindings: mfd: Document short/long press duration for bd718x7 mfd: bd718x7: Make power button press duration configurable .../bindings/mfd/rohm,bd71837-pmic.txt | 8 +++ drivers/mfd/rohm-bd718x7.c | 61 ++++++++++++------- 2 files changed, 48 insertions(+), 21 deletions(-) -- 2.17.1