Re: [PATCH v3 3/3] riscv: dts: spacemit: Add K3 eFuse and temperature trim cells
From: Jiayu Du
Date: Wed Nov 25 2026 - 03:49:24 EST
On Tue, Nov 24, 2026 at 10:56:39PM +0100, Aurelien Jarno wrote:
> Hi Jiayu,
>
> On 2026-11-23 01:38, Jiayu Du wrote:
> > Add the K3 eFuse controller and NVMEM cells for the temperature
> > calibration data in bank 0 and bank 7.
> >
> > Signed-off-by: Jiayu Du <duge1256@xxxxxxxxx>
> > ---
> > arch/riscv/boot/dts/spacemit/k3.dtsi | 23 +++++++++++++++++++++++
> > 1 file changed, 23 insertions(+)
> >
> > diff --git a/arch/riscv/boot/dts/spacemit/k3.dtsi b/arch/riscv/boot/dts/spacemit/k3.dtsi
> > index e89d2cc5ca8c..af1a758788ff 100644
> > --- a/arch/riscv/boot/dts/spacemit/k3.dtsi
> > +++ b/arch/riscv/boot/dts/spacemit/k3.dtsi
> > @@ -1439,6 +1439,29 @@ saplic: interrupt-controller@e0804000 {
> >
> > /* sec_i2c3: 0xf0614000, not available from Linux */
> >
> > + efuse: efuse@f0702800 {
> > + compatible = "spacemit,k3-efuse";
> > + reg = <0x0 0xf0702800 0x0 0x400>;
> > + clocks = <&syscon_apmu CLK_APMU_AES_WTM>;
> > + resets = <&syscon_apmu RESET_APMU_AES_WTM>;
> > +
> > + nvmem-layout {
> > + compatible = "fixed-layout";
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> > +
> > + soc_rtemp_trim1: temperature-trim@1c {
> > + reg = <0x1c 0x1>;
> > + bits = <0 8>;
> > + };
> > +
> > + soc_rtemp_trim: temperature-trim@ea {
> > + reg = <0xea 0x2>;
> > + bits = <4 8>;
> > + };
> > + };
> > + };
> > +
> > mimsic: interrupt-controller@f1000000 {
> > compatible = "spacemit,k3-imsics", "riscv,imsics";
> > reg = <0x0 0xf1000000 0x0 0x10000>;
>
> This looks all good to me. The offset and bits matches what is in the
> vendor driver (after mapping each bank to the correct address).
>
> Reviewed-by: Aurelien Jarno <aurelien@xxxxxxxxxxx>
> Tested-by: Aurelien Jarno <aurelien@xxxxxxxxxxx>
>
Hi Aurelien,
Thanks for reviewing and testing. I'll include your tags in v4.
> Small nitpick, no need to fix it, but the vendor device tree also define
> offsets for soc_die_id, soc_ver_id, soc_pack_id, soc_chip_id and
> soc_svt_dro data. It might be useful to export (some of) them.
The downstream socinfo driver uses these cells. If I work on
upstream socinfo support, I'll add the relevant cells then.
Best regards,
Jiayu Du