From patchwork Tue Feb 12 01:01:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Virendra Kakade X-Patchwork-Id: 1040300 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ni.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43z4Ch1cBkz9sLw for ; Tue, 12 Feb 2019 12:03:28 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728057AbfBLBCv (ORCPT ); Mon, 11 Feb 2019 20:02:51 -0500 Received: from mx0a-00010702.pphosted.com ([148.163.156.75]:43130 "EHLO mx0b-00010702.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727492AbfBLBCv (ORCPT ); Mon, 11 Feb 2019 20:02:51 -0500 Received: from pps.filterd (m0098780.ppops.net [127.0.0.1]) by mx0a-00010702.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1C11Ghx001122; Mon, 11 Feb 2019 19:02:44 -0600 Received: from ni.com (skprod3.natinst.com [130.164.80.24]) by mx0a-00010702.pphosted.com with ESMTP id 2qhw8uh4uq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 11 Feb 2019 19:02:43 -0600 Received: from us-aus-exhub2.ni.corp.natinst.com (us-aus-exhub2.ni.corp.natinst.com [130.164.68.32]) by us-aus-skprod3.natinst.com (8.16.0.27/8.16.0.27) with ESMTPS id x1C12hjo016758 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 11 Feb 2019 19:02:43 -0600 Received: from us-aus-exch4.ni.corp.natinst.com (130.164.68.14) by us-aus-exhub2.ni.corp.natinst.com (130.164.68.32) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 11 Feb 2019 19:02:42 -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:42 -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:42 -0600 From: Virendra Kakade To: , , CC: , , , , , Virendra Kakade Subject: [RFC 1/6] mfd: Support for Ettus Research E31x devices PMU Date: Mon, 11 Feb 2019 19:01:38 -0600 Message-ID: <20190212010143.3729-2-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 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-02-12_01:, , signatures=0 X-Proofpoint-Spam-Reason: safe Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document bindings for E31x device PMU MFD driver. Signed-off-by: Virendra Kakade --- Documentation/devicetree/bindings/mfd/e31x-pmu.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/e31x-pmu.txt diff --git a/Documentation/devicetree/bindings/mfd/e31x-pmu.txt b/Documentation/devicetree/bindings/mfd/e31x-pmu.txt new file mode 100644 index 000000000000..ebb5625f6c74 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/e31x-pmu.txt @@ -0,0 +1,14 @@ +Ettus Research/National Instruments E31x PMU MFD driver + +Required properties: +- compatible : Must be "ni,e31x-pmu" +- regmap : Must be <®mapnode> + +Example: + +pmu { + compatible = "ni,e31x-pmu"; + regmap = <&devctrl>; + status = "okay"; +}; + From patchwork Tue Feb 12 01:01:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Virendra Kakade X-Patchwork-Id: 1040298 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ni.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43z4C70Jp9z9s5c for ; Tue, 12 Feb 2019 12:02:59 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728092AbfBLBC5 (ORCPT ); Mon, 11 Feb 2019 20:02:57 -0500 Received: from mx0a-00010702.pphosted.com ([148.163.156.75]:57182 "EHLO mx0b-00010702.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728042AbfBLBCy (ORCPT ); Mon, 11 Feb 2019 20:02:54 -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 x1C11HRV009616; Mon, 11 Feb 2019 19:02:49 -0600 Received: from ni.com (skprod2.natinst.com [130.164.80.23]) by mx0a-00010702.pphosted.com with ESMTP id 2qhus0se77-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 11 Feb 2019 19:02:49 -0600 Received: from us-aus-exch2.ni.corp.natinst.com (us-aus-exch2.ni.corp.natinst.com [130.164.68.12]) by us-aus-skprod2.natinst.com (8.16.0.27/8.16.0.27) with ESMTPS id x1C12mw7016515 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 11 Feb 2019 19:02:48 -0600 Received: from us-aus-exhub1.ni.corp.natinst.com (130.164.68.41) 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:48 -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:48 -0600 From: Virendra Kakade To: , , CC: , , , , , Virendra Kakade Subject: [RFC 3/6] power: supply: Ettus Research E31x charger driver Date: Mon, 11 Feb 2019 19:01:40 -0600 Message-ID: <20190212010143.3729-4-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 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-02-12_01:, , signatures=0 X-Proofpoint-Spam-Reason: safe Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document bindings for the E31x devices charger. Signed-off-by: Virendra Kakade --- Documentation/devicetree/bindings/mfd/e31x-pmu.txt | 8 ++++++++ .../bindings/power/supply/e31x-charger.txt | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/e31x-charger.txt diff --git a/Documentation/devicetree/bindings/mfd/e31x-pmu.txt b/Documentation/devicetree/bindings/mfd/e31x-pmu.txt index ebb5625f6c74..3798886578ba 100644 --- a/Documentation/devicetree/bindings/mfd/e31x-pmu.txt +++ b/Documentation/devicetree/bindings/mfd/e31x-pmu.txt @@ -4,11 +4,19 @@ Required properties: - compatible : Must be "ni,e31x-pmu" - regmap : Must be <®mapnode> +e31x-pmu has a sub-device called e31x-charger. + +For the e31x-charger properties please refer to: +Documentation/device-tree/bindings/power/supply/e31x-charger.txt + Example: pmu { compatible = "ni,e31x-pmu"; regmap = <&devctrl>; status = "okay"; + charger: charger@0{ + compatible = "ni,e31x-charger"; + }; }; diff --git a/Documentation/devicetree/bindings/power/supply/e31x-charger.txt b/Documentation/devicetree/bindings/power/supply/e31x-charger.txt new file mode 100644 index 000000000000..ae9fedcbf1b2 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/e31x-charger.txt @@ -0,0 +1,14 @@ +Ettus Research/National Instruments E31x Devices Charger + +All E31x devices have to be connected to an external power supply +charger to charge the in-built battery or supply power. +Some capability is provided to monitor this charger. + +Required properties: +- compatible: Must be "ni,e31x-charger" + +Example: + +charger: charger@0{ + compatible = "ni,e31x-charger"; +}; From patchwork Tue Feb 12 01:01:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Virendra Kakade X-Patchwork-Id: 1040299 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ni.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43z4CN0LH5z9sN1 for ; Tue, 12 Feb 2019 12:03:12 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728130AbfBLBDE (ORCPT ); Mon, 11 Feb 2019 20:03:04 -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 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-02-12_01:, , signatures=0 X-Proofpoint-Spam-Reason: safe Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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"; +};