From patchwork Tue Oct 29 20:02:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 178058 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp287720ill; Tue, 29 Oct 2019 13:03:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUUCaPeqAVMLzsIGz66WsZh+ddeB52AkcPqaivCBmmycNujFr15hcwDd+pypyETPkTAYmN X-Received: by 2002:aa7:d891:: with SMTP id u17mr27234062edq.282.1572379386442; Tue, 29 Oct 2019 13:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572379386; cv=none; d=google.com; s=arc-20160816; b=oRhpyEjT4Tot/JOdX6Z5rDZ6LHmlNU1JDwK2QaCHiAuu7XIYK9Ak5sWGc98rrAg+7o Ww1IXLlYr3yU9cIwFfrGLyybs39n+BX5NCXk7xVzS2a4zdOp7KD2OPDEC0wzPoiamvu8 8y0/+ljt7MzRQauBTLXEjpBEtmuNCBprKcCoahKfN3Qj/898S/6ziNGVqKXnro4jPWk1 Yw5M8CocQ0N19jTKRWF+04Ttt6q78QOtNXt8QS1KJ0xBLao7+aoNRq94mvL+6y9hpD4j MYhN2WKHk3OsaSdrRrT+LH8RMWKfelhrdVb8ooqkvMksUDI/fbif8vt5WruOMfu5MJ5A aRog== 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=y49m7ZpWcPJRbHzJ5NyQ2rYAhLlPDo7yM8vHzQkdWVM=; b=B/7lASwFjbzEhUSjR+kEdhiT7ZLT9P0XzI5WWMRbLjDMb1PoLCUbt6hWIEwSgaSaE+ aiflSeydMkNrN57KaHDdx9pUKuFD6EjcXEGGXNCNpQzjpi9Ufgxj5vnuvzm1pEbexeam gjazaKRcisMyhr+ihhKUCQQP2rRSoQYML1Mont2lbE4OlKfaJpRbgg8dkv1ZWy8SJ7u7 w0/askS78AdMehY0ZnhGww9BZT4NyteREqTzSdlYfKX1aAFhzbFeutxdfaZcGBpx4XXR KlMjpZnzyXvqoJHfVixV5WNjCjGNyAgGwk6TFC7uzkooXBOaKfgmcLeUMPItqKd0i1rK 6q0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=afrHLPwe; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 b19si10682547edb.40.2019.10.29.13.03.06; Tue, 29 Oct 2019 13:03:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=afrHLPwe; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1726510AbfJ2UDF (ORCPT + 10 others); Tue, 29 Oct 2019 16:03:05 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:60056 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbfJ2UDF (ORCPT ); Tue, 29 Oct 2019 16:03:05 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9TK338K088307; Tue, 29 Oct 2019 15:03:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1572379383; bh=y49m7ZpWcPJRbHzJ5NyQ2rYAhLlPDo7yM8vHzQkdWVM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=afrHLPweEXrdOEpyTD99KiKCeKtVttg2g+CvasU7FwiUw++SEWz3evJIdVSY8/5+U uSM4STsNBX4rtoEE1XLtcNhJfki1OBquicZXq2lKwIEYt+LlbaQWgZkLGHnNqVqC/6 NPxUoot6Tde0cuzzwAkGJCTu72BSc4qqlgXXgpg4= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9TK33ZS021582 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 29 Oct 2019 15:03:03 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 29 Oct 2019 15:02:50 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Tue, 29 Oct 2019 15:02:50 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9TK33Jb033223; Tue, 29 Oct 2019 15:03:03 -0500 From: Dan Murphy To: , CC: , Dan Murphy , Rob Herring Subject: [PATCH v2 2/3] dt-bindings: power: Add the bq2515x family dt bindings Date: Tue, 29 Oct 2019 15:02:00 -0500 Message-ID: <20191029200201.24483-2-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20191029200201.24483-1-dmurphy@ti.com> References: <20191029200201.24483-1-dmurphy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 CC: Rob Herring --- v2 - Converted to yaml format and removed ti,* properties for already defined properties .../bindings/power/supply/bq2515x.yaml | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/bq2515x.yaml -- 2.22.0.214.g8dca754b1e diff --git a/Documentation/devicetree/bindings/power/supply/bq2515x.yaml b/Documentation/devicetree/bindings/power/supply/bq2515x.yaml new file mode 100644 index 000000000000..4e6225056f45 --- /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 + + voltage-max-design-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>; + }; + };