Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6405666rwn; Tue, 13 Sep 2022 03:57:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Lg2uASxNcbYW5Nu8K448r8Fw7utXGXZAjD9+uD47OC8djUhLZhXsgobK+p51P+orvBuwP X-Received: by 2002:a17:902:904b:b0:172:cd04:a3d3 with SMTP id w11-20020a170902904b00b00172cd04a3d3mr31666611plz.173.1663066669781; Tue, 13 Sep 2022 03:57:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663066669; cv=none; d=google.com; s=arc-20160816; b=A0pMNsSDCnM9RMy1+h5eldWCRSTwahTAGXwhDyWcjxGalQa377vuf0WO2bc579qHlZ 1UbIWzFl36KvoxHYWCUP07ToxJOPbOX/LH7pUqw9v7jSTws7V0JeeSuYO3hNyI/EPIem 9jhjulaRuIvITjZA2lDAuyTDlKwkxiOM1IK9Wwocp+ppzW4cfJIzpc9RGvkGPB0lwe4y LdBd2W59cG576D+ZUkNdrJfx5ucRtk7EmIvCQdolbMd2jGI4lhmXFoXr2IU/nChz6lea r1PvszaUt5XHnPkPGxVsXVjAkh2D70m+M2kqZqJXbhMIGe+QQYW/2c5omFcMX4Dai9XI S0Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=TJyGaxSKOexO9wMcBbmL+L5xguMLru82x21MLKhZPrs=; b=zSECIcnzb+Qk+OwMFOmHFfygeL5be6WCaQzMHoSHADR2jq/nwtv6WCwPjSme72n6EO mPtTUMpuyl9Q63vsVFVqGFSTDjEoYXAVC8KXfxb1hoI+sAlY3PiiuBC6GAH4Rc3T1qFO MssEjmCVEC3tCv8cE9t+h2EHl8FXEIdcfLfE/RvNKz5gblKSPn00pbiLWySK9sAhRPPb EmlDT4XPewYh2+3oixlEnmXtM+6rOM5j9nyJ0i+eN/uGTjbjc1POSo3jJEmf+9MKi47W SBQJ5Hz024jzOr9WPdQhWjYZg8HWq2qVwPey923Gvus7dn+mKRB4+gmSEQMigmaN6ghi DRMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a056a00244100b00535d7265923si11849795pfj.377.2022.09.13.03.57.37; Tue, 13 Sep 2022 03:57:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbiIMKWA (ORCPT + 99 others); Tue, 13 Sep 2022 06:22:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230321AbiIMKV6 (ORCPT ); Tue, 13 Sep 2022 06:21:58 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD9F56BBE for ; Tue, 13 Sep 2022 03:21:57 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oY334-0002vq-U3; Tue, 13 Sep 2022 12:21:46 +0200 Received: from [2a0a:edc0:0:1101:1d::28] (helo=dude02.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oY335-000TmL-JT; Tue, 13 Sep 2022 12:21:46 +0200 Received: from mfe by dude02.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1oY333-004psN-CI; Tue, 13 Sep 2022 12:21:45 +0200 From: Marco Felsch To: krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: linux-kernel@vger.kernel.org, Peng Fan , linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [RFC PATCH 2/2] arm64: dts: imx8mm-evk: mark 32k pmic clock as always-on Date: Tue, 13 Sep 2022 12:21:41 +0200 Message-Id: <20220913102141.971148-3-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220913102141.971148-1-m.felsch@pengutronix.de> References: <20220913102141.971148-1-m.felsch@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This clock is critical for the system since it supplies the 32k SoC clock. Unfortunately the imx8mm.dtsi uses a fixed clock provider for the 32k SoC clock and not this one. If it would use this clock we would add a cycle-dependency since the pmic driver depends on the i2c driver which depends on the clock driver. Therefore use the new "clocks-always-on" macro to mark the clock as critical, so it is never turned off by the kernel. Signed-off-by: Marco Felsch --- arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi index 7d6317d95b13..0e950ef61900 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi @@ -195,6 +195,7 @@ pmic@4b { #clock-cells = <0>; clocks = <&osc_32k 0>; clock-output-names = "clk-32k-out"; + clocks-always-on = "clk-32k-out"; regulators { buck1_reg: BUCK1 { -- 2.30.2