Commit 6bad15ac authored by Serge Schneider's avatar Serge Schneider Committed by Phil Elwell
Browse files

Add rpi-poe-fan driver

parent 28439cac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
	rpi-dac.dtbo \
	rpi-display.dtbo \
	rpi-ft5406.dtbo \
	rpi-poe.dtbo \
	rpi-proto.dtbo \
	rpi-sense.dtbo \
	rpi-tv.dtbo \
+6 −0
Original line number Diff line number Diff line
@@ -1576,6 +1576,12 @@ Params: touchscreen-size-x Touchscreen X resolution (default 800)
        touchscreen-swapped-x-y Swap X and Y cordinates (default 0);


Name:   rpi-poe
Info:   Raspberry Pi POE HAT
Load:   dtoverlay=rpi-poe
Params: <None>


Name:   rpi-proto
Info:   Configures the RPi Proto audio card
Load:   dtoverlay=rpi-proto
+61 −0
Original line number Diff line number Diff line
/*
 * Overlay for the Raspberry Pi POE HAT.
 */
/dts-v1/;
/plugin/;

/ {
	compatible = "brcm,bcm2708";

	fragment@0 {
		target-path = "/";
		__overlay__ {
			fan0: rpi-poe-fan@0 {
				compatible = "rpi-poe-fan";
				firmware = <&firmware>;
				cooling-min-state = <0>;
				cooling-max-state = <3>;
				#cooling-cells = <2>;
				cooling-levels = <0 50 150 255>;
				status = "okay";
			};
		};
	};

	fragment@1 {
		target = <&cpu_thermal>;
		__overlay__ {
			trips {
				threshold: trip-point@0 {
					temperature = <45000>;
					hysteresis = <5000>;
					type = "active";
				};
				target: trip-point@1 {
					temperature = <50000>;
					hysteresis = <2000>;
					type = "active";
				};
				cpu_hot: cpu_hot@0 {
					temperature = <55000>;
					hysteresis = <2000>;
					type = "active";
				};
			};
			cooling-maps {
				map0 {
					trip = <&threshold>;
					cooling-device = <&fan0 0 1>;
				};
				map1 {
					trip = <&target>;
					cooling-device = <&fan0 1 2>;
				};
				map2 {
					trip = <&cpu_hot>;
					cooling-device = <&fan0 2 3>;
				};
			};
		};
	};
};
+1 −0
Original line number Diff line number Diff line
@@ -658,6 +658,7 @@ CONFIG_HWMON=m
CONFIG_SENSORS_DS1621=m
CONFIG_SENSORS_JC42=m
CONFIG_SENSORS_LM75=m
CONFIG_SENSORS_RPI_POE_FAN=m
CONFIG_SENSORS_SHT21=m
CONFIG_SENSORS_SHT3x=m
CONFIG_SENSORS_SHTC1=m
+1 −0
Original line number Diff line number Diff line
@@ -651,6 +651,7 @@ CONFIG_HWMON=m
CONFIG_SENSORS_DS1621=m
CONFIG_SENSORS_JC42=m
CONFIG_SENSORS_LM75=m
CONFIG_SENSORS_RPI_POE_FAN=m
CONFIG_SENSORS_SHT21=m
CONFIG_SENSORS_SHT3x=m
CONFIG_SENSORS_SHTC1=m
Loading