[PATCH 1/2] dt-bindings: pwm: adi,axi-pwmgen: Add compatible for v2 IP

From: Trevor Gamblin
Date: Thu Mar 14 2024 - 16:47:43 EST


This adds a compatible string for the AXI PWMGEN v2 IP block. This is
nearly identical to v1 other than updating the example to use v2.

Signed-off-by: Trevor Gamblin <tgamblin@xxxxxxxxxxxx>
---
Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml b/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
index 63461920a362..6b344c0e9a1b 100644
--- a/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
+++ b/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
@@ -21,7 +21,9 @@ allOf:

properties:
compatible:
- const: adi,axi-pwmgen-1.00.a
+ enum:
+ - adi,axi-pwmgen-1.00.a
+ - adi,axi-pwmgen-2.00.a

reg:
maxItems: 1
@@ -41,7 +43,7 @@ unevaluatedProperties: false
examples:
- |
pwm@44b00000 {
- compatible = "adi,axi-pwmgen-1.00.a";
+ compatible = "adi,axi-pwmgen-2.00.a";
reg = <0x44b00000 0x1000>;
clocks = <&spi_clk>;
#pwm-cells = <2>;
--
2.44.0