summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1f9c317)
raw | patch | inline | side by side (parent: 1f9c317)
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | |
Thu, 31 Jan 2013 09:05:26 +0000 (09:05 +0000) | ||
committer | Eduardo Valentin <eduardo.valentin@ti.com> | |
Wed, 20 Mar 2013 14:26:52 +0000 (10:26 -0400) |
Support for loading the Renesas R-Car thermal module via devicetree.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Documentation/devicetree/bindings/thermal/rcar-thermal.txt | [new file with mode: 0644] | patch | blob |
drivers/thermal/rcar_thermal.c | patch | blob | history |
diff --git a/Documentation/devicetree/bindings/thermal/rcar-thermal.txt b/Documentation/devicetree/bindings/thermal/rcar-thermal.txt
--- /dev/null
@@ -0,0 +1,29 @@
+* Renesas R-Car Thermal
+
+Required properties:
+- compatible : "renesas,rcar-thermal"
+- reg : Address range of the thermal registers.
+ The 1st reg will be recognized as common register
+ if it has "interrupts".
+
+Option properties:
+
+- interrupts : use interrupt
+
+Example (non interrupt support):
+
+thermal@e61f0100 {
+ compatible = "renesas,rcar-thermal";
+ reg = <0xe61f0100 0x38>;
+};
+
+Example (interrupt support):
+
+thermal@e61f0000 {
+ compatible = "renesas,rcar-thermal";
+ reg = <0xe61f0000 0x14
+ 0xe61f0100 0x38
+ 0xe61f0200 0x38
+ 0xe61f0300 0x38>;
+ interrupts = <0 69 4>;
+};
index 2eebcadb4c995b94741cd2c342de999998027b06..909bb4bb837f76524ff24251042fb50de12c1f18 100644 (file)
return 0;
}
+static const struct of_device_id rcar_thermal_dt_ids[] __devinitconst = {
+ { .compatible = "renesas,rcar-thermal", },
+ {},
+};
+MODULE_DEVICE_TABLE(of, rcar_thermal_dt_ids);
+
static struct platform_driver rcar_thermal_driver = {
.driver = {
.name = "rcar_thermal",
+ .of_match_table = rcar_thermal_dt_ids,
},
.probe = rcar_thermal_probe,
.remove = rcar_thermal_remove,