Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3841258ybv; Tue, 25 Feb 2020 08:14:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwTBp2NgcEh/8DUgx5jzi3rVdPcpKdWPfrF+31etAnIKSBRcJ5cYmFPMMoDQ3hu7/OuwN6I X-Received: by 2002:aca:388:: with SMTP id 130mr4029403oid.89.1582647287900; Tue, 25 Feb 2020 08:14:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582647287; cv=none; d=google.com; s=arc-20160816; b=Zu0YNwsY5X0+EEeNjfmWSHgsg2PfWEZtFu4sExmYABi1busgldHMw8T8iij13L/eKe 2wa88B/Nzt+VCrdHs/IJM+dCe+TBIB6eLN6QFKUyLRbbNq0Rih5HFDPyuduHok+2mxFU vhh3jiON9dFvqe4WBO7pxABYFSTi8JJgEyCvGXQXk4NiHc4u50ylJhhtnwrLB4dLkUb9 jCAYuOHBDbcxFjZ0jyjnhXykX75Du2s7yYLVXPCk9oG4XLtVo+YsD/hz89FAFNaJVOVb tu8Bp3ESllj5AmWHtjSuSee5/9KIdzX5P9o1OlVRMU9cId9p0fBRh67ksehyIx6uO3I+ wCCA== 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; bh=5iVYMAf3KBBmBN8bPXGHIYJDp6KSir9PCdvRV/c4buI=; b=nPDnvqUVM0/Y8/jdAgiw4+0WlZ/99Lo1/QYpiEq+uyMwXAJSCiwcpxLxlVffw65g7K tFncjmP/oHr4vwwpBoRKPHLp1dP5d5lsE0vXl/1OKbSkyGwtJHAIK/JK21BpwFgDxa/E eBN7OeKnMvbjk/IK9atLOy4DeYJ6KMSFU1mwn0oMi76InNzvbvZ+qqvOJXnlqIbF2dmn ks6x8hXTlwRF0Je2Clfac/0mhL8uWU7+JlEBTu579lGerlk0V4Whou4mIohRhsvygFIs HBQ3LEbiTI2v5KBC1vf4BJ6SvZeHz8auUqVzV8ZFVJdvgmMrc+eZciR7ZuEOFkBfqv+V ON8Q== ARC-Authentication-Results: i=1; mx.google.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 r66si6860027oie.255.2020.02.25.08.14.34; Tue, 25 Feb 2020 08:14:47 -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; 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 S1731182AbgBYQML (ORCPT + 99 others); Tue, 25 Feb 2020 11:12:11 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42722 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731125AbgBYQMJ (ORCPT ); Tue, 25 Feb 2020 11:12:09 -0500 Received: by mail-wr1-f68.google.com with SMTP id p18so11750019wre.9; Tue, 25 Feb 2020 08:12:08 -0800 (PST) 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=5iVYMAf3KBBmBN8bPXGHIYJDp6KSir9PCdvRV/c4buI=; b=ZzuHnvjK7FAcHFoPikOh3iLCFksYqEx1slSgUTeOgKbeVFIevGLfaotmeEgZ2FJmWL MVFMUnn/KjtHAm5uGnsn7ITF3knLkMuH0x2oSe6zNWXj8Mxdp4ySYzm3304M54G2UbPV STfticLkpBHNF4IX1+ukvxoiMDmHoJlFL6S+Ift7G49JGYJb0I7Z6T8692YK237Srnpi ebMVSXaxOVEvVw+FOuAIEOHHnIaQUhl4wAg4no2Te7zRMjBGU22PoPnu67uR+02zeccq igN+khRIkvbl9RoHG+h77Cskdlnr8Z9A7cMeaj1rhv4KugcYON6+IJ28r210xbDQm0Hq fXAg== X-Gm-Message-State: APjAAAX8urQfgenqaKTKJXOHGYQKnD4ubgd6pBYNnY4NghBYYOuq1ios punWasO0zwckrppBhT4Mg2YWEqHjZYY= X-Received: by 2002:a5d:5647:: with SMTP id j7mr74240686wrw.265.1582647127853; Tue, 25 Feb 2020 08:12:07 -0800 (PST) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id h10sm4757339wml.18.2020.02.25.08.12.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 08:12:07 -0800 (PST) From: =?UTF-8?q?Andr=C3=A9=20Draszik?= To: linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Andr=C3=A9=20Draszik?= , =?UTF-8?q?Horia=20Geant=C4=83?= , Aymen Sghaier , Herbert Xu , "David S. Miller" , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Dmitry Torokhov , Anson Huang , Robin Gong , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org Subject: [PATCH v2 4/6] arm64: dts: imx8mq: add snvs clock to pwrkey Date: Tue, 25 Feb 2020 16:11:59 +0000 Message-Id: <20200225161201.1975-4-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200225161201.1975-1-git@andred.net> References: <20200225161201.1975-1-git@andred.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On i.MX8MM, the SNVS requires a clock. This is similar to the clock bound to the SNVS RTC node, but if the SNVS RTC driver isn't enabled, then SNVS doesn't work, and as such the pwrkey driver doesn't work (i.e. hangs the kernel, as the clock isn't enabled). Also see commit ec2a844ef7c1 ("ARM: dts: imx7s: add snvs rtc clock") for a similar fix. Signed-off-by: André Draszik Cc: "Horia Geantă" Cc: Aymen Sghaier Cc: Herbert Xu Cc: "David S. Miller" Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: Dmitry Torokhov Cc: Anson Huang Cc: Robin Gong Cc: linux-crypto@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-input@vger.kernel.org --- v2: new patch --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 7f9319452b58..e4ab037183d7 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -501,6 +501,8 @@ compatible = "fsl,sec-v4.0-pwrkey"; regmap = <&snvs>; interrupts = ; + clocks = <&clk IMX8MQ_CLK_SNVS_ROOT>; + clock-names = "snvs-pwrkey"; linux,keycode = ; wakeup-source; status = "disabled"; -- 2.23.0.rc1