From patchwork Wed Jun 17 10:23:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11609565 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1872013A0 for ; Wed, 17 Jun 2020 10:23:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EB3BC20CC7 for ; Wed, 17 Jun 2020 10:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592389422; bh=z98OmwGp/U/sP1M/3iSh1+F1PR3c5cPSZzzfTz+XxYo=; h=From:To:Subject:Date:List-ID:From; b=c1BP9HugbLUIBLqviXIPGPx8w/70VV1plNO08fFxs8NmfA43vl3XvHSDQl5u2xZyX ezEPaym+Z1cchI+J4ZqWOtkpC9tUq6ILMDOZE0PF/CqOt8TYU7DXfdKmcwAYL3FAdV WxEwpwQB4LUGpVioK/kQPc8znch9dzWEuDMQrCvw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726211AbgFQKXV (ORCPT ); Wed, 17 Jun 2020 06:23:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:43282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgFQKXK (ORCPT ); Wed, 17 Jun 2020 06:23:10 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8D9AE20739; Wed, 17 Jun 2020 10:23:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592389390; bh=z98OmwGp/U/sP1M/3iSh1+F1PR3c5cPSZzzfTz+XxYo=; h=From:To:Subject:Date:From; b=tRB1COmIL0c/C0s4l8RfiPlH5dh7aq7vxbY1PCUV+UnLD87XTOBsFlSZSrSD26Rxq T7Z71c/jyjtTn1zpekPz6Egfbfqj4Nf4Y587FP8QPl+nPaQV5nSH0Nt4B7T0XveVm7 miMKYtKwQ8sAcQy3hjTBlOkQ2uVwbFjvY0lRdQ3I= From: Krzysztof Kozlowski To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Laurentiu Palcu , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: power: supply: bq25890: Indent example with tabs Date: Wed, 17 Jun 2020 12:23:04 +0200 Message-Id: <20200617102305.14241-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Fix example indentation to tabs to follow generic Linux coding style. This avoids copying the space indentation to DTS when re-using the example. Signed-off-by: Krzysztof Kozlowski --- .../bindings/power/supply/bq25890.txt | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/power/supply/bq25890.txt b/Documentation/devicetree/bindings/power/supply/bq25890.txt index dc9c8f76e06c..51ecc756521f 100644 --- a/Documentation/devicetree/bindings/power/supply/bq25890.txt +++ b/Documentation/devicetree/bindings/power/supply/bq25890.txt @@ -36,17 +36,17 @@ Optional properties: Example: bq25890 { - compatible = "ti,bq25890"; - reg = <0x6a>; + compatible = "ti,bq25890"; + reg = <0x6a>; - ti,battery-regulation-voltage = <4200000>; - ti,charge-current = <1000000>; - ti,termination-current = <50000>; - ti,precharge-current = <128000>; - ti,minimum-sys-voltage = <3600000>; - ti,boost-voltage = <5000000>; - ti,boost-max-current = <1000000>; + ti,battery-regulation-voltage = <4200000>; + ti,charge-current = <1000000>; + ti,termination-current = <50000>; + ti,precharge-current = <128000>; + ti,minimum-sys-voltage = <3600000>; + ti,boost-voltage = <5000000>; + ti,boost-max-current = <1000000>; - ti,use-ilim-pin; - ti,thermal-regulation-threshold = <120>; + ti,use-ilim-pin; + ti,thermal-regulation-threshold = <120>; }; From patchwork Wed Jun 17 10:23:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11609567 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0DBDD90 for ; Wed, 17 Jun 2020 10:24:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA6C9214D8 for ; Wed, 17 Jun 2020 10:23:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592389440; bh=q4XtEUaNAPjAlHRDzfBXndousVziD4EzqeUrETXxBjM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Vq6jCkemFVpp7AZp3uTLJ40ampJt0R4EG5ucfHvgjrsfQODb+oOm8q4gPx40gnXzo 3SDWVxIXImJ4LgRD1IZcEjJJlGPd0CDPW3k6ojlabEV8rHaQB+YpFcjSOKGmLm9qnl 2xdX4gf/2KpGlysSw5XI+VJlP/l+5qRZfUCForgc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726538AbgFQKXq (ORCPT ); Wed, 17 Jun 2020 06:23:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:43286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725964AbgFQKXP (ORCPT ); Wed, 17 Jun 2020 06:23:15 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4C418214D8; Wed, 17 Jun 2020 10:23:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592389394; bh=q4XtEUaNAPjAlHRDzfBXndousVziD4EzqeUrETXxBjM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0MCVuvHI4/1WTFEjLx/PerIQCGJWPkXUx8NmAPAuT+j6OWVH2KxRnjyvdt2jK8+s0 7ayqOmzHDqBByicUIi1G7WN6rwNZdX4ChqzQOGRlVZ9muaJ7ewvrGl8DKhbpe34EPM MzliQlc5UYP6C7dFO4dXAxjMjubYHD0FWHaRvuYg= From: Krzysztof Kozlowski To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Laurentiu Palcu , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: power: supply: bq25890: Document required interrupt Date: Wed, 17 Jun 2020 12:23:05 +0200 Message-Id: <20200617102305.14241-2-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200617102305.14241-1-krzk@kernel.org> References: <20200617102305.14241-1-krzk@kernel.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The driver requires interrupts (fails probe if it is not provided) so document this requirement in bindings. Fixes: 4aeae9cb0dad ("power_supply: Add support for TI BQ25890 charger chip") Cc: Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/power/supply/bq25890.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/bq25890.txt b/Documentation/devicetree/bindings/power/supply/bq25890.txt index 51ecc756521f..3b4c69a7fa70 100644 --- a/Documentation/devicetree/bindings/power/supply/bq25890.txt +++ b/Documentation/devicetree/bindings/power/supply/bq25890.txt @@ -10,6 +10,7 @@ Required properties: * "ti,bq25895" * "ti,bq25896" - reg: integer, i2c address of the device. +- interrupts: interrupt line; - ti,battery-regulation-voltage: integer, maximum charging voltage (in uV); - ti,charge-current: integer, maximum charging current (in uA); - ti,termination-current: integer, charge will be terminated when current in @@ -39,6 +40,9 @@ bq25890 { compatible = "ti,bq25890"; reg = <0x6a>; + interrupt-parent = <&gpio1>; + interrupts = <16 IRQ_TYPE_EDGE_FALLING>; + ti,battery-regulation-voltage = <4200000>; ti,charge-current = <1000000>; ti,termination-current = <50000>;