Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8302210ybl; Thu, 16 Jan 2020 14:13:31 -0800 (PST) X-Google-Smtp-Source: APXvYqyYWUXygsCQV6O9VWezsQp6zRAoIioM2tthA5qAqJgVUa022BS6fsg5rVAsMEQA+ZxM8esO X-Received: by 2002:a05:6808:251:: with SMTP id m17mr1100080oie.15.1579212811489; Thu, 16 Jan 2020 14:13:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579212811; cv=none; d=google.com; s=arc-20160816; b=DCBryUnayscAm6Tg8bVX7XZxXGjx2Q1P6K46qDcMnai5ZEkJ019cUldGeBjOgwo0Um sfxZGEIRZU/B2vwAte72WvbaIIEFIn+C6P8gMCMBCfEyx5woEf0Pk/tntwrXrnrb63pW d2V8FTUPpwgdocwPHBHtbw62N93WEX/ntFYGEfOeRt3qyZYlXlXIPwbpe0Y/t0gfST6b HrIqG3w10R3kDGK7BZZK4wUD3DRHn2Tbl4CVKm/1CIwoXtkKJcAN6C6ZxSRxdgui62eA 574ifwRzj271X9RARxzn870nEO0S16TCXIbgSW5GyBXHkoWIEc6chF7E7lGmAK1nkTFF YEOg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=B6F7pyXdU2wc51jU/3JM/80f6cY1moA5Y8ew6WJIoeg=; b=arlWxM8H908UpJ/JP+wcKLV2VisHH4b0t3wtZS5GeGSyma8apxvI3n/AttoG2fvKik QVUQv0NZZll7pRV4JD/lY+vSmkTGLCr4Ap/ZlAnAfe+6j9/fEHwkGQ2c2kX06Qx6tzMC QwPaioxr6w33S+6DRYl7exfYbK/l5fqAwo93nw013uJjJvAjV0Hk54oWO2Tbu3zqlFET HaEdJEC2di2sxRaYH+OfsdgSlZgwrkRp24gdsGbJe/mcKbS3Ii6meqVN4/wL9pWR0n4d yaMqFOlXuH7es29WAbeG97KzYtIGyno0vw3wFVjNWQUMF7/PjqB1DBYqvWLqieHaIO3l bZdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lHqSloGr; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si16318344otg.248.2020.01.16.14.13.19; Thu, 16 Jan 2020 14:13:31 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lHqSloGr; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406174AbgAPRxv (ORCPT + 99 others); Thu, 16 Jan 2020 12:53:51 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:58726 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394448AbgAPRxo (ORCPT ); Thu, 16 Jan 2020 12:53:44 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 00GHrfjR014806; Thu, 16 Jan 2020 11:53:41 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1579197221; bh=B6F7pyXdU2wc51jU/3JM/80f6cY1moA5Y8ew6WJIoeg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=lHqSloGrjJfFbt3br4/oZrIrkCcLkHhzNbO6LAOdM7JMtuKZnTBo7tVosJwpuioEi 91BCfA0XFV0VkdxkxPtYvo3PjMCqGq/Qn3ze4Xzay3oztguDrgJ/9BN56xzwRqkQBt zwRQcGlF47kvpT2V0yPJd7J/RRsOURFxzggJzHwA= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 00GHrfp1039198; Thu, 16 Jan 2020 11:53:41 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 16 Jan 2020 11:53:41 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 16 Jan 2020 11:53:41 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 00GHrebF040580; Thu, 16 Jan 2020 11:53:41 -0600 From: Dan Murphy To: CC: , , Dan Murphy Subject: [PATCH v4 3/4] dt-bindings: power: Add the bq2515x family dt bindings Date: Thu, 16 Jan 2020 11:50:38 -0600 Message-ID: <20200116175039.1317-4-dmurphy@ti.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200116175039.1317-1-dmurphy@ti.com> References: <20200116175039.1317-1-dmurphy@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the bindings for the bq25150 and bq25155 500mA charging ICs from Texas Instruments. Datasheet: http://www.ti.com/lit/ds/symlink/bq25150.pdf http://www.ti.com/lit/ds/symlink/bq25155.pdf Signed-off-by: Dan Murphy --- .../bindings/power/supply/bq2515x.yaml | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/bq2515x.yaml diff --git a/Documentation/devicetree/bindings/power/supply/bq2515x.yaml b/Documentation/devicetree/bindings/power/supply/bq2515x.yaml new file mode 100644 index 000000000000..670952021e8d --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/bq2515x.yaml @@ -0,0 +1,85 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (C) 2019 Texas Instruments Incorporated +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/power/supply/bq2515x.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: TI bq2515x 500-mA Linear charger family + +maintainers: + - Dan Murphy + +description: | + The BQ2515x family is a highly integrated battery charge management IC that + integrates the most common functions for wearable devices, namely a charger, + an output voltage rail, ADC for battery and system monitoring, and + push-button controller. + + Specifications about the charger can be found at: + http://www.ti.com/lit/ds/symlink/bq25150.pdf + http://www.ti.com/lit/ds/symlink/bq25155.pdf + +properties: + compatible: + enum: + - ti,bq25150 + - ti,bq25155 + + reg: + maxItems: 1 + + pg-gpios: + description: | + GPIO used for connecting the bq2515x device PG (Power Good) + pin. This pin should be used if possible as this is the + recommended way to obtain the charger's input PG state. + If this pin is not specified a software-based approach for PG + detection is used. + + reset-gpios: + description: | + GPIO used for hardware reset. + + low-power-gpios: + description: | + GPIO used for low power mode of IC. + + charge-enable-gpios: + description: | + GPIO used to turn on and off charging. + + constant-charge-current-max-microamp: + description: | + Maximum charging current in micro Amps. + minimum: 50000 + maximum: 600000 + + constant-charge-voltage-max-microvolt: + description: | + Maximum charging voltage in micro volts. + minimum: 3600000 + maximum: 4600000 + +required: + - compatible + - reg + +examples: + - | + #include + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + charger@6b { + compatible = "ti,bq25150"; + reg = <0x6b>; + + pg-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + low-power-gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; + charge-enable-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + constant-charge-current-max-microamp = <300000>; + voltage-max-design-microvolt = <4200000>; + }; + }; -- 2.25.0