Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp400072iob; Wed, 18 May 2022 04:51:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8phfmN+vkvFIghM3yUAoszC3uVbBgrFjpgX2fqQ8XvST3liIS6C/trN50RQgH6g/uHn0t X-Received: by 2002:a17:902:da85:b0:15e:8e05:6963 with SMTP id j5-20020a170902da8500b0015e8e056963mr27098601plx.94.1652874680426; Wed, 18 May 2022 04:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652874680; cv=none; d=google.com; s=arc-20160816; b=hQ2OXJKNPY65H5E3EaiuRsoJJixL7oMLb2lG/2OS08hFeEmPHZ/jBeWxhIIBo8PZzO nOFUqzgD9NcIZPyQIs41g5ybPBfW4dPAejeVN0XJ4C+Q87v5+wZb2Tfbi2+z8oQ4k6Xj 4uilUu+X2ANLuL1avOOk6beua+v7QZ5zv0Kzx3iPQpQjJLQLTyk92kFJD7IZ4VuEcjsX Ru/lybB55hI0Tj/B0a7mBFjX8xMi6fRjaATzkIj1KjSke8L0VrWmhLAg9McdzQyDIKHX w63K1Q1u0URTeOQXOXKIAAdDwS5BjXwKtZeGGFovS0DFwxMyMNaWqFDZ5ydhzUav5p8/ YFYw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=22NL/Ne05Miw7d5N41re5pe2gaBX6iLtAZCVlTUv4hA=; b=HEKUfgYzyC9zjEwGnrwqunWPb/ZQ+b0gUXk796358o2dg2mC2kU1G7SlTOoom2YK2s Rb2k4jt+B1R2bueTtlnB5WOmGoJ+oY3NgWpapeVnc1HfvVYouc4B9qv53qWNWABKQIGx OCwm82usLdEjrkaL5upqOUoDp+pQ5HNUOyCXq7JJW0+nGLyrGSnYYRatstFKF4jTB/9u jJi1QumybASIWaRPdR5cBvJsfcxf1Ja8QOKtKnJZIhGGc13GUXve/PnHSmcrH5+mfi1W LDpndZjp7XIsBnPjDWR4JO60+3XrYhWzyJTY2uQhglx4tjp9DARPlgz/A5TA8RGyQmQn M3TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=2Fnye8GT; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k5-20020a170902e90500b00153b2d16512si2460412pld.282.2022.05.18.04.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 04:51:20 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=2Fnye8GT; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 27D20179C3F; Wed, 18 May 2022 04:49:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235797AbiERLtM (ORCPT + 99 others); Wed, 18 May 2022 07:49:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235772AbiERLtL (ORCPT ); Wed, 18 May 2022 07:49:11 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF263179C19; Wed, 18 May 2022 04:49:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1652874549; x=1684410549; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=d9QZeZd2/xhOso7dWnKP7HbWb4p7FSS+gP0Yr1dxXPE=; b=2Fnye8GT2IwDRrc2mJpNP4eaFGygTEA/zVmqmHY8yVcFcjIhVhTxGoHn yA57sU1i3vVrC996BPFB03A0CT8BpU2d+yq6XCnjpKrqXXaf0h/of5oLR 5Z35jGp35KD44JaAJ0RprWnKYxzIrzy5pEF/G1iWsnwtZqqPLGREjMyTf T8ZNdlDH7tbjwn7+l4HOlQjerz1tDb0sP9+tyCZU7dSafsf88DtYonL+7 zr+QEWKVhepIdAbE55VSayC1dBe75wKLwDESxpDmqUyAxzUI2qgTQuzCC 5lUvLzmoA5zZkcVoG0pvoJfkBjBm3Vb1jvVpKxmBQZksrLx6u/SybR93o g==; X-IronPort-AV: E=Sophos;i="5.91,234,1647327600"; d="scan'208";a="164583728" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 18 May 2022 04:49:08 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 18 May 2022 04:49:07 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Wed, 18 May 2022 04:49:05 -0700 From: Claudiu Beznea To: , , CC: , , , Claudiu Beznea Subject: [PATCH v3 0/2] nvmem: add Microchip OTP controller Date: Wed, 18 May 2022 14:51:27 +0300 Message-ID: <20220518115129.908787-1-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 Hi, This series adds support for Microchip OTP controller available on SAMA7G5. The driver gives access to a non-volatile memory which keeps (at the moment) information like booting media and temperature calibration data used for thermal measurements. Thank you, Claudiu Beznea Changes in v3: - fixed Documentation and binding files names - used __maybe_unused for mchp_otpc_ids Changes in v2: - updated the bindings (patch 1/2) as follows: - included the device name in files names and updated binding content accordingly - updated the description - removed address-cells, size-cells - removed clock include - use GPL-2.0 OR BSD-2-Clause license - removed OTP_PKT_SAMA7G5_TEMP_CALIB_LEN and keep hardcoded value in examples - updated MAINTAINERS file with new naming of bindings Claudiu Beznea (2): dt-bindings: microchip-otpc: document Microchip OTPC nvmem: microchip-otpc: add support .../nvmem/microchip,sama7g5-otpc.yaml | 50 +++ MAINTAINERS | 8 + drivers/nvmem/Kconfig | 7 + drivers/nvmem/Makefile | 2 + drivers/nvmem/microchip-otpc.c | 288 ++++++++++++++++++ .../nvmem/microchip,sama7g5-otpc.h | 12 + 6 files changed, 367 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/microchip,sama7g5-otpc.yaml create mode 100644 drivers/nvmem/microchip-otpc.c create mode 040000 include/dt-bindings/nvmem create mode 100644 include/dt-bindings/nvmem/microchip,sama7g5-otpc.h -- 2.34.1