Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5237875imu; Tue, 13 Nov 2018 03:30:11 -0800 (PST) X-Google-Smtp-Source: AJdET5eCB1sXVbSUoiHp47TQJ1gHRqX10zlVlmGJtsjHma6NCWY/2MBwanDS6sNai30oKJXX8znj X-Received: by 2002:a62:2681:: with SMTP id m123-v6mr4694208pfm.131.1542108611738; Tue, 13 Nov 2018 03:30:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542108611; cv=none; d=google.com; s=arc-20160816; b=hDixsJ/b1SuXawK+R1rk7OdknaxEm3d+dfgqMq85nI5YtUaD+Wo8HXSNmLMKxvo2CX W/zgv8O5fQd1/WYebjzQrFufuT4spAklRy+J1b6j2ATmYa1OSrWOcQb2gFObYXJ19KYE Y4vhg07ttEIokE3WrXTo0Qei8jBd6RYfMw+Tb+CLty9zdSZ2ZOGlXSeN306Ks2FsQAuH xEUCCDx/jNMOvHxyHtSsThjhqV9qu0xWpD/XH6HqlrR++ccZ+DoYpwXafR+sWzzChHKR E2CFRBoKhGDZcMxA0obFJp1Z7Agv/JoEhvDtTHZMQsfblfVXMwx4ZoKCGUf69HWurehG MTMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=REtIl4GSJZWK8lk2iUi5sd8t6CwW5uV9z41oofWXLKw=; b=L/Rdobp/a/5rhPZnb42i1egC4l0YPhexND1OyYoZV1EU6pgqkFSkg1PmQPV20+FukE /ztZmNwDiN1aF8mDbJc2iHBbYwZo6kQ0XEmfwkDnummyYJpcDX/AY7LHwFU/38FL2MO/ fF4iqUsStQ2oIPntABy1bRUXdbkoPcS0obfZ/bo3uq+msIJCke5tyz4KXDqGK2eTbRDE mw+F2s0o2RFHzbVWCxTT5+M7dsIQhG6c/ZwTjERfQhBf5uzJrRyyIH/671RLI7mUNnNa j7W/2ic+yljmJBzFwvR6Vq38JZF9XVVrmzArUH77vlrbjctt9ag8uIiqAv1muX1C2fnc MvTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=SOvDfhh1; 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 m9si5752079pls.160.2018.11.13.03.29.56; Tue, 13 Nov 2018 03:30:11 -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=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=SOvDfhh1; 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 S1732717AbeKMV1K (ORCPT + 99 others); Tue, 13 Nov 2018 16:27:10 -0500 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:47173 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732037AbeKMV1J (ORCPT ); Tue, 13 Nov 2018 16:27:09 -0500 X-IronPort-AV: E=Sophos;i="5.54,499,1534834800"; d="scan'208";a="24030073" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Nov 2018 04:29:26 -0700 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.49) with Microsoft SMTP Server (TLS) id 14.3.352.0; Tue, 13 Nov 2018 04:29:26 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=REtIl4GSJZWK8lk2iUi5sd8t6CwW5uV9z41oofWXLKw=; b=SOvDfhh186GYYA6AqMsoweCieALxK1Vd5e8E43eWQ/b8/zMw8BaYUYz9qNoGn3xz5igg3FNp2RggR8yE6kPV9falY3I+4VlJxuG6fXcLqJMHk7lcNw0OFa0vdPwYTBkchw7qpr2sQBPNWdAct6Jv+7mXVbIyi/V9BkI9ufHClZs= Received: from BN6PR1101MB2243.namprd11.prod.outlook.com (10.174.113.19) by BN6PR1101MB2353.namprd11.prod.outlook.com (10.173.200.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.21; Tue, 13 Nov 2018 11:29:24 +0000 Received: from BN6PR1101MB2243.namprd11.prod.outlook.com ([fe80::c873:c197:d9d6:3bf6]) by BN6PR1101MB2243.namprd11.prod.outlook.com ([fe80::c873:c197:d9d6:3bf6%6]) with mapi id 15.20.1294.045; Tue, 13 Nov 2018 11:29:24 +0000 From: To: , , , , , CC: , , , , , Subject: [PATCH 1/3] regulator: dt-bindings: add MCP16502 regulator bindings Thread-Topic: [PATCH 1/3] regulator: dt-bindings: add MCP16502 regulator bindings Thread-Index: AQHUe0Qg38ZobbJRekqKgZo6abU5dw== Date: Tue, 13 Nov 2018 11:29:24 +0000 Message-ID: <1542108563-10108-2-git-send-email-andrei.stefanescu@microchip.com> References: <1542108563-10108-1-git-send-email-andrei.stefanescu@microchip.com> In-Reply-To: <1542108563-10108-1-git-send-email-andrei.stefanescu@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0701CA0067.eurprd07.prod.outlook.com (2603:10a6:800:5f::29) To BN6PR1101MB2243.namprd11.prod.outlook.com (2603:10b6:405:52::19) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Andrei.Stefanescu@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN6PR1101MB2353;6:oG5oXRE2b+m9TZlGxXKaTHAUVMaejS02v+7f2mdcYC5pjI1g55S8cVaBQYphAM39y9epIR9Vavp4JWXaBSbD2v621qHk+jCFlblc7KVUMmggpVj9RTmOStUBN3Nib81Z5XOVp2yfJqZXuq3hwAPPqZNz4YJ1N/CSGUrdtuKs+dtTsMDGKR5CweyDDPvKjoM3qBbhN+psEqi1DZ3INSXoExBSj7Z5UiqhfHBdoGkmwGL0iZrfVt2htcCoQQyBtyQ0I4xPO8M12ycdUDRlQBDET7usF+3QzLo2l4OMiN0lUBt6JrAML6NMVH1t17GltfhsZJQBFWucdS1Jnj0SC+rV3qL+rCzL+e0ByDe7dA+LcxOpVZQdFhjP3BcaNS0QFvJrScs58qrbA7PcQ6eoHoC0oI3sTji2VzOuhvCxkXg23uNIKnpILZG4ybyTa9N+Fwy9hYBcyQgyFJdhRy9cLe6M5A==;5:WxfhFxLwC8LMwQWDZxQWl9GJGZMsFpa9ISQs5MnJXsk0Uin8056I/tHHBGrHpF+7TSGCc2EwanOK8iOHKb9cAU2EWPaMMIanwvXqmfkvdbUgARThf1fHQP0KBRz5zgemnaxFPF4DovbkP1/dFyPtkrY7VpMiDnj5ia1OL/4vTKA=;7:cqOZZXXVz2w5eOowni+NdlUp/hpazVozTRDSC0AQ86vcqpCb2WsmL39fVZXIe7CrAlujzchbqjthSW/POnOS+obicWdHg1V2Fl+35WLM49mbU0Kdxvs8Tzs36j0AkfSyh7m6xfFwtANYAu/ZoO4meQ== x-ms-office365-filtering-correlation-id: 25a1425b-adf4-4c99-5120-08d6495b4323 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390060)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:BN6PR1101MB2353; x-ms-traffictypediagnostic: BN6PR1101MB2353: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3231382)(944501410)(52105112)(3002001)(10201501046)(93006095)(93001095)(148016)(149066)(150057)(6041310)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:BN6PR1101MB2353;BCL:0;PCL:0;RULEID:;SRVR:BN6PR1101MB2353; x-forefront-prvs: 085551F5A8 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(39860400002)(376002)(366004)(136003)(396003)(199004)(189003)(36756003)(72206003)(305945005)(110136005)(54906003)(107886003)(14454004)(53936002)(8676002)(478600001)(7736002)(102836004)(106356001)(26005)(316002)(105586002)(6506007)(39060400002)(4326008)(86362001)(386003)(25786009)(11346002)(97736004)(6436002)(446003)(2616005)(476003)(486006)(6486002)(2900100001)(68736007)(71190400001)(71200400001)(256004)(2906002)(14444005)(66066001)(6116002)(8936002)(3846002)(6636002)(76176011)(5660300001)(81156014)(81166006)(52116002)(99286004)(2501003)(6512007)(186003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR1101MB2353;H:BN6PR1101MB2243.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 9jeKJs/44/VFsoKq2YlnsvepPv2zXCidjMVoL+3UStC7iJnIakZBeITgIzy+KMegeRs1nkPPgUgy/wSl11BHCoYYoIeXVnObodYBKGIV6opDh0KnF5NI8wDGoMIflh3slupzBswYQGvDYDIe/wE3gf9v3AuAGEVELGVRys7cCSEhvWkLpYCoOAN57oWmiY7etBahRXArVLNI57+5bjucd1dk81o5teTqHbRh5uOdHWVKhzVv/sP3VT6dt6aY+B2bR+o3U+pKce+fqRdnNZi+ErZquGTyKAcc5qR/uUnRmMREr/KmSUA2mCIdBjK3nIvTKMsPk+561/Nm309voAtCvg4TTyfQanQfUJIAb2+g9hc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 25a1425b-adf4-4c99-5120-08d6495b4323 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2018 11:29:24.2177 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1101MB2353 X-OriginatorOrg: microchip.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch describes the compatible and the device tree bindings necessary for the MCP16502 PMIC. Signed-off-by: Andrei Stefanescu --- .../bindings/regulator/mcp16502-regulator.txt | 107 +++++++++++++++++= ++++ 1 file changed, 107 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mcp16502-re= gulator.txt diff --git a/Documentation/devicetree/bindings/regulator/mcp16502-regulator= .txt b/Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt new file mode 100644 index 0000000..bb3d787 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt @@ -0,0 +1,107 @@ +MCP16502 PMIC + +Required properties: +- compatible: "microchip,mcp16502" +- reg: I2C slave address +- lpm-gpio: GPIO for LPM pin. Note that this GPIO *must* remain high durin= g + suspend-to-ram, keeping the PMIC into HIBERNATE mode. +- regulators: A node that houses a sub-node for each regulator within + the device. Each sub-node is identified using the node's + name. The content of each sub-node is defined by the + standard binding for regulators; see regulator.txt. + +Regulator modes: +2 - FPWM: higher precision, higher consumption +4 - AutoPFM: lower precision, lower consumption + +Each regulator is defined using the standard binding for regulators. + +Example: + +mcp16502@5b { + compatible =3D "microchip,mcp16502"; + reg =3D <0x5b>; + status =3D "okay"; + lpm-gpios =3D <&pioBU 7 GPIO_ACTIVE_HIGH>; + + regulators { + VDD_IO { + regulator-name =3D "VDD_IO"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <3700000>; + regulator-initial-mode =3D <2>; + regulator-allowed-modes =3D <2>, <4>; + regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-mode =3D <4>; + }; + }; + + VDD_DDR { + regulator-name =3D "VDD_DDR"; + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <1850000>; + regulator-initial-mode =3D <2>; + regulator-allowed-modes =3D <2>, <4>; + regulator-always-on; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-mode =3D <4>; + }; + }; + + VDD_CORE { + regulator-name =3D "VDD_CORE"; + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <1850000>; + regulator-initial-mode =3D <2>; + regulator-allowed-modes =3D <2>, <4>; + regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-mode =3D <4>; + }; + }; + + VDD_OTHER { + regulator-name =3D "VDD_OTHER"; + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <1850000>; + regulator-initial-mode =3D <2>; + regulator-allowed-modes =3D <2>, <4>; + regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-mode =3D <4>; + }; + }; + + LDO1 { + regulator-name =3D "LDO1"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <3700000>; + regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + LDO2 { + regulator-name =3D "LDO2"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <3700000>; + regulator-always-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + }; +}; --=20 2.7.4