Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp739579pxb; Thu, 5 Nov 2020 11:39:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwj2kD8D85hOlhCOj6E/oLPDVM7vSl9D6X3008QCEvmHiDwDJKHLSON36BIuYdVsFe8TkJ3 X-Received: by 2002:a50:fd98:: with SMTP id o24mr4566103edt.0.1604605184325; Thu, 05 Nov 2020 11:39:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604605184; cv=none; d=google.com; s=arc-20160816; b=HdAHk+JqKPQG59nRC5vkCjALzTYSjIBZ5IB36fKfZsB8/Nqwxfy6nV815LMN/t9GdF SMmfQxX/BSFEPDaW52ViZgbbi2mjsyOyyP3+BQqUFO/aH1xho7knpvATs/UBJCzjbFZT Or1hrqDEXH8s97m6yylMJL3PXiIjshUWfGRDYhfB/FPmq6+RnNk2XNXVAd4Ko12jEm1n JnneOTQVY8RaPV/OkU6QpyKU5RSaKP3iJ/qb6Jyp2TgyZM/pKBiXHt0PAZPv/KVcW+Yx hUcKoPjgxnjNs3HTfbohbNhJjP2Z9lqoZFbVWOJRpvQG0BNVxW2ULc5fIQXvBwKHsI9B WATQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=neMeSekzaAOM6uqf+1gwm202RIk2AZiqN2dpHLhDA9s=; b=wGZumho8LigC8KT2mh+OIQH7W+LU3Kcnw0pj5nKHBlc4z8F5xUjZ+5tPOQ4qgFFpoY NzX8ts8CDSNe9KE4IDurz3Ng5AXkOWtxbZweLZWl2QwoTN2ej7udNdBZ62TTflcLW83s UzGjgNJBAR4ds2LeZHdeJ+cPnS14lWjOHnc4m3hbXqwAOfs5TehN608IGqEHCe78j+Hj bWaFzEcO+bkXOD6vns9m1kgQcAqX2LMx4qvI4uxicJL1nlGfYmCbuYCKBJFuCAT83qBN AvvbpLPkVxYEPqygOBcY1CGMvSgO1obaf5SngHblxhzPKlVZGo6IkqN/IzECAVc8640I hSLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=A8Df9VDw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si1774933ejd.414.2020.11.05.11.39.21; Thu, 05 Nov 2020 11:39:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=A8Df9VDw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732316AbgKETfw (ORCPT + 99 others); Thu, 5 Nov 2020 14:35:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732136AbgKETfU (ORCPT ); Thu, 5 Nov 2020 14:35:20 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0529CC0613CF; Thu, 5 Nov 2020 11:35:20 -0800 (PST) Received: from apollo.fritz.box (unknown [IPv6:2a02:810c:c200:2e91:6257:18ff:fec4:ca34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 52D3C22F99; Thu, 5 Nov 2020 20:35:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1604604918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=neMeSekzaAOM6uqf+1gwm202RIk2AZiqN2dpHLhDA9s=; b=A8Df9VDwQZ24vyDkWrR/M783tkkWZoZs+RaiwlVXP9THuoeRBT1ZcqBdAUHVcY1SeNtsmR oPNaJ9z7zUK2voNcjSrDvYZXVdnaliZaNmHvhjD2jsnY27wlJxiUc8FpyGmpL1LqotRmxX HpjDoj9ZTFD4NSKC43h0yIZPmy+suoY= From: Michael Walle To: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Michael Turquette , Stephen Boyd , Rob Herring , Shawn Guo , Li Yang , Michael Walle Subject: [PATCH v2 0/5] clk: add fsl-flexspi driver Date: Thu, 5 Nov 2020 20:35:07 +0100 Message-Id: <20201105193512.22388-1-michael@walle.cc> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam: Yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Layerscape SoCs which feature the FlexSPI controller there is a single register which can control the divider value. The base frequency is the platform PLL. Right now the LS1028A and the LX2160A aren't able to switch the SCK frequency on the FlexSPI interface. Add a new clock driver which operate on said register. Michael Walle (5): clk: divider: add devm_clk_hw_register_divider_table() dt-bindings: clock: document the fsl-flexspi-clk driver clk: fsl-flexspi: new driver arm64: dts: ls1028a: fix FlexSPI clock arm64: dts: lx2160a: fix FlexSPI clock .../bindings/clock/fsl,flexspi-clock.yaml | 55 +++++++++ .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 15 ++- .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 15 ++- drivers/clk/Kconfig | 8 ++ drivers/clk/Makefile | 1 + drivers/clk/clk-divider.c | 34 ++++++ drivers/clk/clk-fsl-flexspi.c | 106 ++++++++++++++++++ include/linux/clk-provider.h | 27 +++++ 8 files changed, 257 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/fsl,flexspi-clock.yaml create mode 100644 drivers/clk/clk-fsl-flexspi.c -- 2.20.1