[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250527171504.346696-2-u.kleine-koenig@baylibre.com>
Date: Tue, 27 May 2025 19:15:02 +0200
From: Uwe Kleine-König <u.kleine-koenig@...libre.com>
To: Daniel Lezcano <daniel.lezcano@...aro.org>,
Thomas Gleixner <tglx@...utronix.de>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Sean Anderson <sean.anderson@...o.com>
Cc: linux-kernel@...r.kernel.org,
linux-pwm@...r.kernel.org,
devicetree@...r.kernel.org
Subject: [PATCH] dt-bindings: timer: xlnx,xps-timer: Make PWM in example usable
With #pwm-cells = <0> no usable reference to that PWM can be created.
Even though a xlnx,xps-timer device only provides a single PWM line, Linux
would fail to determine the right (pwmchip, pwmnumber) combination.
Fix the example to use the recommended value 3 for #pwm-cells.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@...libre.com>
---
Documentation/devicetree/bindings/timer/xlnx,xps-timer.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/timer/xlnx,xps-timer.yaml b/Documentation/devicetree/bindings/timer/xlnx,xps-timer.yaml
index b1597db04263..d36cbf0efbd6 100644
--- a/Documentation/devicetree/bindings/timer/xlnx,xps-timer.yaml
+++ b/Documentation/devicetree/bindings/timer/xlnx,xps-timer.yaml
@@ -82,7 +82,7 @@ examples:
};
timer@...f0000 {
- #pwm-cells = <0>;
+ #pwm-cells = <3>;
clock-names = "s_axi_aclk";
clocks = <&zynqmp_clk 71>;
compatible = "xlnx,xps-timer-1.00.a";
base-commit: 0ff41df1cb268fc69e703a08a57ee14ae967d0ca
--
2.47.2
Powered by blists - more mailing lists