Skip to content

nvmem: sunxi_sid: native format and A83T/H5 support

Chen-Yu Tsai linux-arm-kernel linux-devicetree lkml 1 version Applied

Status from this message: Applied all the nvmem patches except DTS patch to nvmem next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6nvmem: sunxi_sid: Read out SID for randomness without loopingdrivers/nvmem/sunxi_sid.c+2 -30 replies
2/6nvmem: sunxi_sid: Optimize register read-out methoddrivers/nvmem/sunxi_sid.c+18 -200 replies
3/6nvmem: sunxi_sid: Dynamically allocate nvmem_config structuredrivers/nvmem/sunxi_sid.c+17 -150 replies
4/6nvmem: sunxi_sid: Read out data in native formatdrivers/nvmem/sunxi_sid.c+1 -225 replies
5/6nvmem: sunxi_sid: Support SID on A83T and H5drivers/nvmem/sunxi_sid.c+2 -00 replies
6/6ARM: dts: sunxi: h3/h5: Add device node for SIDarch/arm/boot/dts/sun8i-h3.dtsi arch/arm/boot/dts/sunxi-h3-h5.dtsi arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi+13 -02 replies

Reviews trailers per patch

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

PatchMaxime Ripard
1/6
2/6
3/6
4/6A-b
5/6
6/6

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

Read the v1 thread

Cover letter [PATCH 0/6] nvmem: sunxi_sid: native format and A83T/H5 support

From: Chen-Yu Tsai <[email protected]>

Hi everyone,

This series converts the sunxi_sid driver to read out data in native endianness for all Allwinner SoCs. It was already the case for the H3, which used a different read-out method. The endianness for this hardware was found to be either native or little endian [1], based on the data layout for the thermal sensor calibration data stored within. Some SoCs have either 1 or 3 sensors, and calibration data for each sensor is 2 bytes wide, with data for 2 sensors packed into 1 word.

The first three patches do some clean-up and improvements of the code overall. The fourth patch converts the driver to reading out data in native endianness. The fifth adds support for the A83T and H5. These two were already listed in the device tree bindings. The last patch adds a device node for it on H3 and H5.

Please have a look.

Regards
ChenYu

[1] https://lkml.org/lkml/2019/2/18/134

Chen-Yu Tsai (6):
nvmem: sunxi_sid: Read out SID for randomness without looping
nvmem: sunxi_sid: Optimize register read-out method
nvmem: sunxi_sid: Dynamically allocate nvmem_config structure
nvmem: sunxi_sid: Read out data in native format
nvmem: sunxi_sid: Support SID on A83T and H5
ARM: dts: sunxi: h3/h5: Add device node for SID

 arch/arm/boot/dts/sun8i-h3.dtsi              |  4 +
 arch/arm/boot/dts/sunxi-h3-h5.dtsi           |  5 +
 arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi |  4 +
 drivers/nvmem/sunxi_sid.c                    | 98 ++++++++------------
 4 files changed, 52 insertions(+), 59 deletions(-)
Signature · 1 line
2.20.1