Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754279AbbKWJrl (ORCPT ); Mon, 23 Nov 2015 04:47:41 -0500 Received: from smtp.csie.ntu.edu.tw ([140.112.30.61]:42757 "EHLO smtp.csie.ntu.edu.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750941AbbKWJrh (ORCPT ); Mon, 23 Nov 2015 04:47:37 -0500 MIME-Version: 1.0 In-Reply-To: <20e229f191031b0b0bff96dee118d1f2d988d7b3.1448263428.git.atx@atx.name> References: <20e229f191031b0b0bff96dee118d1f2d988d7b3.1448263428.git.atx@atx.name> From: Chen-Yu Tsai Date: Mon, 23 Nov 2015 17:47:11 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 4/5] dt-bindings: document sun8i_ths To: Josef Gajdusek Cc: linux-sunxi , linux-clk , linux-pm@vger.kernel.org, linux-kernel , linux-arm-kernel , devicetree , gpatchesrdh@mveas.com, Mike Turquette , Hans De Goede , Stephen Boyd , Michael Turquette , Emilio Lopez , Russell King - ARM Linux , Eduardo Valentin , Zhang Rui , Chen-Yu Tsai , Maxime Ripard , Kumar Gala , Ian Campbell , Mark Rutland , Pawel Moll , Rob Herring Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2252 Lines: 63 On Mon, Nov 23, 2015 at 4:02 PM, Josef Gajdusek wrote: > This patch adds the binding documentation for the sun8i_ths driver > > Signed-off-by: Josef Gajdusek > --- > .../devicetree/bindings/thermal/sun8i-ths.txt | 31 ++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > create mode 100644 Documentation/devicetree/bindings/thermal/sun8i-ths.txt > > diff --git a/Documentation/devicetree/bindings/thermal/sun8i-ths.txt b/Documentation/devicetree/bindings/thermal/sun8i-ths.txt > new file mode 100644 > index 0000000..67056bf > --- /dev/null > +++ b/Documentation/devicetree/bindings/thermal/sun8i-ths.txt > @@ -0,0 +1,31 @@ > +* sun8i THS > + > +Required properties: > +- compatible : "allwinner,sun8i-h3-ths" > +- reg : Address range of the thermal registers and location of the calibration > + value You are now using nvmem for the calibration data. You don't need the second entry. > +- resets : Must contain an entry for each entry in reset-names. > + see ../reset/reset.txt for details > +- reset-names : Must include the name "ahb" > +- clocks : Must contain an entry for each entry in clock-names. > +- clock-names : Must contain "ahb" for the bus gate and "ths" for the THS > + clock > + > +Optional properties: > +- nvmem-cells : Must contain an entry for each entry in nvmem-cell-names > +- nvmem-cell-names : Must contain "calibration" for the cell containing the > + temperature calibration cell, if available > + > +Example: > +ths: ths@01c25000 { > + #thermal-sensor-cells = <0>; > + compatible = "allwinner,sun8i-h3-ths"; > + reg = <0x01c25000 0x88>, <0x01c14234 0x4>; Same here. ChenYu > + interrupts = ; > + resets = <&bus_rst 136>; > + reset-names = "ahb"; > + clocks = <&bus_gates 72>, <&ths_clk>; > + clock-names = "ahb", "ths"; > + nvmem-cells = <&ths_calibration>; > + nvmem-cell-names = "calibration"; > +}; > -- > 2.4.10 > -- 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/