* [PATCH v2 1/4] dt-bindings: firmware: xilinx: Describe missing child nodes
2023-12-20 10:00 [PATCH v2 0/4] dt-bindings: xilinx: Add missing firmware child nodes Michal Simek
@ 2023-12-20 10:00 ` Michal Simek
2023-12-21 9:17 ` Krzysztof Kozlowski
2023-12-20 10:00 ` [PATCH v2 2/4] dt-bindings: firmware: xilinx: Sort node names (clock-controller) Michal Simek
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Michal Simek @ 2023-12-20 10:00 UTC (permalink / raw)
To: linux-kernel, monstr, michal.simek, git
Cc: Conor Dooley, Jassi Brar, Krzysztof Kozlowski, Mark Brown,
Naman Trivedi Manojbhai, Rob Herring, devicetree, kishore Manne,
linux-arm-kernel
Firmware node has more than fpga, aes and clock child nodes but also power,
reset, gpio, pinctrl and pcap which are not described yet.
All of them have binding in separate files but there is missing connection
to firmware node that's why describe it.
Signed-off-by: Michal Simek <michal.simek@amd.com>
---
Changes in v2:
- Sort nodes by name
- Rename zynqmp-power to power-controller
- Keep only single patch for easier handling as done in v1
.../firmware/xilinx/xlnx,zynqmp-firmware.yaml | 31 +++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
index 98945220c33c..310c334e88a2 100644
--- a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
+++ b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
@@ -41,6 +41,37 @@ properties:
"#power-domain-cells":
const: 1
+ gpio:
+ $ref: /schemas/gpio/xlnx,zynqmp-gpio-modepin.yaml#
+ description: The gpio node describes connect to PS_MODE pins via firmware
+ interface.
+ type: object
+
+ pcap:
+ $ref: /schemas/fpga/xlnx,zynqmp-pcap-fpga.yaml
+ description: The ZynqMP SoC uses the PCAP (Processor Configuration Port) to
+ configure the Programmable Logic (PL). The configuration uses the
+ firmware interface.
+ type: object
+
+ pinctrl:
+ $ref: /schemas/pinctrl/xlnx,zynqmp-pinctrl.yaml#
+ description: The pinctrl node provides access to pinconfig and pincontrol
+ functionality available in firmware.
+ type: object
+
+ power-controller:
+ $ref: /schemas/power/reset/xlnx,zynqmp-power.yaml#
+ description: The zynqmp-power node describes the power management
+ configurations. It will control remote suspend/shutdown interfaces.
+ type: object
+
+ reset-controller:
+ $ref: /schemas/reset/xlnx,zynqmp-reset.yaml#
+ description: The reset-controller node describes connection to the reset
+ functionality via firmware interface.
+ type: object
+
versal-fpga:
$ref: /schemas/fpga/xlnx,versal-fpga.yaml#
description: Compatible of the FPGA device.
--
2.36.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH v2 1/4] dt-bindings: firmware: xilinx: Describe missing child nodes
2023-12-20 10:00 ` [PATCH v2 1/4] dt-bindings: firmware: xilinx: Describe missing " Michal Simek
@ 2023-12-21 9:17 ` Krzysztof Kozlowski
0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2023-12-21 9:17 UTC (permalink / raw)
To: Michal Simek, linux-kernel, monstr, michal.simek, git
Cc: Conor Dooley, Jassi Brar, Krzysztof Kozlowski, Mark Brown,
Naman Trivedi Manojbhai, Rob Herring, devicetree, kishore Manne,
linux-arm-kernel
On 20/12/2023 11:00, Michal Simek wrote:
> + gpio:
> + $ref: /schemas/gpio/xlnx,zynqmp-gpio-modepin.yaml#
> + description: The gpio node describes connect to PS_MODE pins via firmware
> + interface.
> + type: object
> +
> + pcap:
> + $ref: /schemas/fpga/xlnx,zynqmp-pcap-fpga.yaml
> + description: The ZynqMP SoC uses the PCAP (Processor Configuration Port) to
> + configure the Programmable Logic (PL). The configuration uses the
> + firmware interface.
> + type: object
> +
> + pinctrl:
> + $ref: /schemas/pinctrl/xlnx,zynqmp-pinctrl.yaml#
> + description: The pinctrl node provides access to pinconfig and pincontrol
> + functionality available in firmware.
> + type: object
> +
> + power-controller:
> + $ref: /schemas/power/reset/xlnx,zynqmp-power.yaml#
This should be "power-controller" only if it is a power domain provider.
Is it? Bot's report suggest it is not, therefore I suggested
power-management.
Also, please extend the example. The top-level example for complex
devices should be complete. Apologies for not bringing it earlier.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 2/4] dt-bindings: firmware: xilinx: Sort node names (clock-controller)
2023-12-20 10:00 [PATCH v2 0/4] dt-bindings: xilinx: Add missing firmware child nodes Michal Simek
2023-12-20 10:00 ` [PATCH v2 1/4] dt-bindings: firmware: xilinx: Describe missing " Michal Simek
@ 2023-12-20 10:00 ` Michal Simek
2023-12-21 9:17 ` Krzysztof Kozlowski
2023-12-20 10:00 ` [PATCH v2 3/4] dt-bindings: power: reset: xilinx: Rename node names in examples Michal Simek
2023-12-20 10:00 ` [PATCH v2 4/4] arm64: zynqmp: Rename zynqmp-power node to power-controller Michal Simek
3 siblings, 1 reply; 8+ messages in thread
From: Michal Simek @ 2023-12-20 10:00 UTC (permalink / raw)
To: linux-kernel, monstr, michal.simek, git
Cc: Conor Dooley, Damien Le Moal, Jassi Brar, Krzysztof Kozlowski,
Naman Trivedi Manojbhai, Rob Herring, Sebastian Reichel,
devicetree, kishore Manne, linux-arm-kernel
Nodes should be sorted that's why move clock-controller to the top of list.
Signed-off-by: Michal Simek <michal.simek@amd.com>
---
Changes in v2:
- New patch in series
.../firmware/xilinx/xlnx,zynqmp-firmware.yaml | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
index 310c334e88a2..d64033140c53 100644
--- a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
+++ b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml
@@ -41,6 +41,15 @@ properties:
"#power-domain-cells":
const: 1
+ clock-controller:
+ $ref: /schemas/clock/xlnx,versal-clk.yaml#
+ description: The clock controller is a hardware block of Xilinx versal
+ clock tree. It reads required input clock frequencies from the devicetree
+ and acts as clock provider for all clock consumers of PS clocks.list of
+ clock specifiers which are external input clocks to the given clock
+ controller.
+ type: object
+
gpio:
$ref: /schemas/gpio/xlnx,zynqmp-gpio-modepin.yaml#
description: The gpio node describes connect to PS_MODE pins via firmware
@@ -84,15 +93,6 @@ properties:
vector.
type: object
- clock-controller:
- $ref: /schemas/clock/xlnx,versal-clk.yaml#
- description: The clock controller is a hardware block of Xilinx versal
- clock tree. It reads required input clock frequencies from the devicetree
- and acts as clock provider for all clock consumers of PS clocks.list of
- clock specifiers which are external input clocks to the given clock
- controller.
- type: object
-
required:
- compatible
--
2.36.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH v2 2/4] dt-bindings: firmware: xilinx: Sort node names (clock-controller)
2023-12-20 10:00 ` [PATCH v2 2/4] dt-bindings: firmware: xilinx: Sort node names (clock-controller) Michal Simek
@ 2023-12-21 9:17 ` Krzysztof Kozlowski
0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2023-12-21 9:17 UTC (permalink / raw)
To: Michal Simek, linux-kernel, monstr, michal.simek, git
Cc: Conor Dooley, Damien Le Moal, Jassi Brar, Krzysztof Kozlowski,
Naman Trivedi Manojbhai, Rob Herring, Sebastian Reichel,
devicetree, kishore Manne, linux-arm-kernel
On 20/12/2023 11:00, Michal Simek wrote:
> Nodes should be sorted that's why move clock-controller to the top of list.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
> Changes in v2:
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 3/4] dt-bindings: power: reset: xilinx: Rename node names in examples
2023-12-20 10:00 [PATCH v2 0/4] dt-bindings: xilinx: Add missing firmware child nodes Michal Simek
2023-12-20 10:00 ` [PATCH v2 1/4] dt-bindings: firmware: xilinx: Describe missing " Michal Simek
2023-12-20 10:00 ` [PATCH v2 2/4] dt-bindings: firmware: xilinx: Sort node names (clock-controller) Michal Simek
@ 2023-12-20 10:00 ` Michal Simek
2023-12-20 11:35 ` Rob Herring
2023-12-20 10:00 ` [PATCH v2 4/4] arm64: zynqmp: Rename zynqmp-power node to power-controller Michal Simek
3 siblings, 1 reply; 8+ messages in thread
From: Michal Simek @ 2023-12-20 10:00 UTC (permalink / raw)
To: linux-kernel, monstr, michal.simek, git
Cc: Conor Dooley, Krzysztof Kozlowski, Rob Herring, Sebastian Reichel,
devicetree, linux-arm-kernel, linux-pm
Rename zynqmp-power node name to power-controller which is more aligned
with generic node name recommendation.
Signed-off-by: Michal Simek <michal.simek@amd.com>
---
Changes in v2:
- New patch is series
.../devicetree/bindings/power/reset/xlnx,zynqmp-power.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.yaml b/Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.yaml
index 45792e216981..3484be1c89d3 100644
--- a/Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.yaml
+++ b/Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.yaml
@@ -57,7 +57,7 @@ examples:
firmware {
zynqmp-firmware {
- zynqmp-power {
+ power-controller {
compatible = "xlnx,zynqmp-power";
interrupts = <0 35 4>;
};
@@ -70,7 +70,7 @@ examples:
firmware {
zynqmp-firmware {
- zynqmp-power {
+ power-controller {
compatible = "xlnx,zynqmp-power";
interrupt-parent = <&gic>;
interrupts = <0 35 4>;
--
2.36.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH v2 3/4] dt-bindings: power: reset: xilinx: Rename node names in examples
2023-12-20 10:00 ` [PATCH v2 3/4] dt-bindings: power: reset: xilinx: Rename node names in examples Michal Simek
@ 2023-12-20 11:35 ` Rob Herring
0 siblings, 0 replies; 8+ messages in thread
From: Rob Herring @ 2023-12-20 11:35 UTC (permalink / raw)
To: Michal Simek
Cc: Sebastian Reichel, Rob Herring, devicetree, Conor Dooley,
linux-pm, monstr, linux-kernel, michal.simek, linux-arm-kernel,
git, Krzysztof Kozlowski
On Wed, 20 Dec 2023 11:00:29 +0100, Michal Simek wrote:
> Rename zynqmp-power node name to power-controller which is more aligned
> with generic node name recommendation.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
> Changes in v2:
> - New patch is series
>
> .../devicetree/bindings/power/reset/xlnx,zynqmp-power.yaml | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.example.dtb: power-controller: '#power-domain-cells' is a required property
from schema $id: http://devicetree.org/schemas/power/power-domain.yaml#
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.example.dtb: power-controller: '#power-domain-cells' is a required property
from schema $id: http://devicetree.org/schemas/power/power-domain.yaml#
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/26aa3459310ba4624ccb5865ca32017357591e4d.1703066422.git.michal.simek@amd.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v2 4/4] arm64: zynqmp: Rename zynqmp-power node to power-controller
2023-12-20 10:00 [PATCH v2 0/4] dt-bindings: xilinx: Add missing firmware child nodes Michal Simek
` (2 preceding siblings ...)
2023-12-20 10:00 ` [PATCH v2 3/4] dt-bindings: power: reset: xilinx: Rename node names in examples Michal Simek
@ 2023-12-20 10:00 ` Michal Simek
3 siblings, 0 replies; 8+ messages in thread
From: Michal Simek @ 2023-12-20 10:00 UTC (permalink / raw)
To: linux-kernel, monstr, michal.simek, git
Cc: Conor Dooley, Krzysztof Kozlowski, Laurent Pinchart, Parth Gajjar,
Radhey Shyam Pandey, Rob Herring, devicetree, linux-arm-kernel
Rename zynqmp-power node name to power-controller which is more aligned
with generic node name recommendation.
Signed-off-by: Michal Simek <michal.simek@amd.com>
---
Changes in v2:
- New patch is series
arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
index eaba466804bc..b1bac486c3f7 100644
--- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
+++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
@@ -186,7 +186,7 @@ zynqmp_firmware: zynqmp-firmware {
method = "smc";
bootph-all;
- zynqmp_power: zynqmp-power {
+ zynqmp_power: power-controller {
bootph-all;
compatible = "xlnx,zynqmp-power";
interrupt-parent = <&gic>;
--
2.36.1
^ permalink raw reply related [flat|nested] 8+ messages in thread