Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp216388ybv; Sat, 22 Feb 2020 02:27:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwmZj5YfJe/tTCn2x1afO7gZe0XpjamqK51fgpzpY1HLOQZ26aG5ItBQSsz6h0wsO7gwoIy X-Received: by 2002:aca:534f:: with SMTP id h76mr5722467oib.23.1582367236209; Sat, 22 Feb 2020 02:27:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582367236; cv=none; d=google.com; s=arc-20160816; b=D3DArdOqB5Mf64GuB96Urleb1mQ8kJb0iciCM4E0rVVo8b9MvBPTLdTYWyAIFqj/x3 CUfIhhjrgM/KPbWaj+MCX4fZk4hoKUIXy7wEJ/sv5Dp0AhvHDjHpw1cUij9qdGWbr2SL eyKGYl+K9/mAnKSLsz58KzQVKq9GOhHxsYePJh3rxqzYlmO6Oaj3q8EJsCeqzzoSyJy2 r4Cadm7PyqFL3KECee7Y/h/aIWEeeoHicK/hOsYzCEMvHu1tjupGP8R/qK/F3XtqH++I s1hqBour8aBCnl84xTvfoDP/CktZH91xmYoyb5Ku4INGzSacovxeD21bohnWsLVqne/P XQZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FSCakIJ7lik565E7xYsWBWIgKVoOYG25iccTR4ReXm8=; b=z44qEbewIktUpCCjQ1J/geEddjGxhB1iYmV91k4rqx2NPNGaGU33nLLTNtpPmyRli/ 2NkexPjOT8hr2oQDlGc0NCrtLyV3SUjZlcS/qE4ywyquAY2etU/+Oj5lVu5nzrZrR5kg dulbP++4DEhNQ1yd/7Q1+hNVZW+5252TyuqC90ZMKqtDb3MiSzIKFx2sdAc7Qwxg46xG jQbo5bedCrta84NAVHFza25qi5unnIzp/CQkBSfnmtxYs2m8cwaUkJ7QPVe894nhGYOA gF+dz3Gu5YV7K6sL/pFI7hxnruy9Bt+ucR222V/Kdj9wwn2oK9cpwd0B5EGH1rEy6EiP s/PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=W9+y84et; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w207si2092552oie.111.2020.02.22.02.27.04; Sat, 22 Feb 2020 02:27:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=W9+y84et; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727281AbgBVK0F (ORCPT + 99 others); Sat, 22 Feb 2020 05:26:05 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([81.169.146.169]:32110 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727090AbgBVK0B (ORCPT ); Sat, 22 Feb 2020 05:26:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1582367157; s=strato-dkim-0002; d=goldelico.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=FSCakIJ7lik565E7xYsWBWIgKVoOYG25iccTR4ReXm8=; b=W9+y84etZ6JrAoUyuKFFfKbxmDlKEOSNtZMaMmALc4ZCDDeoUy+txu7fUk/HwW4Y8J iDCyH73ldHBh8IAxvvnaJYyB8lzHMHT6MIRMVe0vPsFBQV/UsBtO6YJg5tRu+6KaTr6U TPGrjWQQswWKnmviDo8sgo92wj4OdrvAEgneWONZyp+5jl2mAWgrUae1irOlxanqPo9A VFOO1nhbybGwcxFBhpEq704eDxbLZBxdXGME83JR74tLL6/5Q9j1/K/T3EHNIvbYm2Hu xnhuHkNczITSLVntzFXt4hICOtB1w4Nd++K/K/lik/wtn5gWl1ohz7m3ffisNeVmRAyX GKqw== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o12DNOsPj0pAz7pC6Q5M" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id U06217w1MAPjjMb (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sat, 22 Feb 2020 11:25:45 +0100 (CET) From: "H. Nikolaus Schaller" To: PrasannaKumar Muralidharan , Andreas Kemnade , Paul Cercueil , Mathieu Malaterre , Srinivas Kandagatla , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Jonathan Cameron , "H. Nikolaus Schaller" , Krzysztof Kozlowski , Kees Cook , Andi Kleen , Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com Subject: [PATCH v5 2/6] Bindings: nvmem: add bindings for JZ4780 efuse Date: Sat, 22 Feb 2020 11:25:37 +0100 Message-Id: <51642368a064073ab99bb3110863b5fadc382f82.1582367141.git.hns@goldelico.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: PrasannaKumar Muralidharan This patch brings support for the JZ4780 efuse. Currently it only exposes a read only access to the entire 8K bits efuse memory. Tested-by: Mathieu Malaterre Signed-off-by: PrasannaKumar Muralidharan Signed-off-by: Mathieu Malaterre Signed-off-by: H. Nikolaus Schaller [converted to yaml] Signed-off-by: Andreas Kemnade --- .../bindings/nvmem/ingenic,jz4780-efuse.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.yaml diff --git a/Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.yaml b/Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.yaml new file mode 100644 index 000000000000..09a8ef937750 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.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/ingenic,jz4780-efuse.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ingenic JZ EFUSE driver bindings + +maintainers: + - PrasannaKumar Muralidharan + +allOf: + - $ref: "nvmem.yaml#" + +properties: + compatible: + enum: + - ingenic,jz4780-efuse + + reg: + maxItems: 1 + + clocks: + # Handle for the ahb for the efuse. + maxItems: 1 + + clock-names: + items: + - const: ahb2 + +required: + - compatible + - reg + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + + efuse@134100d0 { + compatible = "ingenic,jz4780-efuse"; + reg = <0x134100d0 0x2c>; + + clocks = <&cgu JZ4780_CLK_AHB2>; + clock-names = "ahb2"; + }; + +... -- 2.23.0