Commit de259b7b authored by Naman Trivedi Manojbhai's avatar Naman Trivedi Manojbhai Committed by Rob Herring
Browse files

dt-bindings: power: xilinx: merge zynqmp-genpd.txt with firmware binding



Remove the zynqmp-genpd.txt binding. Add the power-domain-cells
property from the zynqmp-genpd.txt binding to firmware binding.

Signed-off-by: default avatarNaman Trivedi Manojbhai <naman.trivedimanojbhai@amd.com>
Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230816130309.1338446-1-naman.trivedimanojbhai@amd.com


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent abe916c5
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -38,6 +38,9 @@ properties:
      - smc
      - hvc

  "#power-domain-cells":
    const: 1

  versal_fpga:
    $ref: /schemas/fpga/xlnx,versal-fpga.yaml#
    description: Compatible of the FPGA device.
@@ -66,6 +69,17 @@ additionalProperties: false

examples:
  - |
    #include <dt-bindings/power/xlnx-zynqmp-power.h>
    firmware {
      zynqmp_firmware: zynqmp-firmware {
        #power-domain-cells = <1>;
        };
    };

    sata {
      power-domains = <&zynqmp_firmware PD_SATA>;
    };

    versal-firmware {
      compatible = "xlnx,versal-firmware";
      method = "smc";
+0 −34
Original line number Diff line number Diff line
-----------------------------------------------------------
Device Tree Bindings for the Xilinx Zynq MPSoC PM domains
-----------------------------------------------------------
The binding for zynqmp-power-controller follow the common
generic PM domain binding[1].

[1] Documentation/devicetree/bindings/power/power-domain.yaml

== Zynq MPSoC Generic PM Domain Node ==

Required property:
 - Below property should be in zynqmp-firmware node.
 - #power-domain-cells:	Number of cells in a PM domain specifier. Must be 1.

Power domain ID indexes are mentioned in
include/dt-bindings/power/xlnx-zynqmp-power.h.

-------
Example
-------

firmware {
	zynqmp_firmware: zynqmp-firmware {
		...
		#power-domain-cells = <1>;
		...
	};
};

sata {
	...
	power-domains = <&zynqmp_firmware 28>;
	...
};