Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1273739yba; Sun, 14 Apr 2019 05:39:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxURS9wFpWPOtMoWNY3uFAb5XSYMOLAfpQeVdtJx2KHeGb5ReE0cISTQ7kY6ufTDpmW/x07 X-Received: by 2002:a17:902:822:: with SMTP id 31mr43797806plk.41.1555245561758; Sun, 14 Apr 2019 05:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555245561; cv=none; d=google.com; s=arc-20160816; b=rr3HDbZfq17bp8jDBqDxaa4kpwQBaefaqXGnComZ5lt2CFE/QPW23uD5trN0ASFzzP F6dGTTqIznK8H7Zh7DcWvw5KVf+d8/+JBUOwF8ohaTTYWrcfQ8ZonX5zksqh8uSWV157 z2dGIXUQExhOjqlgrCCNB9UMdjdRgLcPqdBdAbe/EnChs6NSsuAYpKLSD217GPjHwcdX utdVteHq22nUlR6txaBzDy7gVnHovmqPgj0xKDdMm8nHE/Lg1HTCatEPEiV8/GA8ZRQJ 6m5pi23NxFhk+sloYYiiELCaRDDnmQYB3/9tz0p2h4zocvl+heQtvmWSf+DBeYlpOaP8 nPgA== 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=v0vxe9kjaOgBWHEJ2SP6Ulc8lLlqbEsatT0RTa2KT2Q=; b=dBxbczHSN7O88F2x0UrZiASFE6qV6GI1tbBokZqYyLd133LhU+UETNUuFTMunqFj8o CCheVH8MqWGPZuuBSwdDTN7UQsFs6G8dOYMkDeJFvalyoBF085tlT/Hvh1FJKH5SlzPt lPAUrv3KODCBdbpIGna/9Uo1ySBNr9OZiQdKnCg8qeG3XYmeT49IECSiZeQxkRJ+6ZAe VfjD+gzwlJkaVEppKZPTSq2wJIGgHwgBw9SMK2QHYl927pM8PvXWProPyb/MX4EXOmzJ zVweK4jPs3fx0QZotBVQ9P3YqEoBN+EPi56/d3Wz4DlQ6t9gc9HNusDfDSTdAuyrnNbS gr0g== 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 c186si43236275pfg.160.2019.04.14.05.39.05; Sun, 14 Apr 2019 05:39:21 -0700 (PDT) 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 S1726500AbfDNMib (ORCPT + 99 others); Sun, 14 Apr 2019 08:38:31 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:52201 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbfDNMib (ORCPT ); Sun, 14 Apr 2019 08:38:31 -0400 Received: from pc.localdomain (unknown [195.189.32.242]) (Authenticated sender: contact@artur-rojek.eu) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 8D675200011; Sun, 14 Apr 2019 12:38:27 +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 , Rob Herring Subject: [PATCH v3 1/2] dt-bindings: power: supply: Add charge-status-gpios property Date: Sun, 14 Apr 2019 14:40:38 +0200 Message-Id: <20190414124039.10040-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 "charge-status-gpios" property. Update the "gpios" property with a valid example. Signed-off-by: Artur Rojek Reviewed-by: Rob Herring --- Changes: v2: - add a better description for the "status-gpios" property, - add valid examples for the "gpios" and "status-gpios" properties v3: rename the "status-gpios" property to "charge-status-gpios" .../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..30349332f051 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: + - charge-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>; + charge-status-gpios = <&gpc 27 GPIO_ACTIVE_LOW>; } battery { -- 2.21.0