Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp42296pxb; Tue, 12 Apr 2022 16:14:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLOoA84Z2FiDdztUSV4BCeldizub/w+WBUxr53qB00UAav9T2FqqbkH4m30bHfKuN4xtU4 X-Received: by 2002:a17:902:6bc3:b0:156:e4f:b014 with SMTP id m3-20020a1709026bc300b001560e4fb014mr40137002plt.17.1649805296322; Tue, 12 Apr 2022 16:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649805296; cv=none; d=google.com; s=arc-20160816; b=ihSDtN95HRfyLcy/aME1Od/Mzn17AeBK9SsN8JEMeMsSUn5deOJSaANEXd8+E1g5q+ bgYAjQJEJW/3LPJSsDWnS7RKexla41E/Zl5KCMDKJcN+46GELK8Bph8ccDxYZDaOCfFm 9qVevQfz0Nw6jNxHkn6d+sF4yiC1OtZaXfsuYytN3YYU9tKlUHIIUM2YBO91p+4VqTd1 fdLkPwlaAOrL327DoOEVkr5MxNX8UylcbNEUTjBaYELtzSyvObdZYOGTHYon4a51kfRf NzrfPpRZsH7wwTOGnWxg1w58pQ0MYNN3fLq82onjV2dxpZ0D5ENa+KN1FmgC4TZ1hUec Bhsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=872TStTIZWE7QKoVNxz3eKsUGk00QbR/SRkqv3FSeiE=; b=G+zI142RhySPkGMk4+WIwDFztAaU6SVcmSPjMdtGgcuQcKtd0PoVo4FhtYopFqVM0u rBSR/E8fJ9IGu+44M8MtvEH8Xgi9Vsh0zcxXuc0OIZnxx5z1vroD/dMN2i9HMdH6+JWb TkWHVkzVYECOrYhOitKgVptHCcoBSlK0vqxjOarb3NBpo+i5HE7EcD7dJPE6D11LZs6l JJHhczFPYz5etKwor7184S6ZvridhcfrJWABPh18eaYOGBpsDIe+tqmUTZLjI9ID/v4g YTKPyVh5FB6CfvtwWLbOu7XwDvJaqwO6EYIjwXBKs6/XTXYk/bS4w3iRh2sCJYcYo2B8 NAJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm1 header.b=UlOJgyl4; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=C2sdfE02; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=svenpeter.dev Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id mq18-20020a17090b381200b001c6f45042dcsi18939279pjb.5.2022.04.12.16.14.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:14:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm1 header.b=UlOJgyl4; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=C2sdfE02; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=svenpeter.dev Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 88BA311FE2A; Tue, 12 Apr 2022 14:59:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239197AbiDJN4n (ORCPT + 99 others); Sun, 10 Apr 2022 09:56:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238592AbiDJN4h (ORCPT ); Sun, 10 Apr 2022 09:56:37 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69B7457B05; Sun, 10 Apr 2022 06:54:26 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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>; + }; + }; + +... -- 2.25.1