mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-30 02:31:46 +00:00
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
From f1b96d20375eb192d017999740c0055f2efbf576 Mon Sep 17 00:00:00 2001
|
|
From: Philipp Rossak <embed3d@gmail.com>
|
|
Date: Fri, 26 Jan 2018 01:01:34 +0100
|
|
Subject: [PATCH 019/146] arm: dts: sunxi-h3-h5: add support for the thermal
|
|
sensor in H3 and H5
|
|
|
|
As we have gained the support for the thermal sensor in H3 and H5,
|
|
we can now add its device nodes to the device tree. The H3 and H5 share
|
|
most of its compatible. The compatible and the thermal sensor cells
|
|
will be added in an additional patch per device.
|
|
|
|
Signed-off-by: Philipp Rossak <embed3d@gmail.com>
|
|
---
|
|
arch/arm/boot/dts/sunxi-h3-h5.dtsi | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
|
|
index fc6131315c47..8fde0f6c16e4 100644
|
|
--- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi
|
|
+++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi
|
|
@@ -488,6 +488,15 @@
|
|
};
|
|
};
|
|
|
|
+ ths: thermal-sensor@1c25000 {
|
|
+ reg = <0x01c25000 0x100>;
|
|
+ interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>;
|
|
+ clock-names = "bus", "mod";
|
|
+ resets = <&ccu RST_BUS_THS>;
|
|
+ #io-channel-cells = <0>;
|
|
+ };
|
|
+
|
|
timer@1c20c00 {
|
|
compatible = "allwinner,sun4i-a10-timer";
|
|
reg = <0x01c20c00 0xa0>;
|
|
--
|
|
2.17.1
|
|
|