Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3842327ybv; Tue, 25 Feb 2020 08:15:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzGMC+6qcwxccFuU8N+XDYmUA6unm6dkhhUo9/Va5h2hW/auXEcccrM2nrAUi9Yt+J3ckCX X-Received: by 2002:aca:2806:: with SMTP id 6mr3980121oix.64.1582647345147; Tue, 25 Feb 2020 08:15:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582647345; cv=none; d=google.com; s=arc-20160816; b=EkaR80RPAM8KD5+iCT3fAv2CugUpaoGTX/QSkjG4i8pOS9mi/BtVHeSL1ERju6iuNr X6eQFE5vs/8WPb0+N1LpMkd5MFwosvVsj/2627UYND5HVjDEs+kwdmXKRf832EP6rvgl HtimNKYefygOHwcb5fP24kPSnsykepea2ZNnyUzhi6wev2mtT0WoZqa584WVrrlf0/NL qskBUApgglKF3hUW/vmwrZhyozO5ZvE4oS22Xa/OcmIBehEaeBWzUoCc3U9+zvrGPj3y ZyM1HG5AxsYoTewMMLBMt90hgk5gcrhG392Yd6feGcWPvJ7i8ebBpwz0YDlnEKDxip+V XIGw== 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=sdeifxeE4hzWYWIT9laRsQZ2w7d8/CJoVsmACfUBNlY=; b=vK5/zWlAve0Lk23znuuA6VpNqUbXB2ofcx1T6RQtwmPde/Fa4J5wGqNrNkNjazdqla j158fEIxMMIqbnusBfaYcWs7zbaxrlRRlVNn57Xu1mXh9dxbH7a4+bwY4BKyzfsEoyHE SGCARGOrjDRbQjb0jbpibgvqbhoEnYf3R2q3e0beQPfh6xVzHnjo2NF2EAFQ/uMOUfqV r1cXQhlaDuaYQKN4qAbHCtLaH0o2pn1eBGqyN952FTdhAXNdRVaJsVFB/lyw5E9KTCJA 56j881sXOHo+DpMKKbam2PXLpUVIRmS+jPYotgFpdD+BvudSQYMJoBjF/ZrRjcp+w0u9 NUzA== 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 g72si7666197oib.157.2020.02.25.08.15.32; Tue, 25 Feb 2020 08:15:45 -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 S1731200AbgBYQMO (ORCPT + 99 others); Tue, 25 Feb 2020 11:12:14 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:39288 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730293AbgBYQMI (ORCPT ); Tue, 25 Feb 2020 11:12:08 -0500 Received: by mail-wm1-f67.google.com with SMTP id c84so3714294wme.4; Tue, 25 Feb 2020 08:12:06 -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=sdeifxeE4hzWYWIT9laRsQZ2w7d8/CJoVsmACfUBNlY=; b=ZE3R0Dh96zS29xXshsL6Rq6qW20hrZSswktMbsV/t4ugR0cdcXz263Yzyg2wChbBAN D+Iqclq+4q585FmZLJzW4QxaPx8/Z3Y2AG3XzKiFRakkFhYMkdsQXKjMWi2i8K7cXbgK /zNdd70mV0TG5nbeMrqux4IilEC3I/PVfAQi8wXq/KL4/SVf4fL7ZFUTOME7xqlqkoDm naW3KxRuGe56aq282C+NIS3HHv756t7sVdjlXsrd1T89F1komeSAAamoQP7WyYhfryHG ITbH2rbVFy3gaw+s4xlpH/1oOxuxfgtdYTR9aHkjRV1gM4yy7E9dEeNys25ffOmbUcdv qacg== X-Gm-Message-State: APjAAAVlcKG02dD7aIi2wm/7GpAGWBAlAzsa4nOql70lfGTbXuQHdA7+ 3Cd6hI9VeqLUrdrUcFnpWkuK7Q5zRHc= X-Received: by 2002:a1c:6189:: with SMTP id v131mr6270952wmb.185.1582647125537; Tue, 25 Feb 2020 08:12:05 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 08:12:05 -0800 (PST) From: =?UTF-8?q?Andr=C3=A9=20Draszik?= To: linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Andr=C3=A9=20Draszik?= , Rob Herring , =?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 2/6] ARM: dts: imx7s: add snvs clock to pwrkey Date: Tue, 25 Feb 2020 16:11:57 +0000 Message-Id: <20200225161201.1975-2-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.MX7, 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 Acked-by: Rob Herring 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: * split documentation and i.MX7 dts update into two patches --- arch/arm/boot/dts/imx7s.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 139ab9b98472..edc8c542da7e 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -611,6 +611,8 @@ compatible = "fsl,sec-v4.0-pwrkey"; regmap = <&snvs>; interrupts = ; + clocks = <&clks IMX7D_SNVS_CLK>; + clock-names = "snvs-pwrkey"; linux,keycode = ; wakeup-source; status = "disabled"; -- 2.23.0.rc1