From patchwork Thu Jun 28 15:08:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 141573 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2304099ljj; Thu, 28 Jun 2018 08:09:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe3F/l7wILMAhFmmMHNqyfjr4x8iFCqM/AkGoG9DXL7f4ayQhlsHK6aIrfOGj8uPwblcYHx X-Received: by 2002:a62:859c:: with SMTP id m28-v6mr10554533pfk.42.1530198567042; Thu, 28 Jun 2018 08:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530198567; cv=none; d=google.com; s=arc-20160816; b=W/DxVBdmlEEVhDihK7seFqGX9WFRE/libXTe/SzXqNATgqYM0lZ2eRMyPJ6Iao3c1/ AZGnJGpfNnDkpjQOEKOkZln6WoSrIIFCQTQFT+Elbg5P4awOEidX1B/KK3hg9mxsaBoA +y4OTbPG3PaPA6p8IBZ4Am10kJDS1W2n/fXAtngh9GQZLvO+LNITalnCff1LWXsZIVlw c/UP3eV+MrxSq7hkUbR2N1H2Q0ZNSzi0iXrzINyt3Gh2sMARthG8ZnHfvW/IVa48H9Dc fNrlaiJIwCJoaY2goq8JenX0K95pigRQ2rpF1UJzIArQp4poZ8LAeggmALlmIakCNXjF SsAg== 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 :dkim-signature:arc-authentication-results; bh=f5iA66i5Zl6XGMsDS4OuRltHQ7pjWriOxAdoPjtN670=; b=X8DD+XwE21VcF2R03UgjNx3c+cwgQiFyMflsPueT2X0DSw02YjGL/7b1PLN/8A/D3M 2ZTbk/hILHjfoOgDjI6nip9aKsFFaDDxF1wtaJzgi5qKs7CCHiDNV8CRGbzeaY/D1cR9 2hf4OmwDGXDk6oZn0eiy7If4dWzXhdyQYpBdiGHFL6sT2AEW7BT2EeOIQxEroWF2/RPq FrCgIjUJf0DHj97hNYu6eUBBwXONb0SdNqKhHLKdsx6fL+J8ZJ6FHkL65W7PPfHBhL/u PBjQU8TJ0UjnTSg0Mvky1WVyV6gYjNx/Ua0UE8qWhU4R4NsA5xvaO5UEw2NXdMUx0zcj Al8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=Mgrgr3sI; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25-v6si7145088pfl.344.2018.06.28.08.09.26; Thu, 28 Jun 2018 08:09:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=Mgrgr3sI; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966991AbeF1PJZ (ORCPT + 5 others); Thu, 28 Jun 2018 11:09:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:37664 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966685AbeF1PJY (ORCPT ); Thu, 28 Jun 2018 11:09:24 -0400 Received: from localhost.localdomain (unknown [106.201.104.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BA85720CAA; Thu, 28 Jun 2018 15:09:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530198564; bh=P+zAeRbowRp27IQXKs00vQVLyD2mA4PXws6+YM6jEyE=; h=From:To:Cc:Subject:Date:From; b=Mgrgr3sIe/PAH0KK1IHF9PoGSLwIgSVUi9KPMQdVMzZERFwPXnHMz7HaaF2AHYZxQ 66MSbXTMR4idHYowQq4uebBtZmNhr0h2052aFWdce9oWQh/sNB5ruisCFF+HWY50FU we9XoDvtY+HFLqac0KF7HZxRRRtMBR8ixbmxLhVk= From: Vinod Koul To: linux-input@vger.kernel.org, linux-pm@vger.kernel.org Cc: Bjorn Andersson , Dmitry Torokhov , Rob Herring , Sebastian Reichel , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vinod Koul Subject: [PATCH v5 0/6] input: pm8941-pwrkey: Add support for reboot reason Date: Thu, 28 Jun 2018 20:38:44 +0530 Message-Id: <20180628150850.15358-1-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org To add support for reboot reason there have been some attempts [1], [2] in past. Based on these discussions we added a new pon driver and made pwrkey and resin as child nodes to pon. Since the pwrkey and resin are similar, abstract pwrkey driver and then add support for resin in the same driver. Since the patches touch reset and input subsystems, it would be nice if folks can ACK and we carry thru one subsystem, I would prefer that to be input, other way would work fine too. [1]: https://patchwork.kernel.org/patch/9751627/ [2]: https://patchwork.kernel.org/patch/10381801/ Changes in v5: - Make pon driver tristate Changes in v4: - Add Rob's ack - Fix typo and description in pon binding - Separate out resin binding to an independent patch Changes in v3: - Add Bjorn's ack - Make variable for event code u32 Changes in v2: - Add Bjorn's ack - Fix power binding by removing reg property - Use single block for parent check in pm8941-pwrkey as suggested by Dimitry Vinod Koul (6): dt-bindings: power: reset: Add qcom pon binding power: reset: qcom-pon: Add Qcom PON driver dt-bindings: Input: Add additional property to qcom pwrkey input: pm8941-pwrkey: Abstract register offsets and event code dt-bindings: power: reset: qcom: Add resin binding input: pm8941-pwrkey: Add resin entry .../bindings/input/qcom,pm8941-pwrkey.txt | 10 +++ .../devicetree/bindings/power/reset/qcom,pon.txt | 45 +++++++++++ drivers/input/misc/pm8941-pwrkey.c | 69 ++++++++++++---- drivers/power/reset/Kconfig | 11 +++ drivers/power/reset/Makefile | 1 + drivers/power/reset/qcom-pon.c | 91 ++++++++++++++++++++++ 6 files changed, 214 insertions(+), 13 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.txt create mode 100644 drivers/power/reset/qcom-pon.c -- 2.14.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html