public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
[parent not found: <20170301132108.L3LK6WWv@smtp1h.mail.yandex.net>]
[parent not found: <20170301054835.mUDm4hZv@smtp2m.mail.yandex.net>]
* [PATCH 1/3] dt-bindings: document the thermal sensor of Allwinner H3 SoC
@ 2017-02-27 19:40 Icenowy Zheng
  2017-02-27 19:40 ` [PATCH 2/3] thermal: add support for the thermal sensor on Allwinner new SoCs Icenowy Zheng
  0 siblings, 1 reply; 8+ messages in thread
From: Icenowy Zheng @ 2017-02-27 19:40 UTC (permalink / raw)
  To: linux-arm-kernel

From: Ondrej Jirman <megous@megous.com>

This patch adds the binding documentation for the thermal sensor
found in Allwinner H3 SoC.

Signed-off-by: Ond?ej Jirman <megous@megous.com>
[Icenowy: some adjustments to documentation and the commit message]
Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
---
 .../devicetree/bindings/thermal/sun8i-ths.txt      | 35 ++++++++++++++++++++++
 1 file changed, 35 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 000000000000..eec094c459b8
--- /dev/null
+++ b/Documentation/devicetree/bindings/thermal/sun8i-ths.txt
@@ -0,0 +1,35 @@
+* Thermal sensor for new Allwinner SoCs
+
+Required properties:
+- compatible : Should be one of the following:
+ - "allwinner,sun8i-h3-ths"
+- reg : Address range of the thermal sensor registers
+- 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
+- #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description.
+
+Optional properties:
+- nvmem-cells: A phandle to the calibration data provided by a nvmem device. If
+               unspecified default values shall be used. Refer to
+               Documentation/devicetree/bindings/nvmem/nvmem.txt to know how to
+               specify nvmem cells.
+- nvmem-cell-names: Should be "cal"
+
+Example:
+ths: ths at 01c25000 {
+	compatible = "allwinner,sun8i-h3-ths";
+	reg = <0x01c25000 0x400>;
+	interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
+	resets = <&ccu RST_BUS_THS>;
+	reset-names = "ahb";
+	clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>;
+	clock-names = "ahb", "ths";
+	nvmem-cells = <&ths_cal>;
+	nvmem-cell-names = "cal";
+	#thermal-sensor-cells = <1>;
+};
-- 
2.11.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-03-09 15:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20170301190220.2EgSha6N@smtp3o.mail.yandex.net>
2017-03-02 14:11 ` [PATCH 2/3] thermal: add support for the thermal sensor on Allwinner new SoCs Maxime Ripard
2017-03-09  0:36   ` Icenowy Zheng
2017-03-09 14:27     ` Maxime Ripard
2017-03-09 15:31       ` Icenowy Zheng
     [not found] <20170301132108.L3LK6WWv@smtp1h.mail.yandex.net>
2017-03-01 15:56 ` Maxime Ripard
     [not found] <20170301054835.mUDm4hZv@smtp2m.mail.yandex.net>
2017-03-01 10:14 ` Maxime Ripard
2017-02-27 19:40 [PATCH 1/3] dt-bindings: document the thermal sensor of Allwinner H3 SoC Icenowy Zheng
2017-02-27 19:40 ` [PATCH 2/3] thermal: add support for the thermal sensor on Allwinner new SoCs Icenowy Zheng
2017-02-28  6:44   ` Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox