Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1019281rwe; Thu, 25 Aug 2022 13:45:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR731KVk37z18md3SrP0F+tuFE4PUiFHafV+aWd8b7L1UsWvCwPQOwwJCXweFgAxyTBDfgOz X-Received: by 2002:a05:6402:1286:b0:447:e8ca:207b with SMTP id w6-20020a056402128600b00447e8ca207bmr137902edv.95.1661460344896; Thu, 25 Aug 2022 13:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661460344; cv=none; d=google.com; s=arc-20160816; b=LKyfo+uaAhIO2RqbpvmW55JX5CjJEk/Pch/na/meVvImJGbPGtXhglgHXXHAd7p69B 7m70U7LbOqS2x6sxJdV8AI8KeZ9oBxyYggWhbF+Bxg7fM+giO01UVX40ACoBjzeakqJn V79q96wsKVHnwKOO7AGW00IIPjkjsLs1PKDrKpSZUbXT5Iea22GSe3m9vMHg9zl/X4J+ zS3DqVjGsTRPvcnZYQdKohATxlYIjyAbiZpeo9J8aIWJ5xB5J1lTsxlhJQLmyY2HjpOe Bq3qIuwU8wptid4wlqVXPHyAsmRHHuy10L8Gj1xSiMpcioplSJ+k+algNSN4I+CWFgul 4PqQ== 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=XObGE5iDHKwWmYFU6jeaa6T9zkLoOVqz+KJC0tr+3KM=; b=ficVoBO8fIZ1J0thTW4luWii1caGpLTYf2D8mSTEQPd22Z2RtZvTvoGRG9Qtqn0wqx MsiObUY0I5jIzZ7L/RC50/0s3INu1/fM524QRb2TyMEzKC7mO2NDyjSY7gQaDJf+wLgu jiExNsfAnevVYhNz4yHGB7CLtEJPMKK8hAc6vZQJBY1JNr5VBEvVFqgBgyetm3Iyh/rU V/EI5PpmybEpP1y7GW39VXjiMmfT8897jcSPqYOhKAuwb0/ckFJ3Bb+JQsw7vTzooq3C jr4nrSxBLVu8MXCqfQVpntnAhqpEgUamsKqxsOUrcBG+Rwj0lHUEhZ/kf/ZfGBSiIACc 2r5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=A7OMeERL; 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 l5-20020a056402124500b00445ee792a9bsi231419edw.118.2022.08.25.13.45.18; Thu, 25 Aug 2022 13:45:44 -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=A7OMeERL; 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 S243768AbiHYUg4 (ORCPT + 99 others); Thu, 25 Aug 2022 16:36:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230285AbiHYUgz (ORCPT ); Thu, 25 Aug 2022 16:36:55 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CA47B72BA; Thu, 25 Aug 2022 13:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1661459814; x=1692995814; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ybLFVysoZYwExgdwK5f6S7RoZ7nBfaDq2wxphccHM7o=; b=A7OMeERLWa1zKR6Km6uo7SIZM8MJLi77Xr297Scn+U0gJbfCu46jznAy mxH8fkwfrYpuBhWyPHIaluHtr09EOOSve64WalUSSTWLZxvfzqT44quM/ g8JhYmSr/6jvqGZqZXjUt/9gy1NqbQ0IfkqfDaFPOTbNgh/Bs1ju95iLE FXwwyG11PzUVCeusBDLcUUOm9jqZKJH6jDum5EWKTWTNiprXoTH7gZiJU aB6+pvZ6PCiDIwjELpNpXgLypfvAKVCGQ7BAFnhS0E/6pwuaDcoyxMmNy wCIZTedRDXrOtRJdRGJpQwLKtgllTiemqp5U//QYvmwWARyMZaWXMpFRb A==; X-IronPort-AV: E=Sophos;i="5.93,264,1654585200"; d="scan'208";a="110790084" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Aug 2022 13:36:53 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) 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.2507.12; Thu, 25 Aug 2022 13:36:50 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 25 Aug 2022 13:36:49 -0700 From: Horatiu Vultur To: , CC: , , , , "Horatiu Vultur" Subject: [PATCH v2 0/2] nvmem: lan9662-otpc: add support Date: Thu, 25 Aug 2022 22:40:39 +0200 Message-ID: <20220825204041.1485731-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 lan9662 OTP controller that is available on lan9662. The driver gives access to non-volatile memory. It allows both write and read access to it. v1->V2: - remove unneed quotes for $ref: nvmem.yaml# - rename lan966x to lan9662 as not to have any wildcards - remove compatible string syscon Horatiu Vultur (2): dt-bindings: lan9662-otpc: document Lan9662 OTPC nvmem: lan9662-otp: add support. .../nvmem/microchip,lan9662-otpc.yaml | 42 +++ drivers/nvmem/Kconfig | 8 + drivers/nvmem/Makefile | 2 + drivers/nvmem/lan9662-otpc.c | 249 ++++++++++++++++++ 4 files changed, 301 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/microchip,lan9662-otpc.yaml create mode 100644 drivers/nvmem/lan9662-otpc.c -- 2.33.0