From: "Jeremy Linton" <jeremy.linton@arm.com>
To: devel@edk2.groups.io
Cc: Jeremy Linton <jeremy.linton@arm.com>
Subject: [PATCH v2 0/4] Platform/RasberryPi: Thermal zone
Date: Wed, 19 Aug 2020 23:42:13 -0500 [thread overview]
Message-ID: <20200820044217.39839-1-jeremy.linton@arm.com> (raw)
This set creates a basic thermal zone, which reads the
SOC temp via a direct register read in AML. It also
adds an active cooling policy using a GPIO pin for fan
control that can optionally be enabled/disabled on either
GPIO18 (commercial fan shim board) or GPIO19 by the
user from the BDS.
it should now be possible when booted in ACPI mode to:
# sensors
acpitz-acpi-0
Adapter: ACPI interface
temp1: +57.6C (crit = +90.0C)
and the fan state, if enabled may be read with:
/sys/bus/acpi/devices/PNP0C06:00/PNP0C0B:00/physical_node/thermal_cooling/cur_state
while the kernel will automatically cycle the fan if the SoC
temp exceeds 60C.
v1->v2:
Add choice of GPIO pins to the BDS menu
Correct whitespace/etc issues from v1 review
Add an additional cleanup patch for contextual whitespace issues
Jeremy Linton (4):
Platform/RaspberryPi4: Add a basic thermal zone
Platform/RaspberryPi4: Create ACPI fan object
Platform/RaspberryPi: Add entry for user fan control
Platform/RaspberryPi: Trivial whitespace cleanup
Platform/RaspberryPi/AcpiTables/Dsdt.asl | 31 ++++++
Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c | 104 ++++++++++++++++++---
.../RaspberryPi/Drivers/ConfigDxe/ConfigDxe.inf | 3 +
.../RaspberryPi/Drivers/ConfigDxe/ConfigDxeHii.uni | 6 ++
.../RaspberryPi/Drivers/ConfigDxe/ConfigDxeHii.vfr | 18 ++++
.../RaspberryPi/Drivers/ConfigDxe/SsdtThermal.asl | 76 +++++++++++++++
Platform/RaspberryPi/Include/ConfigVars.h | 4 +
Platform/RaspberryPi/RPi3/RPi3.dsc | 5 +
Platform/RaspberryPi/RPi4/RPi4.dsc | 8 ++
Platform/RaspberryPi/RaspberryPi.dec | 1 +
.../Bcm27xx/Include/IndustryStandard/Bcm2711.h | 2 +
11 files changed, 245 insertions(+), 13 deletions(-)
create mode 100644 Platform/RaspberryPi/Drivers/ConfigDxe/SsdtThermal.asl
--
2.13.7
next reply other threads:[~2020-08-20 4:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-20 4:42 Jeremy Linton [this message]
2020-08-20 4:42 ` [PATCH v2 1/4] Platform/RaspberryPi4: Add a basic thermal zone Jeremy Linton
2020-08-20 7:59 ` Ard Biesheuvel
2020-08-20 14:41 ` Jeremy Linton
2020-08-27 8:06 ` Ard Biesheuvel
2020-08-27 15:21 ` Jeremy Linton
2020-08-20 4:42 ` [PATCH v2 2/4] Platform/RaspberryPi4: Create ACPI fan object Jeremy Linton
2020-08-20 4:42 ` [PATCH v2 3/4] Platform/RaspberryPi: Add entry for user fan control Jeremy Linton
2020-08-20 16:15 ` Andrei Warkentin
2020-08-21 4:15 ` Jeremy Linton
2020-08-20 4:42 ` [PATCH v2 4/4] Platform/RaspberryPi: Trivial whitespace cleanup Jeremy Linton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200820044217.39839-1-jeremy.linton@arm.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox