Skip to content

sunxi: THS support

Josef Gajdusek linux-arm-kernel linux-clk linux-devicetree linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 20 repliesIn review

Changelog from the cover letter

* Some stylistic changes
* devm_reset_control_get_optional -> devm_reset_control_get
* Added the clk-h3-ths clock driver
- Note: A23/A33/A83T do not have a separate clock, H3 seems to be the first (and only?) SoC with it
- Because of this, I moved the clock init code to the H3-specific init function.
* Use the nvmem cell abstraction instead of accessing the configuration memory directly
* Use the IRQ line (and fixed incorrect interrupt number in the DTS)
* Renamed to sun8i_ths

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ARM: dts: sun8i: Add SID nodearch/arm/boot/dts/sun8i-h3.dtsi+7 -011 replies
2/5clk: sunxi: Add driver for the H3 THS clockDocumentation/devicetree/bindings/clock/sunxi.txt drivers/clk/sunxi/Makefile drivers/clk/sunxi/clk-h3-ths.c+100 -03 replies
3/5thermal: Add a driver for the Allwinner THS sensordrivers/thermal/Kconfig drivers/thermal/Makefile drivers/thermal/sun8i_ths.c+373 -03 replies
4/5dt-bindings: document sun8i_thsDocumentation/devicetree/bindings/thermal/sun8i-ths.txt+31 -02 replies
5/5ARM: dts: sun8i: Add THS node to the H3 .dtsiarch/arm/boot/dts/sun8i-h3.dtsi+33 -01 reply

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/5
2/5A-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] sunxi: THS support

Hello everyone,

this is v2 of my THS patchset

Changelog:

* Some stylistic changes
* devm_reset_control_get_optional -> devm_reset_control_get
* Added the clk-h3-ths clock driver
- Note: A23/A33/A83T do not have a separate clock, H3 seems to be the first (and only?) SoC with it
- Because of this, I moved the clock init code to the H3-specific init function.
* Use the nvmem cell abstraction instead of accessing the configuration memory directly
* Use the IRQ line (and fixed incorrect interrupt number in the DTS)
* Renamed to sun8i_ths

Ad the "magical constants": what I meant is that altough the datasheet explains what they are, it does not explain how to pick their values. "ADC" and "Sensor" "acquire time" are also not exactly the most helpful descriptions. Anyway, I changed the values such as the final sampling rate is about 1Hz.

Josef Gajdusek (5):
ARM: dts: sun8i: Add SID node
clk: sunxi: Add driver for the H3 THS clock
thermal: Add a driver for the Allwinner THS sensor
dt-bindings: document sun8i_ths
ARM: dts: sun8i: Add THS node to the H3 .dtsi

 Documentation/devicetree/bindings/clock/sunxi.txt  |   1 +
 .../devicetree/bindings/thermal/sun8i-ths.txt      |  31 ++
 arch/arm/boot/dts/sun8i-h3.dtsi                    |  40 +++
 drivers/clk/sunxi/Makefile                         |   1 +
 drivers/clk/sunxi/clk-h3-ths.c                     |  98 ++++++
 drivers/thermal/Kconfig                            |   7 +
 drivers/thermal/Makefile                           |   1 +
 drivers/thermal/sun8i_ths.c                        | 365 +++++++++++++++++++++
 8 files changed, 544 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/thermal/sun8i-ths.txt
 create mode 100644 drivers/clk/sunxi/clk-h3-ths.c
 create mode 100644 drivers/thermal/sun8i_ths.c
Signature · 1 line
2.4.10