Thread (36 messages) 36 messages, 7 authors, 2025-08-05

Re: [PATCH v7 10/12] nvmem: s32g2_siul2: add NVMEM driver for SoC information

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2025-08-04 07:27:04
Also in: imx, linux-devicetree, linux-gpio, lkml

On 04/08/2025 09:12, Andrei Stefanescu wrote:
Hi Krzysztof,

Thank you for the quick response!
On 02/08/2025 11:32, Krzysztof Kozlowski wrote:
quoted
On 02/08/2025 10:28, Krzysztof Kozlowski wrote:
quoted
On 01/08/2025 16:36, Andrei Stefanescu wrote:
quoted
Apart from the proposed NVMEM driver, there is also an option of exporting
a syscon regmap for the registers which provide information about the SoC.

I have seen that typically NVMEM drivers export information read from fuses
but I think having a NVMEM driver is nicer way to access the information
instead of using a syscon regmap and manually extracting the needed bits. 

nvmem is not a syscon. Mixing these two means device is something
completely else.
Yes, I don't want to mix them. The driver will either be a NVMEM driver or
a syscon. These registers are read-only. I suggested NVMEM because it's a
We do not talk about drivers here, but hardware.
an abstraction layer which makes it easier for drivers which want to use
that information without knowing where to actually read it i.e. reg address,
bit mask.
Sorry, but no. You design it for drivers, that's not the way. Describe
properly the hardware.


Best regards,
Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help