From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8F752C3261 for ; Tue, 26 Aug 2025 16:37:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756226279; cv=none; b=nSN11sCSdCHga4fUGz2rNXRLh5ysOijMjiBJX8IcvvKKv8BkIjbpDxCMOpgFHj41FAx1txX4JN1c16B9zVHD4r1OZ/8aBrgFUKrwzYuTvCob3EdmTGbSlcq7aqxGYwNIFYZrAA0eYjyP1yHRiMPa37fpp3AIZkS4TwCjuDnpqsU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756226279; c=relaxed/simple; bh=qoVpdmGthhQwIvIAInNuWNaL30K614K46buqtNbFa18=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=oP2jVqempoxPwHTa/knMIO+aW5ECahPpgR9Af+QI8b4le5D65tQXj3ampanjg0+9YmJUgb4ejkvf08PiSz8C5bcubUUQxFNNqOlHirNhWDW5JxTr00KuW2a48maZp4mwccfgV3vqu9HaZui63LP9fB8dOmczGC4n6woINN3obZE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=aKt76xfJ; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aKt76xfJ" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-45a1abf5466so590615e9.0 for ; Tue, 26 Aug 2025 09:37:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1756226276; x=1756831076; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=EXjzFWweCUpLGhqs+Qc2v5kfooS7EDEgFn61h3Rxlrg=; b=aKt76xfJkz5PSNmUMWf9Q0tQNHCrVhISqFfxoa57N6RO65DvZy2VBUZilaadGzbkE4 7sziuB7SJJ5lkvo8NDeuW9K74plIRRrAMGLo2crv82aqno11dhyOyogymITSFVfunKDw EyyFzNq9umV/2C6FNzSHhNpsf3We/LpR+aV0cdyKWgDcb/Nikkvn4ugeVNBESX0vhONn 30sKaXXj+aIIKdZdKaIxhJ5XG1YujV75SC71oxy/efUssBQ7b2/cQsQYUEx3GvQHhb4A YpuE/XvddhKVkKS6aDIPesmWslpL1a4B1hbklTWwc5VysRFzaNBYeDlahhPKg+6eixRy ecEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756226276; x=1756831076; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EXjzFWweCUpLGhqs+Qc2v5kfooS7EDEgFn61h3Rxlrg=; b=JAI2fIHW9cjcHFN0OTGKWBQiM7cio3+p9ADv2CraI67sYGAWFmjHPtRVzth6hN8Nrs NEe7HQI68ysJVjVWLyhJAEwA0TcUU520bVzg20SIWL6AXZ1w+5BailCgLCpMSZ1X8rgc Qtw+LhPtOPvP3QtPKYkuOVk8kfp+n/fAy4YkVELL2Ho7uWtoqzP+tbwSpIq+wm69OEgB GQsXpzSdJjvsmd+gK2J0Dbtj8JncAk4Vacw8tnN7RKd5BW1XIRYUpX2F/rcfrDEINRvH 5ybA++RpOFv6/7K3a78PgPAAF0RfiLcIUu9YwIMoRO3rAzalH1Z6yVVAisMW46Tcvuly JaBg== X-Forwarded-Encrypted: i=1; AJvYcCXkVJjLP4O3cl6BlqrIj1qiRaefHzbMw82j+xkzNzFk3iGFcc36Bq0ouCZsZeTqP2wZnOSiMcafkg4v@vger.kernel.org X-Gm-Message-State: AOJu0YyxX8q7k5yIcYvhkxaBpH+A7RdC6dUXLZj5IDxOuyAnlHCou+1l tWMQPqY+Y8DUUAsdJr/DzuUgPtZyVxggEba1dCsQ2+8cwX5Kk2O3jxXar5VFLq9ETs85oTG+rYi 6dhYF X-Gm-Gg: ASbGncuuOgMKji5pKqwE9aGH67aLeTgWTNU4Q7Cf9jgaSBAAhy/aKCbz+OP81UB94aS 2OWCAhmvssF0rihL5Ym47wA6d40VMhwZh5ktaum9MP6eMKKFDL1Jb0wFJixFZtXqZmW8VYECA+b zkEiq1wz1LiO7CqFv19KTCYQsF8pA/Snydf7kRkOTbJmvTjzTvABwxl/QgH/F8TjPFKbMVPv8bA LD1dsd/17Qx28fQ+jE6r4qvTGt1mHUj4CNbczWdAcfeP8hLPyxdOIyUTtzDxsfJssRkTOLyzKUc hHWG+ouUu6Db4p23xtm04xwlKGyI3/sbOkRI4l2kVeerUTdvnA8tMv1WQuKhCFqYrckl3qxmHN5 ZaUF/XNf1jvVB9RyOb4xjwU1lXCM= X-Google-Smtp-Source: AGHT+IFteKF0n9oClwejHyr5agehXDb0k7S2tqnIcjSRDmL+smq006tk4p7iGhuoEHb8FtlFd6aJOA== X-Received: by 2002:a05:600c:19ca:b0:45b:47e1:ef7b with SMTP id 5b1f17b1804b1-45b6870e3dfmr26425085e9.17.1756226275893; Tue, 26 Aug 2025 09:37:55 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-3c7113fdacfsm16879530f8f.35.2025.08.26.09.37.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Aug 2025 09:37:55 -0700 (PDT) Date: Tue, 26 Aug 2025 19:37:51 +0300 From: Dan Carpenter To: Chester Lin Cc: Ciprian Costea , Conor Dooley , devicetree@vger.kernel.org, Fabio Estevam , Ghennadi Procopciuc , imx@lists.linux.dev, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Matthias Brugger , NXP S32 Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , Srinivas Kandagatla , linaro-s32@linaro.org Subject: [PATCH v2 0/3] nvmem: s32g-ocotp: Add driver for S32G OCOTP Message-ID: Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline This driver provides a way to access the On Chip One-Time Programmable Controller (OCOTP) on the s32g chipset. There are three versions of this chip but they're compatible. v2: I have fixed everything that people pointed out about version 1. Sorry, Rob and Krzysztof, for the problems with the device tree YAML file. I had an issue with my dtschema installation and it's fixed now. I also screwed up the From headers in v1. I called git format-patch without passing the --from argument. I've fixed my scripts so that won't happen again. I also messed up the Signed-off by lines in patch 1 and 2. Sorry! My other mistakes were from not being a familiar enough with the subsystem and those are addressed as well. Especially re-writing the driver using keepouts cut down a lot of lines of code. I've tested it and the results are the same before and after. Ciprian Costea (2): dt-bindings: nvmem: Add the nxp,s32g-ocotp yaml file nvmem: s32g-ocotp: Add driver for S32G OCOTP Dan Carpenter (1): arm64: dts: s32g: Add device tree information for the OCOTP driver .../bindings/nvmem/nxp,s32g-ocotp-nvmem.yaml | 45 ++++++++ arch/arm64/boot/dts/freescale/s32g2.dtsi | 7 ++ arch/arm64/boot/dts/freescale/s32g3.dtsi | 7 ++ drivers/nvmem/Kconfig | 10 ++ drivers/nvmem/Makefile | 2 + drivers/nvmem/s32g-ocotp-nvmem.c | 101 ++++++++++++++++++ 6 files changed, 172 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/nxp,s32g-ocotp-nvmem.yaml create mode 100644 drivers/nvmem/s32g-ocotp-nvmem.c -- 2.47.2