Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp146177ybv; Tue, 18 Feb 2020 19:50:17 -0800 (PST) X-Google-Smtp-Source: APXvYqz4V6y0RXlyBfSPwYnMYv5b8rW7VDBw7Du6mjxlJ2Q1RPjMu12ObsTWYM5U9yFsqvjRODqb X-Received: by 2002:aca:814:: with SMTP id 20mr3466336oii.159.1582084217542; Tue, 18 Feb 2020 19:50:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1582084217; cv=pass; d=google.com; s=arc-20160816; b=vJa84l2l/KYCVKRjx09NMEHFpuPyhKoWfbLICojZUOKGlPElDyGQb9oBtDJ8gIEaJn 8BCbr0zjGc4uyIm0CRMhEdCHhbY00NuK2uCMQZ8gWDA+nHNcxeE+8gUfd2jpmDNBF52l qDjeyQVDspUfdGF2D+4rDT3jllE/UD5Zh153aGiYUfNCbn/Xx/rQVbJLehnfqJsInuEb swPLJBF0aFRvrTbd9pZKoDHmoLvexn1vHrRE/GX+KMTa5TUqRdIDIQ3MaS87vmhb+lEI 4VxXRBaD03xOW6TqkeU/lG6lws07+0hAgOLsuDXE4BfYLliBXEMVVPEdvBHdOaqvdLal SA7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=8ahr4tQbi/LZROCj5Y+IuRVr/GQUX/dF5s4CeWPm/90=; b=tTMlmKFfdTezuXU4qyuUjnK0GpZlrZXNpkILL7Ladm4IZ+n6QbyMBP1pjMPcbr0Pgp xe/gN5sQLtw85sBVUaJNQItULO/Ubk5BfBbWA7pjkbkr0mLf+VAhQs/WuqrhVUhdWNwb lxaNVjjd001zU1BHc1KONytcwECozTQiLyGKSLM6VCnSbgxpfVqgI7yGMQneM1Sja8hW yn2XpEs1Ed5h1+yS21Ha/f7KDUop6BIww6m98kzX6NMQUfYbulo4fQ+85qAe8XdUHhwM mqsAVQ9I5YUEGBsO9ASO2mDhQSJlMfa2XFSB2QlSb6JuSYxjHFgt/5axwI3IyLIdx2pf Jkrw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=selector1 header.b=S1RlRDFe; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); 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 r1si490947otq.298.2020.02.18.19.50.05; Tue, 18 Feb 2020 19:50:17 -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=@sifive.com header.s=selector1 header.b=S1RlRDFe; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); 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 S1726703AbgBSDt3 (ORCPT + 99 others); Tue, 18 Feb 2020 22:49:29 -0500 Received: from mail-bn7nam10on2053.outbound.protection.outlook.com ([40.107.92.53]:6170 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726477AbgBSDt2 (ORCPT ); Tue, 18 Feb 2020 22:49:28 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mO6Z+kIeVlh8rh94rX8mEt4qo6mVZvaVfJ3nKzcxB2b8xg7jftMYzSLsr9tsLeIuSLLHqGdtzpfv2ISp2X0Bp7n+JAja/VEkgFTYGaDHjxbeO9lL9qebRsCXpVHnP9dO4kA7qw+leElWmNsI2qshShdcR8w+BhbwnCiICA7aU+YFXX1jBSr8AVe2v9XYFPSgZBNoOB7Vk1pUQ1CXFCoKjwK1c0szW4KvvePG72ceuAUALMmkchE+WL8PGHJDcyTN9Pdqd0A5MobGps8M6NZJHHenl4OxezJos+b3NEqfFur4Q0lco0Ge74z1YTRoN4kwLLpyq8xCQqK/IdlsbYBjjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8ahr4tQbi/LZROCj5Y+IuRVr/GQUX/dF5s4CeWPm/90=; b=V+ofTY90V7dyj/vJWVlqrVliCN2qlhGjQgH0cwRvlQfX77YH3tlCrzE9b1GwGtGN1/L7e/FKHAlIVwrSu/GCM2KdrIv/tA4xqWi0VBcUr2D/04hEtw/CUSgxMcVF7cQnZbD2utzAR7cNGVabEErBOHVakxBeTjSIi4UOxCTlXQK22Wwh8nnas7Lu/23JVAxyF/DLeZTcR9rpoKKZZilL6R+lCxmuiSUcJr/1XYUPBhmtHHQ/PMrDZMcxZ4r9QTKtX0Y9EoiQQ++8EbaxMIWKjGNAy12HWXiB7wsrcXgqAPljMb9qfLLeBRCVUwMXsdGJBeHOkqA0ATM2fZAF51Cb4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sifive.com; dmarc=pass action=none header.from=sifive.com; dkim=pass header.d=sifive.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8ahr4tQbi/LZROCj5Y+IuRVr/GQUX/dF5s4CeWPm/90=; b=S1RlRDFeo9bMaHcLhcncn/RCL2Ue3aYbI+Pf0cm9lqiAQcg0lti/d2uQaQ8aC+gWHAlkgr84kY4czZ26fhuIpo2Z07RMyYI5Sj80xvN/tjJ/UtjQpXk3Sj7vb/ZH1UqNzTle0lip9p/8Lw6/B21IPNxiDvxgC+jSuH8Cj5wy8bs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yash.shah@sifive.com; Received: from CH2PR13MB3368.namprd13.prod.outlook.com (52.132.246.90) by CH2PR13MB3704.namprd13.prod.outlook.com (20.180.15.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.9; Wed, 19 Feb 2020 03:49:24 +0000 Received: from CH2PR13MB3368.namprd13.prod.outlook.com ([fe80::55a5:5dab:67de:b5d8]) by CH2PR13MB3368.namprd13.prod.outlook.com ([fe80::55a5:5dab:67de:b5d8%5]) with mapi id 15.20.2750.016; Wed, 19 Feb 2020 03:49:24 +0000 From: Yash Shah To: robh+dt@kernel.org, mark.rutland@arm.com, palmer@dabbelt.com, paul.walmsley@sifive.com Cc: aou@eecs.berkeley.edu, atish.patra@wdc.com, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Yash Shah Subject: [PATCH] riscv: dts: Add GPIO reboot method to HiFive Unleashed DTS file Date: Wed, 19 Feb 2020 09:19:07 +0530 Message-Id: <1582084147-24516-1-git-send-email-yash.shah@sifive.com> X-Mailer: git-send-email 2.7.4 Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0030.apcprd02.prod.outlook.com (2603:1096:3:18::18) To CH2PR13MB3368.namprd13.prod.outlook.com (2603:10b6:610:2c::26) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from osubuntu003.open-silicon.com (159.117.144.156) by SG2PR02CA0030.apcprd02.prod.outlook.com (2603:1096:3:18::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2750.17 via Frontend Transport; Wed, 19 Feb 2020 03:49:21 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [159.117.144.156] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bd056562-d682-453f-84c2-08d7b4eeb5bc X-MS-TrafficTypeDiagnostic: CH2PR13MB3704: X-LD-Processed: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4125; X-Forefront-PRVS: 0318501FAE X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6029001)(366004)(396003)(376002)(346002)(136003)(39850400004)(199004)(189003)(81156014)(36756003)(81166006)(478600001)(8676002)(2906002)(66556008)(66476007)(6666004)(8936002)(66946007)(52116002)(6636002)(6512007)(86362001)(107886003)(4326008)(5660300002)(956004)(4744005)(316002)(6486002)(6506007)(186003)(26005)(16526019)(44832011)(2616005);DIR:OUT;SFP:1101;SCL:1;SRVR:CH2PR13MB3704;H:CH2PR13MB3368.namprd13.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: sifive.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gVKTZMsQcmnajmnRbKDu6EZLOcooU79AhgG3Lo37V+5XTdH5AP6VSyeY5zFZAzlXz8ibHJd/BDfzpXx+o/UsEQtoMYIhXxhrcEEkOCWnIeF/SGQrCSecqc1oAU9peFvqIny3xJ4QXy0zwAEs4NTvYm/RVB/OVFTMRarAp+YCs2V5nQ/jfyu4G9QBSkasgMJkhOiQo3v6mXUZBcYZtSPo3LStESN2ojJaPm8wBZAf9+awCtTNwwklUCLP0tVltbM5cNZhuDRo/YAHGLs4CdcY+0hTHug6l0Cg2VN+trtSeuUZMObwaIVrxy9bhxGW30Cb94YBd4T+OL5bUSzWWfZ8ydGFtT/ruEQP1LRwoeOaKNaZDVECg9vSnkpzLTY1Pe4XQYdoa/mMqBL9mlekBPEZdEJ9LCOPibznjKGHYFn8YFJBb2y4ZK4Fc59PlDJiGbOI X-MS-Exchange-AntiSpam-MessageData: rLn//ekM0RwrOyjTpZSApbqJVSKCGS8NZY8PQcsZN6z0pnPBc9ZyU0l8te8pF68Dm/CFWrnsJSLg/xI1nn7z6FUb/LcCUXWfmoSqiLjDwX8MmuTNstjPxcZvbnop3+B9TCyKEKZEVL3fTOes47V1kg== X-OriginatorOrg: sifive.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd056562-d682-453f-84c2-08d7b4eeb5bc X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Feb 2020 03:49:24.4859 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nPV4MC2VYmxDKuSODXS34wiLFYANryNvhXH3xrCjF+dHtdT1PbqcOEZeCV+jk/4cWd01PIGWuLFjg5k6uDgDYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR13MB3704 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the ability to reboot the HiFive Unleashed board via GPIO. Signed-off-by: Yash Shah --- 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