Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Naman Trivedi Manojbhai <naman.trivedimanojbhai@amd.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230816130309.1338446-1-naman.trivedimanojbhai@amd.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Naman Trivedi Manojbhai and committed by
Rob Herring
de259b7b abe916c5

+14 -34
+14
Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
··· 38 38 - smc 39 39 - hvc 40 40 41 + "#power-domain-cells": 42 + const: 1 43 + 41 44 versal_fpga: 42 45 $ref: /schemas/fpga/xlnx,versal-fpga.yaml# 43 46 description: Compatible of the FPGA device. ··· 69 66 70 67 examples: 71 68 - | 69 + #include <dt-bindings/power/xlnx-zynqmp-power.h> 70 + firmware { 71 + zynqmp_firmware: zynqmp-firmware { 72 + #power-domain-cells = <1>; 73 + }; 74 + }; 75 + 76 + sata { 77 + power-domains = <&zynqmp_firmware PD_SATA>; 78 + }; 79 + 72 80 versal-firmware { 73 81 compatible = "xlnx,versal-firmware"; 74 82 method = "smc";
-34
Documentation/devicetree/bindings/power/xlnx,zynqmp-genpd.txt
··· 1 - ----------------------------------------------------------- 2 - Device Tree Bindings for the Xilinx Zynq MPSoC PM domains 3 - ----------------------------------------------------------- 4 - The binding for zynqmp-power-controller follow the common 5 - generic PM domain binding[1]. 6 - 7 - [1] Documentation/devicetree/bindings/power/power-domain.yaml 8 - 9 - == Zynq MPSoC Generic PM Domain Node == 10 - 11 - Required property: 12 - - Below property should be in zynqmp-firmware node. 13 - - #power-domain-cells: Number of cells in a PM domain specifier. Must be 1. 14 - 15 - Power domain ID indexes are mentioned in 16 - include/dt-bindings/power/xlnx-zynqmp-power.h. 17 - 18 - ------- 19 - Example 20 - ------- 21 - 22 - firmware { 23 - zynqmp_firmware: zynqmp-firmware { 24 - ... 25 - #power-domain-cells = <1>; 26 - ... 27 - }; 28 - }; 29 - 30 - sata { 31 - ... 32 - power-domains = <&zynqmp_firmware 28>; 33 - ... 34 - };