From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE56D3112C1 for ; Sat, 30 May 2026 20:54:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780174450; cv=none; b=ejK1OZcJBw80ivY4Juehap9KwUiel4Uj0jy9QU62IP2SkIlL6vVwPu6de0fC8pH/XxanQHcXjR47Yarz7XXC+34rfDLlWs7nMMnE2dxB/mCJFK+tKxSsfvPmc/fNn5rJGCcgR9NIuE9XXf8+7ZWbbsZPMSMrkTQYnSyF760UDLs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780174450; c=relaxed/simple; bh=Z0uxUekzPp5l01hmEVW5TKxnEuaNgwFei75NIvi0EXo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UkJ58kbBbkUUzqz4jVnAHcWMZDxz+P4t+mkSlswgMLnov8paZwcagkUTGJnlqIcl0WcY736KcdsKkDyADdcoj49I05YKchZMdeyrcxXucSVO2MoQestt+0+m4lcjBjG2XS2OMZ7+LwNV4HBVaUYdPe/+5JG4oBRcn3ZMP8wFxeM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=APdS0A6n; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="APdS0A6n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 863841F00898; Sat, 30 May 2026 20:54:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780174447; bh=4jA14yuUr4rzWaa4wzeXJSC39PfJRYi77aolzr8trBw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=APdS0A6nNdunfuKCsvbEQkIm/mdSUeurMRsuTB36JSfN6bJ8wpCThwLOmiE23UoX1 wqxRKcllFkmjEEGF39XK0lL5CUHMaKjo5ENg0rUVFilZmRtbUJei5Fthyf0uyXMkrD YDTRrknuzvQeB5KD/ECvJVpM6BkCf3jo+8cgLc1M0TQrKUZQu1+HMiuoglH9WfCtcr jTVeqQapD+BBxG8Ip3kDInrPeLyMy/V341h70kttLluNJJ6AH7k4ruxBmTHd6MNVTO 7KEtx+hfDdQ3adbnhDzsQ4Z0NaJoaG8p0L9INJBmrhoAG7bsEaVNZNVh9W5YK0FChU NR/bV+vZQrsjQ== From: srini@kernel.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Christian Marangi , "Rob Herring (Arm)" , Srinivas Kandagatla Subject: [PATCH 10/14] dt-bindings: nvmem: airoha: add SMC eFuses schema Date: Sat, 30 May 2026 21:53:29 +0100 Message-ID: <20260530205333.117458-11-srini@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530205333.117458-1-srini@kernel.org> References: <20260530205333.117458-1-srini@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Christian Marangi Add Airoha SMC eFuses schema to document new Airoha SoC AN7581/AN7583 way of accessing the 2 eFuse bank via the SMC command. Each eFuse bank expose 64 eFuse cells of 32 bit used to give information on HW Revision, PHY Calibration, Device Model, Private Key and all kind of other info specific to the SoC or the running system. Signed-off-by: Christian Marangi Reviewed-by: Rob Herring (Arm) Signed-off-by: Srinivas Kandagatla --- .../bindings/nvmem/airoha,smc-efuses.yaml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/airoha,smc-efuses.yaml diff --git a/Documentation/devicetree/bindings/nvmem/airoha,smc-efuses.yaml b/Documentation/devicetree/bindings/nvmem/airoha,smc-efuses.yaml new file mode 100644 index 000000000000..c52f8d4bec39 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/airoha,smc-efuses.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/airoha,smc-efuses.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha SMC eFuses + +description: | + Airoha new SoC AN7581 expose banks of eFuse accessible + via specific SMC commands. + + 2 different bank of eFuse or 64 cells of 32 bit are exposed + read-only used to give information on HW Revision, PHY Calibration, + Device Model, Private Key... + +maintainers: + - Christian Marangi + +properties: + compatible: + enum: + - airoha,an7581-efuses + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + '^efuse-bank@[0-1]$': + type: object + + allOf: + - $ref: nvmem.yaml# + + properties: + reg: + description: Identify the eFuse bank. + enum: [0, 1] + + required: + - reg + + unevaluatedProperties: false + +required: + - compatible + - '#address-cells' + - '#size-cells' + +additionalProperties: false + +examples: + - | + efuse { + compatible = "airoha,an7581-efuses"; + #address-cells = <1>; + #size-cells = <0>; + + efuse-bank@0 { + reg = <0>; + }; + }; + +... -- 2.53.0