Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp690539img; Tue, 26 Feb 2019 07:04:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IZmi8+v78meHI0F6baJNqpGbtedUkak+hwLwFIa3NB4qKZxLbTGUXa+X6qE0oHxg4ff9JPK X-Received: by 2002:a17:902:22f:: with SMTP id 44mr26501712plc.137.1551193476144; Tue, 26 Feb 2019 07:04:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551193476; cv=none; d=google.com; s=arc-20160816; b=WTYriG91DPCzXyveai96D2UDkCKz3Yrgcr5oxvQgVRwKEKaRxqG93dayJI+jpk5q6B VOWe4nh/DvQ3Qk6WUthbkXn2ZRfAa0j1YQKVoQKu+MMGJodT0/YmK+7DOYb6di+ra2Qx wkhk/d+S4RNSxInWscns23lJ1zTJd87p4+dquJKRrwERrpy9e8VJc2Ug6YJ512LzFDXC bI+YqwWdoqFXoMhpRa/il7EjLLX0/NGMm6kan6OPoEMYLAWQVB5vgjTtUsMMm+1VfQ6O JY6hFa3khreKoEs6GIIgKSWhpz4y0o1aENcZ1zimy3gck2djrFKPhjTybzV5T5dQxE/a z6LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=fvZQ+oV1x8+5qh+Ul1+6ZsmP4KufBmlYnqexVH+GQfQ=; b=bEv09VGzzVGMh9fid8lMcG1esCDZlTEMZWnsXUnhglSx4hTUpRYciNH5ESNezTtS0P rBpfopVRaVHQX+oBuJbYz6AzTyCRhM7NuuTW3EaOOj8Wc7oyJrYZii3dZ7UbLfjT/l0M BRSTdQRtsz/Em3Tgl1CFAywDsjs7ir4XSvvn3GcVOQNr2ZONU5/nlE9Lp/LMWlh3dn72 RNKuctqQBvY/PlVG4+I3v1l3N0WRe9QzHASk44xdV2Vzui4Qlp0dM8q5mjd+3H1vmEtZ ouT8UJ8/XIsoisKXRTRkjC9ZJDbD7iagsevQGS1HcMVxkM8XHpffszzW11zGtU9LfuMi YDqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8si5228235pff.277.2019.02.26.07.04.20; Tue, 26 Feb 2019 07:04:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727501AbfBZPDt (ORCPT + 99 others); Tue, 26 Feb 2019 10:03:49 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:40009 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726151AbfBZPDt (ORCPT ); Tue, 26 Feb 2019 10:03:49 -0500 X-Originating-IP: 91.192.165.7 Received: from pc.localdomain (unknown [91.192.165.7]) (Authenticated sender: contact@artur-rojek.eu) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 3ABFE240003; Tue, 26 Feb 2019 15:03:45 +0000 (UTC) From: Artur Rojek To: Sebastian Reichel , Rob Herring , Mark Rutland Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil , Artur Rojek Subject: [PATCH v2 1/2] dt-bindings: power: supply: gpio-charger: Add status-gpios property Date: Tue, 26 Feb 2019 16:04:36 +0100 Message-Id: <20190226150437.3704-1-contact@artur-rojek.eu> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for the "status-gpios" property. Update the "gpios" property with a valid example. Signed-off-by: Artur Rojek --- Changes: v2: - add a better description for the "status-gpios" property, - add valid examples for the "gpios" and "status-gpios" properties .../devicetree/bindings/power/supply/gpio-charger.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/power/supply/gpio-charger.txt b/Documentation/devicetree/bindings/power/supply/gpio-charger.txt index adbb5dc5b6e9..999cc245543c 100644 --- a/Documentation/devicetree/bindings/power/supply/gpio-charger.txt +++ b/Documentation/devicetree/bindings/power/supply/gpio-charger.txt @@ -14,12 +14,16 @@ Required properties : usb-cdp (USB charging downstream port) usb-aca (USB accessory charger adapter) +Optional properties: + - status-gpios: GPIO indicating whether a battery is charging. + Example: usb_charger: charger { compatible = "gpio-charger"; charger-type = "usb-sdp"; - gpios = <&gpf0 2 0 0 0>; + gpios = <&gpd 28 GPIO_ACTIVE_LOW>; + status-gpios = <&gpc 27 GPIO_ACTIVE_LOW>; } battery { -- 2.21.0