Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3841424ybv; Tue, 25 Feb 2020 08:14:58 -0800 (PST) X-Google-Smtp-Source: APXvYqyHl4r+rgzv1dl1ftKKDjjYdj4hZXOhHZE2vux0QDL8dFIoGzVb7wdk1xSeSyg9hbYyMf0H X-Received: by 2002:a05:6830:18f5:: with SMTP id d21mr44789370otf.225.1582647297958; Tue, 25 Feb 2020 08:14:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582647297; cv=none; d=google.com; s=arc-20160816; b=QQjFGfAClGKLs8fQNi04DpLvESm/6EL0i2dGlClJ5AjhnezbJACaXWqJTII9SDd3QA wPCXhOP3AEPooiIrR+KalocrxwULPRmjUztwiuA89JDbpj+YzMLlIIyMc3RYWRzNVwH3 pM+6BGcqTgIhVf7tgFD0DDHV3Y4woUqEGHj8nMVYF6ovAUdxggVS2w4JIcNg49jcGfWK vqQYQn+OrwQwT1QdzN2XS02wVhkiglvghepOUQfqZz96QUAiNJdYSTH/9JzxHRItRAfB uTJiatdWI2qZcH3smybWTNEegVkvq63aMJyG2PxLPI9lcFT3WNmcv5G+MBUtuuZ96PL4 CUOA== 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=fC8IWNnAE99VUOqzzszcLhSt7LoIGXK7nF3gE1G09Bs=; b=VzxMOsXr8+O9vIzMwFlYOICZvXQaiUhvJvI86x2+m98aObLHedmJ3YOkTwRWvlHHB3 CGdYkGhlto1Ph2Ms3sZ3sgpV8ZvtrS+I3pjfb2xiBz2RBMu8nhP1PuoqlK6O2VKxA6qF Zj4aZYZDDjR3yZmjb1Z1iBG4f2zPVqZVubQxSyzfmlqI4MCZaNFZYA0Uwb+MDjzTct0D 6A0H8fl5VFMvdu/v4ygKHQRCRdT5ZJSduGv/j2VAVJJa3YlOcmt891MnsO2d8oaDdoml +DnPpfYwc7WuybqVKuA09TUlSqPly7PA+p8CF4RJtAXbdHhsuwarChn/Z2ofxq1WrKtk 21Ig== 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 v25si8099146otq.93.2020.02.25.08.14.44; Tue, 25 Feb 2020 08:14:57 -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 S1731191AbgBYQMM (ORCPT + 99 others); Tue, 25 Feb 2020 11:12:12 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36094 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729206AbgBYQMJ (ORCPT ); Tue, 25 Feb 2020 11:12:09 -0500 Received: by mail-wr1-f65.google.com with SMTP id z3so15415672wru.3; Tue, 25 Feb 2020 08:12:07 -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=fC8IWNnAE99VUOqzzszcLhSt7LoIGXK7nF3gE1G09Bs=; b=jVC7R5H7DhM65gFfhTaHg5TAq6mify6m9/fi2otf+x2+wk7X+RzYUwN3juQUr8CfUx +I0y8df4AWaZL/MdTP+A07LxzQj7gD5PgMh35ogRe6uSR+eMrfkM5s+R7k6D8lrFZRoT AJqBrxDW3kkMjzq/RBu0FPsiHScpmCkU9pmxxk5SenxWQO74chDyWovq0KCDfapVK27H SGfhIYJQ86ItmdpCU8wRG+ORtWtL+hFETovK9sK/gF5tn4q5vkaFfyKUzAViuqIeWUbi dlYSQOqoivY5Ld44uXUFn5NQJg0jDGfFsuQN4glx5/Od7A04h3OrZ3XSb9+r2+KhFeaD GcUw== X-Gm-Message-State: APjAAAXTSrk4hu1FScahBOFY5ZG3AwIH1ESha3XO6mCVGYzPd46A+yjz X+qLQSxULDqgqdTuWHsD4a9sufK8Ffs= X-Received: by 2002:a5d:4584:: with SMTP id p4mr78175875wrq.25.1582647126645; Tue, 25 Feb 2020 08:12:06 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 08:12:06 -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 3/6] arm64: dts: imx8mm: add snvs clock to pwrkey Date: Tue, 25 Feb 2020 16:11:58 +0000 Message-Id: <20200225161201.1975-3-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/imx8mm.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 3d95b66a2d71..804031010a8a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -460,6 +460,8 @@ compatible = "fsl,sec-v4.0-pwrkey"; regmap = <&snvs>; interrupts = ; + clocks = <&clk IMX8MM_CLK_SNVS_ROOT>; + clock-names = "snvs-pwrkey"; linux,keycode = ; wakeup-source; status = "disabled"; -- 2.23.0.rc1