Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2721056pxb; Sun, 8 Nov 2020 10:53:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0+oxF1tTQuKW6P3Pa6gUolGRlJHcsTyrWFGdJJr7/ZqOzJADSuXbuqAxR6129AfG+S4JN X-Received: by 2002:a50:d582:: with SMTP id v2mr12199221edi.218.1604861620030; Sun, 08 Nov 2020 10:53:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604861620; cv=none; d=google.com; s=arc-20160816; b=gnaBv/k3Tk12Ar/VyjIFBuCLNYnB/5yyX9ZE4SWhUg1//AJC75UmwZRZyIxQAJwpz8 BNlIZHzUCjQXZwaOc31qk0oep4DQptWB6Z2tEP/ROSnbv8Y+MQ91/jwuJDsRYd2o8tCF y76lHNunHlhjhgT3DyLLTyJiIbJAbZXBnyCqR2E/o6U5RWHbXWLmPEFlTHFU8m8XUvwf dWMx49959XizXCCfAxj+9lniKVWaiyUP2aDQGKUwWUIDrTgNHkUN1SJXjtShAaO08iEu kDVaZDOZhmV0eav7j7ybNgNCRWLVMJjev7FvSAzejEuk3dFHsvZELOzd7CAqXPqaAmuy Qd5Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dNkpy43+hIFFCsfsdbjxvE/UUo6ri9ye43CWs2O33dI=; b=LUUwN+gLIoSkQVWRQlcATbnO+HYLs1Sbr2ZR/PrdoBmAb4lM6LK5s+zy4tVq3wi1Aw rLdWQNzY5ofzFtwQynU5J3lLr7mYGokmR2zxJEVtERZ1Ppyt79DY9cUcgaqq2FWE5YSa QS9mgSFEoRBVFRhgNxoQaHvmHHj73Dp/in4cftUH0M/4Q+fFZnTo06iB/fNws2SZ89IG wW1xNnWE2Iy+pHGBj5m777LFJnXLTmUvtSLsJSgIfZXhE0zNHiLjp8Z05Cepvumy8xy7 GkvLNUjcsaNQip9yb9WCxADf9895xGP7dk7v1yCnY7WcyFD8n9FNB/YRhiN+bGn/gVfm mS1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Ho1OkZVY; 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 i59si5431179edd.308.2020.11.08.10.53.17; Sun, 08 Nov 2020 10:53:40 -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=Ho1OkZVY; 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 S1728970AbgKHSvo (ORCPT + 99 others); Sun, 8 Nov 2020 13:51:44 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:55223 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728879AbgKHSvb (ORCPT ); Sun, 8 Nov 2020 13:51:31 -0500 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 8BD6F23E5B; Sun, 8 Nov 2020 19:51:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1604861488; 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: in-reply-to:in-reply-to:references:references; bh=dNkpy43+hIFFCsfsdbjxvE/UUo6ri9ye43CWs2O33dI=; b=Ho1OkZVY1TDTA3IHM1wUrhm6k1lQj54AHB/5XEHJmirNCfyZH3rA6jqfGhipVd4Nnz1HU/ 07sC5w4e15qRfjaNkpBFhQKpg49wAsptfIPw/Y628xDX1xk9MLC2eyWn/ivfpZfQPDOcxx 2cpL9jyT/igrQkZZaGM5c8tOFKjblls= 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 , "Y . b . Lu" , Xiaowei Bao , Ashish Kumar , Vladimir Oltean , Michael Walle Subject: [PATCH v3 8/9] arm64: dts: ls1028a: fix FlexSPI clock Date: Sun, 8 Nov 2020 19:51:12 +0100 Message-Id: <20201108185113.31377-9-michael@walle.cc> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201108185113.31377-1-michael@walle.cc> References: <20201108185113.31377-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have a proper driver for the FlexSPI interface use it. This will fix SCK frequency switching on Layerscape SoCs. This was tested on the Kontron sl28 board. Signed-off-by: Michael Walle --- Changes since v2: - use device tree constants for clockgen - also use &fspi_clk for fspi_en clock Changes since v1: - none arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index 055da2c710c3..8f2f2e2ab87d 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -207,9 +207,20 @@ }; dcfg: syscon@1e00000 { - compatible = "fsl,ls1028a-dcfg", "syscon"; + #address-cells = <1>; + #size-cells = <1>; + compatible = "fsl,ls1028a-dcfg", "syscon", "simple-mfd"; reg = <0x0 0x1e00000 0x0 0x10000>; + ranges = <0x0 0x0 0x1e00000 0x10000>; little-endian; + + fspi_clk: clock-controller@900 { + compatible = "fsl,ls1028a-flexspi-clk"; + reg = <0x900 0x4>; + #clock-cells = <0>; + clocks = <&clockgen QORIQ_CLK_HWACCEL 0>; + clock-output-names = "fspi_clk"; + }; }; rst: syscon@1e60000 { @@ -327,8 +338,7 @@ <0x0 0x20000000 0x0 0x10000000>; reg-names = "fspi_base", "fspi_mmap"; interrupts = ; - clocks = <&clockgen QORIQ_CLK_HWACCEL 0>, - <&clockgen QORIQ_CLK_HWACCEL 0>; + clocks = <&fspi_clk>, <&fspi_clk>; clock-names = "fspi_en", "fspi"; status = "disabled"; }; -- 2.20.1