All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/23] Add multi-channel support to Armada thermal driver
@ 2018-07-16 14:41 ` Miquel Raynal
  0 siblings, 0 replies; 96+ messages in thread
From: Miquel Raynal @ 2018-07-16 14:41 UTC (permalink / raw)
  To: Gregory Clement, Jason Cooper, Andrew Lunn,
	Sebastian Hesselbarth, Zhang Rui, Eduardo Valentin
  Cc: Mark Rutland, devicetree, linux-pm, Antoine Tenart,
	Catalin Marinas, Will Deacon, Maxime Chevallier, Nadav Haklai,
	David Sniatkiwicz, Rob Herring, Thomas Petazzoni, Miquel Raynal,
	linux-arm-kernel

The only capability of the Armada thermal driver is currently just to
read one sensor (the default one) per AP and one per CP. Actually,
there is one sensor per core in the AP806 plus one sensor in the
thermal IP itself. The CP110 just features one thermal sensor in its
own thermal IP.

This series first improves the readability of this driver, then adds
support for multi-channel thermal IPs. The bindings and the
device-trees are updated accordingly.

Thank you,
Miquèl


Changes since v3:
=================
- Removed the mention about the overheat interrupt in the commit log of
  "dt-bindings: thermal: armada: add reference to new bindings". This
  interrupt will be added in another series.

Changes since v2:
=================
* Fixed typos in "thermal: armada: convert driver to syscon  register
  accesses" commit log.
* Added Rob's RB tags after changing the node names both in the
  Documentation and in the DT files this way:
  s/xx_thermal: xx_thermal@yy/xx_thermal: thermal-sensor@yy/
* Dropped the patch that renamed labels in the Documentation on Rob's
  notice.
* Uniformized the type of temperature variables to 'int' as suggested in
  a previous commit from Sascha Hauer:
  17e8351a7739 ("thermal: consistently use int for temperatures")

Changes since v1:
=================
* Added register ranges in the thermal nodes.
* Added these ranges in the documentation also.
* In the bindings, used the "Must be one of" formula before listing the
  compatibles.
* Removed the overheat interrupt support that depends on another
  series. This work is independent.
* Rebased on top of v4.18-rc1.


Miquel Raynal (23):
  thermal: armada: add a function that sanitizes the thermal zone name
  thermal: armada: remove useless register accesses
  thermal: armada: remove misleading comments
  thermal: armada: rename the initialization routine
  thermal: armada: dissociate a380 and cp110 ->init() hooks
  thermal: armada: average over samples to avoid glitches
  thermal: armada: convert driver to syscon register accesses
  thermal: armada: use the resource managed registration helper
    alternative
  thermal: armada: add multi-channel sensors support
  thermal: armada: remove sensors validity from the IP initialization
  thermal: armada: move validity check out of the read function
  thermal: armada: get rid of the ->is_valid() pointer
  dt-bindings: cp110: rename cp110 syscon file
  dt-bindings: ap806: prepare the syscon file to list other syscons
    nodes
  dt-bindings: cp110: prepare the syscon file to list other syscons
    nodes
  dt-bindings: ap806: add the thermal node in the syscon file
  dt-bindings: cp110: update documentation since DT de-duplication
  dt-bindings: cp110: add the thermal node in the syscon file
  dt-bindings: thermal: armada: add reference to new bindings
  arm64: dts: marvell: move AP806/CP110 thermal nodes into a new syscon
  arm64: dts: marvell: add thermal-zone node in ap806 DTSI file
  arm64: dts: marvell: add macro to make distinction between node names
  arm64: dts: marvell: add thermal-zone node in cp110 DTSI file

 .../arm/marvell/ap806-system-controller.txt        |  48 +-
 ...controller0.txt => cp110-system-controller.txt} |  61 ++-
 .../devicetree/bindings/thermal/armada-thermal.txt |   5 +
 arch/arm64/boot/dts/marvell/armada-ap806.dtsi      |  74 ++-
 arch/arm64/boot/dts/marvell/armada-common.dtsi     |   1 +
 arch/arm64/boot/dts/marvell/armada-cp110.dtsi      |  37 +-
 drivers/thermal/armada_thermal.c                   | 534 ++++++++++++++++-----
 7 files changed, 606 insertions(+), 154 deletions(-)
 rename Documentation/devicetree/bindings/arm/marvell/{cp110-system-controller0.txt => cp110-system-controller.txt} (85%)

-- 
2.14.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 96+ messages in thread
* [PATCH v3 00/23] Add multi-channel support to Armada thermal driver
@ 2018-07-05 16:04 Miquel Raynal
  2018-07-05 16:04   ` Miquel Raynal
  0 siblings, 1 reply; 96+ messages in thread
From: Miquel Raynal @ 2018-07-05 16:04 UTC (permalink / raw)
  To: Gregory Clement, Jason Cooper, Andrew Lunn,
	Sebastian Hesselbarth, Zhang Rui, Eduardo Valentin
  Cc: Mark Rutland, devicetree, Baruch Siach, linux-pm, Antoine Tenart,
	Catalin Marinas, Will Deacon, Maxime Chevallier, Nadav Haklai,
	David Sniatkiwicz, Rob Herring, Thomas Petazzoni, Miquel Raynal,
	linux-arm-kernel

