Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp534946img; Thu, 28 Feb 2019 03:54:18 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib6BKc4fH7s/pKGMPZ+1s83/Xri9CaaofVyFMH4DxLbxKNn8ntvLzJtsfzfujp2s7aQjwXo X-Received: by 2002:a17:902:7682:: with SMTP id m2mr7658969pll.311.1551354858316; Thu, 28 Feb 2019 03:54:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551354858; cv=none; d=google.com; s=arc-20160816; b=j/PjvuUHaRwiGjp/SDxYu9mrc9DsA6gyF9OI40hxLvKhgTbbHodJNZgCjIcnaSSDjG DymodERzYW9SOupQrqOG/z1BTWBpxVPQ6x+fT/Z+ipLeCr7ume6ed3vW1ujG9t5mY/At nmL/lxtF95+e7k0HvgXjkg3W3SrTxLy1+PfCvYkYsnFB+m9UAo+sio/jC7tka1ZIfTs+ HaFR8agUTMTLJt4LTyVKaL6aUErBwya7rPtItE0J8KQGvCUcdwR8YdL9SbEODai+AeyB pLA8Hl/f9Mhg2SVo17qWqijuvY/2oFLxesnxXxifbduV9t5iNOR9ZXY1C0qGKh1Hcd+K 9nCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=9F0T0aqmJ72GyrUozfPLYwalG3hoII254butzdjBFfU=; b=gNoVAerCfniwTpWftSbSViBdG9AsAWv4d0blKYxef/3Lqdc/6C4TRoCUMWEscHnoOn RsqSQCDq59adJt54y5AbXhiel/6t6tn7XB/6amq3Qv7SqNPl6fdO/L2QwmfIn8TCrrln SRbT1SD6FedX9xFuUg2FuSR6cmlXYRDiwZ77hT7WFU00XRdYb0CxOlxxpxcIAdB+/5zc 5VChMr7N5csTNE+hg8xwyaBeXegK8IX/x36psEPIQpHzDqBOc2gWnEH8ADJOVZfmuq2x eZwEQ4akbyeVKolTkitAzW2E9bj479piY+K+8xIKm+R9ljMxEIu+cU47xS04VwX2/j4F QUbA== ARC-Authentication-Results: i=1; mx.google.com; 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 q61si15463350plb.49.2019.02.28.03.54.03; Thu, 28 Feb 2019 03:54:18 -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; 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 S1732394AbfB1KVf (ORCPT + 99 others); Thu, 28 Feb 2019 05:21:35 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:36284 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732285AbfB1KVd (ORCPT ); Thu, 28 Feb 2019 05:21:33 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1SAHwFM007042; Thu, 28 Feb 2019 11:20:06 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2qtwxpcm7j-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 28 Feb 2019 11:20:06 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C08B341; Thu, 28 Feb 2019 10:20:04 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9D4C14E45; Thu, 28 Feb 2019 10:20:04 +0000 (GMT) Received: from localhost (10.75.127.48) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 28 Feb 2019 11:20:03 +0100 From: Fabrice Gasnier To: , , CC: , , , , , , , Subject: [PATCH v2 1/6] dt-bindings: nvmem: Add STM32 factory-programmed romem Date: Thu, 28 Feb 2019 11:19:51 +0100 Message-ID: <1551349196-8956-2-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1551349196-8956-1-git-send-email-fabrice.gasnier@st.com> References: <1551349196-8956-1-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG2NODE1.st.com (10.75.127.4) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-28_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for STMicroelectronics STM32 Factory-programmed read only memory area. Signed-off-by: Fabrice Gasnier --- Changes in v2: - update "st,stm32f4-otp" compatible as discussed with Rob --- .../devicetree/bindings/nvmem/st,stm32-romem.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt new file mode 100644 index 0000000..142a51d --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt @@ -0,0 +1,31 @@ +STMicroelectronics STM32 Factory-programmed data device tree bindings + +This represents STM32 Factory-programmed read only non-volatile area: locked +flash, OTP, read-only HW regs... This contains various information such as: +analog calibration data for temperature sensor (e.g. TS_CAL1, TS_CAL2), +internal vref (VREFIN_CAL), unique device ID... + +Required properties: +- compatible: Should be one of: + "st,stm32f4-otp" + "st,stm32mp15-bsec" +- reg: Offset and length of factory-programmed area. +- #address-cells: Should be '<1>'. +- #size-cells: Should be '<1>'. + +Optional Data cells: +- Must be child nodes as described in nvmem.txt. + +Example on stm32f4: + romem: nvmem@1fff7800 { + compatible = "st,stm32f4-otp"; + reg = <0x1fff7800 0x400>; + #address-cells = <1>; + #size-cells = <1>; + + /* Data cells: ts_cal1 at 0x1fff7a2c */ + ts_cal1: calib@22c { + reg = <0x22c 0x2>; + }; + ... + }; -- 2.7.4