Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760022Ab3FCWbO (ORCPT ); Mon, 3 Jun 2013 18:31:14 -0400 Received: from gloria.sntech.de ([95.129.55.99]:52901 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759637Ab3FCWbG (ORCPT ); Mon, 3 Jun 2013 18:31:06 -0400 From: Heiko =?iso-8859-1?q?St=FCbner?= To: linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH RFC 0/3] clk: dt: bindings for mux & divider clocks Date: Tue, 4 Jun 2013 00:31:02 +0200 User-Agent: KMail/1.13.7 (Linux/3.2.0-3-686-pae; KDE/4.8.4; i686; ; ) Cc: Mike Turquette , linux-kernel@vger.kernel.org, devicetree-discuss@lists.ozlabs.org References: <1370281990-15090-1-git-send-email-mturquette@linaro.org> In-Reply-To: <1370281990-15090-1-git-send-email-mturquette@linaro.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201306040031.02935.heiko@sntech.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1815 Lines: 38 Am Montag, 3. Juni 2013, 19:53:07 schrieb Mike Turquette: > This series introduces binding definitions for common register-mapped > clock multiplexor and divider IP blocks, and the corresponding setup > functions once they are matched. The bindings are close the struct > definitions but please don't hold that against the binding: the struct > definitions closely model the hardware. > > The only missing basic clock type is the gate clock. A binding for that > was posted some time back and is similar in spirit to these[1]. I guess > we'll need to decide whether register-level programming details belong > in DT. I believe they do since those details describe the hardware. > > Note that there is still no generic clock driver that matches these > basic types, but it would be trivial to write one. Thoughts on that? > Is it better for each of the basic clock types to be a driver that > matches, or should there be one drivers/clk/clk-basic.c which matches > all of the basic clock building blocks? I like the latter for aesthetic > purposes. > > I am using this code while converting the OMAP4 clock data over to DT > and some common boilerplate code can be factored out of several clock > drivers if this is merged. apart from the stuff pointed out in the replies to the patches this works really well on my upcoming Rockchip platform and saves quite a lot silly clock definitions whose only purpose is to hold the shift and width values. So, for this series: Tested-by: Heiko Stuebner Acked-by: Heiko Stuebner -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/