From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Yan Subject: Re: [RFC][PATCH 1/3] dt-bindings: power: reset: Add document for sram-reboot-mode driver Date: Wed, 27 Jan 2016 09:11:18 +0800 Message-ID: <56A81936.5020101@rock-chips.com> References: <1453855080-17760-1-git-send-email-john.stultz@linaro.org> <1453855080-17760-2-git-send-email-john.stultz@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1453855080-17760-2-git-send-email-john.stultz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org To: John Stultz , lkml 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 List-Id: devicetree@vger.kernel.org Hi John: Welcome. One nit. On 2016=E5=B9=B401=E6=9C=8827=E6=97=A5 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" her= e. > > Cc: Andy Yan > Cc: Rob Herring > Cc: Arnd Bergmann > Cc: Thierry Reding > Cc: Heiko St=C3=BCbner > 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/sr= am-reboot-mode.txt > > diff --git a/Documentation/devicetree/bindings/power/reset/sram-reboo= t-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 dis= cription > +found in reboot-mode.txt > + > +Example: > + > + sram@5f01000 { > + compatible =3D "mmio-sram", "simple-bus"; > + reg =3D <0x0 0x05f01000 0x0 0x00001000>; > + ranges =3D <0x0 0x0 0x05f01000 0x00001000>; > + > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + > + reboot-mode@0 { > + compatible =3D "sram-reboot-mode"; > + reg =3D <0x0 0x4>; > + > + none { > + linux,mode =3D "none"; > + loader,magic =3D <0x77665501>; > + }; > + > + bootloader { > + linux,mode =3D "bootloader"; > + loader,magic =3D <0x77665500>; > + }; > + > + recovery { > + linux,mode =3D "recovery"; > + loader,magic =3D <0x77665502>; > + }; > + }; > + };