devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] nvmem: lan9662-otpc: add support
@ 2022-08-31  6:42 Horatiu Vultur
  2022-08-31  6:42 ` [PATCH v3 1/2] dt-bindings: lan9662-otpc: document Lan9662 OTPC Horatiu Vultur
  2022-08-31  6:42 ` [PATCH v3 2/2] nvmem: lan9662-otp: add support Horatiu Vultur
  0 siblings, 2 replies; 11+ messages in thread
From: Horatiu Vultur @ 2022-08-31  6:42 UTC (permalink / raw)
  To: devicetree, linux-kernel
  Cc: srinivas.kandagatla, robh+dt, krzysztof.kozlowski+dt,
	UNGLinuxDriver, Horatiu Vultur

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.

v2->v3:
- fix dt-bindings, make sure that make dt_binding_check passes
- remove lan9662_writel/readl/clrbits/setbits and use writel/readl
- remove WARN_ON(offset >= OTP_MEM_SIZE) as it can't happen

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         |  45 ++++
 drivers/nvmem/Kconfig                         |   8 +
 drivers/nvmem/Makefile                        |   2 +
 drivers/nvmem/lan9662-otpc.c                  | 223 ++++++++++++++++++
 4 files changed, 278 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/nvmem/microchip,lan9662-otpc.yaml
 create mode 100644 drivers/nvmem/lan9662-otpc.c

-- 
2.33.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-08-31 15:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-31  6:42 [PATCH v3 0/2] nvmem: lan9662-otpc: add support Horatiu Vultur
2022-08-31  6:42 ` [PATCH v3 1/2] dt-bindings: lan9662-otpc: document Lan9662 OTPC Horatiu Vultur
2022-08-31  7:28   ` Krzysztof Kozlowski
2022-08-31 10:44     ` Horatiu Vultur
2022-08-31 12:45       ` Krzysztof Kozlowski
2022-08-31  6:42 ` [PATCH v3 2/2] nvmem: lan9662-otp: add support Horatiu Vultur
2022-08-31  7:29   ` Krzysztof Kozlowski
2022-08-31 10:52     ` Horatiu Vultur
2022-08-31 12:52       ` Krzysztof Kozlowski
2022-08-31 14:52         ` Horatiu Vultur
2022-08-31 15:17           ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).