From patchwork Wed Oct 19 17:20:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2453 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6761C3F342 for ; Wed, 19 Oct 2022 19:20:31 +0200 (CEST) Received: by mail-ej1-f71.google.com with SMTP id ho8-20020a1709070e8800b0078db5e53032sf8405657ejc.9 for ; Wed, 19 Oct 2022 10:20:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666200031; cv=pass; d=google.com; s=arc-20160816; b=wsDE0o7tyAVQ/jmMdbsdemMpE+dyEPQRa0IhABYwcS1ZIbYdcvK2RN/lJ+6onaeneT /W3p75ZmCgdT8WCLTjOEtJl7kD7J4CaB7F1dqvNp46rY99kXNFSuso8JWcuSVURt4KO0 dC9JxR8+kjL/GqTwWqwYzUGJAsdMecuZNcbs7Qu+tMA7ZgrWb6TPc6Lg9JaE2SdbzkqX jVIiQWreG9ufL5qtROHAkgqxcY5VDZCoOuuTgKgdgLHFYzxqJvB6Te4clYYk0yw24bpe w9Ihd91Fj6Uu95hIPwgtL2HdGC8ShyKAGVrc8mV21HbezNpeqapPzjZ+qxGjjyO11mex 6hug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=jhqHHwZ+3EYeMO0LOAXL98fvWb0mucDr7a/M+B/bxRs=; b=Yap3EJMDSUQcAjbCq4nWHP8jNDa1SddqBpWDuHQ1Db04g11BrE2/dknGS4/d2RQb6v ynr5pZBt9nin9Ch7VigF0WU9NThxW+7PnSw0UcqNYFy9xPbj2ldUA3aMoJsbESA+pFx2 jbRC5dAdfYMsyrrm5FZjOSe08cA+ZRkyBmr9otlmpDAA41XSOuB3LcGfL2Jk4X05Od8m t6Y2sleq0JcgNgueJUKYXdTft1DmzHBqHQBPYgjArtW9DJNzOf4mQQ3yiyIFpRghLypx 2Z5QNblfGhqJ/A7Z+729jd+KxiJWHEj66QbEui2St84MWlUyWTmJ5hflV6r5qMRHbR+f US9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Usdz+ulR; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=jhqHHwZ+3EYeMO0LOAXL98fvWb0mucDr7a/M+B/bxRs=; b=YxGFXNk/0IVx47JJ7p4CAKzhjY2cnOn62HBsM1e7V1BMgWgl+u6brugntHJcgUeyoI 09qs1hwzAJm2X+qeqzH6VjwYWOeVxCED8H9eEnAkLZTe56uXFSwmxx17n5ffdwEcuTZ1 +R/Ms1lXFntGO74IMRS5GTRAmPDl1DexKdp2I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jhqHHwZ+3EYeMO0LOAXL98fvWb0mucDr7a/M+B/bxRs=; b=UpyMMcN+Dd4mDbL/LDAt7JqALT0n1MRYS8+MfTKyVT+XGTxaGILcP7bC9svjNsUf8A HW9/pXDryQNuRzYl/I2u/CMAs9PRYTtPfMep79NQBRql+V+PAu0in9Rs3otp0g7E7oJL ySnQRWEgLJQuR2OLRBvJ4AEBPxHf08C0mbR6ybuAt/wpVPt8ErUioTSGcbyEh0x5vRtu +mZdnHbENAN8GIhrCW/mGLJKrE7I65ZTq+miciq3y7gRQ0F3tj31IyOqjxlQXxqufa2F dNfyzlWLOs8NSjX7ObQMMLz/tnUfe6LBWdM74OrKLKU/vxktWrFK6Gs8wvmB5yvQR8/b P/hg== X-Gm-Message-State: ACrzQf1ge2SNRQB6G63hOoRlfXMzTQLmEidomBsCYZRXWs6lG1gicobn o/Qo6XE+nHfHsyi45sDnRUFUSqV6 X-Google-Smtp-Source: AMsMyM60WQhNmY8Ksk1ukcgpkj95g8M25+PeC2y3SZtncsEIlUl/Wp5/uJSpkN2++mpZu28V67rgxQ== X-Received: by 2002:a17:907:1b1c:b0:72f:9aac:ee41 with SMTP id mp28-20020a1709071b1c00b0072f9aacee41mr7750592ejc.56.1666200031215; Wed, 19 Oct 2022 10:20:31 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:35c1:b0:45d:64be:d1a with SMTP id z1-20020a05640235c100b0045d64be0d1als1125895edc.1.-pod-prod-gmail; Wed, 19 Oct 2022 10:20:30 -0700 (PDT) X-Received: by 2002:a05:6402:1ccd:b0:459:aa70:9e12 with SMTP id ds13-20020a0564021ccd00b00459aa709e12mr8522946edb.206.1666200030156; Wed, 19 Oct 2022 10:20:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666200030; cv=none; d=google.com; s=arc-20160816; b=POSUpgU+kXJk6fIpwV7EBwraOZRRJMAD6/43cC5SpYWZz61sH6VHqGlzO5tB5fQzeV Iy8Yb/wCMAX6EQFp+LD5wSFshiJ/qxiPeDz9C6aINZ5UFo5sPYBbnuzMNKxvSaLP9rtN JdXTLDhG5zNgjNpP5AfvqF/N+avyyHy0b2p7jJPwmXjOE7v06+DfTWdynTQf0IzX2p0V CgR7fgovvkXnL35k+OO2Yo9Jhk+p1kZvvCsZPUHFx5MfKZna8HUzKnUEbtdxGjhe9mfq DI2NOj8qCT1jhdirQf12pbnUFJ6WUroOiKVNm4dkdrQPhcmcKHc+QUpYwAjGg/NUOoOg qUSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=FyAlxdIgHn3s08+Sit/tFLsjRjTMi7D6HqdwPmc7kXk=; b=zqk2DsKqPGfCBgquHXu7BC6tMXarXkfpu/pZ5u1RcUXqOvXC6pt6QbIAVE3GfRQ4P0 blcIrGtMXXK1m7EW8wczf7dCC/ZeS9XITVjVERIMEOwaWlVas8KMtk9l1o/XHB0/c3Qq iQDIj+Keh4T1ErPSlxHbCEspoDiFdk94s5WXU/FHxBMb7/0oxf6vAZZDTkFhFliHb1dD uSMv3DkytmXUNUZtkL0btNagqz4Qzj1chrfYzhV/JgQRpLnkKjqyc0DhGyjNr7lQlaWo F4NILp41mm9WG7WhMMXbtp9ieoxT41pGhU8YFZDJhYcXz1O8y4XC0LXuiocA1AXnBF5/ VEhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Usdz+ulR; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a24-20020a1709063a5800b0073dc5bb7c39sor6757485ejf.123.2022.10.19.10.20.30 for (Google Transport Security); Wed, 19 Oct 2022 10:20:30 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:9707:b0:78d:45d1:487e with SMTP id jg7-20020a170907970700b0078d45d1487emr7624474ejc.566.1666200029721; Wed, 19 Oct 2022 10:20:29 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-233-42-253.retail.telecomitalia.it. [95.233.42.253]) by smtp.gmail.com with ESMTPSA id b27-20020a17090630db00b0073dbaeb50f6sm9237983ejb.169.2022.10.19.10.20.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 10:20:29 -0700 (PDT) From: Dario Binacchi To: linux-amarula@amarulasolutions.com Cc: anthony@amarulasolutions.com, jagan@amarulasolutions.com, dario.binacchi@amarulasolutions.com, michael@amarulasolutions.com, tommaso.merciai@amarulasolutions.com Subject: [RFC PATCH 7/8] arm64: dts: imx8mn: add dumy clock Date: Wed, 19 Oct 2022 19:20:18 +0200 Message-Id: <20221019172019.2303223-8-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20221019172019.2303223-1-dario.binacchi@amarulasolutions.com> References: <20221019172019.2303223-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Usdz+ulR; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Dario Binacchi --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 11 +++++++++-- drivers/clk/imx/clk-imx8mn.c | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 5c0ca2490561..089fa3c4a526 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -216,6 +216,13 @@ clk_ext4: clock-ext4 { clock-output-names = "clk_ext4"; }; + clk_dummy: clock-dummy { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + clock-output-names = "dummy"; + }; + pmu { compatible = "arm,cortex-a53-pmu"; interrupts = ; #clock-cells = <1>; clocks = <&osc_32k>, <&osc_24m>, <&clk_ext1>, <&clk_ext2>, - <&clk_ext3>, <&clk_ext4>; + <&clk_ext3>, <&clk_ext4>, <&clk_dummy>; clock-names = "osc_32k", "osc_24m", "clk_ext1", "clk_ext2", - "clk_ext3", "clk_ext4"; + "clk_ext3", "clk_ext4", "dummy"; assigned-clocks = <&clk IMX8MN_CLK_A53_SRC>, <&clk IMX8MN_CLK_A53_CORE>, <&clk IMX8MN_CLK_NOC>, diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index 92fcbab4f5be..6bee953a60ed 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -307,7 +307,7 @@ static int imx8mn_clocks_probe(struct platform_device *pdev) clk_hw_data->num = IMX8MN_CLK_END; hws = clk_hw_data->hws; - hws[IMX8MN_CLK_DUMMY] = imx_clk_hw_fixed("dummy", 0); + hws[IMX8MN_CLK_DUMMY] = imx_obtain_fixed_clk_hw(np, "dummy"); hws[IMX8MN_CLK_24M] = imx_obtain_fixed_clk_hw(np, "osc_24m"); hws[IMX8MN_CLK_32K] = imx_obtain_fixed_clk_hw(np, "osc_32k"); hws[IMX8MN_CLK_EXT1] = imx_obtain_fixed_clk_hw(np, "clk_ext1");