From patchwork Tue Feb 10 08:12:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 5805221 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B25C79F37F for ; Tue, 10 Feb 2015 08:13:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E9F4F20117 for ; Tue, 10 Feb 2015 08:13:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 27E1220108 for ; Tue, 10 Feb 2015 08:13:13 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YL5wW-00075D-Qi; Tue, 10 Feb 2015 08:13:12 +0000 Received: from mail-yh0-f43.google.com ([209.85.213.43]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YL5wU-0006zL-Aj for linux-rockchip@lists.infradead.org; Tue, 10 Feb 2015 08:13:10 +0000 Received: by mail-yh0-f43.google.com with SMTP id c41so3751556yho.2 for ; Tue, 10 Feb 2015 00:12:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3o1zIVMa7PGSd6ZbaCA29Xagj/FnsoWCYR68hT1NJAk=; b=ZDY9qIb+tuGeJmHmKNF9miWIPfvB7OlPGJO7BgAYcPY37UY9CVKlCpQfcqGpKOJgDB XyHxbTMR75MDU1lVrR6P0YmienliASDPtF94FA9Rw3YUjOUlEVxX+0CvYMG4fv9k2vx0 szR8QnZtAppgscANIL7T2GTMgV2+udgvcRUObWXflS3dCgD+gruXKXsuQJ6B/+1xX8rZ 6a+RujSnJ8/xi+pouyB8SnE8mpjhJ7YHpDQLER4b4xUZAV7jGlOLFNRlUzxbDykLTDdz Bt8f13ObbcNUQvo5LdCbW+SCFWn6rrA0hCSXV9jghI5RdZVXLgvzqedy5szfKcCbSOCg U0rw== X-Received: by 10.170.160.65 with SMTP id b62mr9235058ykd.89.1423555968285; Tue, 10 Feb 2015 00:12:48 -0800 (PST) Received: from localhost.localdomain ([192.255.70.23]) by mx.google.com with ESMTPSA id o47sm9345952yhd.48.2015.02.10.00.12.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Feb 2015 00:12:47 -0800 (PST) From: Chris Zhong To: heiko@sntech.de, dianders@chromium.org, dtor@chromium.org, djkurtz@chromium.org, sonnyrao@chromium.org Subject: [PATCH 1/2] dt-bindings: add disable-wakeup property for gpio-charger Date: Tue, 10 Feb 2015 16:12:24 +0800 Message-Id: <1423555945-24289-2-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423555945-24289-1-git-send-email-zyw@rock-chips.com> References: <1423555945-24289-1-git-send-email-zyw@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150210_001310_459148_51065278 X-CRM114-Status: UNSURE ( 5.53 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , Kumar Gala , Chris Zhong , Heiko Stuebner X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP add disable-wakeup for gpio-charger, if you set this property, system will not wakeup by gpio-charger. Signed-off-by: Chris Zhong --- Documentation/devicetree/bindings/power_supply/gpio-charger.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/power_supply/gpio-charger.txt b/Documentation/devicetree/bindings/power_supply/gpio-charger.txt index adbb5dc..a46e9bc 100644 --- a/Documentation/devicetree/bindings/power_supply/gpio-charger.txt +++ b/Documentation/devicetree/bindings/power_supply/gpio-charger.txt @@ -4,6 +4,7 @@ Required properties : - compatible : "gpio-charger" - gpios : GPIO indicating the charger presence. See GPIO binding in bindings/gpio/gpio.txt . + - gpio-charger,disable-wakeup : Boolean, charger does not wake-up the system. - charger-type : power supply type, one of unknown battery @@ -20,6 +21,7 @@ Example: compatible = "gpio-charger"; charger-type = "usb-sdp"; gpios = <&gpf0 2 0 0 0>; + gpio-charger,disable-wakeup; } battery {