Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp100877ybg; Sat, 25 Jul 2020 21:43:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvnyz+/6sXz4OhEHHRIQWJx5LZftqpMwOQ7pt/RYpaImn2IJ/v4Tzr2eS2XCFwSN4lQiM+ X-Received: by 2002:a50:dacf:: with SMTP id s15mr16490027edj.136.1595738624689; Sat, 25 Jul 2020 21:43:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595738624; cv=none; d=google.com; s=arc-20160816; b=HhnCUpIKBKoGfWdb62vW20vkx2DtchiQ7rpL5mLKM5ve+Uze9tGmkmVfIie8y1dKZQ LtRb9tExNychMYH0T9iiEyHprpejkKjS4RA9XWDpaYxGxnXa6Offkog2vRuc3Ome8+kQ E0I7Q02K6NvqfRoTlI3NNmAPGdaorlJLM46RSFeJahAQuEj52zboCCiSRvoVmrE2QNbu DJiXNhcMvBWAvLeYX704EbXFRvanc/s8NbwIxUMWWcYBDDKA176KWO79SfIdE93HyUdE ld/9bbBhR+JDjpRIzYB94og423UessAZiH7WrgTOPC5zW6iLpLNQ4TAUz1/xu+N80GZA tJaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=D0MdPbFwkc7fKXzhQDxoLKwNc+TslVFTHzNYvgFbJfw=; b=rrZSrnuzEKtfIzzZ+7cBM8kG1pK8vVRJJH+jcxyPzpGkyT2Apzl44rJ+JbxUsF9pTH QB2XfzNSO670OUgOJqjqop5wX3B0QutgV1Ykho4IpfQh28ekzPIcolD37bhrnRN9774t kswKJqt+/R02av5IgMRhisiElAW7mRe+qw0kO+0BlKC43fQUg6gTp40cTYbWJsrEqLNE unF4MaPuK9j2VK1NlzqkKGkFBkzlNwd3bRAxtbXbUwQ2L7QwetAds79bhMhhU8KGSleD RXlBTD2oko9f7xiSa6cX8Uw0JP7VN0heauBF/sp0dOjaC0W2VtlBhfZaq6RiJs9gtErG VVvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=Hq0kueyo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id re6si3234745ejb.381.2020.07.25.21.43.22; Sat, 25 Jul 2020 21:43:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=Hq0kueyo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726811AbgGZEkR (ORCPT + 99 others); Sun, 26 Jul 2020 00:40:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbgGZEkO (ORCPT ); Sun, 26 Jul 2020 00:40:14 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA4A5C0619D2 for ; Sat, 25 Jul 2020 21:40:13 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id k1so7356522pjt.5 for ; Sat, 25 Jul 2020 21:40:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=D0MdPbFwkc7fKXzhQDxoLKwNc+TslVFTHzNYvgFbJfw=; b=Hq0kueyojRMANB+ONzvJX3y94df+VXRUr3vesrMvVO6RaXLyBDCJgSZgzbSYP8fVZg blAixup8nOqp7jwKx82A7+ri7wOOWzg0kl9kAm9d+7LM4ggmTuqrNjT3JxjLj11FoaZ6 lSEqChkComE54IJuXEnoNDJ9/k68NxKfQD99w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=D0MdPbFwkc7fKXzhQDxoLKwNc+TslVFTHzNYvgFbJfw=; b=H8yEY2o5/Ew6iF9GOdOFwYvuCpoG7JfGRS/15osm35R473lXTwupXySyWXk7M5PmYh LrJ2gztpQ9Kj4JRq2GdwyfOUtY1CKiEprmATVbxvzYiclk7zo1Kkl2qt28NvJjSVWnqm P2vNxY+VJ2Ck6wo7ala3TsIR1WYfuu+VtTm/Y2mTHMNk7p6RNftcqQvhKuIaVL01jMyU FL5CK7bCKLh8DxVe4XrWaz90OnvKrvjVsMmGvp8IeGivNmIcKiq5Et190cMEC1D6urdQ BYGWuBpfVNpdJYCeY3T2ry9KI2WPsffY6oUxU9hZ9mO/o1Y++0XYN54tXhzo7UIscktG DWlQ== X-Gm-Message-State: AOAM530+HQybNuKkGmUdZPoBvyWGeu58mfmDm5wdaOt9YGxl9+9b3tAK FYUrmDD2dSK1g3/OwjCNO9K3eQ== X-Received: by 2002:a17:90a:2d83:: with SMTP id p3mr13088347pjd.124.1595738413058; Sat, 25 Jul 2020 21:40:13 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id t1sm10507372pje.55.2020.07.25.21.40.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 21:40:12 -0700 (PDT) From: Daniel Palmer To: soc@kernel.org Cc: arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 7/7] ARM:mstar: Add reboot support Date: Sun, 26 Jul 2020 13:39:48 +0900 Message-Id: <20200726043948.1357573-8-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200726043948.1357573-1-daniel@0x0f.com> References: <20200726043948.1357573-1-daniel@0x0f.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MStar v7 SoCs support reset by writing a magic value to a register in the "pmsleep" area. This adds a node for using the syscon reboot driver to trigger a reset. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-v7.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index c8b192569d05..7ac7e649189f 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -78,6 +78,13 @@ pmsleep: syscon@1c00 { reg = <0x1c00 0x100>; }; + reboot { + compatible = "syscon-reboot"; + regmap = <&pmsleep>; + offset = <0xb8>; + mask = <0x79>; + }; + l3bridge: l3bridge@204400 { compatible = "mstar,l3bridge"; reg = <0x204400 0x200>; -- 2.27.0