From patchwork Mon Jan 17 16:17:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 12715574 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CB4CBC433F5 for ; Mon, 17 Jan 2022 16:19:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4q/14KqTxyPhjNMDEAVH/oen8eA2Et+k8/x8Nu9gHz4=; b=ik5gIT0UHZpstH qJ/Q8fxRFgkKHuEKgxxvWLOPjDTLoPzV4HHIEewQ4ZsBxX0XRuYW7AGc22NQO0J+x5bHzfCRkxMlr vg+Y4y0k3ujpilbsatBukv3LWZvi549/Y4TJcAsldmYMoypCCHKLD4R99fitJqn5N7dOVPmr7Os+b t70NhILjnhlCchKRLNZg+aBhyy+4AHLnMbi/v12o1m66ohicxHGJ89g4TJn2IN764IhlLg1JI7o/H cPN5VSQf/fgWZ/oEwGlKxozfru34arySto8lfloRbIorT11FP7BfXTwf/PD7hZyTnFRUOtg5TsU+1 OmopGlBaHak0dAcYA04Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9UiN-00FYWV-HD; Mon, 17 Jan 2022 16:18:39 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9Uhx-00FYPO-1H for linux-arm-kernel@lists.infradead.org; Mon, 17 Jan 2022 16:18:15 +0000 Received: by mail-ed1-x536.google.com with SMTP id z22so67787953edd.12 for ; Mon, 17 Jan 2022 08:18:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fGanoGVnUA7ogI50sGef8k6e4+3YsWfksfB0nBzF5U4=; b=riRGZqlkwAHgCtFuquE9dgZtNhN3ch3F56qRaqv1FAPuqEfrMBXSq/8s58k/9ZcUlj nkPnt/9Wn2TYAkmZzWhJI4fFv2JKf8avnv1574uQdPs9HosWZ+I+sKz3DQBOI2d91ugs IuS+BK7TNl8yffJslZwqTzN3tWh/cyUFRu2wI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fGanoGVnUA7ogI50sGef8k6e4+3YsWfksfB0nBzF5U4=; b=CFf1P80ScjAABGBlMAbhm4MM9wuH3epMQfOkWo/aU8Zix9nqs2P7cs0/zM4FCiVCva eo2HCPk/YVvUT6O1A1Y32j3YDW7x3HJmmqeBQUyMQHeyCbvFijljXXQ0DZo7NITqRFQY cNCDSWLjFRh/7frdYmeNj9MMfLalEg4S6rhcWbzIwIkFfFKdbraTp6r08t/HWjPQrWOq wrwnHuqKuXQmhFZc426hTGjRx/lMYs86xXUgx1iY7HqyyKLpgJ57F6hy0GGBbBMgA1R0 iUpBaM2nhGvgIQdoPah+s47JI+fbmyNinu2/le2Er2cNGhUdiMU6Lua4cFt3crkVZw9v 8+0w== X-Gm-Message-State: AOAM5312k3aZrJVioFOrqCYbtkTsUQJNkkfXUQCGOrziSiL7ERUipS4j Se1h5qJrMl6t7LjDMvNOsayiPA== X-Google-Smtp-Source: ABdhPJwS1xgJ2aU3JW86nj1q1s23inQuC/RyS5X6gxK/3Q8TAmFzdCX6xM2FYHDRMW7f2/Ti8Wi6RA== X-Received: by 2002:a05:6402:2282:: with SMTP id cw2mr12661577edb.161.1642436291827; Mon, 17 Jan 2022 08:18:11 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-52-8-210.retail.telecomitalia.it. [82.52.8.210]) by smtp.gmail.com with ESMTPSA id s4sm4147652ejm.146.2022.01.17.08.18.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 08:18:11 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Michael Trimarchi , Dario Binacchi , Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH v3 1/4] ARM: dts: imx28: reparent gpmi clock to ref_gpmi Date: Mon, 17 Jan 2022 17:17:52 +0100 Message-Id: <20220117161755.1863579-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220117161755.1863579-1-dario.binacchi@amarulasolutions.com> References: <20220117161755.1863579-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220117_081813_098802_487F79CF X-CRM114-Status: GOOD ( 11.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Since ref_gpmi is sourced from pll0 (480MHz), It allows the GPMI controller to manage High-Speed ​​NAND Timing (edo mode 3,4 and 5). Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v2) Changes in v2: - Reparent by device tree instead of code (drivers/clk/mxs/clk-imx28.c). Suggested by Stephen Boyd. arch/arm/boot/dts/imx28.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi index 84d0176d5193..130b4145af82 100644 --- a/arch/arm/boot/dts/imx28.dtsi +++ b/arch/arm/boot/dts/imx28.dtsi @@ -110,6 +110,8 @@ gpmi: nand-controller@8000c000 { interrupt-names = "bch"; clocks = <&clks 50>; clock-names = "gpmi_io"; + assigned-clocks = <&clks 13>; + assigned-clock-parents = <&clks 10>; dmas = <&dma_apbh 4>; dma-names = "rx-tx"; status = "disabled";