Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4085332ybf; Tue, 3 Mar 2020 19:46:25 -0800 (PST) X-Google-Smtp-Source: ADFU+vsXqYPenWba0G36o6qaUgfnyd2a3PkxzEpjVNqhU2p0T3l+NvSRRO/dCQIcN9rLn5qu/Qe0 X-Received: by 2002:a9d:6457:: with SMTP id m23mr881679otl.162.1583293585385; Tue, 03 Mar 2020 19:46:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583293585; cv=none; d=google.com; s=arc-20160816; b=jWTXt+GQ4bVFa1sGSL2jvUFI5OAxefrge10jl+FUZ6js3t5CU6+j/FMnOPIie9umjr DVhzgEAU8Lj7YWCQwQ2T47LUq2xeIPGhfTE2L+FuMF0bWIIZSmp9TdubxqNaOO8xlqZT MKZ8x+t40Gxt4P+J98q0XGhSCfHl7uDdbpVlR+jEJzjHkqwM3zTZ8/HYeKxDfutnuINl IR0EZ2hD6sZc7niNZqVcTqwluQYKEl6y0lg8luW2hmddtqZ2AWO3kLV9t2WnHZ65ei02 Rgx+5/V5CdownALjx8RLNY27WzUx/VLPVGMajUudThxeUeFNWOBY5lkn3MIiJFxogNBw L6FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Dl4yIvdbNV8zUEZF0iJKHHNN3Cn7sHrjK08gaKgENUM=; b=rXQGK1k9m+CQzPk496eAeNELtm3p+9db9GhV0XV3JP8Eny4WaKIwxU/e1N8yTJGnqx N6cSIWQ9pAzqraGwfBaNB7Jeu4XUauU3qBk3InVdmTXdZfSaPxirNsKaoxtfYWe8Hwqw /HsrU+gIM4iQN48rnaloVkYpkMjZv5RY9Jzg+3GyIbGOjfVeZilZpF+6qmR2RIVxj82C uupAeMhVT0eBMlvuiPmCfySKoUQR56F8XFMQT1Ur5aL/BcSw/iEZUOdcLokCjWiPPsb0 GHrbI1c7YEM6i88YCR6PCNNXfOwo1Q8U5kIy2RxDz1DrsVwow/vMBTmpxc4c7QJOjmok liaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=krmkkN4V; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9si356346otk.318.2020.03.03.19.46.11; Tue, 03 Mar 2020 19:46:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=krmkkN4V; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387663AbgCDDpx (ORCPT + 99 others); Tue, 3 Mar 2020 22:45:53 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41874 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387640AbgCDDpx (ORCPT ); Tue, 3 Mar 2020 22:45:53 -0500 Received: by mail-wr1-f65.google.com with SMTP id v4so557979wrs.8 for ; Tue, 03 Mar 2020 19:45:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Dl4yIvdbNV8zUEZF0iJKHHNN3Cn7sHrjK08gaKgENUM=; b=krmkkN4V5zPIpMl1EPpZRD1webC/631MVKogbzCnK4d3YjLOrLOZDWnsNmM0IRwePB u5+remgX6B5Eyqy3000CS47e+Kuyh/oI4sNBIieCN5H+74G63bcAhvFyKLz5Diq/791C YGVGx3dST5jJ25lsJomJdOvOkADYQmUdBo5j3cDRmtGuXZZ4i8bdxBean3nmBoigyKHL avDmfaDxbG0Zf8KtISwZmadDC0AbpK5ft/vqa+VAqW1axj3EdTP+g7B9C8VgaOhwQvfI WWiwk7Y1or5Hmq42pVli4ci+9t82SN0Y5T0gz2/GbLHlS1Ao2uggNWioPKIkx/A/7OG6 BfBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Dl4yIvdbNV8zUEZF0iJKHHNN3Cn7sHrjK08gaKgENUM=; b=sVnef/RtGYYA3+d67nQs2k+P02B0EbtjGVb8SjXpgf5Gdbp41I1iMCw5QHsZufMUuB tAI+k/7E1FgEnPIFUWLhEpm1LBOjPax95Dg6s6JRZKP+QCx5DEZYU17eApvmvBt0wVnF O4M4libBKpc4AhWuIYC10qo3ulWe+Yja2gsLCrh0tTSEzEOBj6ErpeNdpbuS/1aI+dqs NfoHerYxEmPqR7xbWP9znBLiUviPUFXCaLBR5Mscsc4rB7qgV8xBXpQ/OKanscafPQgA HLgPmRVyXq9kHk6aTZISPaCQc8UqWmM3zdRuZBXogvGTzaY+eW2KmHifQTIKYdNk6LIg vYeg== X-Gm-Message-State: ANhLgQ1t9PQZUEHTJfhA/hlS6CpgYrxk5bxHyhcmIx5h9hH7wfqrwuoH DNMCltquNoOHijaOFDEJIXzF+Dxpf9iMeqUFxjJODA== X-Received: by 2002:adf:e90d:: with SMTP id f13mr1649750wrm.0.1583293549186; Tue, 03 Mar 2020 19:45:49 -0800 (PST) MIME-Version: 1.0 References: <1582084147-24516-1-git-send-email-yash.shah@sifive.com> In-Reply-To: <1582084147-24516-1-git-send-email-yash.shah@sifive.com> From: Anup Patel Date: Wed, 4 Mar 2020 09:15:38 +0530 Message-ID: Subject: Re: [PATCH] riscv: dts: Add GPIO reboot method to HiFive Unleashed DTS file To: Yash Shah Cc: Rob Herring , Mark Rutland , Palmer Dabbelt , Paul Walmsley , Albert Ou , Atish Patra , devicetree@vger.kernel.org, linux-riscv , "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2020 at 9:19 AM Yash Shah wrote: > > Add the ability to reboot the HiFive Unleashed board via GPIO. > > Signed-off-by: Yash Shah LGTM. Reviewed-by: Anup Patel Regards, Anup > --- > arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts > index 609198c..4a2729f 100644 > --- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts > +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts > @@ -2,6 +2,7 @@ > /* Copyright (c) 2018-2019 SiFive, Inc */ > > #include "fu540-c000.dtsi" > +#include > > /* Clock frequency (in Hz) of the PCB crystal for rtcclk */ > #define RTCCLK_FREQ 1000000 > @@ -41,6 +42,10 @@ > clock-frequency = ; > clock-output-names = "rtcclk"; > }; > + gpio-restart { > + compatible = "gpio-restart"; > + gpios = <&gpio 10 GPIO_ACTIVE_LOW>; > + }; > }; > > &uart0 { > -- > 2.7.4 >