Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3247110imj; Mon, 11 Feb 2019 17:03:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IYWLJU5Ww70FDyGh3db1aV0pcqOfSd66aQ1G2K7y+QAibQOGhbLPWDOsBguKB6tQLyAWof4 X-Received: by 2002:a63:d34a:: with SMTP id u10mr1083406pgi.301.1549933422965; Mon, 11 Feb 2019 17:03:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549933422; cv=none; d=google.com; s=arc-20160816; b=Kl/eKprdL6cJbaSkL0BYeTuEDhgGLW2ELNdufNi8QkUgR6vheM7asqUjrf/PLB4l4w MDTDJui/LzT6dc3rSX77ORMFiAMhjhmYWT2UgEbkH6zO7/t4DPbIitU64pYo8h8r4Q4/ fMBaFdwYo5Gg1VmAw8mVFTgLfaEwd3XDEI/tTRT6PbvDV6VIXtWXDnD+Z62MGyNSJRwV fdNbFen8heLnyxfaJMF8UQfrjBpE9Quv/UsGhyB1gnKHeKFB1pV9NN2sG2wa45l89Yh3 ejOYZ0dPg+FtHBbL1WYJdXjNtnUZgGtc7ua9W2qomPA6Myp3ItQ9Tgou/VSoweKZQwDi EKvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=NqSqh/k8/vb1uRp/4U5x/bOnvXaRMd/C4PFvkOQk0zE=; b=NiQ8tLmDVhL0lat1kWJsgRPzun13bvZBG7Bd6b6F/x5W2doJ2NbCkY0hOPXd8A2Upf ka6hzuAaJPrkYNDMOh2wMFr3BBTRpryCX7nLD0wh3FwFbqsDTbDLJjlNo6TwXmrtUaPB 3uCiPRxeG2aUrF+3laIj0d50mZVP8wgAjsNQAlBCqBPoNL3qjh+/gpd9H5cDlLmuOeFt Y/gol7GPM2vnqIeKRCLq1Sw0WSYAmN4x2JDD+Gx+XiaONVfUnB5L52/mnUePfOvF/phl WgcSDbDVU0lRu3HFxUtIJClYUqahnDElkl/gINkhD+RoZM48XE+5ImFC4a0pk+KUyA8H GcFA== 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 i11si4017031plt.190.2019.02.11.17.03.26; Mon, 11 Feb 2019 17:03:42 -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 S1728140AbfBLBDF (ORCPT + 99 others); Mon, 11 Feb 2019 20:03:05 -0500 Received: from mx0a-00010702.pphosted.com ([148.163.156.75]:57208 "EHLO mx0b-00010702.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728110AbfBLBDB (ORCPT ); Mon, 11 Feb 2019 20:03:01 -0500 Received: from pps.filterd (m0098781.ppops.net [127.0.0.1]) by mx0a-00010702.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1C11GXP009611; Mon, 11 Feb 2019 19:02:56 -0600 Received: from ni.com (skprod3.natinst.com [130.164.80.24]) by mx0a-00010702.pphosted.com with ESMTP id 2qhus0se7c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 11 Feb 2019 19:02:56 -0600 Received: from us-aus-exch2.ni.corp.natinst.com (us-aus-exch2.ni.corp.natinst.com [130.164.68.12]) by us-aus-skprod3.natinst.com (8.16.0.27/8.16.0.27) with ESMTPS id x1C12s6U016801 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 11 Feb 2019 19:02:54 -0600 Received: from us-aus-exch4.ni.corp.natinst.com (130.164.68.14) by us-aus-exch2.ni.corp.natinst.com (130.164.68.12) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 11 Feb 2019 19:02:54 -0600 Received: from us-aus-exhub1.ni.corp.natinst.com (130.164.68.41) by us-aus-exch4.ni.corp.natinst.com (130.164.68.14) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 11 Feb 2019 19:02:54 -0600 Received: from nisurp-linux-2.ni.corp.natinst.com (130.164.49.7) by us-aus-exhub1.ni.corp.natinst.com (130.164.68.41) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 11 Feb 2019 19:02:54 -0600 From: Virendra Kakade To: , , CC: , , , , , Virendra Kakade Subject: [RFC 5/6] power: supply: Ettus Research E31x battery driver Date: Mon, 11 Feb 2019 19:01:42 -0600 Message-ID: <20190212010143.3729-6-virendra.kakade@ni.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190212010143.3729-1-virendra.kakade@ni.com> References: <20190212010143.3729-1-virendra.kakade@ni.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-12_01:,, signatures=0 X-Proofpoint-Spam-Reason: safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document bindings for the E31x devices battery. Signed-off-by: Virendra Kakade --- Documentation/devicetree/bindings/mfd/e31x-pmu.txt | 8 +++++++- .../bindings/power/supply/e31x-battery.txt | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/power/supply/e31x-battery.txt diff --git a/Documentation/devicetree/bindings/mfd/e31x-pmu.txt b/Documentation/devicetree/bindings/mfd/e31x-pmu.txt index 3798886578ba..223ab9e0d680 100644 --- a/Documentation/devicetree/bindings/mfd/e31x-pmu.txt +++ b/Documentation/devicetree/bindings/mfd/e31x-pmu.txt @@ -4,11 +4,14 @@ Required properties: - compatible : Must be "ni,e31x-pmu" - regmap : Must be <®mapnode> -e31x-pmu has a sub-device called e31x-charger. +e31x-pmu consists of two sub-devices, e31x-charger and e31x-battery. For the e31x-charger properties please refer to: Documentation/device-tree/bindings/power/supply/e31x-charger.txt +For the e31x-battery properties please refer to: +Documentation/device-tree/bindings/power/supply/e31x-battery.txt + Example: pmu { @@ -18,5 +21,8 @@ pmu { charger: charger@0{ compatible = "ni,e31x-charger"; }; + battery: battery@1{ + compatible = "ni,e31x-battery"; + }; }; diff --git a/Documentation/devicetree/bindings/power/supply/e31x-battery.txt b/Documentation/devicetree/bindings/power/supply/e31x-battery.txt new file mode 100644 index 000000000000..e09cd92ef82e --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/e31x-battery.txt @@ -0,0 +1,14 @@ +Ettus Research/National Instruments E31x Devices Battery + +Some variants of the E31x devices have an in-built Li-ion +battery. This driver provides capability to monitor +the battery. + +Required properties: +- compatible: Must be "ni,e31x-battery" + +Example: + +battery: battery@0{ + compatible = "ni,e31x-battery"; +}; -- 2.17.1