From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932279AbbJUQsY (ORCPT ); Wed, 21 Oct 2015 12:48:24 -0400 Received: from mail.kernel.org ([198.145.29.136]:41433 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752016AbbJUQsW convert rfc822-to-8bit (ORCPT ); Wed, 21 Oct 2015 12:48:22 -0400 MIME-Version: 1.0 In-Reply-To: <5627B309.9080309@gmail.com> References: <1445395380-5365-1-git-send-email-wxt@rock-chips.com> <1445395380-5365-2-git-send-email-wxt@rock-chips.com> <5627B309.9080309@gmail.com> From: Rob Herring Date: Wed, 21 Oct 2015 11:48:00 -0500 Message-ID: Subject: Re: [PATCH v1 1/2] dt-bindings: Sync the dts to this document To: Caesar Wang Cc: Caesar Wang , Mark Rutland , "devicetree@vger.kernel.org" , Ian Campbell , Heiko Stuebner , Pawel Moll , "linux-pm@vger.kernel.org" , Dmitry Torokhov , Doug Anderson , "linux-kernel@vger.kernel.org" , Eduardo Valentin , linux-rockchip@lists.infradead.org, Kumar Gala , Zhang Rui , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 21, 2015 at 10:45 AM, Caesar Wang wrote: > Hi Rob, > > 在 2015年10月21日 23:18, Rob Herring 写道: >> >> On Tue, Oct 20, 2015 at 9:42 PM, Caesar Wang wrote: >>> >>> Add the OTP gpio state, we need switch the pin to gpio state >>> before the TSADC controller is reset. >>> >>> Signed-off-by: Caesar Wang >>> --- >>> >>> Changes in v1: >>> - As the Doug comments, add the 'init' property to sync document. >>> >>> Documentation/devicetree/bindings/thermal/rockchip-thermal.txt | 5 >>> +++-- >>> 1 file changed, 3 insertions(+), 2 deletions(-) >>> >>> diff --git >>> a/Documentation/devicetree/bindings/thermal/rockchip-thermal.txt >>> b/Documentation/devicetree/bindings/thermal/rockchip-thermal.txt >>> index ef802de..28e84f7 100644 >>> --- a/Documentation/devicetree/bindings/thermal/rockchip-thermal.txt >>> +++ b/Documentation/devicetree/bindings/thermal/rockchip-thermal.txt >>> @@ -27,8 +27,9 @@ tsadc: tsadc@ff280000 { >>> clock-names = "tsadc", "apb_pclk"; >>> resets = <&cru SRST_TSADC>; >>> reset-names = "tsadc-apb"; >>> - pinctrl-names = "default"; >>> - pinctrl-0 = <&otp_out>; >>> + pinctrl-names = "init", "default"; >>> + pinctrl-0 = <&otp_gpio>; >>> + pinctrl-1 = <&otp_out>; >> >> Are these optional or required? They only appear in the example. > > > Yep, > These are required for TSADC. Then list them that way. > > I‘m assumed that's right, > I think we don't need to introduce the pinctrl in this document. You need to state that you use them and what valid names are. That is a contract with the driver. The example is extra information and should not be required to write a dts entry. Rob