From patchwork Wed Oct 28 21:08:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 11863121 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9C0CC4363A for ; Wed, 28 Oct 2020 21:10:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6481B2482B for ; Wed, 28 Oct 2020 21:10:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rH+oM3Jg"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iDIv2msW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6481B2482B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=yi7e0D688SMv/MtOFJZQJcw8SR4orWxbBeKyWljqlHY=; b=rH+oM3Jg6Ha8jzL6st24UsXBx+ 8Xomk3mR6PKQj0SS+7Zqd7Zl1v77l8ya6DTs8GbTR+42SASRLbyTiliKEqGXbD6Y3k4YeYmxPPREj Zpj70HKFGrhrPgWy5Nc303n/DcXU8+xZPLLuY6PX9NdO5YX9McTJcjJQs7vOhqUwuBN1u0UCQc7/I 9aiNiCyvawvzEIVFn/HKec+b/siPEek3iBHc1roNkA8nY/Qy/I+hwR5r0v+VLDsm7k9kgpI07Q0ZB SICBLbLUbjz3EvLksE7EDHJgDbu78BA8INpwzCcJqqDMcGue12d990O1/htZQtGImZ6OOh1u79m+K 5zUSBpaA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXsgS-0003wy-EW; Wed, 28 Oct 2020 21:08:40 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXsgP-0003wC-Ae for linux-arm-kernel@lists.infradead.org; Wed, 28 Oct 2020 21:08:38 +0000 Received: by mail-lf1-x12f.google.com with SMTP id f9so605147lfq.2 for ; Wed, 28 Oct 2020 14:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dOPkG51cqcEG4Loikdan84KA22neIPGBmd1iXgPOKvU=; b=iDIv2msWfduRF2KUPmTlwpSPN7p2DRaRX3aZ5hTffZ/cqBxD9HXlc+D7ru4zK7oEdE GK/1YB95Caxv7AYmph3nuO8X/nCYcRIVwU5YLPwJLsFr5LlcCwNHpD8TuuBGCiDBokPa 6gsvmVLuYS4RxWuUUatoEfqi3145ApZYC4n0n8l2WQfkbS/Sqz/dJtLsk0zvxOzEWo/O Jq00xGMnE/sI/maF54/cVDUZdzJDSJEMP8kKq9bdMCljNkTDA8FJVa1VvGxvhOXVcmrS icg8DaoKJzfTtIfUHRGnLRSJPmFA3k2Yx+PTmsfgHtxAnAX0xlZFs8Fp23GLWlQYNWUF EJVQ== 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:mime-version :content-transfer-encoding; bh=dOPkG51cqcEG4Loikdan84KA22neIPGBmd1iXgPOKvU=; b=IL3taED3o/jdVBPMbbddH5zp90iH0NmziNGhhyeA13AW336wl7BrOV03fhV9RAwBNe 0pZlcOdzRNhxbZzAoteJ65BAD/Uwhs4HyZfltbDaGDwpdeit5L2vlmftrpqe6C1DI5Oz 9wuky3waFn9vlOnAr+4ucZ39Ge+3xoC3XS3S0R3dahubHtXtyubeaP424JBQQ00mLeqG 1SsbzXbcIWg5FROW3AgrhLagl3vABmB0n+KBwleG1JdbtgACEhAKJsGNGoiSyt//p9WS Mczx4BTGs4lYlyor63l1ZwO1Bx+yahio64SOPuBCKwl1ShtDDKZhLnmlB4Jg5qHthG8O /32Q== X-Gm-Message-State: AOAM533k4OE3zwiK1jUsLrtycSqGlGotUcbz4OZJiq6XKHisj6L8UYMw J5OCLEvu+0hm6H21y+4j38Q= X-Google-Smtp-Source: ABdhPJz8U5e7kOuZlcVkoCb+Fk2dIbgZSZkC0ZmwrNSPTAHUTS1jsLlYq8a778c/jEL/XkeyVB5Umw== X-Received: by 2002:a05:6512:3fa:: with SMTP id n26mr319207lfq.199.1603919313380; Wed, 28 Oct 2020 14:08:33 -0700 (PDT) Received: from localhost.localdomain ([2a02:a315:5445:5300:a6d2:8b6b:ef28:12ae]) by smtp.googlemail.com with ESMTPSA id x6sm67712lfn.185.2020.10.28.14.08.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 14:08:32 -0700 (PDT) From: =?utf-8?q?Pawe=C5=82_Chmiel?= To: kgene@kernel.org, krzk@kernel.org, alim.akhtar@samsung.com Subject: [PATCH] arm64: dts: exynos: Fix reboot/poweroff issues on Exynos7 Date: Wed, 28 Oct 2020 22:08:13 +0100 Message-Id: <20201028210813.49874-1-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201028_170837_410355_33C1B27E X-CRM114-Status: GOOD ( 15.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, thomas.ab@samsung.com, a.kesavan@samsung.com, naveenkrishna.ch@gmail.com, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Pawe=C5=82_Chmiel?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In vendor sources for Exynos 7420, psci is not used to reboot or poweroff device. Instead we should use syscon reboot/poweroff. Previously it was not possible to poweroff (no syscon poweroff node) or reboot (because it was handled by psci and this way is not working for Exynos). Fixes: fb026cb65247 ("arm64: dts: Add reboot node for exynos7") Fixes: b9024cbc937d ("arm64: dts: Add initial device tree support for exynos7") Signed-off-by: Paweł Chmiel --- arch/arm64/boot/dts/exynos/exynos7.dtsi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/exynos/exynos7.dtsi b/arch/arm64/boot/dts/exynos/exynos7.dtsi index 959918f4ca45..47d54c369d03 100644 --- a/arch/arm64/boot/dts/exynos/exynos7.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos7.dtsi @@ -117,8 +117,10 @@ cpu_atlas3: cpu@3 { }; psci { - compatible = "arm,psci-0.2"; + compatible = "arm,psci"; method = "smc"; + cpu_off = <0x84000002>; + cpu_on = <0xC4000003>; }; soc: soc@0 { @@ -552,6 +554,13 @@ pmu_system_controller: system-controller@105c0000 { compatible = "samsung,exynos7-pmu", "syscon"; reg = <0x105c0000 0x5000>; + poweroff: syscon-poweroff { + compatible = "syscon-poweroff"; + regmap = <&pmu_system_controller>; + offset = <0x330C>; /* PS_HOLD_CONTROL */ + mask = <0x5200>; /* reset value */ + }; + reboot: syscon-reboot { compatible = "syscon-reboot"; regmap = <&pmu_system_controller>;