Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp667172img; Tue, 26 Feb 2019 06:41:45 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia77C0xVHDuQMXTmbw3/ITAS06mRUF7HFX7uVCM2MZpZGokuotpDdUL9UB42u/KEZXbsyTB X-Received: by 2002:a17:902:848f:: with SMTP id c15mr25884703plo.119.1551192105206; Tue, 26 Feb 2019 06:41:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551192105; cv=none; d=google.com; s=arc-20160816; b=iU9eZMZKBYKdULxYAL7XOkMT1B/cXhKT6PJSleG02DflsRUHZKHuyWhMYlJegHjEyb WwTy+qrxLogGEI819YatvZoiYl49rtn89DozJxmWoHcnnPMXYR/XCYcDAaHOybOOtTsA NLgwTCDh+gM0OqpPRrIti1bh7tXAlLWzClxtv2cwBi8RW4lxyvtS1hIxMm5iuqHUqdD6 XIiCxQuTaWNFDhbztdRDHp1Pg0bP6HDNsNHJgpfq3SKOqgg2MWk9UKXRjTbSCqrtjVoO D6TVuwwwjR9SeY/dFl1P+8wY6+r8lhmjb+xTYuxJq8QQ45WhoHRFJqde7uJdNOyEe9ti FfMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=BHXvu22yNrUWhlBH8xYzpHr7mbMyPnBCh0fBzW/TIyE=; b=LLMoua2syDyNiv4xSA4qat0ejHJWq9SZbJnPtILzYfGM58QMHd+XMUADphaGegIWaO U8lEQDcr2uxNW1JgfNeC0+bRphx5okng599Exv+Jysj5/4a1in4gedjgOykxj1RnjfGO 6boGh6Q2pl5Kv6TK5rc9Tr0oxYPb4UbnBw4VU8leNycohwGw13PYP/6QFUlX2doaU8+N s6M8q7A8BBmsHqEU0JM2SEPml5Oj6zcphP/3AadkrpQaXyMuCUWNRgmEQlTefdQe5zwO rpsTmL/DpKGaO7shypWF9sc/XzwzmhtT5u0evIy0Tg1JAw2i3b+SBQo8OH5qiSiG2eAo +xkA== 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 b17si1985814pfm.57.2019.02.26.06.41.29; Tue, 26 Feb 2019 06:41:45 -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 S1727520AbfBZOkp (ORCPT + 99 others); Tue, 26 Feb 2019 09:40:45 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:36123 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727239AbfBZOkn (ORCPT ); Tue, 26 Feb 2019 09:40:43 -0500 Received: from webmail.gandi.net (webmail6.sd4.0x35.net [10.200.201.6]) (Authenticated sender: contact@artur-rojek.eu) by relay1-d.mail.gandi.net (Postfix) with ESMTPA id C614524000F; Tue, 26 Feb 2019 14:40:38 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 26 Feb 2019 15:40:38 +0100 From: Artur Rojek To: Rob Herring Cc: Sebastian Reichel , Mark Rutland , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: Re: [PATCH 1/2] dt-bindings: power: supply: gpio-charger: Add status-gpios property In-Reply-To: <20190225215316.GA10117@bogus> References: <20190205190316.19296-1-contact@artur-rojek.eu> <20190225215316.GA10117@bogus> Message-ID: <780b0ff3bb738ab36a5e729f74e6cfb2@artur-rojek.eu> X-Sender: contact@artur-rojek.eu User-Agent: Roundcube Webmail/1.1.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob. Thanks for the review. On 2019-02-25 22:53, Rob Herring wrote: > On Tue, Feb 05, 2019 at 08:03:15PM +0100, Artur Rojek wrote: >> Add documentation for the "status-gpios" property. >> >> Signed-off-by: Artur Rojek >> --- >> .../devicetree/bindings/power/supply/gpio-charger.txt | 4 >> ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git >> a/Documentation/devicetree/bindings/power/supply/gpio-charger.txt >> b/Documentation/devicetree/bindings/power/supply/gpio-charger.txt >> index adbb5dc5b6e9..b98a05a4973c 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 the charger status > > So when it is asserted it has 'status'? What does status mean? It is a GPIO indicating whether a battery is charging. I shall make the description more clear. > >> + >> Example: >> >> usb_charger: charger { >> compatible = "gpio-charger"; >> charger-type = "usb-sdp"; >> gpios = <&gpf0 2 0 0 0>; >> + status-gpios = <&gpf0 3 0 0 0>; > > Humm, not sure what the thinking for 'gpios' was, but it's wrong and > you > just copied it. If we follow the normal cell encoding with 2 cells, > this > means the property takes 3 gpios (though the last 2 are marked not > present with 0). I will replace both of those properties with a valid example. Artur > > Rob