From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794815709; b=teJibmnTZ925pV6y8N948X/gUPD163h3pB8atNmue9/IHg0DUfuHfHszfsa1tY1sL8dR u64m0SzLjr/058NtQT4c5BLbbYeHvskZLPNAVj+cBeQqZ6MdLsn+gcfmL+vB2CopFuXdb U5+e5goSRwxQYdofHhKDhCmYdm0lg/X0tJQ8q2cIAeiPxl6Cr1+vCa0PmQp6WguWpeyGT 3Fub5srbmYwKuyDJ5Z62bTQryBBJ9W3Rd64p4yFMwvXtZlKqWM2ZLM/MvKaV+rf6iUspp LMDsu2OQxn6FEFPEDzviFz+Sgk/BTYmfIB+ariBjEt/iOrb17F6zE9qLVHt+Q4l/VwA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794815709; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=Tk8pYgMhS/KMO5ZSGHCIBmeCagveRv5obJ7p1m6+Rcc=; b=S8GJWZ/THux5ijRgBzewd3YdEG1q+d9iuMaA6ECmQwNrh1U15mv051gnF28yQa/L4yXa 0a10AfbrlL9qfjxqVbAO/NtAhs4WLqnI3ljFwhZB7KKC/O/R7OdL9xTCopmUiIDIf0myy qrOuH5LnQjrOS/MrYuD/WsLDwcxCvnyMbbx0XuvxNC6Lh9f/Z8ahNou4qxG+Te+BtaIfp C7s5TdAS62GVA+IteQlhdeGf/o64eo5I0Z93Ad69SS02jT5i7pKY1vshGgWsQbBtthTmj H4BBS9Q4KTprXEYgmAbMYRpomJHaR/2IaSwjrV8ldnmPyLZVZGkmegMuqNOmGRsWHcg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=pXKb3R0u; arc=none smtp.remote-ip=74.125.82.173 Received: from mail-dy1-f173.google.com (mail-dy1-f173.google.com [74.125.82.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38059606A31C for ; Mon, 16 Nov 2026 07:55:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 38059606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=pXKb3R0u Received: by mail-dy1-f173.google.com with SMTP id 5a478bee46e88-3704d30b84fso3646609eec.1 for ; Sun, 15 Nov 2026 23:55:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794815708; x=1795420508; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Tk8pYgMhS/KMO5ZSGHCIBmeCagveRv5obJ7p1m6+Rcc=; b=pXKb3R0ulw0yLCv028DFzFwkKOSfR6joXyxHQywp2dLdQ1TTl9N8k0lKTTZcFTt+Hc oBrJGFoEfokKZ+6s1eu6QzKkHrVsDQY4npaCTZ9PnxMeNC1/ln7qAVldFbkaRGZTI2f5 YOC5216GgurNIaaYLZtF/A42qPB13bIRNCvfLljWA6mmZJfH+3LUsgchpMh8c8r/5VYk VXOQE4MzDBQAqrqnl1W4X6PykdVGGFZWLNeEdUAxVqLNr48c/6ZEdZnvJkYJftOnLYwJ +Xja1ifcEMnlGdgQz7mApAAXfDkr8iXsS0z0uycRdoyVc9G95pKkfP533dh79BeUHwvd TjzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794815708; x=1795420508; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Tk8pYgMhS/KMO5ZSGHCIBmeCagveRv5obJ7p1m6+Rcc=; b=Brm6vG7Vjbs/eMTSvYU+rW8x8s9uvpnsi2va8CObmCRmhLRbSjLIkOKTCKi/nqjRCP Yb0bvREKJdbjx3K4L8/V4hjXQzXPtijg1Wqn6NroY8dMnx8VhisrJ6SAxriMs7WExKrH Zrdc44NCfFahiBbbdYp8FN7fBYTWIlppdnROPJNP8Riiuat2EBXTxpIp265aSB/gpDlc 75FiNKv/4xDUrkFYa4kWQhZBz/FFzxaM/eO8cmZteEkb0DPpTn2eaQNYCwtCRXJEiRA+ PGgKMbtkowwJW0e+iu3V9tnAy+XW5drJxUCqWrODg52OUGH4R7r/OQQJHaVoaOwaNRZO x4qg== X-Forwarded-Encrypted: i=1; AL+hErED+DL6/eah030ZOc4a7qe1aq2IfFMYxXiwCZZ+znv80LdcaVtmhvdd9LLh7eutrnS8lxxjejxXEXwjPZo=@vger.kernel.org X-Gm-Message-State: APuU4Z/hQexOyjAFJzw8Dj1saHwW9FBE7q+7C/sHkcSjDMDNXCMMkFr4 vj3IcbWlYhUlo2ZlkH28aLj7/k7xq2YJdqRagqt3mF985M1DsQfmgpXMjr4oys9rn08= X-Gm-Gg: AYBFou3Ukwbvi1727Rhx0DJnmLwRZuBg4gTxxYpdybUn+UBFK5gVRs6Gx2eFFucUw19 ouiacRX5RLyoGUebqhteo63eIiaErvweD6wRwxGOToK6Sr+TDaaFE4LefoRwBfdffRrlfvSSwFL sO+DFf2+dbXyVjMGHqkcs7auKHB7H6bY2RkfSK9KmiH19bF8QGE+7fhaU5cED6sAaJBJ1FAsAFi OhcazEkvGEdlOYEy5BsdW636we6nDRItEBlHeQ/giSceInEEwpsBLkrCbK/3fOgScBIc9Yha1Bs x4hIi9yBm1c7Sg++F/3U2VPjBr7LtZ9mS8yGr4l/s6Ut9cHePw0ZNhSZeBsN/SAr2SzdTKv3ty9 uO24WB1x9APXcuyH7kHPVaAwuF1S8FUOfMfEg/svrEIEh6YafRBIr7RB9o/KtQgPcyJq5/Oam+h /7ZHJEv6CaZujvRi86ahztxVlmdBNcsnwbyeKzfjs/rOZxV+8P5chs4NbnR/WmS3DwrU+0jzxo9 3EWgfGsJfYbiICr0nOMNEwLIeKuX6Nve20YkPj+YFoP6cgRcUrgrenq5tgdCO/GZVzaUELHjz6l G3j3QVahoAiuXlFmCUC6ExhUI73pGL1/duAe0nIxcFJ8H2hFpc9Y X-Received: by 2002:a05:7300:f694:b0:376:203e:7d7b with SMTP id 5a478bee46e88-3796337436amr15249399eec.2.1794815708305; Sun, 15 Nov 2026 23:55:08 -0800 (PST) Received: from duge-G3-3500.taila331c7.ts.net ([183.192.223.84]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-37955f02ff0sm31398803eec.16.2026.11.15.23.55.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Nov 2026 23:55:07 -0800 (PST) From: Jiayu Du To: srini@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, dlan@kernel.org, troy.mitchell@linux.spacemit.com, me@ziyao.cc, aurelien@aurel32.net, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, p.zabel@pengutronix.de, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, linux-kernel@vger.kernel.org, Jiayu Du , Conor Dooley Subject: [PATCH v2 1/3] dt-bindings: nvmem: Add SpacemiT K3 eFuse controller Date: Mon, 16 Nov 2026 15:54:21 +0800 Message-ID: <20261116075423.1519438-2-duge1256@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261116075423.1519438-1-duge1256@gmail.com> References: <20261116075423.1519438-1-duge1256@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Describe the SpacemiT K3 eFuse controller and its readable bank 0 and bank 7 shadow windows, which contain temperature calibration parameters and other configuration data. Define the AES_WTM clock and reset, little-endian data and controller-relative NVMEM offsets. Use fixed-layout cells for the temperature calibration parameters. Acked-by: Conor Dooley Signed-off-by: Jiayu Du --- .../bindings/nvmem/spacemit,k3-efuse.yaml | 63 +++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/spacemit,k3-efuse.yaml diff --git a/Documentation/devicetree/bindings/nvmem/spacemit,k3-efuse.yaml b/Documentation/devicetree/bindings/nvmem/spacemit,k3-efuse.yaml new file mode 100644 index 000000000000..93f4301c8289 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/spacemit,k3-efuse.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/spacemit,k3-efuse.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SpacemiT K3 eFuse controller + +maintainers: + - Jiayu Du + +description: + The K3 eFuse controller provides configuration and calibration data through + shadow registers. NVMEM uses little-endian data and controller-relative + offsets. Read access is limited to bank 0 (0x104-0x123) and bank 7 (0x190-0x1af). + +allOf: + - $ref: nvmem.yaml# + +properties: + compatible: + const: spacemit,k3-efuse + + reg: + maxItems: 1 + description: The 0x400-byte eFuse controller register block. + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - resets + +unevaluatedProperties: false + +examples: + - | + #include + #include + + efuse@f0702800 { + compatible = "spacemit,k3-efuse"; + reg = <0xf0702800 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>; + + temperature-trim@19a { + reg = <0x19a 0x2>; + bits = <4 8>; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 46c416cadacd..0a9eb764ffee 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -26525,6 +26525,11 @@ S: Maintained F: Documentation/devicetree/bindings/sound/spacemit,k1-i2s.yaml F: sound/soc/spacemit/k1_i2s.c +SPACEMIT K3 EFUSE DRIVER +M: Jiayu Du +S: Maintained +F: Documentation/devicetree/bindings/nvmem/spacemit,k3-efuse.yaml + SPACEMIT RESET CONTROLLER DRIVER M: Guodong Xu L: linux-riscv@lists.infradead.org -- 2.43.0