From patchwork Sun Jul 26 04:39:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11685491 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7DB52912 for ; Sun, 26 Jul 2020 04:40:14 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 7825720773; Sun, 26 Jul 2020 04:40:14 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 56F1A2053B for ; Sun, 26 Jul 2020 04:40:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="Hq0kueyo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 56F1A2053B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=daniel@0x0f.com Received: by mail-pl1-f193.google.com with SMTP id q17so6447635pls.9 for ; Sat, 25 Jul 2020 21:40:14 -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=dGbgkULNSVojD1gWRP3nnXPaCeFddQgx9fi3/3KTalp0VcHJBoWNnYEtz8TZLYHa9u 4rq0yOOE0Wbu7jjqq7tvP0x8ylG880nev0JHvddkSbv/1E3Ir8iF0hjMqloTSk7n4YWV bcsmsKlu8Ec2Rg8VYHXeN6gFmFu4DNIQCPvcPIo0Dxn6FywHDv8iEGuqhryG6eaWVfrV Hqr7xf0ZJZ4JYw46DSCM+5RGsb3EZ+gyqvjP5BhvIviATxKCJyB/D2LwmXe7D8+pN/75 2tc/AoGX5usVXTVyffXPH5s/7MBphbKaRamAzEd+5ZllJ9kmGSBYeK1G4lkrPsZ82b6J swTg== X-Gm-Message-State: AOAM5301TvkOeAFgD91k4u/EHzjpisqkEB4WHF6GXRhzeCMg2DNveOr2 BNT4J28ib3uRff4QXl/fc2fnYuzkEuo= X-Google-Smtp-Source: ABdhPJx8UUWAmsUMGBRN15yQo65JR5PFxiqCwTqU5Olv1hgE9e9qsRE+MN6SPRLZX+SrQo3lHeMvJg== 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 List-Id: 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 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>;