aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.19/950-0174-hwmon-adjust-rpi-poe-fan-overlay-trip-points.patch
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2019-07-09 20:32:28 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2019-07-14 12:44:14 +0200
commit42954857190b9df16d9d873ecc7f6cc38e013e44 (patch)
tree98c588f629ff534d458eb0884782ea99672d7634 /target/linux/brcm2708/patches-4.19/950-0174-hwmon-adjust-rpi-poe-fan-overlay-trip-points.patch
parentf1875e902d0afb7d9b9e5285b4fd8da7f6c5e30a (diff)
downloadupstream-42954857190b9df16d9d873ecc7f6cc38e013e44.tar.gz
upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.tar.bz2
upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.zip
brcm2708: add linux 4.19 support
Boot tested on Raspberry Pi B+ (BCM2708) and Raspberry Pi 2 (BCM2709) Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.19/950-0174-hwmon-adjust-rpi-poe-fan-overlay-trip-points.patch')
-rw-r--r--target/linux/brcm2708/patches-4.19/950-0174-hwmon-adjust-rpi-poe-fan-overlay-trip-points.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.19/950-0174-hwmon-adjust-rpi-poe-fan-overlay-trip-points.patch b/target/linux/brcm2708/patches-4.19/950-0174-hwmon-adjust-rpi-poe-fan-overlay-trip-points.patch
new file mode 100644
index 0000000000..e26cff416b
--- /dev/null
+++ b/target/linux/brcm2708/patches-4.19/950-0174-hwmon-adjust-rpi-poe-fan-overlay-trip-points.patch
@@ -0,0 +1,67 @@
+From 981040d773878289ce9cd7bb15a78f4205317ab1 Mon Sep 17 00:00:00 2001
+From: Serge Schneider <serge@raspberrypi.org>
+Date: Wed, 26 Sep 2018 19:44:59 +0100
+Subject: [PATCH 174/703] hwmon: adjust rpi-poe-fan overlay trip points
+
+Signed-off-by: Serge Schneider <serge@raspberrypi.org>
+---
+ .../arm/boot/dts/overlays/rpi-poe-overlay.dts | 26 +++++++------------
+ 1 file changed, 9 insertions(+), 17 deletions(-)
+
+--- a/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
++++ b/arch/arm/boot/dts/overlays/rpi-poe-overlay.dts
+@@ -14,9 +14,9 @@
+ compatible = "raspberrypi,rpi-poe-fan";
+ firmware = <&firmware>;
+ cooling-min-state = <0>;
+- cooling-max-state = <3>;
++ cooling-max-state = <2>;
+ #cooling-cells = <2>;
+- cooling-levels = <0 50 150 255>;
++ cooling-levels = <0 150 255>;
+ status = "okay";
+ };
+ };
+@@ -26,35 +26,27 @@
+ target = <&cpu_thermal>;
+ __overlay__ {
+ trips {
+- threshold: trip-point@0 {
+- temperature = <45000>;
+- hysteresis = <5000>;
+- type = "active";
+- };
+- target: trip-point@1 {
++ trip0: trip0 {
+ temperature = <50000>;
+- hysteresis = <2000>;
++ hysteresis = <5000>;
+ type = "active";
+ };
+- cpu_hot: cpu_hot@0 {
++ trip1: trip1 {
++
+ temperature = <55000>;
+- hysteresis = <2000>;
++ hysteresis = <5000>;
+ type = "active";
+ };
+ };
+ cooling-maps {
+ map0 {
+- trip = <&threshold>;
++ trip = <&trip0>;
+ cooling-device = <&fan0 0 1>;
+ };
+ map1 {
+- trip = <&target>;
++ trip = <&trip1>;
+ cooling-device = <&fan0 1 2>;
+ };
+- map2 {
+- trip = <&cpu_hot>;
+- cooling-device = <&fan0 2 3>;
+- };
+ };
+ };
+ };