From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752042AbcHAIas (ORCPT ); Mon, 1 Aug 2016 04:30:48 -0400 Received: from smtp4-g21.free.fr ([212.27.42.4]:13961 "EHLO smtp4-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751903AbcHAIaj convert rfc822-to-8bit (ORCPT ); Mon, 1 Aug 2016 04:30:39 -0400 Date: Mon, 1 Aug 2016 10:30:24 +0200 From: Jean-Francois Moine To: =?ISO-8859-1?Q?Andr=E9?= Przywara Cc: Maxime Ripard , Rob Herring , Chen-Yu Tsai , Mike Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: Re: [PATCH 00/13] arm64: Allwinner A64 support based on sunxi-ng Message-Id: <20160801103024.cc74c093466d7fdfd91a2587@free.fr> In-Reply-To: References: <20160726203041.29366-1-maxime.ripard@free-electrons.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.30; armv7l-unknown-linux-gnueabihf) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 1 Aug 2016 02:43:06 +0100 André Przywara wrote: > As this became quite a long read, here a TL;DR: > - We consider using an SCPI based clock system for the A64, alongside > allwinner,simple-gates and fixed clocks. We try to avoid any Allwinner > specific clocks (apart from the simple-gates). > - ARM Trusted Firmware provides the SCPI implementation - for now, later > we may move this into a possible arisc firmware. > - We upstream some basic DT first, possibly omitting any controversial > clock parts at all. > > Let me know what you think! Hi André, This looks interesting. As I understand, the clock enable/rate setting functions would be in the arisc. The arisc firmware would be loaded only once in the Soc and would contain the code for handling this specific SoC. >>From my calculations, this would save about 1Mb of clock descriptions in the kernel for a universal Allwinner kernel. But I don't see why you are keeping the simple-gates. The bus gate may be ungated/gated when the clock is enabled/disabled, and that's what Allwinner's software does. -- Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/