From patchwork Sun Apr 10 13:54:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter X-Patchwork-Id: 12808159 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 C67C1C4332F for ; Sun, 10 Apr 2022 13:56:11 +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:References:In-Reply-To: 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: List-Owner; bh=OUH/fyUg1zZmwozId4F2l9/WAETkYcIE5KpfuERbjdM=; b=P4xLHMS1M794aT 0XMfFxLV/ISHurJ6RQjZGty2sLhn9wt/A1G6PQtgtID2kYh252KAx2blIjqFzHtO8EFKaLx1ntgPx rI9VwoPLlpw7DpRh6nSWABQBYaG0k/3JdZyBoj+sB8pLH5ky2VeoFsGM+ZROW+pKWCIUSghbmeHYr rcg2x5bUQX00JeWojpZHPmNESSGoj4ADzvjv2otmHx3jz4G5d4k+q7FGzhQBu/S6+MPtl1I+3npd7 P8I4CYGhrIzjGTw0j7J9hfD21gymvB7qj2/pltKcso3qA45bGh44DRZbM/6kWzOHtS0v2tHrO6cwx 8DYqiLWYcim6HJqy/6Xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndY1Y-004uGm-Ke; Sun, 10 Apr 2022 13:54:40 +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 1ndY1M-004uCo-Rx for linux-arm-kernel@lists.infradead.org; Sun, 10 Apr 2022 13:54:30 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id B8B485C00F4; Sun, 10 Apr 2022 09:54:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 10 Apr 2022 09:54:24 -0400 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:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; bh=872TStTIZWE7QK oVNxz3eKsUGk00QbR/SRkqv3FSeiE=; b=UlOJgyl4n0XgXqaXpX/M9cwHgSB/Ly vZTUo76I6eAuPYrTmPVL1gIRn+YqgxY1l586rCSZJtsJ2Sfclo1656cLlGPKPiAp 4htAv3DQmjjNawywxVOWMapQ2fEITZzka1Qc5U7ZrlMC/W9fhECSU40xM3nWcVs0 q8fJGDjYVsZDut+WLRUnMQlVNKWnSk2B80PatUG1g9WBsYpIDU22A41NmEJHCeop 2JEQ2aoGDkDvPbgIO73C7YQMpWgovyBCpgLfkmaODYffyzlz9GwaEuX/rob1xqBf +ixKndNzA3RqvwKBlAp2vRSbydySPw0KUg3IQSo15Y9eG+DWTQJVy2ww== 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:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=872TSt TIZWE7QKoVNxz3eKsUGk00QbR/SRkqv3FSeiE=; b=C2sdfE02sbUaX7OHX6AG6k v2NbrqbhtQN9GHGSff8XJmPv2F4OYLh8WOrscpoM4scMOHSx914HL0vCjgP80KSx RyGBPYgApdq3a8XjXFXqG18RwSbfXZ2f2mvAy5Nbf6WJkyPVysAoxOiSyGUUtOlr vsNvN0k1Q2Pmv7D1gktwhluq2flm+14U2FG3E2a0Xe6ZLGh9JGP7KY11nYOIpvXt VIwxTJccreTWAVhaXmcx3afP7vuGfgk/wJ+wnMxeK/dMQxlv2SO93QmUs8sN9mE6 H280IvSiS9cBeGQMCm7CXP4TlvVwAbp/efM6n3jNqnxYqF4lTZpp9lqGkFcbu0Tg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekgedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefuvhgvnhcu rfgvthgvrhcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrfgrthhtvg hrnhephfefffejvdekleeitdffiefhhfffveffieejteefhedutdfgffeftdejhedtteeh necuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsvhgvnhesshhvvghnphgvthgvrhdr uggvvh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 10 Apr 2022 09:54:22 -0400 (EDT) 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, Rob Herring Subject: [PATCH v4 2/3] dt-bindings: nvmem: Add apple,efuses Date: Sun, 10 Apr 2022 15:54:13 +0200 Message-Id: <20220410135414.20606-2-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) In-Reply-To: <20220410135414.20606-1-sven@svenpeter.dev> References: <20220410135414.20606-1-sven@svenpeter.dev> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220410_065429_327950_92441B5B X-CRM114-Status: GOOD ( 10.74 ) 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 Acked-by: Rob Herring Signed-off-by: Sven Peter --- v3 -> v4: - added rob's ack - rebased on 5.18-rc1 and split off MAINTAINER changes as requested by Srinivas Kandagatla v2 -> v3: - added r-b tag v1 -> v2: - fixed indentation issue pointed out by Krzysztof Kozlowski .../bindings/nvmem/apple,efuses.yaml | 50 +++++++++++++++++++ 1 file changed, 50 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>; + }; + }; + +...