The only capability of the Armada thermal driver is currently just to
read one sensor (the default one) per AP and one per CP. Actually,
there is one sensor per core in the AP806 plus one sensor in the
thermal IP itself. The CP110 just features one thermal sensor in its
own thermal IP.

This series first improves the readability of this driver, then adds
support for multi-channel thermal IPs. The bindings and the
device-trees are updated accordingly.

Thank you,
Miquèl


Changes since v2:
=================
* Fixed typos in "thermal: armada: convert driver to syscon  register
  accesses" commit log.
* Added Rob's RB tags after changing the node names both in the
  Documentation and in the DT files this way:
  s/xx_thermal: xx_thermal@yy/xx_thermal: thermal-sensor@yy/
* Dropped the patch that renamed labels in the Documentation on Rob's
  notice.
* Uniformized the type of temperature variables to 'int' as suggested in
  a previous commit from Sascha Hauer:
  17e8351a7739 ("thermal: consistently use int for temperatures")

Changes since v1:
=================
* Added register ranges in the thermal nodes.
* Added these ranges in the documentation also.
* In the bindings, used the "Must be one of" formula before listing the
  compatibles.
* Removed the overheat interrupt support that depends on another
  series. This work is independent.
* Rebased on top of v4.18-rc1.


Miquel Raynal (23):
  thermal: armada: add a function that sanitizes the thermal zone name
  thermal: armada: remove useless register accesses
  thermal: armada: remove misleading comments
  thermal: armada: rename the initialization routine
  thermal: armada: dissociate a380 and cp110 ->init() hooks
  thermal: armada: average over samples to avoid glitches
  thermal: armada: convert driver to syscon register accesses
  thermal: armada: use the resource managed registration helper
    alternative
  thermal: armada: add multi-channel sensors support
  thermal: armada: remove sensors validity from the IP initialization
  thermal: armada: move validity check out of the read function
  thermal: armada: get rid of the ->is_valid() pointer
  dt-bindings: cp110: rename cp110 syscon file
  dt-bindings: ap806: prepare the syscon file to list other syscons
    nodes
  dt-bindings: cp110: prepare the syscon file to list other syscons
    nodes
  dt-bindings: ap806: add the thermal node in the syscon file
  dt-bindings: cp110: update documentation since DT de-duplication
  dt-bindings: cp110: add the thermal node in the syscon file
  dt-bindings: thermal: armada: add reference to new bindings
  arm64: dts: marvell: move AP806/CP110 thermal nodes into a new syscon
  arm64: dts: marvell: add thermal-zone node in ap806 DTSI file
  arm64: dts: marvell: add macro to make distinction between node names
  arm64: dts: marvell: add thermal-zone node in cp110 DTSI file

 .../arm/marvell/ap806-system-controller.txt        |  48 +-
 ...controller0.txt => cp110-system-controller.txt} |  61 ++-
 .../devicetree/bindings/thermal/armada-thermal.txt |   5 +
 arch/arm64/boot/dts/marvell/armada-ap806.dtsi      |  74 ++-
 arch/arm64/boot/dts/marvell/armada-common.dtsi     |   1 +
 arch/arm64/boot/dts/marvell/armada-cp110.dtsi      |  37 +-
 drivers/thermal/armada_thermal.c                   | 534 ++++++++++++++++-----
 7 files changed, 606 insertions(+), 154 deletions(-)
 rename Documentation/devicetree/bindings/arm/marvell/{cp110-system-controller0.txt => cp110-system-controller.txt} (85%)

-- 
2.14.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2018-07-30  6:16 UTC | newest]

