Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755257AbbK3Vr2 (ORCPT ); Mon, 30 Nov 2015 16:47:28 -0500 Received: from mail.kernel.org ([198.145.29.136]:33706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754948AbbK3Vnt (ORCPT ); Mon, 30 Nov 2015 16:43:49 -0500 Date: Mon, 30 Nov 2015 15:43:44 -0600 From: Rob Herring To: Joshua Henderson Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Purna Chandra Mandal , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org Subject: Re: [PATCH 03/14] DEVICETREE: Add PIC32 clock binding documentation Message-ID: <20151130214344.GA13253@rob-hp-laptop> References: <1448065205-15762-1-git-send-email-joshua.henderson@microchip.com> <1448065205-15762-4-git-send-email-joshua.henderson@microchip.com> <20151122213110.GA16187@rob-hp-laptop> <56569A77.8010800@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56569A77.8010800@microchip.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2708 Lines: 65 On Wed, Nov 25, 2015 at 10:36:55PM -0700, Joshua Henderson wrote: > Hi Rob, > > On 11/22/2015 2:31 PM, Rob Herring wrote: > > On Fri, Nov 20, 2015 at 05:17:15PM -0700, Joshua Henderson wrote: > >> From: Purna Chandra Mandal > >> > >> Document the devicetree bindings for the clock driver found on Microchip > >> PIC32 class devices. > >> > >> Signed-off-by: Purna Chandra Mandal > >> Signed-off-by: Joshua Henderson > >> --- > >> .../devicetree/bindings/clock/microchip,pic32.txt | 263 ++++++++++++++++++++ > >> 1 file changed, 263 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/clock/microchip,pic32.txt > >> > >> diff --git a/Documentation/devicetree/bindings/clock/microchip,pic32.txt b/Documentation/devicetree/bindings/clock/microchip,pic32.txt > >> new file mode 100644 > >> index 0000000..4cef72d > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/clock/microchip,pic32.txt > >> @@ -0,0 +1,263 @@ > >> +Binding for a Clock hardware block found on > >> +certain Microchip PIC32 MCU devices. > >> + > >> +Microchip SoC clocks-node consists of few oscillators, PLL, multiplexer > >> +and few divider nodes. > > > > [...] > > > >> +Required properties: > >> +- compatible : should have "microchip,pic32-clk". BTW, this should list out the actual compatible strings. > > There is some discussion about this upstream with "critical-clocks" > > binding. Can you use and wait for that? > > > > The way this is going, we might not have to wait. :) Is there a patch available yet to try it out? Yes, googling "Lee Jones critical-clocks" should find it. > >> +- microchip,status-bit-mask: bitmask for status check. This will be used to confirm > >> + particular operation by clock sub-node is completed. It is dependent sub-node. > >> +- microchip,bit-mask: enable mask, similar to microchip,status-bit-mask. > > > > We've generally decided not to describe clocks at this level of detail > > in DT. It's fine though for simple clock trees. This one seems to be > > borderline IMO. > > > > The binding example is the entire clock tree. These masks are right from the datasheet. For reference, do you have an example of a better alternative? Okay, like I said, borderline. If this is complete, then it is fine. Adding more clocks or a newer version of the SoC with more clocks would change that opinion. Rob -- 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/