linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Thermal regulation for Orange Pi PC and Orange Pi One
@ 2016-06-23 19:20 megous at megous.com
  2016-06-23 19:20 ` [PATCH 01/14] ARM: dts: sun8i: Add SID node megous at megous.com
                   ` (13 more replies)
  0 siblings, 14 replies; 44+ messages in thread
From: megous at megous.com @ 2016-06-23 19:20 UTC (permalink / raw)
  To: linux-arm-kernel

This patch series implements thermal regulation on Orange Pi PC
and Orange Pi One. For that purpose I've taken over the work on THS
of Josef Gajdusek, and cleaned up his patches according to the
previous review on the mailing list.

The patch series also contains:
- Regulator driver for sy8106a I2C connected regulator
- DTS setup for gpio regulator used on Orange Pi One  
- Operating points and thermal zone setup for both SBCs

Fixes/cleanups in the THS driver:
- Return EBUSY until thermal data are available to prevent incorrect
  readings early during boot, which caused critical temperature
  shutdowns.
- Remove unused infrastructure for support of other future SoCs.
  The driver is for sun8i only ATM.
- Make readings quicker (once per 330ms) for faster regulation
  loop.
- Remove some magic numbers from the code, and calculate parameters
  automatically, based on required readout period.  

Enabling frequency scaling lead to kernel crashes/lockups. I revrse
engineered arisc firmware from the BSP kernel to identify how it changes
PLL1 frequency and it uses algorithm that sets clock factors progressively.

This series also includes proposed patch to sunxi clk-factors code,
to allow for more complicated clock factors application algorithms.

regards,
  Ond?ej Jirman

^ permalink raw reply	[flat|nested] 44+ messages in thread

end of thread, other threads:[~2016-07-25  8:51 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-23 19:20 Thermal regulation for Orange Pi PC and Orange Pi One megous at megous.com
2016-06-23 19:20 ` [PATCH 01/14] ARM: dts: sun8i: Add SID node megous at megous.com
2016-06-24  2:41   ` Chen-Yu Tsai
2016-06-24 19:58     ` Ondřej Jirman
2016-06-25  1:09       ` [linux-sunxi] " Chen-Yu Tsai
2016-06-23 19:20 ` [PATCH 02/14] ARM: clk: sunxi: Add driver for the H3 THS clock megous at megous.com
2016-06-23 19:20 ` [PATCH 03/14] thermal: Add support for sun8i THS on Allwinner H3 megous at megous.com
2016-06-24  3:09   ` Chen-Yu Tsai
2016-06-24 21:50     ` Ondřej Jirman
2016-06-25  0:35     ` Ondřej Jirman
2016-06-25  0:54       ` Chen-Yu Tsai
2016-06-25  0:56         ` Ondřej Jirman
2016-06-23 19:20 ` [PATCH 04/14] dt-bindings: document sun8i_ths megous at megous.com
2016-06-24  2:46   ` Chen-Yu Tsai
2016-06-23 19:20 ` [PATCH 05/14] ARM: dts: sun8i: Add THS node to the sun8i-h3.dtsi megous at megous.com
2016-06-23 19:20 ` [PATCH 06/14] ARM: dts: sun8i: Add cpu0 label to sun8i-h3.dtsi megous at megous.com
2016-06-24  3:48   ` Chen-Yu Tsai
2016-06-24 22:51     ` Ondřej Jirman
2016-06-25  1:02       ` Chen-Yu Tsai
2016-06-25  7:02         ` Maxime Ripard
2016-06-25 14:50           ` Ondřej Jirman
2016-06-29 20:45             ` Maxime Ripard
2016-06-29 21:11               ` Ondřej Jirman
2016-06-30 11:04                 ` [linux-sunxi] " Michal Suchanek
2016-06-30 20:41                   ` Maxime Ripard
2016-07-17 14:39           ` Ondřej Jirman
2016-07-25  8:26             ` Maxime Ripard
     [not found]             ` <e57eb018-ef31-408e-84b2-b329510352d0@googlegroups.com>
2016-07-25  8:51               ` Maxime Ripard
2016-06-23 19:20 ` [PATCH 07/14] regulator: SY8106A regulator driver megous at megous.com
2016-06-24  3:41   ` Chen-Yu Tsai
2016-06-25  0:11     ` Ondřej Jirman
2016-06-25  1:00       ` Chen-Yu Tsai
2016-06-23 19:20 ` [PATCH 08/14] ARM: dts: sun8i: Add r_twi I2C controller megous at megous.com
2016-06-23 19:20 ` [PATCH 09/14] ARM: dts: sun8i: Enable r_twi on Orange Pi PC megous at megous.com
2016-06-23 19:21 ` [PATCH 10/14] ARM: dts: sun8i: Add sy8106a regulator to " megous at megous.com
2016-06-24  9:14   ` Chen-Yu Tsai
2016-06-23 19:21 ` [PATCH 11/14] ARM: sun8i: clk: Add clk-factor rate application method megous at megous.com
2016-06-24  2:53   ` [linux-sunxi] " Julian Calaby
2016-06-23 19:21 ` [PATCH 12/14] ARM: dts: sun8i: Setup CPU operating points for Onrage PI PC megous at megous.com
2016-06-23 19:21 ` [PATCH 13/14] ARM: dts: sun8i: Add gpio-regulator used on Orange Pi One megous at megous.com
2016-06-24  2:51   ` [linux-sunxi] " Julian Calaby
2016-06-24 22:39     ` Ondřej Jirman
2016-06-24  2:55   ` Julian Calaby
2016-06-23 19:21 ` [PATCH 14/14] ARM: dts: sun8i: Enable DVFS " megous at megous.com

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).