* [PATCH] dt-bindings: firmware: xilinx: Describe soc-vvmem subnode
@ 2024-01-29 12:25 Michal Simek
2024-01-29 16:57 ` Conor Dooley
0 siblings, 1 reply; 4+ messages in thread
From: Michal Simek @ 2024-01-29 12:25 UTC (permalink / raw)
To: linux-kernel, monstr, michal.simek, git
Cc: Conor Dooley, Krzysztof Kozlowski, Rob Herring,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
kishore Manne, moderated list:ARM/ZYNQ ARCHITECTURE
Describe soc-nvmem subnode as the part of firmware node. The name can't be
pure nvmem because dt-schema already defines it as array property that's
why different name should be used.
Signed-off-by: Michal Simek <michal.simek@amd.com>
---
Dt binding for nvmem node has been already merged and it is the part of
linux-next tree.
Here is the reference to it just in case:
https://lore.kernel.org/r/170635581622.41421.8980881999042944764.b4-ty@linaro.org
---
.../bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
index 7586fbff7ad6..108772ef574f 100644
--- a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
+++ b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
@@ -62,6 +62,12 @@ properties:
interface.
type: object
+ soc-nvmem:
+ $ref: /schemas/nvmem/xlnx,zynqmp-nvmem.yaml#
+ description: The ZynqMP MPSoC provides access to the hardware related data
+ like SOC revision, IDCODE and specific purpose efuses.
+ type: object
+
pcap:
$ref: /schemas/fpga/xlnx,zynqmp-pcap-fpga.yaml
description: The ZynqMP SoC uses the PCAP (Processor Configuration Port) to
@@ -110,6 +116,9 @@ examples:
firmware {
zynqmp_firmware: zynqmp-firmware {
#power-domain-cells = <1>;
+ soc-nvmem {
+ compatible = "xlnx,zynqmp-nvmem-fw";
+ };
gpio {
compatible = "xlnx,zynqmp-gpio-modepin";
gpio-controller;
--
2.36.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: firmware: xilinx: Describe soc-vvmem subnode
2024-01-29 12:25 [PATCH] dt-bindings: firmware: xilinx: Describe soc-vvmem subnode Michal Simek
@ 2024-01-29 16:57 ` Conor Dooley
2024-01-30 7:13 ` Michal Simek
0 siblings, 1 reply; 4+ messages in thread
From: Conor Dooley @ 2024-01-29 16:57 UTC (permalink / raw)
To: Michal Simek
Cc: linux-kernel, monstr, michal.simek, git, Conor Dooley,
Krzysztof Kozlowski, Rob Herring,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
kishore Manne, moderated list:ARM/ZYNQ ARCHITECTURE
[-- Attachment #1: Type: text/plain, Size: 2059 bytes --]
On Mon, Jan 29, 2024 at 01:25:06PM +0100, Michal Simek wrote:
> Describe soc-nvmem subnode as the part of firmware node. The name can't be
> pure nvmem because dt-schema already defines it as array property that's
> why different name should be used.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
> Dt binding for nvmem node has been already merged and it is the part of
> linux-next tree.
> Here is the reference to it just in case:
> https://lore.kernel.org/r/170635581622.41421.8980881999042944764.b4-ty@linaro.org
>
> ---
> .../bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
> index 7586fbff7ad6..108772ef574f 100644
> --- a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
> +++ b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
> @@ -62,6 +62,12 @@ properties:
> interface.
> type: object
>
> + soc-nvmem:
> + $ref: /schemas/nvmem/xlnx,zynqmp-nvmem.yaml#
> + description: The ZynqMP MPSoC provides access to the hardware related data
> + like SOC revision, IDCODE and specific purpose efuses.
> + type: object
> +
> pcap:
> $ref: /schemas/fpga/xlnx,zynqmp-pcap-fpga.yaml
> description: The ZynqMP SoC uses the PCAP (Processor Configuration Port) to
> @@ -110,6 +116,9 @@ examples:
> firmware {
> zynqmp_firmware: zynqmp-firmware {
> #power-domain-cells = <1>;
> + soc-nvmem {
> + compatible = "xlnx,zynqmp-nvmem-fw";
> + };
Would it not be better to have an actual nvmem-layout in here? The
~empty node here looks rather odd.
Also, there's a type in $subject of nvmem.
Thanks,
Conor.
> gpio {
> compatible = "xlnx,zynqmp-gpio-modepin";
> gpio-controller;
> --
> 2.36.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: firmware: xilinx: Describe soc-vvmem subnode
2024-01-29 16:57 ` Conor Dooley
@ 2024-01-30 7:13 ` Michal Simek
2024-01-30 16:55 ` Conor Dooley
0 siblings, 1 reply; 4+ messages in thread
From: Michal Simek @ 2024-01-30 7:13 UTC (permalink / raw)
To: Conor Dooley
Cc: linux-kernel, monstr, michal.simek, git, Conor Dooley,
Krzysztof Kozlowski, Rob Herring,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
kishore Manne, moderated list:ARM/ZYNQ ARCHITECTURE
On 1/29/24 17:57, Conor Dooley wrote:
> On Mon, Jan 29, 2024 at 01:25:06PM +0100, Michal Simek wrote:
>> Describe soc-nvmem subnode as the part of firmware node. The name can't be
>> pure nvmem because dt-schema already defines it as array property that's
>> why different name should be used.
>>
>> Signed-off-by: Michal Simek <michal.simek@amd.com>
>> ---
>>
>> Dt binding for nvmem node has been already merged and it is the part of
>> linux-next tree.
>> Here is the reference to it just in case:
>> https://lore.kernel.org/r/170635581622.41421.8980881999042944764.b4-ty@linaro.org
>>
>> ---
>> .../bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml | 9 +++++++++
>> 1 file changed, 9 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
>> index 7586fbff7ad6..108772ef574f 100644
>> --- a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
>> +++ b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
>> @@ -62,6 +62,12 @@ properties:
>> interface.
>> type: object
>>
>> + soc-nvmem:
>> + $ref: /schemas/nvmem/xlnx,zynqmp-nvmem.yaml#
>> + description: The ZynqMP MPSoC provides access to the hardware related data
>> + like SOC revision, IDCODE and specific purpose efuses.
>> + type: object
>> +
>> pcap:
>> $ref: /schemas/fpga/xlnx,zynqmp-pcap-fpga.yaml
>> description: The ZynqMP SoC uses the PCAP (Processor Configuration Port) to
>> @@ -110,6 +116,9 @@ examples:
>> firmware {
>> zynqmp_firmware: zynqmp-firmware {
>> #power-domain-cells = <1>;
>> + soc-nvmem {
>> + compatible = "xlnx,zynqmp-nvmem-fw";
>> + };
>
> Would it not be better to have an actual nvmem-layout in here? The
> ~empty node here looks rather odd.
No issue. Do you want full or just nvmem-layout with compatible string (which is
required)?
soc-nvmem {
compatible = "xlnx,zynqmp-nvmem-fw";
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;
soc_revision: soc-revision@0 {
reg = <0x0 0x4>;
};
};
};
>
> Also, there's a type in $subject of nvmem.
will fix.
Thanks,
Michal
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: firmware: xilinx: Describe soc-vvmem subnode
2024-01-30 7:13 ` Michal Simek
@ 2024-01-30 16:55 ` Conor Dooley
0 siblings, 0 replies; 4+ messages in thread
From: Conor Dooley @ 2024-01-30 16:55 UTC (permalink / raw)
To: Michal Simek
Cc: linux-kernel, monstr, michal.simek, git, Conor Dooley,
Krzysztof Kozlowski, Rob Herring,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
kishore Manne, moderated list:ARM/ZYNQ ARCHITECTURE
[-- Attachment #1: Type: text/plain, Size: 2737 bytes --]
On Tue, Jan 30, 2024 at 08:13:09AM +0100, Michal Simek wrote:
>
>
> On 1/29/24 17:57, Conor Dooley wrote:
> > On Mon, Jan 29, 2024 at 01:25:06PM +0100, Michal Simek wrote:
> > > Describe soc-nvmem subnode as the part of firmware node. The name can't be
> > > pure nvmem because dt-schema already defines it as array property that's
> > > why different name should be used.
> > >
> > > Signed-off-by: Michal Simek <michal.simek@amd.com>
> > > ---
> > >
> > > Dt binding for nvmem node has been already merged and it is the part of
> > > linux-next tree.
> > > Here is the reference to it just in case:
> > > https://lore.kernel.org/r/170635581622.41421.8980881999042944764.b4-ty@linaro.org
> > >
> > > ---
> > > .../bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml | 9 +++++++++
> > > 1 file changed, 9 insertions(+)
> > >
> > > diff --git a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
> > > index 7586fbff7ad6..108772ef574f 100644
> > > --- a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
> > > +++ b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
> > > @@ -62,6 +62,12 @@ properties:
> > > interface.
> > > type: object
> > > + soc-nvmem:
> > > + $ref: /schemas/nvmem/xlnx,zynqmp-nvmem.yaml#
> > > + description: The ZynqMP MPSoC provides access to the hardware related data
> > > + like SOC revision, IDCODE and specific purpose efuses.
> > > + type: object
> > > +
> > > pcap:
> > > $ref: /schemas/fpga/xlnx,zynqmp-pcap-fpga.yaml
> > > description: The ZynqMP SoC uses the PCAP (Processor Configuration Port) to
> > > @@ -110,6 +116,9 @@ examples:
> > > firmware {
> > > zynqmp_firmware: zynqmp-firmware {
> > > #power-domain-cells = <1>;
> > > + soc-nvmem {
> > > + compatible = "xlnx,zynqmp-nvmem-fw";
> > > + };
> >
> > Would it not be better to have an actual nvmem-layout in here? The
> > ~empty node here looks rather odd.
>
> No issue. Do you want full or just nvmem-layout with compatible string (which is
> required)?
What you have below here seems like a much more useful example. I'd go
with that.
Cheers,
Conor.
> soc-nvmem {
> compatible = "xlnx,zynqmp-nvmem-fw";
> nvmem-layout {
> compatible = "fixed-layout";
> #address-cells = <1>;
> #size-cells = <1>;
>
> soc_revision: soc-revision@0 {
> reg = <0x0 0x4>;
> };
> };
> };
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-30 16:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-29 12:25 [PATCH] dt-bindings: firmware: xilinx: Describe soc-vvmem subnode Michal Simek
2024-01-29 16:57 ` Conor Dooley
2024-01-30 7:13 ` Michal Simek
2024-01-30 16:55 ` Conor Dooley
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).