From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756154AbbJAHxx (ORCPT ); Thu, 1 Oct 2015 03:53:53 -0400 Received: from fish.king.net.pl ([79.190.246.46]:39530 "EHLO king.net.pl" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751424AbbJAHxv (ORCPT ); Thu, 1 Oct 2015 03:53:51 -0400 Date: Thu, 1 Oct 2015 09:52:20 +0200 (CEST) From: Paul Osmialowski X-X-Sender: newchief@localhost.localdomain To: Stephen Boyd cc: Paul Osmialowski , Michael Turquette , Russell King , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/1] add devm_of_clk_get() and devm_of_clk_get_by_name() functions In-Reply-To: <20150930220415.GD18556@codeaurora.org> Message-ID: References: <1443081808-19688-1-git-send-email-newchief@king.net.pl> <20150928230523.GR23081@codeaurora.org> <20150930220415.GD18556@codeaurora.org> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, On Wed, 30 Sep 2015, Stephen Boyd wrote: > In the pinctrl node we would have > > pinctrl { > compatible = "fsl,kenetis70-pinctrl"; > reg = <0x40049000 0x2000>; > clocks = <&sim SIM_CLK_SCGC5_PORTA>, <&sim SIM_CLK_SCGC5_PORTB>; > > uart_default: uart_default { > mux { > pins = "porta_3", "portb_2"; > function = "uart"; > }; > > rx { > bias-pull-pin-default; > }; > }; > }; > > And then in the uart node we would have > > uart@f00000 { > compatible = "vendor,uart"; > reg = <0xf00000 0x100>; > pinctrl-names = "default"; > pinctrl-0 = <&uart_default>; > }; > Seems like there's another thing I wanted to avoid. The correctness of these pin strings will not be checked until the runtime. They need to properly encode pin bank and pin number within the bank. No chances it can be validated at .dtb build time. But I guess this is proper way for generic pinctrl bindings. I mostly (but not completely) based my approach on rockchip examples (e.g. rk3288) but it looks like they are not entirely sane. Thanks, Paul