Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp650367rwb; Thu, 18 Aug 2022 09:45:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ETg9egd/OezfZRApPZc2h/BK8UkeLctNQpt/pptu1Rbb1PyURgayUGM11ckwb7OgN+bS1 X-Received: by 2002:a63:101f:0:b0:42a:247f:5274 with SMTP id f31-20020a63101f000000b0042a247f5274mr1178296pgl.87.1660841100195; Thu, 18 Aug 2022 09:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660841100; cv=none; d=google.com; s=arc-20160816; b=zRh8UsT1s0Ql62INJGkcQwLj1K8B2HJR0H5bny15nXWKFe080/fBQSuo5ruXevHUhh 6+KrlUoiUA1TV+dF9r39ix4puv1p954GrwOW10pd41HQ4qRNzmjqHbJZJP54q/fz79xn j96yk5pCB3DPI03/obxcQTLLKI/RXABFqCn2cwuu3WIe9doqkR0spbSr66byjPLveRpE N//KN6DOFZiR4FKIZfxQKIy6Zw0FVqsg/Lc1y3pLLF5P+GBd8s8BRLKUNItJIkbdRA/I 2N08C5vLCMlvjkV7X9I5KUPdk6hTYu0qe2wlhNVeZgvhuFckDCT/3mYiQCkLDKd0+CTa Jo5g== 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=VMdsUhUsooB4pdsdKbxQVzTLp4EjDdlW22S1hgKYDJY=; b=PAHe/yEzHPQKPcJxu1VlmnEpZoTLiZJVdVpgueiRc0QQPb6zQ1TxuLsrvpBYY3wxuX 5QFHVJLDmzAw+6QMjyxARQMjHL3TZYhZ6w16EjP3CWwbSRt+hDdYG5ZDkGuvcP+lyMzw 7z5SvfHgGiZrEy7DJ+1j1EyOQ/cONpooygCYpwzwTYfY6ekxNhRqi0LmHKM2nIk8cIej mReF1pNlO4Znk6gy7Xnl7WAveeOamsk4rrOOB7tZIPBKDBCGbTUXMDlnQ0eLUAe4iKdc rzbdSRd2a8HZjX9zyvi2sleyK6DZBsW8e8S8Bs+Yk/J8xY4TxiWRG983cQSjshqcOUOC HwYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=GK7mpWWE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj15-20020a056a02018f00b00410702fefc2si1754259pgb.390.2022.08.18.09.44.48; Thu, 18 Aug 2022 09:45:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=GK7mpWWE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344845AbiHRQkH (ORCPT + 99 others); Thu, 18 Aug 2022 12:40:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244985AbiHRQkD (ORCPT ); Thu, 18 Aug 2022 12:40:03 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53DAC8D3EB; Thu, 18 Aug 2022 09:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1660840799; x=1692376799; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gqGgifVU8B0RyjP+gQqcObAhJ4b3l8QsulvEhM3OJiw=; b=GK7mpWWEl9bFQoPgFO1uodxZuajVlib0aa3zUQAg8uOG761ynBoJw1iG VdIaW5X/CenRk0O4iN6ItxuNuGoflYzHYbm0VrBTZIGPr2peKLJa1/Vw8 H57NJrjqKS+wwfvDpILZjDnl01eM8rsQGIN3/MrBS74qpdhC+GoaaFLD8 fDXcQnMSLq2OFw4/qmj+mRAUu2jmWt5UpxOIJYjTzmnHI7VMq4QYQwd2A EUJ5UuXJUmzdOEn6/vaMnEra0q3YCXgeZtjZQJvaX8ruGmQyXAc+H1zfP 9Y18POrATSgQGpwPSaciz8/FShsJWhCjhLArHhMtidAvvrqiBbEzaVy85 A==; X-IronPort-AV: E=Sophos;i="5.93,247,1654585200"; d="scan'208";a="176812613" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 18 Aug 2022 09:39:58 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 18 Aug 2022 09:39:56 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 18 Aug 2022 09:39:55 -0700 From: Horatiu Vultur To: , CC: , , , Horatiu Vultur Subject: [PATCH 0/2] nvmem: lan966x-otpc: add support Date: Thu, 18 Aug 2022 18:44:03 +0200 Message-ID: <20220818164405.1953698-1-horatiu.vultur@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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Add support for lan966x OTP controller that is available on lan966x. The driver gives access to non-volatile memory. It allows both write and read access to it. Horatiu Vultur (2): dt-bindings: lan966x-otpc: document Lan966X OTPC nvmem: lan966x-otpc: add support .../nvmem/microchip,lan966x-otpc.yaml | 42 +++ drivers/nvmem/Kconfig | 8 + drivers/nvmem/Makefile | 2 + drivers/nvmem/lan966x-otpc.c | 248 ++++++++++++++++++ 4 files changed, 300 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/microchip,lan966x-otpc.yaml create mode 100644 drivers/nvmem/lan966x-otpc.c -- 2.33.0