Thread overview: 96+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-16 14:41 [PATCH v3 00/23] Add multi-channel support to Armada thermal driver Miquel Raynal
2018-07-16 14:41 ` Miquel Raynal
2018-07-16 14:41 ` [PATCH v3 01/23] thermal: armada: add a function that sanitizes the thermal zone name Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-27 11:34   ` Daniel Lezcano
2018-07-27 11:34     ` Daniel Lezcano
2018-07-27 11:52     ` Miquel Raynal
2018-07-27 11:52       ` Miquel Raynal
2018-07-27 15:29       ` Daniel Lezcano
2018-07-27 15:29         ` Daniel Lezcano
2018-07-29 19:27         ` Miquel Raynal
2018-07-29 19:27           ` Miquel Raynal
2018-07-30  6:16           ` Daniel Lezcano
2018-07-30  6:16             ` Daniel Lezcano
2018-07-16 14:41 ` [PATCH v3 02/23] thermal: armada: remove useless register accesses Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-27 15:56   ` Daniel Lezcano
2018-07-27 15:56     ` Daniel Lezcano
2018-07-27 16:13   ` Ezequiel Garcia
2018-07-27 16:13     ` Ezequiel Garcia
2018-07-29 19:23     ` Miquel Raynal
2018-07-29 19:23       ` Miquel Raynal
2018-07-16 14:41 ` [PATCH v3 03/23] thermal: armada: remove misleading comments Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-27 16:03   ` Daniel Lezcano
2018-07-27 16:03     ` Daniel Lezcano
2018-07-16 14:41 ` [PATCH v3 04/23] thermal: armada: rename the initialization routine Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-27 16:02   ` Daniel Lezcano
2018-07-27 16:02     ` Daniel Lezcano
2018-07-16 14:41 ` [PATCH v3 05/23] thermal: armada: dissociate a380 and cp110 ->init() hooks Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-27 16:09   ` Daniel Lezcano
2018-07-27 16:09     ` Daniel Lezcano
2018-07-16 14:41 ` [PATCH v3 06/23] thermal: armada: average over samples to avoid glitches Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-27 16:29   ` Daniel Lezcano
2018-07-27 16:29     ` Daniel Lezcano
2018-07-29 19:30     ` Miquel Raynal
2018-07-29 19:30       ` Miquel Raynal
2018-07-16 14:41 ` [PATCH v3 07/23] thermal: armada: convert driver to syscon register accesses Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-16 14:41 ` [PATCH v3 08/23] thermal: armada: use the resource managed registration helper alternative Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-26 21:37   ` Eduardo Valentin
2018-07-26 21:37     ` Eduardo Valentin
2018-07-16 14:41 ` [PATCH v3 09/23] thermal: armada: add multi-channel sensors support Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-16 14:41 ` [PATCH v3 10/23] thermal: armada: remove sensors validity from the IP initialization Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-16 14:41 ` [PATCH v3 11/23] thermal: armada: move validity check out of the read function Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-16 14:41 ` [PATCH v3 12/23] thermal: armada: get rid of the ->is_valid() pointer Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-16 14:41 ` [PATCH v3 13/23] dt-bindings: cp110: rename cp110 syscon file Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-16 14:41 ` [PATCH v3 14/23] dt-bindings: ap806: prepare the syscon file to list other syscons nodes Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-16 14:41 ` [PATCH v3 15/23] dt-bindings: cp110: " Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-16 14:41 ` [PATCH v3 16/23] dt-bindings: ap806: add the thermal node in the syscon file Miquel Raynal
2018-07-16 14:41   ` Miquel Raynal
2018-07-16 14:42 ` [PATCH v3 17/23] dt-bindings: cp110: update documentation since DT de-duplication Miquel Raynal
2018-07-16 14:42   ` Miquel Raynal
2018-07-16 14:42 ` [PATCH v3 18/23] dt-bindings: cp110: add the thermal node in the syscon file Miquel Raynal
2018-07-16 14:42   ` Miquel Raynal
2018-07-16 14:42 ` [PATCH v3 19/23] dt-bindings: thermal: armada: add reference to new bindings Miquel Raynal
2018-07-16 14:42   ` Miquel Raynal
2018-07-16 16:03   ` Rob Herring
2018-07-16 16:03     ` Rob Herring
2018-07-16 14:42 ` [PATCH v3 20/23] arm64: dts: marvell: move AP806/CP110 thermal nodes into a new syscon Miquel Raynal
2018-07-16 14:42   ` Miquel Raynal
2018-07-16 14:42 ` [PATCH v3 21/23] arm64: dts: marvell: add thermal-zone node in ap806 DTSI file Miquel Raynal
2018-07-16 14:42   ` Miquel Raynal
2018-07-16 14:42 ` [PATCH v3 22/23] arm64: dts: marvell: add macro to make distinction between node names Miquel Raynal
2018-07-16 14:42   ` Miquel Raynal
2018-07-16 14:42 ` [PATCH v3 23/23] arm64: dts: marvell: add thermal-zone node in cp110 DTSI file Miquel Raynal
2018-07-16 14:42   ` Miquel Raynal
2018-07-18 15:28 ` [PATCH v3 00/23] Add multi-channel support to Armada thermal driver Miquel Raynal
2018-07-18 15:28   ` Miquel Raynal
2018-07-25  7:52   ` Miquel Raynal
2018-07-25  7:52     ` Miquel Raynal
2018-07-26  2:00     ` Zhang Rui
2018-07-26  2:00       ` Zhang Rui
2018-07-26 21:14       ` Eduardo Valentin
2018-07-26 21:14         ` Eduardo Valentin
2018-07-26 21:35         ` Eduardo Valentin
2018-07-26 21:35           ` Eduardo Valentin
2018-07-26 22:14           ` Eduardo Valentin
2018-07-26 22:14             ` Eduardo Valentin
2018-07-26 22:59             ` Miquel Raynal
2018-07-26 22:59               ` Miquel Raynal
2018-07-27 21:15               ` Eduardo Valentin
2018-07-27 21:15                 ` Eduardo Valentin
  -- strict thread matches above, loose matches on Subject: below --
2018-07-05 16:04 Miquel Raynal
2018-07-05 16:04 ` [PATCH v3 04/23] thermal: armada: rename the initialization routine Miquel Raynal
2018-07-05 16:04   ` Miquel Raynal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.