From: Andrew Lunn Subject: Re: [PATCH v2] power: reset: add linkstation-reset driver Date: Mon, 19 Dec 2016 17:03:45 +0100 Message-ID: <20161219160345.GB16612@lunn.ch> References: <20161207172415.9776-1-rogershimizu@gmail.com> <20161216100501.18173-1-rogershimizu@gmail.com> <20161219153802.vhcish35qyjbpevj@earth> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20161219153802.vhcish35qyjbpevj@earth> Sender: linux-pm-owner@vger.kernel.org To: Sebastian Reichel Cc: Roger Shimizu , Rob Herring , linux-pm@vger.kernel.org, Ryan Tandy , Martin Michlmayr , Sylver Bruneau , Herbert Valerio Riedel , Mark Rutland , devicetree@vger.kernel.org List-Id: devicetree@vger.kernel.org > > + reset { > > + compatible = "linkstation,power-off"; > > + reg = <0x12100 0x100>; > > + clocks = <&core_clk 0>; > > + }; > > This might be another user for UART slave device [0]. > [0] https://lkml.org/lkml/2016/8/24/769 > > Is the UART port used for anything else besides the reset > controller? I don't know much about these specific devices, but the qnap equivalent, there is a user space daemon which also talks to the microcontroller, for things like a temperature sensor, buzzer, etc. https://www.hellion.org.uk/qcontrol/ So the UART can be in a messed up state, which is why the QNAP driver, which this code is modelled on, reset it back to a good state. Andrew