From patchwork Mon Jan 17 11:18:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 12715207 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 BA0E1C433F5 for ; Mon, 17 Jan 2022 11:20:17 +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=QulHI5jRiLX6C7MgzLODCSKMTtbZT9K9D6hN9cN/NOU=; b=zq+YG74PGqASut wiphOGJXKseGRlhBj41n5PyBTP0tlw7WHIqXk+5rBK9mko5YR1OuQq36tdMUMV8Y5nupA4mjTbif0 hq3De1YPpIEEarR3CQ1h+shL5/RFHVDB6QtOZ7JM31OS/dBM5E53ynxYYrgx3l6VAfsHb//dScdHs 7aH8D6JlLJrUPV/3KGLMi0YHejZVGLa7fpZ+kM7rb8J5MGr4gHqQdZ2pAotDOCwWWfgQqADUEhiRf 42b59X4KhhjsDH6oR6xmPbTdO9Xk17ZZ2zHoi7WPkQXl2qrRhZEZ0ATkQgCLOQslQrZf4Ecb8ZPrz /bmsdh63cCANzaGnSjPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9Q2S-00Ed4r-5V; Mon, 17 Jan 2022 11:19:04 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9Q21-00Ecuq-Jj for linux-arm-kernel@lists.infradead.org; Mon, 17 Jan 2022 11:18:38 +0000 Received: by mail-ed1-x52e.google.com with SMTP id 30so64164348edv.3 for ; Mon, 17 Jan 2022 03:18:36 -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=vgCBczBtPEHYRyvjWuI0A9ytv/aIykozzgSEOheUqfc=; b=ipKDNBWS97vbGXeveLzLfhig0ox/GDOkJQwZz2+gK8EJtkwmWpun3D8fzxs2KkCh9j xx6BphHNZOA663TTRHAhOj7SIOwZX7Rhhr4W3T2lm3EzeYG0yrkJgK1jPG4P2jitsNvl ASAqdvv6DfAJz8VDUyqZ6ESkYA6ALLbFZ8kxE= 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=vgCBczBtPEHYRyvjWuI0A9ytv/aIykozzgSEOheUqfc=; b=DngrrjSfsgxetzggZYXZmhAmGe5AFLOuw500kQ3zZGBY1LjGRV7kbIYo5MMPLIo32R BfIx+RhwRfyZ2nCDn01cxCvru8Ix194mMkZj27zFa4oYzSpbVVEGKDwQWHiM5LQ/W6QX kW5+fw8SMjA/+N3Dx38og/+0PlmdXQdeMuMs7AGnKTel7q3DGwbe8vJEeLmo6oqtxCTA YViapTgR6i0iAYFxn0uXCA3DCBrhVevIIH1TTRWO1TbOw7vT1RCQaIrtawI7rQksyl2N 7IEyEYGPXwiwuyFJxMPTlLZ8AVtuHpTbMhN3ErLEe7APPidL3fAMeySVcEi63yX9ft4R MsYw== X-Gm-Message-State: AOAM5333Qb0YEVsOfrMePq6o7oQq0fFd2D2pApJRtoDP3GPihVaEYOuf QqMw1DUxQWcrnoUJaCO2sTtH0A== X-Google-Smtp-Source: ABdhPJyhbA1cojSmJmnyYivZ1NJrFNBpQkyDlYNQjQ1LgTp8AX9cifsCVJdU9uZlz9hbiLtPVIAdJw== X-Received: by 2002:a17:906:328d:: with SMTP id 13mr12429218ejw.28.1642418315019; Mon, 17 Jan 2022 03:18:35 -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 f11sm5142713edv.67.2022.01.17.03.18.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 03:18:34 -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 v2 1/5] ARM: dts: imx28: reparent gpmi clock to ref_gpmi Date: Mon, 17 Jan 2022 12:18:25 +0100 Message-Id: <20220117111829.1811997-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220117111829.1811997-1-dario.binacchi@amarulasolutions.com> References: <20220117111829.1811997-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_031837_678259_A30B973C X-CRM114-Status: GOOD ( 11.81 ) 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). Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- 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";