Thread (15 messages) 15 messages, 2 authors, 2016-07-05
STALE3637d

[RFC PATCH 2/5] dt: bindings: add bindings for allwinner a23/33 ths

From: Icenowy Zheng <hidden>
Date: 2016-06-28 10:13:22
Also in: linux-arm-kernel, linux-clk, linux-pm
Subsystem: open firmware and flattened device tree bindings, the rest, thermal · Maintainers: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds, Rafael J. Wysocki, Daniel Lezcano

Document the THS on A23/33 SoCs.

Signed-off-by: Icenowy Zheng <redacted>
---
 .../devicetree/bindings/thermal/sun8iw3-thermal.txt  | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/thermal/sun8iw3-thermal.txt
diff --git a/Documentation/devicetree/bindings/thermal/sun8iw3-thermal.txt b/Documentation/devicetree/bindings/thermal/sun8iw3-thermal.txt
new file mode 100644
index 0000000..0cdcb9a
--- /dev/null
+++ b/Documentation/devicetree/bindings/thermal/sun8iw3-thermal.txt
@@ -0,0 +1,20 @@
+* Thermal Sensor (THS) on Allwinner sun8i A23/33 SoCs
+
+Required properties:
+- compatible : should be "allwinner,sun8i-<name>-ths"
+   "allwinner,sun8i-a23-ths": found on A23 SoCs
+   "allwinner,sun8i-a33-ths": found on A33 SoCs
+- reg : physical base address of the controller and length of memory mapped
+	region.
+- clocks : Must contain an entry for each entry in clock-names.
+- clock-names : Shall be "pll2", since the THS on A23/33 is using audio PLL (PLL2).
+- #thermal-sensor-cells : Should be 0. See ./thermal.txt for a description.
+
+Example:
+ths: ths@01c25000 {
+	#thermal-sensor-cells = <0>;
+	compatible = "allwinner,sun8i-a23-ths";
+	reg = <0x01c25000 0x44>;
+	clocks = <&pll2 0>;
+	clock-names = "pll2";
+};
-- 
2.9.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help