From patchwork Sun Jan 1 17:57:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2603 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CA1543F9E8 for ; Sun, 1 Jan 2023 18:58:02 +0100 (CET) Received: by mail-ed1-f69.google.com with SMTP id m7-20020a056402510700b00488d1fcdaebsf6491777edd.9 for ; Sun, 01 Jan 2023 09:58:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672595882; cv=pass; d=google.com; s=arc-20160816; b=KIBhssZZEr5rch+nVA1VmgaLqmxGg9QUVojvPhMpDiPSF+cPC5s9diU0psPhQ0c9fu 5ILwW/CZIp1HaihDha0nFviJ9a+ZiVBBMuWCHx6Vp2EXYuX3XRUdm72Gbp2hWN78wnJU RpHelEE2wUtWjMYsZPMNA+pXHnMkU/MHHW6dpWWn3rv5EUDTbwoAMs50FgwCUf6ha28A p7HSX80KPfMSvbzgHmSIKDNJUhhKYRYvS8Cll1ohC+4ZNuoM64M+qShLYH5My2gfEWeO zqzX6n3g4VMGj6r1A3XYtvsX69esVq7W4zaxlWvN2y2ilBoClvhHDRgCcxQOCNj4p3x2 RLuw== 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=5OLOrU9f8sUtOFpoD7iaNTFNraIro67gEoDezcieANY=; b=ibEMP5StgWmXlRICSrDl4VX2CMpeEo4+oAKJWbFWdGQeIonpC388CZ1VMr8txKai7H dLUDhcICLstCaSjD96zKbk50RswWIJWHGwfmbb01/Ac/Ri+szouEi6K5hEkKRjnn+TYW C2W84l/q5k2bGhZnvt0bArTuloG1YdaMsnMjdrjaAU02telGlWs94242CrRz2RA5tlF2 WpP0UocOPSWn7LEMu537MSn+Dvj6YtZi689ddHLoGw3ARFpkCeEXNDjBkOWCWp+m8f8S GWxvZbpH6eO+/vmCMgzm8GqYapGrqxfAV5+YlRX7YFFlcugdn/pUAVimTS+coXzmNbeh n1Zw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OEtlIibZ; 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=5OLOrU9f8sUtOFpoD7iaNTFNraIro67gEoDezcieANY=; b=iq1gTG5ERpQyL+4/5X0jTOLAfah25MM7SWGW7BAdzhtKIS9INRYoZ5eKz75tX9lF9O 5SDpTgSxl7ovGUN75nPTgpWDO+X2zgaCmTk7XhSjIEFmSd99GCRaA83B6rAsjbiyViTw Q2vgozm8N22JzA4AkMa5GqnbtfMAzMmefwTVc= 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=5OLOrU9f8sUtOFpoD7iaNTFNraIro67gEoDezcieANY=; b=crGgiQ0FOPmBkwTjKmymx/CtulDOfDdoQ316Ktj3kqyUxCrjvMX332ohZ+rOIjAvxr ENY1h6qmCzXawK53vWPqQd90OGauHhXxJK24bLiCsIMPC3AlqIXBisTG/ya6BhUzCC5v 1J2CAhyzgnxS3iTNtEMy+1QNcrDVEY3ZKkcGCKleIi/NeRDbLb+Yd5aGb20VfYtiVrrM rwwUp1NVAD2NedK+SIkZ/MlE2KdoDs1pgVQ9uFdX7jVf7sMB184whAtGeY5E2N1CceEA BnODWZ88xYWiUnUwRgH/xBGodxrz24njGTC1DRAT1LxRoxmZQl6/r4NXbPdQ0Q1OCsfe lUFg== X-Gm-Message-State: AFqh2kq3AC/io/pFZK1ZAhKB+ufPWYmxo/14cmAtlP96yavPZLiLHM4J TmXVWr+O6JsBESgobFG9e6cdGfZ5 X-Google-Smtp-Source: AMrXdXsY4bIqD9uZyzswwBuNhy9XI8GoGkfp6qlg0ezxEW8H3hH1bpGAh38NB7H/8XgLAm65+DS5Dg== X-Received: by 2002:a17:907:b0f:b0:828:70ea:4fef with SMTP id h15-20020a1709070b0f00b0082870ea4fefmr2548787ejl.722.1672595882449; Sun, 01 Jan 2023 09:58:02 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:a105:b0:791:9801:e4e4 with SMTP id t5-20020a170906a10500b007919801e4e4ls2010083ejy.3.-pod-prod-gmail; Sun, 01 Jan 2023 09:58:01 -0800 (PST) X-Received: by 2002:a17:906:555:b0:7c1:47bd:1814 with SMTP id k21-20020a170906055500b007c147bd1814mr32061247eja.63.1672595881388; Sun, 01 Jan 2023 09:58:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672595881; cv=none; d=google.com; s=arc-20160816; b=PSxZnfupaU2poIKYhw5GKw/Y/wE0dnCXHULiT5jIZAFZtoSP00HyxJFjHq6PDyRs4s 3ZwEqRUgUf6946Y3XrX9whRNm9kecF0TI1K6HX7PCVUgVE+xJ6HlHQPOy3vkcyNFoRMO dRgHEn+hLFVAkRY8dX4zzJnsV8I0pWFM1InVSeTRzr/r0uvhFDuyKoxYVMcw440Ke8b5 5T37/yj7tTcpSG5wuvRQcpbiTUwKKRZQioaaCJhchlnBxi0iqwIBb+FZXB8EH9/wzngX B7lMeNbP+AobM0qvAKxkgJhbzuOaznaNxTw+nYwNHgx7JSVvrIwMOg1sCLlNZ5TXd0iu gSXw== 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=XsYrEdCaHlgX8drO/C/Unhu39WRz/1FMxnB9rmFaTNg=; b=WkFObX2t4+mAS/K2+ewljA7P7emRVeHy4FXHaIq44ToPWihMaITv7sd8KLfhYiDoJu cvAzCbCEJNxnkaK2f7/9A/+796u8lK3Y2phe5ScUWS4DZ6fulCoXjiq5XmH6+VkFXF2K lx0oLByvRhR0/3QpLI++G7S0t7it4Bpgb7mNvjDQcCwQroUQecyf4yrvdT8P7OjlKXhI zhOr2iuU9dYO++un2xvdCgBR8xMdOqJp+DHMsqKkpo3c94KeHFbGfTYbMSxtfr2Rn3JA MKjrSAX5Gi4VMKQLTy4S+3t5Z1EnLI6LCBZ3/vk3teJcm1PKZTyF0A4AWIKZtDNtHwpR 1lvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OEtlIibZ; 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 fi29-20020a170906da1d00b007c101cbd4a1sor11627700ejb.38.2023.01.01.09.58.01 for (Google Transport Security); Sun, 01 Jan 2023 09:58:01 -0800 (PST) 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:76ad:b0:7c0:f2cf:23fb with SMTP id jw13-20020a17090776ad00b007c0f2cf23fbmr35278937ejc.52.1672595881217; Sun, 01 Jan 2023 09:58:01 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-180-23-57.retail.telecomitalia.it. [80.180.23.57]) by smtp.gmail.com with ESMTPSA id q2-20020a1709063d4200b0082ddfb47d06sm12273018ejf.148.2023.01.01.09.57.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Jan 2023 09:58:00 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: angelo@amarulasolutions.com, michael@amarulasolutions.com, tommaso.merciai@amarulasolutions.com, Chen-Yu Tsai , linux-amarula@amarulasolutions.com, anthony@amarulasolutions.com, jagan@amarulasolutions.com, Dario Binacchi , Abel Vesa , Adam Ford , Fabio Estevam , Krzysztof Kozlowski , Li Jun , Lucas Stach , Marek Vasut , Markus Niebel , Michael Turquette , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [RFC PATCH v2 10/11] arm64: dts: imx8mn: add dumy clock Date: Sun, 1 Jan 2023 18:57:39 +0100 Message-Id: <20230101175740.1010258-11-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230101175740.1010258-1-dario.binacchi@amarulasolutions.com> References: <20230101175740.1010258-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=OEtlIibZ; 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: , The dummy clock was the only fixed rate clock not initialized from the device tree. So let's add it to the device tree like we did for the others fixed rate clocks. This is a preparation patch for the upcoming support to setup all the clocks directly from the device tree. Signed-off-by: Dario Binacchi --- (no changes since v1) 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 b7d91df71cc2..1949db3e08f7 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -217,6 +217,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 af256ade554f..e1f059dc5afa 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -331,7 +331,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_get_clk_hw_by_name(np, "dummy"); hws[IMX8MN_CLK_24M] = imx_get_clk_hw_by_name(np, "osc_24m"); hws[IMX8MN_CLK_32K] = imx_get_clk_hw_by_name(np, "osc_32k"); hws[IMX8MN_CLK_EXT1] = imx_get_clk_hw_by_name(np, "clk_ext1");