[PATCH v4 3/3] riscv: dts: spacemit: Add K3 eFuse and temperature trim cells

Troy Mitchell troy.mitchell at linux.spacemit.com
Sun Nov 29 22:04:56 PST 2026


On Sun Nov 29, 2026 at 2:42 PM GMT, 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 at gmail.com>
> Reviewed-by: Aurelien Jarno <aurelien at aurel32.net>
> Tested-by: Aurelien Jarno <aurelien at aurel32.net>
> ---
>  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 at e0804000 {
>  
>  		/* sec_i2c3: 0xf0614000, not available from Linux */
>  
> +		efuse: efuse at 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 at 1c {
> +					reg = <0x1c 0x1>;
> +					bits = <0 8>;
> +				};
> +
> +				soc_rtemp_trim: temperature-trim at ea {
> +					reg = <0xea 0x2>;
> +					bits = <4 8>;
> +				};
> +			};
> +		};
LGTM. Thanks.

Reviewed-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>


-- 
Troy Mitchell

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20261130/0e849790/attachment.sig>


More information about the linux-riscv mailing list