From patchwork Sun Apr 21 19:09:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nandor Han X-Patchwork-Id: 10910531 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1402017E0 for ; Sun, 21 Apr 2019 19:09:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 042DA284B5 for ; Sun, 21 Apr 2019 19:09:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC36D2867C; Sun, 21 Apr 2019 19:09:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85B35284B5 for ; Sun, 21 Apr 2019 19:09:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725939AbfDUTJj (ORCPT ); Sun, 21 Apr 2019 15:09:39 -0400 Received: from mail-eopbgr00045.outbound.protection.outlook.com ([40.107.0.45]:18293 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726257AbfDUTJj (ORCPT ); Sun, 21 Apr 2019 15:09:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vaisala.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=51Vzfp04Epz7DGAAxjZY4Szn0Da+XZMAW8XtRTOuccc=; b=ZIUi4w4DMTIVLsNRL8VCNE0uFDBx10igWKsBFDq0KQQZ1L4AjWDwYRkzCSb7a8pLNGs4FNu4RiY7G6xtazAoa6lFD/8pQVoaF52t+BztlY1Oom6E6aOhOlYlP3rcXfASK5FYa8j0NS95WjyndaEU9D1Z1NdAO/ElOB5J0u6ni3g= Received: from DB7PR06MB5563.eurprd06.prod.outlook.com (20.178.104.212) by DB7PR06MB4726.eurprd06.prod.outlook.com (20.177.123.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Sun, 21 Apr 2019 19:09:30 +0000 Received: from DB7PR06MB5563.eurprd06.prod.outlook.com ([fe80::edef:902c:11a7:478]) by DB7PR06MB5563.eurprd06.prod.outlook.com ([fe80::edef:902c:11a7:478%6]) with mapi id 15.20.1813.017; Sun, 21 Apr 2019 19:09:30 +0000 From: Han Nandor To: "sre@kernel.org" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" CC: Han Nandor Subject: [PATCH v3 2/2] dt-bindings: power: reset: add document for NVMEM based reboot-mode Thread-Topic: [PATCH v3 2/2] dt-bindings: power: reset: add document for NVMEM based reboot-mode Thread-Index: AQHU+HW/2y2bWzfwvUCVCh3bzOHlxA== Date: Sun, 21 Apr 2019 19:09:30 +0000 Message-ID: <20190421190913.1478-3-nandor.han@vaisala.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0701CA0060.eurprd07.prod.outlook.com (2603:10a6:3:9e::28) To DB7PR06MB5563.eurprd06.prod.outlook.com (2603:10a6:10:83::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=nandor.han@vaisala.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.2 x-originating-ip: [91.195.247.200] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c737d067-804b-4624-2be5-08d6c68ce17e x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020);SRVR:DB7PR06MB4726; x-ms-traffictypediagnostic: DB7PR06MB4726: x-tenant-id: 6d7393e0-41f5-4c2e-9b12-4c2be5da5c57 x-microsoft-antispam-prvs: x-forefront-prvs: 0014E2CF50 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(39840400004)(376002)(346002)(366004)(396003)(189003)(199004)(446003)(6512007)(486006)(71200400001)(66446008)(66476007)(36756003)(2501003)(26005)(14454004)(8936002)(81156014)(25786009)(316002)(81166006)(8676002)(110136005)(2906002)(1076003)(6506007)(76176011)(476003)(256004)(86362001)(11346002)(68736007)(66556008)(64756008)(71190400001)(2616005)(73956011)(66946007)(186003)(2201001)(102836004)(386003)(11926002)(97736004)(5660300002)(7736002)(6486002)(478600001)(99286004)(53936002)(52116002)(4326008)(5790100002)(3846002)(66066001)(6116002)(6436002)(107886003)(305945005)(50226002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR06MB4726;H:DB7PR06MB5563.eurprd06.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: vaisala.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: fNyXlAqyTHktxfpqABO2IPY8fagjGbE3745l/WsduHZkz1DZTCiixhgO/ZMZdt2RV6sQe4WUAwRxvUp6A0gpbwhHeb3Z0tjJAoKUU9LzQD/xaiIHwESSXyfEWDcQQ5ppQEp9/Gj2liTVfeqD6GVJ4ssDxku62dzvqNM9kGlka+XZhogUbGrY4sUWZqEVDbIjEPi4HRw7MLruT3ZVLzSFfQxp7ucO2JJx1lkFsqc4ZGo4XP5NgPPlM+Nqy5ey9l30lCSrzO8liCM98qvMCgQZGST46zpBwmNG8vgTpdIvciI7OQVaGAc8eCfojdnVkHSbBvFqrhZUyut7/QqSK7L8D7JPGHlx6jGi2yraiIFhe7FPSD6AxJQ5IL+sm8u18t4CKJTgmVUKcn4VewmEztVt5/ABxXtXIf9lQbi5QnZ1hK0= MIME-Version: 1.0 X-OriginatorOrg: vaisala.com X-MS-Exchange-CrossTenant-Network-Message-Id: c737d067-804b-4624-2be5-08d6c68ce17e X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2019 19:09:30.5150 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6d7393e0-41f5-4c2e-9b12-4c2be5da5c57 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR06MB4726 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the device tree bindings document for the NVMEM based reboot-mode driver. Signed-off-by: Nandor Han --- .../power/reset/nvmem-reboot-mode.txt | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt diff --git a/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt b/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt new file mode 100644 index 000000000000..2e1b86c31cb3 --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt @@ -0,0 +1,32 @@ +NVMEM reboot mode driver + +This driver gets reboot mode magic value from reboot-mode driver +and stores it in a NVMEM cell named "reboot-mode". Then the bootloader +can read it and take different action according to the magic +value stored. + +This DT node should be represented as a sub-node of a "simple-mfd" +node. + +Required properties: +- compatible: should be "nvmem-reboot-mode". +- nvmem-cells: A phandle to the reboot mode provided by a nvmem device. +- nvmem-cell-names: Should be "reboot-mode". + +The rest of the properties should follow the generic reboot-mode description +found in reboot-mode.txt + +Example: + reboot-mode-nvmem@0 { + compatible = "simple-mfd"; + reboot-mode { + compatible = "nvmem-reboot-mode"; + nvmem-cells = <&reboot_mode>; + nvmem-cell-names = "reboot-mode"; + + mode-normal = <0xAAAA5501>; + mode-bootloader = <0xBBBB5500>; + mode-recovery = <0xCCCC5502>; + mode-test = <0xDDDD5503>; + }; + };