From patchwork Mon Jun 1 05:14:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthijs van Duin X-Patchwork-Id: 478775 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0DCC1140FDF for ; Mon, 1 Jun 2015 15:15:11 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=RFUkzYET; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753064AbbFAFPH (ORCPT ); Mon, 1 Jun 2015 01:15:07 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:34122 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750760AbbFAFPG (ORCPT ); Mon, 1 Jun 2015 01:15:06 -0400 Received: by wgv5 with SMTP id 5so104225649wgv.1; Sun, 31 May 2015 22:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=YeCdjLa8AhsWyeV3I7yOgXB8+tSKg050eRwzxUu4PI0=; b=RFUkzYETNIBVy81NMWKlWeHJJXXNXq6FSkuyhagsyAXtcvyS+J2UcqjT+cfky4aVcN OIiX/jlCjxCyJZdn2mD0lCGzXno8XcM53mn9ltEil0ME2cbiHPAE8v5mKfPKgPqLwlKL zz2alsPFwPyoewnWKQ4QcoaFzvXrPyq361btA/FJjixEzc8C3eQBhd4AnbPWK0xaEmXl jseu+ZA11Abp4jMMiaKfzwynlZiOnbQtA5WvD1vsBzVTj5k3F8Gu0qbbBqLZrwkCNzZJ PMEPWkxhXc4kt8FZ8GORgOiD3QeyCXQVr7xyqwr6/lThUHEVZFrM6MssbjF9zt3fczIu HMxA== X-Received: by 10.180.206.45 with SMTP id ll13mr17090338wic.94.1433135704678; Sun, 31 May 2015 22:15:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.70.227 with HTTP; Sun, 31 May 2015 22:14:43 -0700 (PDT) In-Reply-To: References: <1432136322-7609-1-git-send-email-robertcnelson@gmail.com> From: Matthijs van Duin Date: Mon, 1 Jun 2015 07:14:43 +0200 Message-ID: Subject: Re: [PATCH] ARM: dts: am335x-boneblack: disable RTC-only sleep To: "linux-omap@vger.kernel.org" Cc: Tony Lindgren , Robert Nelson , devicetree , "linux-arm-kernel@lists.infradead.org" , Felipe Balbi , Johan Hovold Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Here's a version that attempts to address Tony's earlier request to include some comments in the patch itself. Since I saw no way to concisely summarize the issues, I included links to relevant messages (and enough info to locate the thread again in case of link rot). Since the patch itself contains more explanation, I made the commit message more concise. Apologies for the attachment (inline text would get fucked up by gmail) From 4278ecc32e886d2e83bc486e6409d8f6df82a0d1 Mon Sep 17 00:00:00 2001 From: Matthijs van Duin Date: Mon, 1 Jun 2015 06:56:24 +0200 Subject: [PATCH] ARM: dts: am335x-bone* enable pmic-shutdown-controller Fixes: http://bugs.elinux.org/issues/143 Avoid entering "RTC-only mode" at poweroff. It is unsupported by most versions of BeagleBone, and risks hardware damage. Reported-by: Matthijs van Duin Tested-by: Matthijs van Duin Signed-off-by: Robert Nelson Cc: Tony Lindgren Cc: Felipe Balbi Cc: Johan Hovold [Matthijs van Duin: added explanatory comments] Signed-off-by: Matthijs van Duin --- arch/arm/boot/dts/am335x-bone-common.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi index c3255e0..90fbbb1 100644 --- a/arch/arm/boot/dts/am335x-bone-common.dtsi +++ b/arch/arm/boot/dts/am335x-bone-common.dtsi @@ -223,6 +223,24 @@ /include/ "tps65217.dtsi" &tps { + // Configure pmic to enter OFF-state instead of SLEEP-state ("RTC-only + // mode") at poweroff. Most BeagleBone versions do not support RTC-only + // mode and risk hardware damage if this mode is entered. + // + // For details, see linux-omap mailing list May 2015 thread + // [PATCH] ARM: dts: am335x-bone* enable pmic-shutdown-controller + // In particular, messages: + // http://www.spinics.net/lists/linux-omap/msg118585.html + // http://www.spinics.net/lists/linux-omap/msg118615.html + // + ti,pmic-shutdown-controller; + // + // You can override this later with + // &tps { /delete-property/ ti,pmic-shutdown-controller; } + // if you want to use RTC-only mode and made sure you are not affected + // by the hardware problems. (Tip: double-check by performing a current + // measurement after shutdown: it should be less than 1 mA.) + regulators { dcdc1_reg: regulator@0 { regulator-name = "vdds_dpr"; -- 2.1.4