From: Xiang W Date: Mon, 25 Oct 2021 02:09:10 +0800 Subject: [PATCH] lib: utils/reset: Add voltage level for gpio_reset In-Reply-To: References: <20211024164642.810274-1-wxjstz@126.com> <293C7F25-1B4C-4F11-832F-0FF89C4F14FC@jrtc27.com> Message-ID: <86683d07de677fd2f25700857b3ab6255a04734b.camel@126.com> List-Id: To: opensbi@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ? 2021-10-24???? 18:26 +0100?Jessica Clarke??? > > > > > > This property is neither documented in the binding specification > > > for > > > gpio-restart nor is it checked by Linux. > > > > This DT is only processed by opensbi, and linux should be reset > > through > > the sbi interface, instead of controlling gpio to perform the reset > > by > > itself. > > Well, there are several things going on: > > 1. In general, you can?t just make up properties in the global > ?? namespace, that?s how you end up with the kind of mess device > trees > ?? have the reputation of having > 2. Linux doesn?t need this property and supports far more hardware > than > ?? OpenSBI does, so why does OpenSBI need knowledge of this property > but > ?? Linux doesn?t on any platform for any architecture? > 3. OpenSBI doesn?t provide the device tree, in general, pre-OpenSBI > ?? firmware does, be it U-Boot SPL or something else, and in general > that > ?? device tree *will* make its way all the way to the OS. Linux might > go and > ?? ignore that and use its own device tree because the whole > situation is a > ?? mess, but that?s not the point, this can and will be exposed to > OSes running > ?? on top. > > Jess These attributes are under the gpio-restart/gpio-poweroff node and are not global attributes. If you need to rename, you can submit a new patch. The rename is added to the current patch, and the commit cannot be kept clean Regards, Xiang W