From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQDZI-0005wf-Tp for barebox@lists.infradead.org; Tue, 05 Jun 2018 15:08:30 +0000 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7] helo=dude.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1fQDZ4-0000d7-CM for barebox@lists.infradead.org; Tue, 05 Jun 2018 17:08:02 +0200 From: Lucas Stach Date: Tue, 5 Jun 2018 17:08:02 +0200 Message-Id: <20180605150802.24898-1-l.stach@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] ARM: imx6sx: use correct clocks for GPT To: barebox@lists.infradead.org This is a stop gap solution until the upstream DT is fixed. In Linux this isn't an issue as the driver prefers the "osc_per" clock, falling back to "per" and then doing different things based on the SoC type and if the input clock rate matches 3MHz. As this isn't really how the hardware works, but a fragile mix of the clock driver exposing a clock with a faked frequency and system knowledge in the GPT driver I prefer not to replicate this horrors in the Barebox driver, but instead just use the system clock source. Fixes: 2ebda864f837 (ARM: imx: clocksource: Use per clock for determining parent freq) Signed-off-by: Lucas Stach --- arch/arm/dts/imx6sx.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imx6sx.dtsi b/arch/arm/dts/imx6sx.dtsi index 5a8ee464460a..52424199f47c 100644 --- a/arch/arm/dts/imx6sx.dtsi +++ b/arch/arm/dts/imx6sx.dtsi @@ -10,3 +10,7 @@ pwm7 = &pwm8; }; }; + +&gpt { + clocks = <&clks IMX6SX_CLK_GPT_BUS>, <&clks IMX6SX_CLK_GPT_SERIAL>; +}; -- 2.17.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox