* [PATCH v3] dt-bindings: gpio: gpio-xilinx: Mark clocks as required property
@ 2025-06-16 7:43 Michal Simek
2025-06-16 8:07 ` Krzysztof Kozlowski
2025-06-17 9:14 ` Bartosz Golaszewski
0 siblings, 2 replies; 3+ messages in thread
From: Michal Simek @ 2025-06-16 7:43 UTC (permalink / raw)
To: linux-kernel, monstr, michal.simek, git
Cc: Xu Yilun, Bartosz Golaszewski, Conor Dooley, Krzysztof Kozlowski,
Linus Walleij, Moritz Fischer, Rob Herring, Shubhrajyoti Datta,
Srinivas Neeli, Tom Rix, Wu Hao,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/ZYNQ ARCHITECTURE,
open list:FPGA MANAGER FRAMEWORK, open list:GPIO SUBSYSTEM
On Microblaze platforms there is no need to handle clocks because the
system is starting with clocks enabled (can be described via fixed clock
node or clock-frequency property or not described at all).
With using soft IPs with SOC platforms there is mandatory to handle clocks
as is explained in commit 60dbdc6e08d6 ("dt-bindings: net: emaclite: Add
clock support").
That's why make clock as required in dt binding because it is present in
both configurations and should be described even there is no way how to
handle it on Microblaze systems.
There is also need to describe missing axi gpio clock in fpga-region.yaml
not to introduce new error when make dt_binding_check runs.
Signed-off-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Xu Yilun <yilun.xu@intel.com> # fpga
---
Changes in v3:
- Squash 2 patches from series 2 together and update commit to cover it.
Changes in v2:
- Add fpga region patch to fix issue which was introduces by this change
- New patch to fix reported as issue by the second patch
- https://lore.kernel.org/r/174954437576.4177094.15371626866789542129.robh@kernel.org
Based on discussion at
https://lore.kernel.org/lkml/20241002-revivable-crummy-f780adec538c@spud/
Actually this shouldn't be only targetting GPIO but also for example
xlnx,xps-timebase-wdt-1.00.a but I would like to check it first on gpio
before starting to check other bindings.
---
Documentation/devicetree/bindings/fpga/fpga-region.yaml | 1 +
Documentation/devicetree/bindings/gpio/xlnx,gpio-xilinx.yaml | 1 +
2 files changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/fpga/fpga-region.yaml b/Documentation/devicetree/bindings/fpga/fpga-region.yaml
index 77554885a6c4..7d2d3b7aa4b7 100644
--- a/Documentation/devicetree/bindings/fpga/fpga-region.yaml
+++ b/Documentation/devicetree/bindings/fpga/fpga-region.yaml
@@ -316,6 +316,7 @@ examples:
reg = <0x40000000 0x10000>;
gpio-controller;
#gpio-cells = <2>;
+ clocks = <&clk>;
};
};
diff --git a/Documentation/devicetree/bindings/gpio/xlnx,gpio-xilinx.yaml b/Documentation/devicetree/bindings/gpio/xlnx,gpio-xilinx.yaml
index 8fbf12ca067e..7af4eb2d1858 100644
--- a/Documentation/devicetree/bindings/gpio/xlnx,gpio-xilinx.yaml
+++ b/Documentation/devicetree/bindings/gpio/xlnx,gpio-xilinx.yaml
@@ -117,6 +117,7 @@ properties:
required:
- reg
- compatible
+ - clocks
- gpio-controller
- "#gpio-cells"
--
2.43.0
base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3] dt-bindings: gpio: gpio-xilinx: Mark clocks as required property
2025-06-16 7:43 [PATCH v3] dt-bindings: gpio: gpio-xilinx: Mark clocks as required property Michal Simek
@ 2025-06-16 8:07 ` Krzysztof Kozlowski
2025-06-17 9:14 ` Bartosz Golaszewski
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-06-16 8:07 UTC (permalink / raw)
To: Michal Simek, linux-kernel, monstr, michal.simek, git
Cc: Xu Yilun, Bartosz Golaszewski, Conor Dooley, Krzysztof Kozlowski,
Linus Walleij, Moritz Fischer, Rob Herring, Shubhrajyoti Datta,
Srinivas Neeli, Tom Rix, Wu Hao,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/ZYNQ ARCHITECTURE,
open list:FPGA MANAGER FRAMEWORK, open list:GPIO SUBSYSTEM
On 16/06/2025 09:43, Michal Simek wrote:
> On Microblaze platforms there is no need to handle clocks because the
> system is starting with clocks enabled (can be described via fixed clock
> node or clock-frequency property or not described at all).
> With using soft IPs with SOC platforms there is mandatory to handle clocks
> as is explained in commit 60dbdc6e08d6 ("dt-bindings: net: emaclite: Add
> clock support").
> That's why make clock as required in dt binding because it is present in
> both configurations and should be described even there is no way how to
> handle it on Microblaze systems.
>
> There is also need to describe missing axi gpio clock in fpga-region.yaml
> not to introduce new error when make dt_binding_check runs.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> Reviewed-by: Xu Yilun <yilun.xu@intel.com> # fpga
> ---
>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3] dt-bindings: gpio: gpio-xilinx: Mark clocks as required property
2025-06-16 7:43 [PATCH v3] dt-bindings: gpio: gpio-xilinx: Mark clocks as required property Michal Simek
2025-06-16 8:07 ` Krzysztof Kozlowski
@ 2025-06-17 9:14 ` Bartosz Golaszewski
1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2025-06-17 9:14 UTC (permalink / raw)
To: linux-kernel, monstr, git, Michal Simek
Cc: Bartosz Golaszewski, Xu Yilun, Bartosz Golaszewski, Conor Dooley,
Krzysztof Kozlowski, Linus Walleij, Moritz Fischer, Rob Herring,
Shubhrajyoti Datta, Srinivas Neeli, Tom Rix, Wu Hao,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/ZYNQ ARCHITECTURE,
open list:FPGA MANAGER FRAMEWORK, open list:GPIO SUBSYSTEM
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
On Mon, 16 Jun 2025 09:43:18 +0200, Michal Simek wrote:
> On Microblaze platforms there is no need to handle clocks because the
> system is starting with clocks enabled (can be described via fixed clock
> node or clock-frequency property or not described at all).
> With using soft IPs with SOC platforms there is mandatory to handle clocks
> as is explained in commit 60dbdc6e08d6 ("dt-bindings: net: emaclite: Add
> clock support").
> That's why make clock as required in dt binding because it is present in
> both configurations and should be described even there is no way how to
> handle it on Microblaze systems.
>
> [...]
Applied, thanks!
[1/1] dt-bindings: gpio: gpio-xilinx: Mark clocks as required property
https://git.kernel.org/brgl/linux/c/d03b53c9139352b744ed007bf562bd35517bacff
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-17 9:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-16 7:43 [PATCH v3] dt-bindings: gpio: gpio-xilinx: Mark clocks as required property Michal Simek
2025-06-16 8:07 ` Krzysztof Kozlowski
2025-06-17 9:14 ` Bartosz Golaszewski
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).