Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1431061 > unrolled thread

[PATCH v2 03/14] dt-bindings: document sun8i_ths - H3 thermal sensor driver

Started bymegous@megous.com
First post2016-06-25 05:50 +0200
Last post2016-06-28 23:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 03/14] dt-bindings: document sun8i_ths - H3 thermal sensor driver megous@megous.com - 2016-06-25 05:50 +0200
    Re: [PATCH v2 03/14] dt-bindings: document sun8i_ths - H3 thermal  sensor driver Rob Herring <robh@kernel.org> - 2016-06-28 23:00 +0200

#1431061 — [PATCH v2 03/14] dt-bindings: document sun8i_ths - H3 thermal sensor driver

Frommegous@megous.com
Date2016-06-25 05:50 +0200
Subject[PATCH v2 03/14] dt-bindings: document sun8i_ths - H3 thermal sensor driver
Message-ID<rNMLw-lT-25@gated-at.bofh.it>
From: Ondrej Jirman <megous@megous.com>

This patch adds the binding documentation for the
sun8i_ths driver. This is a driver for thermal sensor
found in Allwinner H3 SoC.

Signed-off-by: Ondřej Jirman <megous@megous.com>
---
 .../devicetree/bindings/thermal/sun8i-ths.txt      | 26 ++++++++++++++++++++++
 1 file changed, 26 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..76859d4
--- /dev/null
+++ b/Documentation/devicetree/bindings/thermal/sun8i-ths.txt
@@ -0,0 +1,26 @@
+* Thermal sensor driver for Allwinner H3 SoC
+
+Required properties:
+- compatible : "allwinner,sun8i-h3-ths"
+- reg : Address range of the thermal sensor registers and of the calibration
+  data
+- resets : Must contain phandles to reset controls matching the entries
+  of the names
+- reset-names : Must include the name "ahb"
+- clocks : Must contain phandles to clock controls matching the entries
+  of the names
+- clock-names : Must contain "ahb" for the bus gate and "ths" for the THS
+  clock
+
+Example:
+ths: ths@01c25000 {
+	#thermal-sensor-cells = <0>;
+	compatible = "allwinner,sun8i-h3-ths";
+	reg = <0x01c25000 0x400>,
+	      <0x01c14234 0x4>;
+	interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
+	resets = <&bus_rst 136>;
+	reset-names = "ahb";
+	clocks = <&bus_gates 72>, <&ths_clk>;
+	clock-names = "ahb", "ths";
+};
-- 
2.9.0

[toc] | [next] | [standalone]


#1433309 — Re: [PATCH v2 03/14] dt-bindings: document sun8i_ths - H3 thermal sensor driver

FromRob Herring <robh@kernel.org>
Date2016-06-28 23:00 +0200
SubjectRe: [PATCH v2 03/14] dt-bindings: document sun8i_ths - H3 thermal sensor driver
Message-ID<rP8gW-3r9-41@gated-at.bofh.it>
In reply to#1431061
On Sat, Jun 25, 2016 at 05:45:00AM +0200, megous@megous.com wrote:
> From: Ondrej Jirman <megous@megous.com>
> 
> This patch adds the binding documentation for the
> sun8i_ths driver. This is a driver for thermal sensor
> found in Allwinner H3 SoC.
> 
> Signed-off-by: Ondřej Jirman <megous@megous.com>
> ---
>  .../devicetree/bindings/thermal/sun8i-ths.txt      | 26 ++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/thermal/sun8i-ths.txt

I guess the example will change for the clocks some, but otherwise:

Acked-by: Rob Herring <robh@kernel.org>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web