From patchwork Sat Mar 12 16:58:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter X-Patchwork-Id: 12778903 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7F50C433F5 for ; Sat, 12 Mar 2022 17:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uUIwHUU3S9cxxcEd+kqofVQozBuY9nQUcRK4cDZmc7k=; b=SoiEHJp1J52eQo lBgH0fMcJ4ShD3pjUIQAAJz0hxwGb5m6+H6zQ2wB9sGF98nU5Ld9NfkVTRPRgzDZrehvAHMcd//Qb Hav+/rgQkcxcPnIG+qE9mRIJ8wdxptjC6gK8cV8pdgbtUf67JksLdnLoQ+Iha0s+LpG220zJnk+JO gZNto21asSVe4jp8sVkMNZB0BHLGFFgXM6EYexIHRXMeLP2LoGhZ3wfZh+Gp1ls1WhG6XaqL9JEtu nBWKD9G2Jjlhv9TOrE0q1HIDzgsaL/Oj5bYzVpx++thV11yeycjenleArffH00dEJjkfbihG7A+A+ jFrg2x8EsVv9YtsSwOJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nT55C-001cQr-26; Sat, 12 Mar 2022 16:59:10 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nT54y-001cO2-Q1 for linux-arm-kernel@lists.infradead.org; Sat, 12 Mar 2022 16:58:58 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 96D1E5C0101; Sat, 12 Mar 2022 11:58:50 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 12 Mar 2022 11:58:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm1; bh=3Z4lX7yd1Z+rbqj8SWtm2FLJJwtkYQaLa5pn68 7U3Rg=; b=CpaiZybiXJDaDndnp5Ecq5tk+LnWD6jBobM9gIb43584TA/OkiOcT1 dfGBGf/uhKpgQoBEfLfWJVpj/+P5hgyaPXaK1Q0HGliXfYYtCjw+FnIiSkK1mC5T NtIj4wyBc+W8QAVLN8Yw+2KerSe1ibizS9f/lu756Uwgevs7fxx2SqMxDrqPRR9O tCsjl4ixKxXFGMK8Z1xuSTRGxkpRaD2teMHgBC6p5EzbcfAz6PiAsiQM5ptIYcIy L60JlipNAYJ8+ByeSfIIXyyGbQ8gEWSOYGJJaeiFM3y1cf25ZPC4gdDHZjbsb8mH hHp7GfzvMXCzHaPPgkYgDTw8yXqj7sGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=3Z4lX7yd1Z+rbqj8SWtm2FLJJwtkY QaLa5pn687U3Rg=; b=eHhMB8/fWiDJgkWcVdh/lWt+g8LHoUbSo9xVc5qpraU0j R8kjS3l43r5HE627DlYAGKjIb+mxNnwqyjcC+me2d25SS0aNDSVW1ZLfG29ucecF t59oTbvZ6TNxl45YB+/Gr0Lqyxxvqm0EVeQkG7IAlnD96bAM/PBg8cvQqUxBh5Kp g6RqmR3Z3VxSnrpzbC8ecTrErseF2775Kpdpd9DqteQDtoCDUjS5y5LDQUbj51tu jkjzNDagq38Ng2WtDZRPgbIwCZC/mSqyfy3GICFikNYoOeh8Uh0UJH0DQBuScw8B VF74FNTkNzerACVtI19nM51U1MHNJ+1HRj2i3JoHA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddruddvgedgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuvhgvnhcurfgv thgvrhcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrfgrthhtvghrnh epudffjeekveelgffgkeekveejffegkeejtdejtdeftefhleduheekhefgueetkefhnecu ffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsvhgvnhesshhvvghnphgvthgvrhdruggv vh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 12 Mar 2022 11:58:48 -0500 (EST) From: Sven Peter To: Srinivas Kandagatla , Rob Herring Cc: Sven Peter , Krzysztof Kozlowsk , Joey Gouly , Hector Martin , Alyssa Rosenzweig , Mark Kettenis , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: nvmem: Add apple,efuses Date: Sat, 12 Mar 2022 17:58:36 +0100 Message-Id: <20220312165837.40687-1-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220312_085857_043920_6F2C377F X-CRM114-Status: GOOD ( 11.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Apple SoCs come with eFuses used to store factory-programmed data such as calibration settings for the PCIe and Type-C PHY. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Sven Peter Acked-by: Rob Herring --- v2 -> v3: - added r-b tag v1 -> v2: - fixed indentation issue pointed out by Krzysztof Kozlowski .../bindings/nvmem/apple,efuses.yaml | 50 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/apple,efuses.yaml diff --git a/Documentation/devicetree/bindings/nvmem/apple,efuses.yaml b/Documentation/devicetree/bindings/nvmem/apple,efuses.yaml new file mode 100644 index 000000000000..5ec8f2bdb3a5 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/apple,efuses.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/apple,efuses.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple SoC eFuse-based NVMEM + +description: | + Apple SoCs such as the M1 contain factory-programmed eFuses used to e.g. store + calibration data for the PCIe and the Type-C PHY or unique chip identifiers + such as the ECID. + +maintainers: + - Sven Peter + +allOf: + - $ref: "nvmem.yaml#" + +properties: + compatible: + items: + - enum: + - apple,t8103-efuses + - apple,t6000-efuses + - const: apple,efuses + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + efuse@3d2bc000 { + compatible = "apple,t8103-efuses", "apple,efuses"; + reg = <0x3d2bc000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + ecid: efuse@500 { + reg = <0x500 0x8>; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index e127c2fb08a7..24deb0e8f731 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1771,6 +1771,7 @@ F: Documentation/devicetree/bindings/arm/apple/* F: Documentation/devicetree/bindings/i2c/apple,i2c.yaml F: Documentation/devicetree/bindings/interrupt-controller/apple,aic.yaml F: Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml +F: Documentation/devicetree/bindings/nvmem/apple,efuses.yaml F: Documentation/devicetree/bindings/pci/apple,pcie.yaml F: Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml F: Documentation/devicetree/bindings/power/apple*