67b69d85d06d66dc4d1f1208669a600122b1c81e
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0623-overlays-Add-rpi-poe-plus-overlay.patch
1 From 022c80564d30bba83b82a0ccdff74648e47862dd Mon Sep 17 00:00:00 2001
2 From: Serge Schneider <serge@raspberrypi.com>
3 Date: Mon, 2 Dec 2019 14:48:05 +0000
4 Subject: [PATCH] overlays: Add rpi-poe-plus overlay
5
6 Signed-off-by: Serge Schneider <serge@raspberrypi.com>
7 ---
8 arch/arm/boot/dts/overlays/Makefile | 1 +
9 arch/arm/boot/dts/overlays/README | 21 +++++++++++++++++++
10 .../dts/overlays/rpi-poe-plus-overlay.dts | 19 +++++++++++++++++
11 3 files changed, 41 insertions(+)
12 create mode 100644 arch/arm/boot/dts/overlays/rpi-poe-plus-overlay.dts
13
14 --- a/arch/arm/boot/dts/overlays/Makefile
15 +++ b/arch/arm/boot/dts/overlays/Makefile
16 @@ -156,6 +156,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
17 rpi-display.dtbo \
18 rpi-ft5406.dtbo \
19 rpi-poe.dtbo \
20 + rpi-poe-plus.dtbo \
21 rpi-proto.dtbo \
22 rpi-sense.dtbo \
23 rpi-tv.dtbo \
24 --- a/arch/arm/boot/dts/overlays/README
25 +++ b/arch/arm/boot/dts/overlays/README
26 @@ -2505,6 +2505,27 @@ Params: poe_fan_temp0 Temperat
27 the fan slows down (default 5000)
28
29
30 +Name: rpi-poe-plus
31 +Info: Raspberry Pi PoE+ HAT fan
32 +Load: dtoverlay=rpi-poe-plus,<param>[=<val>]
33 +Params: poe_fan_temp0 Temperature (in millicelcius) at which the fan
34 + turns on (default 40000)
35 + poe_fan_temp0_hyst Temperature delta (in millicelcius) at which
36 + the fan turns off (default 2000)
37 + poe_fan_temp1 Temperature (in millicelcius) at which the fan
38 + speeds up (default 45000)
39 + poe_fan_temp1_hyst Temperature delta (in millicelcius) at which
40 + the fan slows down (default 2000)
41 + poe_fan_temp2 Temperature (in millicelcius) at which the fan
42 + speeds up (default 50000)
43 + poe_fan_temp2_hyst Temperature delta (in millicelcius) at which
44 + the fan slows down (default 2000)
45 + poe_fan_temp3 Temperature (in millicelcius) at which the fan
46 + speeds up (default 55000)
47 + poe_fan_temp3_hyst Temperature delta (in millicelcius) at which
48 + the fan slows down (default 5000)
49 +
50 +
51 Name: rpi-proto
52 Info: Configures the RPi Proto audio card
53 Load: dtoverlay=rpi-proto
54 --- /dev/null
55 +++ b/arch/arm/boot/dts/overlays/rpi-poe-plus-overlay.dts
56 @@ -0,0 +1,19 @@
57 +// SPDX-License-Identifier: (GPL-2.0 OR MIT)
58 +// Overlay for the Raspberry Pi PoE+ HAT.
59 +
60 +#include "rpi-poe-overlay.dts"
61 +
62 +/ {
63 + compatible = "brcm,bcm2835";
64 +
65 + fragment@3 {
66 + target-path = "/";
67 + __overlay__ {
68 + rpi_poe_power_supply: rpi-poe-power-supply@0 {
69 + compatible = "raspberrypi,rpi-poe-power-supply";
70 + firmware = <&firmware>;
71 + status = "okay";
72 + };
73 + };
74 + };
75 +};