From: Stefan Wahren <stefan.wahren@i2se.com>
To: Eric Anholt <eric@anholt.net>, Zhang Rui <rui.zhang@intel.com>,
Eduardo Valentin <edubezval@gmail.com>
Cc: Stefan Wahren <stefan.wahren@i2se.com>,
devicetree@vger.kernel.org,
Florian Fainelli <f.fainelli@gmail.com>,
linux-pm@vger.kernel.org,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will.deacon@arm.com>,
Rob Herring <robh+dt@kernel.org>,
linux-rpi-kernel@lists.infradead.org,
Martin Sperl <kernel@martin.sperl.org>,
Frank Rowand <frowand.list@gmail.com>,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH V10 0/6] thermal: bcm2835: add thermal driver for bcm2835 SoC
Date: Fri, 3 Mar 2017 23:18:43 +0000 [thread overview]
Message-ID: <1488583129-4159-1-git-send-email-stefan.wahren@i2se.com> (raw)
This is an attempt to finish Martin's great work on the bcm2835 thermal driver.
It includes now all Eduardo's suggestions and the explanations from the
Raspberry Pi forum [1].
ChangeLog:
V1 -> V2: added specific settings depending on compatiblity
added trip point based on register
setting up ctrl-register if HW is not enabled by firmware
as per recommendation of Eric (untested)
check that clock frequency is in range
(1.9 - 5MHz - as per comment in clk-bcm2835.c)
V2 -> V4: moved back to thermal (not using bcm sub-directory)
set polling interval to 1second (was 0ms, so interrupt driven)
V5 -> V6: added correct depends in KConfig
removed defined default for RESET_DELAY
removed obvious comments
clarify HW setup comments if not set up by FW already
move clk_prepare_enable to an earlier stage and add error handling
clarify warning when TS-clock runs out of recommended range
clk_disable_unprepare added in bcm2835_thermal_remove
added comment on recommended temperature ranges for SOC
V6 -> V7: removed depends on ARCH_BCM2836 || ARCH_BCM2837 in Kconfig
V7 -> V8: rebased
V8 -> V9: moved to use the thermal framework offset and slope in
thermal_zone_parameters as per request
V9 -> V10: implement support for thermal zone descriptor, define offset and
slope within DT, apply forum explanations, replace symbolic with octal
permissions
[1] - https://www.raspberrypi.org/forums/viewtopic.php?f=72&t=160289&p=1040448
Martin Sperl (1):
thermal: bcm2835: add thermal driver for bcm2835 SoC
Stefan Wahren (5):
of: base: Implement read function for s32 array
thermal: of-thermal: Implement signed coefficient support
dt-bindings: Add thermal zone to bcm2835-thermal example
ARM: dts: bcm283x: Add CPU thermal zone with 1 trip point
ARM64: dts: bcm2837: Define CPU thermal coefficients
.../bindings/thermal/brcm,bcm2835-thermal.txt | 32 +-
arch/arm/boot/dts/bcm2835.dtsi | 4 +
arch/arm/boot/dts/bcm2836.dtsi | 4 +
arch/arm/boot/dts/bcm283x.dtsi | 21 ++
arch/arm64/boot/dts/broadcom/bcm2837.dtsi | 4 +
drivers/thermal/Kconfig | 8 +
drivers/thermal/Makefile | 1 +
drivers/thermal/bcm2835_thermal.c | 319 ++++++++++++++++++++
drivers/thermal/of-thermal.c | 5 +-
include/linux/of.h | 35 +++
10 files changed, 427 insertions(+), 6 deletions(-)
create mode 100644 drivers/thermal/bcm2835_thermal.c
--
1.7.9.5
next reply other threads:[~2017-03-03 23:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-03 23:18 Stefan Wahren [this message]
2017-03-03 23:18 ` [PATCH V10 1/6] of: base: Implement read function for s32 array Stefan Wahren
2017-03-03 23:18 ` [PATCH V10 2/6] thermal: of-thermal: Implement signed coefficient support Stefan Wahren
2017-03-03 23:18 ` [PATCH V10 3/6] dt-bindings: Add thermal zone to bcm2835-thermal example Stefan Wahren
2017-03-03 23:18 ` [PATCH V10 4/6] ARM: dts: bcm283x: Add CPU thermal zone with 1 trip point Stefan Wahren
[not found] ` <1488583129-4159-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
2017-03-03 23:18 ` [PATCH V10 5/6] ARM64: dts: bcm2837: Define CPU thermal coefficients Stefan Wahren
2017-03-07 6:50 ` kbuild test robot
2017-03-03 23:18 ` [PATCH V10 6/6] thermal: bcm2835: add thermal driver for bcm2835 SoC Stefan Wahren
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-all 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=1488583129-4159-1-git-send-email-stefan.wahren@i2se.com \
--to=stefan.wahren@i2se.com \
--cc=catalin.marinas@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=edubezval@gmail.com \
--cc=eric@anholt.net \
--cc=f.fainelli@gmail.com \
--cc=frowand.list@gmail.com \
--cc=kernel@martin.sperl.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=robh+dt@kernel.org \
--cc=rui.zhang@intel.com \
--cc=will.deacon@arm.com \
/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;
as well as URLs for NNTP newsgroup(s).