Skip to contentSkip to conversation

arm64: dts: meson-khadas-vim3: add Khadas MCU nodes

PATCH Applied Neil Armstrong 3 participants 3 messages Jul 13, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: meson-khadas-vim3: add Khadas MCU nodes

Add the Khadas MCU node with active FAN thermal nodes for all the Khadas VIM3 variants.

---
Hi Kevin,

The bindings has been reviewed and merged by Lee,
could you apply this one via the amlogic tree ?

Thanks,
Neil

 .../boot/dts/amlogic/meson-khadas-vim3.dtsi   | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi +23 -0
index 1ef1e3672b96..27408c10a811 100644
@@ -183,6 +183,23 @@
 	hdmi-phandle = <&hdmi_tx>;
 };
 
+&cpu_thermal {
+	trips {
+		cpu_active: cpu-active {
+			temperature = <80000>; /* millicelsius */
+			hysteresis = <2000>; /* millicelsius */
+			type = "active";
+		};
+	};
+
+	cooling-maps {
+		map {
+			trip = <&cpu_active>;
+			cooling-device = <&khadas_mcu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+		};
+	};
+};
+
 &ext_mdio {
 	external_phy: ethernet-phy@0 {
 		/* Realtek RTL8211F (0x001cc916) */
@@ -222,6 +239,12 @@
 	pinctrl-0 = <&i2c_ao_sck_pins>, <&i2c_ao_sda_pins>;
 	pinctrl-names = "default";
 
+	khadas_mcu: system-controller@18 {
+		compatible = "khadas,mcu";
+		reg = <0x18>;
+		#cooling-cells = <2>;
+	};
+
 	gpio_expander: gpio-controller@20 {
 		compatible = "ti,tca6408";
 		reg = <0x20>;
Signature · 1 line
2.22.0
maintainer Applied
#1 lore raw
Quoted 2 lines · Neil Armstrong

Add the Khadas MCU node with active FAN thermal nodes for all the Khadas VIM3 variants.

Applied, thanks!

[1/1] arm64: dts: meson-khadas-vim3: add Khadas MCU nodes

      commit: cabb1f3827109372dcb80081cc654eb54f997afc

Best regards,

Signature · 1 line
Kevin Hilman <[email protected]>
#2 lore raw
In reply to Neil Armstrong
This patch was applied to khilman/linux-amlogic.git (refs/heads/for-next).

Hello:

This patch was applied to khilman/linux-amlogic.git (refs/heads/for-next).

Quoted 9 lines · On Mon, 13 Jul 2020 08:59:31 +0200 you wrote:

Add the Khadas MCU node with active FAN thermal nodes for all the Khadas VIM3 variants.

---
Hi Kevin,

[...]

Here is a summary with links:
- arm64: dts: meson-khadas-vim3: add Khadas MCU nodes

    https://git.kernel.org/khilman/linux-amlogic/c/cabb1f3827109372dcb80081cc654eb54f997afc

You are awesome, thank you!

Signature · 7 lines
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/pwbot

_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic