From patchwork Tue May 19 13:10:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Twiss X-Patchwork-Id: 473906 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-wi0-x237.google.com (mail-wi0-x237.google.com [IPv6:2a00:1450:400c:c05::237]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41035140B0E for ; Tue, 19 May 2015 23:30:15 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=Oe3HBK6L; dkim-atps=neutral Received: by wibbw19 with SMTP id bw19sf7364928wib.1 for ; Tue, 19 May 2015 06:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=message-id:in-reply-to:references:from:date:subject:to:cc :mime-version:content-type:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=1MgHwSOef/9A7GYur3BM6PRHD8RYZRZwNVFA0QQT2i4=; b=Oe3HBK6LnK8Q0duor8XakZLovitTVtyME64nFyV9+n51AwaEZwW7aDEgAPGTQEbzCM vqlD/jGBxGfnuT7S5FVkoMEwZb6Wp1+yVG7+WuOmDrLnlx3MJEiEhmQzz5MfBK8wVJ0R iZGiB0BuXO/iUKiByZmP3yNPhSMFEsz+QbcetFo5lwhXA1p0FSsKvRrh2TGnNAdCOX88 ViuqzEzf/wuezH9oNwklV35Re6SMEsYdF2d1I8VGlWDwr/AgW0gt+Z8RTyOA06lhNpsb nyPC617ETdxuISBfJe1v3VUDckS53MFl0c8OFixyD+7F1bpN8ZXWoaRVNDoDbSY1oqe5 noZg== X-Received: by 10.180.216.5 with SMTP id om5mr38901wic.0.1432042212400; Tue, 19 May 2015 06:30:12 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.181.27.230 with SMTP id jj6ls674363wid.20.canary; Tue, 19 May 2015 06:30:12 -0700 (PDT) X-Received: by 10.180.88.226 with SMTP id bj2mr13999686wib.7.1432042212028; Tue, 19 May 2015 06:30:12 -0700 (PDT) Received: from mail1.bemta3.messagelabs.com (mail1.bemta3.messagelabs.com. [195.245.230.166]) by gmr-mx.google.com with ESMTPS id ec7si564173wib.3.2015.05.19.06.30.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 19 May 2015 06:30:12 -0700 (PDT) Received-SPF: neutral (google.com: 195.245.230.166 is neither permitted nor denied by best guess record for domain of stwiss.opensource@diasemi.com) client-ip=195.245.230.166; Received: from [85.158.137.19] by server-6.bemta-3.messagelabs.com id 3C/1C-03286-3EA3B555; Tue, 19 May 2015 13:30:11 +0000 X-Env-Sender: stwiss.opensource@diasemi.com X-Msg-Ref: server-6.tower-39.messagelabs.com!1432042130!12954625!4 X-Originating-IP: [82.210.246.133] X-StarScan-Received: X-StarScan-Version: 6.13.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 23941 invoked from network); 19 May 2015 13:28:57 -0000 Received: from mailrelay1.diasemi.com (HELO NB-EX-CASHUB01.diasemi.com) (82.210.246.133) by server-6.tower-39.messagelabs.com with AES128-SHA encrypted SMTP; 19 May 2015 13:28:57 -0000 Received: from mailrelay1.diasemi.com (10.1.17.243) by NB-EX-CASHUB01.diasemi.com (10.1.16.140) with Microsoft SMTP Server id 14.3.181.6; Tue, 19 May 2015 15:28:54 +0200 Received: from swsrvapps-01.diasemi.com (Not Verified[10.20.28.141]) by mailrelay1.diasemi.com with ESMTP Gateway id ; Tue, 19 May 2015 15:28:53 +0200 Received: (from stwiss@localhost) by swsrvapps-01.diasemi.com (8.14.3/8.14.3/Submit/Dlg) id t4JDSq1U002507; Tue, 19 May 2015 14:28:52 +0100 X-Authentication-Warning: swsrvapps-01.diasemi.com: stwiss set sender to stwiss.opensource@diasemi.com using -f Message-ID: <67231dc85550f233e15fe5e1a823cfa14e023c57.1432041031.git.stwiss.opensource@diasemi.com> In-Reply-To: References: From: S Twiss Date: Tue, 19 May 2015 14:10:30 +0100 Subject: [rtc-linux] [PATCH V3 4/4] devicetree: da9062: Add bindings for DA9062 driver To: DEVICETREE , Ian Campbell , Kumar Gala , LINUXKERNEL , Mark Rutland , Pawel Moll , Rob Herring CC: Alessandro Zummo , David Dajun Chen , Dmitry Torokhov , LINUXINPUT , LINUXWATCHDOG , Lee Jones , Liam Girdwood , Mark Brown , RTCLINUX , S Twiss , Samuel Ortiz , Support Opensource , Wim Van Sebroeck MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: 8d172408-bd6a-42b1-8e53-daaedf35a5af X-Original-Sender: stwiss.opensource@diasemi.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 195.245.230.166 is neither permitted nor denied by best guess record for domain of stwiss.opensource@diasemi.com) smtp.mail=stwiss.opensource@diasemi.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , From: S Twiss Add device tree bindings for the DA9062 driver Signed-off-by: Steve Twiss --- Changes in V3: - No change Changes in V2: - Dropped the RTC and Onkey binding information in this patch-set Those drivers have been dropped from this patch set and the binding information has been removed accordingly. This patch applies against linux-next and v4.1-rc3 Documentation/devicetree/bindings/mfd/da9062.txt | 79 ++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/da9062.txt diff --git a/Documentation/devicetree/bindings/mfd/da9062.txt b/Documentation/devicetree/bindings/mfd/da9062.txt new file mode 100644 index 0000000..5765ed9 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/da9062.txt @@ -0,0 +1,79 @@ +* Dialog DA9062 Power Management Integrated Circuit (PMIC) + +DA9062 consists of a large and varied group of sub-devices: + +Device Supply Names Description +------ ------------ ----------- +da9062-regulator : : LDOs & BUCKs +da9062-watchdog : : Watchdog Timer + +====== + +Required properties: + +- compatible : Should be "dlg,da9062". +- reg : Specifies the I2C slave address (this defaults to 0x58 but it can be + modified to match the chip's OTP settings). +- interrupt-parent : Specifies the reference to the interrupt controller for + the DA9062. +- interrupts : IRQ line information. +- interrupt-controller + +See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for +further information on IRQ bindings. + +Sub-nodes: + +- regulators : This node defines the settings for the LDOs and BUCKs. The + DA9062 regulators are bound using their names listed below: + + buck1 : BUCK_1 + buck2 : BUCK_2 + buck3 : BUCK_3 + buck4 : BUCK_4 + ldo1 : LDO_1 + ldo2 : LDO_2 + ldo3 : LDO_3 + ldo4 : LDO_4 + + The component follows the standard regulator framework and the bindings + details of individual regulator device can be found in: + Documentation/devicetree/bindings/regulator/regulator.txt + + +- watchdog: This node defines the settings for the watchdog driver associated + with the DA9062 PMIC. The compatible = "dlg,da9062-watchdog" should be added + if a node is created. + + +Example: + + pmic0: da9062@58 { + compatible = "dlg,da9062"; + reg = <0x58>; + interrupt-parent = <&gpio6>; + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + + watchdog { + compatible = "dlg,da9062-watchdog"; + }; + + regulators { + DA9062_BUCK1: buck1 { + regulator-name = "BUCK1"; + regulator-min-microvolt = <300000>; + regulator-max-microvolt = <1570000>; + regulator-min-microamp = <500000>; + regulator-max-microamp = <2000000>; + regulator-boot-on; + }; + DA9062_LDO1: ldo1 { + regulator-name = "LDO_1"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <3600000>; + regulator-boot-on; + }; + }; + }; +