From patchwork Tue Jun 16 20:24:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dinh Nguyen X-Patchwork-Id: 11608601 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D440E92A for ; Tue, 16 Jun 2020 20:24:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B6B10207DD for ; Tue, 16 Jun 2020 20:24:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592339062; bh=f0CYZfAZ2s1wrAZbRRwKWczpWjC2SMPXg5adaVXXyE8=; h=From:To:Cc:Subject:Date:List-ID:From; b=VWG92vqiWThis26Dm98KISlJ0V7GVQawJiKctfup4rOxp4yBObc91hDmQug7PgRFI FHzWXTKLq3JUtwNqoL2w9ztApWQ3JFjs6In8joyKvHpuDfyFvrseKAYcPhfueeCyCM on4xwZxdvsknFMbCeL85Fqnw+bIMzLI687/LCdKc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726856AbgFPUYW (ORCPT ); Tue, 16 Jun 2020 16:24:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:34376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726428AbgFPUYW (ORCPT ); Tue, 16 Jun 2020 16:24:22 -0400 Received: from localhost.localdomain (cpe-70-114-128-244.austin.res.rr.com [70.114.128.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 476482078D; Tue, 16 Jun 2020 20:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592339062; bh=f0CYZfAZ2s1wrAZbRRwKWczpWjC2SMPXg5adaVXXyE8=; h=From:To:Cc:Subject:Date:From; b=yetVL13XCxbItEOy3Zqhd0JHAxVDzLn8wYC4acq79axyXzez3XPhTta6AquZmyny5 ea4aKRUfpoqsihfOVK4o3zSQ76iTlY3Bc6OYqRRG42cp2mu6l5IwmoJJlNiRO161Hu CmeYfFT/PVRJtn+nUAuR2r4jyrGMIfm+7P/OcUgw= From: Dinh Nguyen To: linux-clk@vger.kernel.org Cc: dinguyen@kernel.org, devicetree@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org Subject: [PATCH 1/3] dt-bindings: agilex: add NAND_X_CLK and NAND_ECC_CLK Date: Tue, 16 Jun 2020 15:24:15 -0500 Message-Id: <20200616202417.14376-1-dinguyen@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Add the NAND_X_CLK and NAND_ECC_CLK clocks. Signed-off-by: Dinh Nguyen --- include/dt-bindings/clock/agilex-clock.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/agilex-clock.h b/include/dt-bindings/clock/agilex-clock.h index f19cf8ccbdd2..06feca07e08e 100644 --- a/include/dt-bindings/clock/agilex-clock.h +++ b/include/dt-bindings/clock/agilex-clock.h @@ -65,6 +65,8 @@ #define AGILEX_SDMMC_CLK 50 #define AGILEX_SPI_M_CLK 51 #define AGILEX_USB_CLK 52 -#define AGILEX_NUM_CLKS 53 +#define AGILEX_NAND_X_CLK 53 +#define AGILEX_NAND_ECC_CLK 54 +#define AGILEX_NUM_CLKS 55 #endif /* __AGILEX_CLOCK_H */ From patchwork Tue Jun 16 20:24:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dinh Nguyen X-Patchwork-Id: 11608603 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D13716A2 for ; Tue, 16 Jun 2020 20:24:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BAC3C2098B for ; Tue, 16 Jun 2020 20:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592339063; bh=rxSgWs8m8zTECLJO0qoOOytZOjZTG5r08M3Vu0rbJtc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=sCl3Ts6CGfTJKFFtl+h9t2EfmHo/js/MKsLHeEI8JMLESu5gawXpeWMNoGWxRuKI5 a+KD6bQaf/eGGuc1KLT6Vt2jI1ciBC7qi4rSqqSg8NzAapj0PWymwbwCu91vO5C6m8 GdS5Fv+zbTnLPCKj5grZ8Eqy4x0PLhPz4u9nkFAA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731352AbgFPUYX (ORCPT ); Tue, 16 Jun 2020 16:24:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:34396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726428AbgFPUYX (ORCPT ); Tue, 16 Jun 2020 16:24:23 -0400 Received: from localhost.localdomain (cpe-70-114-128-244.austin.res.rr.com [70.114.128.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3A8462098B; Tue, 16 Jun 2020 20:24:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592339062; bh=rxSgWs8m8zTECLJO0qoOOytZOjZTG5r08M3Vu0rbJtc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ihniAd5FFq3TB5eefSkcKHrmVdR1n4hbjEho3prhnk4rMFRNMCi0HR7FFJqAVYekQ +24ysdwskr7Q4ejIGRM26rRqmlem7ISmdZsZl/zZhjAV3f5yMnIgzTm4UDGDMmibcl r3a9qoy4/W1DRnIiKSh4UjBfJ5yhztTjc5vzr1oE= From: Dinh Nguyen To: linux-clk@vger.kernel.org Cc: dinguyen@kernel.org, devicetree@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org Subject: [PATCH 2/3] clk: socfpga: agilex: add nand_x_clk and nand_ecc_clk Date: Tue, 16 Jun 2020 15:24:16 -0500 Message-Id: <20200616202417.14376-2-dinguyen@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616202417.14376-1-dinguyen@kernel.org> References: <20200616202417.14376-1-dinguyen@kernel.org> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org And the nand_x_clk and nand_ecc_clk. Make the nand_x_clk be the main clock that is feeding the NAND IP and correct it's parent to be the l4_mp_clk. Signed-off-by: Dinh Nguyen --- drivers/clk/socfpga/clk-agilex.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/socfpga/clk-agilex.c b/drivers/clk/socfpga/clk-agilex.c index 699527f7e764..1b2e0ad01b24 100644 --- a/drivers/clk/socfpga/clk-agilex.c +++ b/drivers/clk/socfpga/clk-agilex.c @@ -294,8 +294,12 @@ static const struct stratix10_gate_clock agilex_gate_clks[] = { 8, 0, 0, 0, 0, 0, 0}, { AGILEX_SPI_M_CLK, "spi_m_clk", "l4_mp_clk", NULL, 1, 0, 0x7C, 9, 0, 0, 0, 0, 0, 0}, - { AGILEX_NAND_CLK, "nand_clk", "l4_main_clk", NULL, 1, 0, 0x7C, + { AGILEX_NAND_X_CLK, "nand_x_clk", "l4_mp_clk", NULL, 1, 0, 0x7C, 10, 0, 0, 0, 0, 0, 0}, + { AGILEX_NAND_CLK, "nand_clk", "nand_x_clk", NULL, 1, 0, 0x7C, + 10, 0, 0, 0, 0, 0, 4}, + { AGILEX_NAND_ECC_CLK, "nand_ecc_clk", "nand_x_clk", NULL, 1, 0, 0x7C, + 10, 0, 0, 0, 0, 0, 4}, }; static int agilex_clk_register_c_perip(const struct stratix10_perip_c_clock *clks, From patchwork Tue Jun 16 20:24:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dinh Nguyen X-Patchwork-Id: 11608605 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E9C4C92A for ; Tue, 16 Jun 2020 20:24:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D30FF208D5 for ; Tue, 16 Jun 2020 20:24:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592339064; bh=vq9MaBiMA1KgziPPPzEu+yXtjdr11f5SG3UPygJi278=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=2vxm2NioatTzP0QCyCQQ9SZUauaQrcR50Bww6I1vLBYzJIUEMf7x5GTkcvc8jjcSU YzY1JCKz4caoJyNbAQ+JRHgFxG+crLc1HtFaZQUVMi2QvdKeqpYRLrMcctVxmVXWnZ mLsyO4smuUveOSoA6FHn3vVFzXBjKphuL261uYAA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731463AbgFPUYY (ORCPT ); Tue, 16 Jun 2020 16:24:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:34430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726428AbgFPUYY (ORCPT ); Tue, 16 Jun 2020 16:24:24 -0400 Received: from localhost.localdomain (cpe-70-114-128-244.austin.res.rr.com [70.114.128.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 286572100A; Tue, 16 Jun 2020 20:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592339063; bh=vq9MaBiMA1KgziPPPzEu+yXtjdr11f5SG3UPygJi278=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K6DLblw9BkOecaY/lF8ud4dHTdV1SdH4fTy6X5uN7UcZ6JaQKnXAlZl6XqTgARh4I BqiyHh8eHrU+q3NaVM6dEG311LDdKC+QSgI6NY4VuJZObDi+wh3WUcxES3IPmufQhA VxH+TmCPl3RuW98FDXg/VHGAHLG+wnG6h0PUYnTU= From: Dinh Nguyen To: linux-clk@vger.kernel.org Cc: dinguyen@kernel.org, devicetree@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org Subject: [PATCH 3/3] clk: socfpga: agilex: mpu_l2ram_clk should be mpu_ccu_clk Date: Tue, 16 Jun 2020 15:24:17 -0500 Message-Id: <20200616202417.14376-3-dinguyen@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616202417.14376-1-dinguyen@kernel.org> References: <20200616202417.14376-1-dinguyen@kernel.org> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Preliminary documentation documented the mpu_l2ram_clk, but since then, the mpu_l2ram_clk is no longer documented. It's now referred to as mpu_ccu_clk. Signed-off-by: Dinh Nguyen --- drivers/clk/socfpga/clk-agilex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/socfpga/clk-agilex.c b/drivers/clk/socfpga/clk-agilex.c index 1b2e0ad01b24..8fb12cbe0208 100644 --- a/drivers/clk/socfpga/clk-agilex.c +++ b/drivers/clk/socfpga/clk-agilex.c @@ -252,7 +252,7 @@ static const struct stratix10_gate_clock agilex_gate_clks[] = { 0, 0, 0, 0, 0x30, 0, 0}, { AGILEX_MPU_PERIPH_CLK, "mpu_periph_clk", "mpu_clk", NULL, 1, 0, 0x24, 0, 0, 0, 0, 0, 0, 4}, - { AGILEX_MPU_L2RAM_CLK, "mpu_l2ram_clk", "mpu_clk", NULL, 1, 0, 0x24, + { AGILEX_MPU_CCU_CLK, "mpu_ccu_clk", "mpu_clk", NULL, 1, 0, 0x24, 0, 0, 0, 0, 0, 0, 2}, { AGILEX_L4_MAIN_CLK, "l4_main_clk", "noc_clk", NULL, 1, 0, 0x24, 1, 0x44, 0, 2, 0, 0, 0},