From patchwork Sun Nov 8 18:51:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 11889771 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D651C388F9 for ; Sun, 8 Nov 2020 18:52:44 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0B60C20731 for ; Sun, 8 Nov 2020 18:52:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GO5dJuC3"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=walle.cc header.i=@walle.cc header.b="mkVPPTBV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B60C20731 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=sXzi3Mbfx8Zzgu6QgToqvp3JdrbCaSuhoVVCEUmNm4g=; b=GO5dJuC3oYpzsijYJ+1vrk+lic 7hr+AD4PCJ484dqFX6O0e8ls4TKhkh4ULGRY4U7iJb5Rbv9zYIrEAGBWDLmu82wAexy47JQVeNKJF ihY1AtNxrO8uhg5Pyc4OB0coHgdSeWkc0jb9jcF90UBgescjWd74aRa+ssOqaZl+fesjx3/Ne8/gR cGyShBnkhMD/V35zPiBvpNFEoq0L9dFuWLuTom4R/h/Hk06YAcMABSSrmYmAWAtKmeKxZ787lbXBp nUqvmLUKozt+8St+J99QIVxBG1oj9DFHCxNfhWs1ifrbPuVaNZyQ6SLsbTkkvt9934EP/F47WJxOW BFIgTKjA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kbpmj-0002xX-8b; Sun, 08 Nov 2020 18:51:29 +0000 Received: from ssl.serverraum.org ([176.9.125.105]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kbpmf-0002vc-Al for linux-arm-kernel@lists.infradead.org; Sun, 08 Nov 2020 18:51:26 +0000 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 8385422F99; Sun, 8 Nov 2020 19:51:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1604861484; 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=/I/CIuBByYHKkyIKlrDS4wUEwzh8MXwuUNWSe/E9rCU=; b=mkVPPTBVspEG6szazT+H8AnDI30RsbcyZikq2Ze1SUah+rUUuGHQwWuchxkrY9mS4qMQk/ Etg2+SP+eVR+9hsNugI/YPw6a/r5qJmAs16k+rAwwNVgtx8uEBaaMQGSwCaZqxsQDodf3w lWNM1FCd3Vs9IkHYo/o629K1luaq8FE= From: Michael Walle To: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 0/9] clk: qoriq fixes and new fsl-flexspi driver Date: Sun, 8 Nov 2020 19:51:04 +0100 Message-Id: <20201108185113.31377-1-michael@walle.cc> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spam: Yes X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201108_135125_508737_3F8C1052 X-CRM114-Status: GOOD ( 17.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Xiaowei Bao , Stephen Boyd , Vladimir Oltean , Michael Turquette , Ashish Kumar , Li Yang , Michael Walle , Rob Herring , "Y . b . Lu" , Shawn Guo Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The first two patches fix clock references for the ENETC and the FlexSPI on the LS1028A. These are intended to be picked up by the stable branches. To circumvent further mistakes, I new device tree constants for the qoriq binding. This should make it far easier for humans to read the clockgen nodes. The 4th patch convert the LS1028A device tree include to use the new constants. The last five patches add a clock driver for the FlexSPI controller on layerscape SoCs. There is a single register which can control the divider value. Right now the LS1028A and the LX2160A aren't able to switch the SCK frequency on the FlexSPI interface. I've included the first four patches in this series, otherwise there would be merge conflicts, because they depend on the new qoriq device tree constants. Michael Walle (9): arm64: dts: ls1028a: fix ENETC PTP clock input arm64: dts: ls1028a: fix FlexSPI clock input clk: qoriq: provide constants for the type arm64: dts: ls1028a: use constants in the clockgen phandle 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 | 174 +++++++++++++----- .../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 +++++++++++ drivers/clk/clk-qoriq.c | 13 +- .../dt-bindings/clock/fsl,qoriq-clockgen.h | 15 ++ include/linux/clk-provider.h | 27 +++ 10 files changed, 393 insertions(+), 55 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/fsl,flexspi-clock.yaml create mode 100644 drivers/clk/clk-fsl-flexspi.c create mode 100644 include/dt-bindings/clock/fsl,qoriq-clockgen.h