Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | -------------------------------------------------------------------------- |
| 2 | = Zynq UltraScale+ MPSoC nvmem firmware driver binding = |
| 3 | -------------------------------------------------------------------------- |
| 4 | The nvmem_firmware node provides access to the hardware related data |
| 5 | like soc revision, IDCODE... etc, By using the firmware interface. |
| 6 | |
| 7 | Required properties: |
| 8 | - compatible: should be "xlnx,zynqmp-nvmem-fw" |
| 9 | |
| 10 | = Data cells = |
| 11 | Are child nodes of silicon id, bindings of which as described in |
| 12 | bindings/nvmem/nvmem.txt |
| 13 | |
| 14 | ------- |
| 15 | Example |
| 16 | ------- |
| 17 | firmware { |
| 18 | zynqmp_firmware: zynqmp-firmware { |
| 19 | compatible = "xlnx,zynqmp-firmware"; |
| 20 | method = "smc"; |
| 21 | |
| 22 | nvmem_firmware { |
| 23 | compatible = "xlnx,zynqmp-nvmem-fw"; |
| 24 | #address-cells = <1>; |
| 25 | #size-cells = <1>; |
| 26 | |
| 27 | /* Data cells */ |
| 28 | soc_revision: soc_revision { |
| 29 | reg = <0x0 0x4>; |
| 30 | }; |
| 31 | }; |
| 32 | }; |
| 33 | }; |
| 34 | |
| 35 | = Data consumers = |
| 36 | Are device nodes which consume nvmem data cells. |
| 37 | |
| 38 | For example: |
| 39 | pcap { |
| 40 | ... |
| 41 | |
| 42 | nvmem-cells = <&soc_revision>; |
| 43 | nvmem-cell-names = "soc_revision"; |
| 44 | |
| 45 | ... |
| 46 | }; |