From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751941AbcA0BL2 (ORCPT ); Tue, 26 Jan 2016 20:11:28 -0500 Received: from regular1.263xmail.com ([211.150.99.132]:58367 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751332AbcA0BLY (ORCPT ); Tue, 26 Jan 2016 20:11:24 -0500 X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-ADDR-CHECKED: 0 X-RL-SENDER: andy.yan@rock-chips.com X-FST-TO: kernel-team@android.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: andy.yan@rock-chips.com X-UNIQUE-TAG: <4e119b2ee5a5a100e22967c51eab6e65> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [RFC][PATCH 1/3] dt-bindings: power: reset: Add document for sram-reboot-mode driver To: John Stultz , lkml References: <1453855080-17760-1-git-send-email-john.stultz@linaro.org> <1453855080-17760-2-git-send-email-john.stultz@linaro.org> Cc: Rob Herring , Arnd Bergmann , Thierry Reding , =?UTF-8?Q?Heiko_St=c3=bcbner?= , Caesar Wang , Kees Cook , Guodong Xu , Haojian Zhuang , Vishal Bhoj , Bjorn Andersson , devicetree@vger.kernel.org, Android Kernel Team From: Andy Yan Message-ID: <56A81936.5020101@rock-chips.com> Date: Wed, 27 Jan 2016 09:11:18 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1453855080-17760-2-git-send-email-john.stultz@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John: Welcome. One nit. On 2016年01月27日 08:37, John Stultz wrote: > Add device tree binding document for reboot-mode driver Maybe you want to use "sram-reboot-mode" instead of "reboot-mode" here. > > Cc: Andy Yan > Cc: Rob Herring > Cc: Arnd Bergmann > Cc: Thierry Reding > Cc: Heiko Stübner > Cc: Caesar Wang > Cc: Kees Cook > Cc: Guodong Xu > Cc: Haojian Zhuang > Cc: Vishal Bhoj > Cc: Bjorn Andersson > Cc: devicetree@vger.kernel.org > Cc: Android Kernel Team > Signed-off-by: John Stultz > --- > .../bindings/power/reset/sram-reboot-mode.txt | 47 ++++++++++++++++++++++ > 1 file changed, 47 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/reset/sram-reboot-mode.txt > > diff --git a/Documentation/devicetree/bindings/power/reset/sram-reboot-mode.txt b/Documentation/devicetree/bindings/power/reset/sram-reboot-mode.txt > new file mode 100644 > index 0000000..33bb132 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/reset/sram-reboot-mode.txt > @@ -0,0 +1,47 @@ > +SRAM reboot mode driver > + > +This driver get reboot mode magic value form reboot-mode driver > +and stores it in a SRAM address. 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 "mmio-sram", "simple-bus" > +node. > + > +Required properties: > +- compatible: should be "sram-reboot-mode" > +- reg: offset from the sram range where to store the magic value(in bytes) > + > +The rest of the properties should follow the generic reboot-mode discription > +found in reboot-mode.txt > + > +Example: > + > + sram@5f01000 { > + compatible = "mmio-sram", "simple-bus"; > + reg = <0x0 0x05f01000 0x0 0x00001000>; > + ranges = <0x0 0x0 0x05f01000 0x00001000>; > + > + #address-cells = <1>; > + #size-cells = <1>; > + > + reboot-mode@0 { > + compatible = "sram-reboot-mode"; > + reg = <0x0 0x4>; > + > + none { > + linux,mode = "none"; > + loader,magic = <0x77665501>; > + }; > + > + bootloader { > + linux,mode = "bootloader"; > + loader,magic = <0x77665500>; > + }; > + > + recovery { > + linux,mode = "recovery"; > + loader,magic = <0x77665502>; > + }; > + }; > + };