Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp303259ybv; Wed, 19 Feb 2020 22:01:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxPNow10QHfRWXSFH4jy7MmUfNePVa6/jjzVrhiqMlbJj+YqjtdNpfZlUJMCe+sPKoaHEz/ X-Received: by 2002:aca:aa05:: with SMTP id t5mr927967oie.93.1582178466968; Wed, 19 Feb 2020 22:01:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582178466; cv=none; d=google.com; s=arc-20160816; b=fO51/iN9JB8YlNCCZPD9vWMwmB2pdRMiMAq/0HB1IL5Ed+AXFTL6WWkTm5kKve+7qq nI2vUvoOOle+/RrOPMTmt9uslhpK+fS+wd59tg6CGd3Fhpw0x1OH4bhGoVTkSpk9SjJt qVN3ZMbdygLBG/t1aTxdZHvxDbPigiX0CucYAi7GrThzEugUHNxDtiWBUDGxOBzumF0m CFp/wQBiDlmxTmJVIYW4fyyJRHmIP0FZB/ZhgGus4+dWeC+rcFfvQ2Ssv0sDn84bRhdo aVRIoIlgZhHLjLGCPjm3TuPCpvuMqgRZOPnXRHZQxM0BmJYT/p7e6xO0dEmcNNYFgJtT 8mrA== 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=GGaI48ID+RANcSnbSgDavldeijLO9g3YzgPX5PpG8fI=; b=aBjON0X1j1HUeh247Id3qFwSthC+9MN8+UwXzDROW1zFP63X/Ye9rXSnMcCkRhCoE8 j14jgINfGnskL2FClt5scroM4qdqgHAGl/b4Th2FtDE4cGvf5AepGvP51JUMhRSwfSuS jVIkblHVuNok5gKlCUBemT0sOFiAEAZXV7kuvD8av5zBEVUcEv6ERYXdkb5BwbklvvqA mdIRwOG+XNXNoliyqVPn6T6io+/gOaSOFPNk1kNJvRiJ1DdrCjrekM7n/tmzI755/zx+ dQ+8HjBJQjB3q0hFTZEZ1UfI/Smmzhf1iGs7V8fLUiw0IIokaG59v+GPTqv5sK8IuJC5 hbiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=ijPjguYP; 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 k19si1119597otp.33.2020.02.19.22.00.52; Wed, 19 Feb 2020 22:01:06 -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=@kemnade.info header.s=20180802 header.b=ijPjguYP; 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 S1726310AbgBTGAs (ORCPT + 99 others); Thu, 20 Feb 2020 01:00:48 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:55158 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbgBTGAr (ORCPT ); Thu, 20 Feb 2020 01:00:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GGaI48ID+RANcSnbSgDavldeijLO9g3YzgPX5PpG8fI=; b=ijPjguYP7Zt3epKkXf4L+PGD+o c+7c8P7oEmieCGXVUeVhZ101mqBnhqONhJq77kzfHl8hPbqjKpo8xLDgv4o5TGAq69fdqMT2s9ngz W09rbd2kuPFK4ID32zV4qssJsccAQbsrg0mY64zEXMykYKf5nYgxRwT3hKFCbaODPYak=; Received: from [77.247.85.102] (helo=localhost) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1j4et8-0002hm-8L; Thu, 20 Feb 2020 07:00:42 +0100 Received: from andi by localhost with local (Exim 4.92) (envelope-from ) id 1j4et6-0006jD-Nf; Thu, 20 Feb 2020 07:00:40 +0100 From: Andreas Kemnade To: "H. Nikolaus Schaller" , PrasannaKumar Muralidharan , Paul Cercueil , Mathieu Malaterre , Srinivas Kandagatla , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Discussions about the Letux Kernel , Linux Kernel Mailing List , linux-mips@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH RFC] Bindings: nvmem: add bindings for JZ4780 efuse Date: Thu, 20 Feb 2020 07:00:01 +0100 Message-Id: <20200220060001.25807-1-andreas@kemnade.info> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.0 (-) 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 expose 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 --- I will not update/maintain this, just have the impression that here some more work is needed to make somebody comfortable with yaml than stick to the usual pointing to documentation and I have not the ingredients for doing cat Antihistamines >/dev/brain ;-) and I do not want to see the other patches get lost. .../bindings/nvmem/ingenic,jz4780-efuse.yaml | 51 +++++++++++++++++++ 1 file changed, 51 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..ad56c17b0bd5 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0 +%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: + - tbd + +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: bus_clk + +required: + - compatible + - reg + - clock + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + + efuse@134100d0 { + compatible = "ingenic,jz4780-efuse"; + reg = <0x134100d0 0x2c>; + + clocks = <&cgu JZ4780_CLK_AHB2>; + clock-names = "bus_clk"; + }; + +... -- 2.20.1