Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp456289img; Thu, 28 Feb 2019 02:24:46 -0800 (PST) X-Google-Smtp-Source: AHgI3Iad7a/SEmEoL7IgbxXfgstvU/Wfb7iTGEopQ990Qg7wuCGurjzS7zch10+alXRKr5bjwWiR X-Received: by 2002:a17:902:b402:: with SMTP id x2mr7143686plr.53.1551349486287; Thu, 28 Feb 2019 02:24:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551349486; cv=none; d=google.com; s=arc-20160816; b=1Gn0Ys94H7ympsTHrQuyQ1ELAv4FuOEXC3VJ0mzIv4BMs/u4qRHdUkUHTxeeAMYfip RH9GpSidoIQwGLHXDynGzm0xfxFeoGxpch9z+aT0x4/9bgMp2aYKRtflC6rHeLXAa70t XmjfgtOw8KvoWDuzucLkbQjumVu0Y8hSGMaYpnlFFeGgIec3xh4cw30W9WMi4yOarWzj xoYto5POs3D02ln2XVzpURYUPxMpXcz0dtq/XNRURWzF2PidOkJSEuAos5jnOGAjW3hp a2PX2UbVjQlztznNEZTxxkFQuSSqrcMv78FScTLt8Ar2dd7YKqefuxhfEaG5m+RHb0k+ fCUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=Tlurp9+IpFaH5XLU8GnHBiijKrv39QL18Mxy7FDLzBQ=; b=O34EptGhHNjov5MVRvoZG3KTXcj7EwJX4GyU3gofniK9ZIbxDSyqF3E6YQZSwqXv+l xG+FDCbmjFdStZ00HWKQTJMSjJHTzn0o6akgL+Mx7thIJsjbvaV79rratBdWsixR8Ip3 U2BnTafvG8iPP0uCVnn/WTg8xdMJt89p1uXn0Yxv3AnnavfIKtGX6YnPJXyWZpg7YWAi XNzjMrMnEN4sUKHr9CbBYtXzzz7536MtrJnh9bpAsLlvaUanKyAAqDk+wzHY+0PAGu1w 9TEz7lf/Zl1dQQCH4osCD+Q/bBwy8va3ioFoLEp6TJzwCoiUdMp8s05jlqI1cSblg5VD ruSA== 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 g98si14380345plb.11.2019.02.28.02.24.30; Thu, 28 Feb 2019 02:24:46 -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 S1732375AbfB1KWi (ORCPT + 99 others); Thu, 28 Feb 2019 05:22:38 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:5582 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732285AbfB1KWi (ORCPT ); Thu, 28 Feb 2019 05:22:38 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1SADbNd026440; 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 2qtv6d4spr-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 48B733A; 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 CBFD64E45; Thu, 28 Feb 2019 10:20:03 +0000 (GMT) Received: from localhost (10.75.127.51) 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 0/6] Add nvmem support on STM32 Date: Thu, 28 Feb 2019 11:19:50 +0100 Message-ID: <1551349196-8956-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) 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 Non volatile memory area is available on STM32. It contains various factory programmed information such as unique device ID, analog calibration... This patchset adds: - NVMEM support to access stm32 data cells - helper to read 16 bits cells. --- Changes in v2: - update "st,stm32f4-otp" compatible as discussed with Rob - add stm32f429 dts - add core helper to read 16 bits cells Fabrice Gasnier (6): dt-bindings: nvmem: Add STM32 factory-programmed romem nvmem: Add driver for STM32 factory-programmed read only mem nvmem: stm32: add support for STM32MP15 BSEC to control OTP data nvmem: core: add nvmem_cell_read_u16 ARM: dts: stm32: Add romem and temperature calibration on stm32mp157c ARM: dts: stm32: Add romem and temperature calibration on stm32f429 .../devicetree/bindings/nvmem/st,stm32-romem.txt | 31 ++++ arch/arm/boot/dts/stm32f429.dtsi | 13 ++ arch/arm/boot/dts/stm32mp157c.dtsi | 13 ++ drivers/nvmem/Kconfig | 10 + drivers/nvmem/Makefile | 2 + drivers/nvmem/core.c | 37 ++++ drivers/nvmem/stm32-romem.c | 202 +++++++++++++++++++++ include/linux/nvmem-consumer.h | 7 + 8 files changed, 315 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/st,stm32-romem.txt create mode 100644 drivers/nvmem/stm32-romem.c -- 2.7.4