From patchwork Tue Nov 26 05:34:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Freddy.Hsin" X-Patchwork-Id: 11261421 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 19FAC138C for ; Tue, 26 Nov 2019 05:35:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EF18D20862 for ; Tue, 26 Nov 2019 05:35:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="mj2lbBLv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727413AbfKZFfC (ORCPT ); Tue, 26 Nov 2019 00:35:02 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:56934 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727379AbfKZFfC (ORCPT ); Tue, 26 Nov 2019 00:35:02 -0500 X-UUID: 6538519289be4a80823965c00f1f7dfa-20191126 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=PTHlyvPT7+DKctsDgzzDOzGrtWUVdvF9uAmdUpUUCzI=; b=mj2lbBLvkictvFSSj+JAgzHcQAc4bXK2h+Ln6vu27+lO41QJPsV5dmm+cnyQd0MGxR5vvilDM1cbmzvlhVQQSk5Mfs40q71MwdvBPexx59/WypM7JnpUQ3y+9Ug/4Bz3bWa2a6X/DHAAp3hZ7ZPe1+qor5um8q2b7nAun44O/Co=; X-UUID: 6538519289be4a80823965c00f1f7dfa-20191126 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 787183843; Tue, 26 Nov 2019 13:34:55 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 26 Nov 2019 13:34:42 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 26 Nov 2019 13:34:35 +0800 From: To: , , , , , , , , , , , CC: , , Freddy Hsin Subject: [PATCH v1 4/4] dt-binding: power: reset: Add documentation for MTK RGU (Reset Gernation Unit) reboot driver Date: Tue, 26 Nov 2019 13:34:50 +0800 Message-ID: <1574746490-625-5-git-send-email-freddy.hsin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1574746490-625-1-git-send-email-freddy.hsin@mediatek.com> References: <1574746490-625-1-git-send-email-freddy.hsin@mediatek.com> MIME-Version: 1.0 X-MTK: N Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org From: Freddy Hsin Add documentation for MTK RGU (Reset Generation Unit) reboot driver. Signed-off-by: Freddy Hsin --- .../devicetree/bindings/power/reset/mtk-reboot.txt | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/mtk-reboot.txt diff --git a/Documentation/devicetree/bindings/power/reset/mtk-reboot.txt b/Documentation/devicetree/bindings/power/reset/mtk-reboot.txt new file mode 100644 index 0000000..708d351 --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/mtk-reboot.txt @@ -0,0 +1,30 @@ +Generic MTK RGU mapped register reset driver + +This is a reset driver using toprgu to map its non-volatile register. +The reset is generally performed with a write to the non-volatile register +defined by the register map pointed by toprgu reference plus the offset +with the mask defined in the reboot-mode node. + +Required properties: +- compatible: should contain "toprgu-reboot-mode" +- regmap: this is phandle to the register map node +- offset: offset in the register map for the reboot-mode register (in bytes) +- mask: the reset value written to the reboot register (32 bit access) + +Examples: + reboot-mode { + compatible = "toprgu-reboot-mode"; + regmap = <&toprgu>; + offset = <0x24>; + mask = <0xF>; + }; + +Optional properties - reboot mode value that will keep in toprgu nonrst RG: +- mode-charger = ; +- mode-recovery = ; +- mode-bootloader = ; +- mode-dm-verity-dev-corrupt = ; +- mode-kpoc = ; +- mode-ddr-reserve = ; +- mode-meta = ; +- mode-rpmbpk = ;