From 754fde432ac5c0dfb64eb0104db55bd2f5f90eb9 Mon Sep 17 00:00:00 2001 From: Nikita Shubin Date: Tue, 2 May 2023 11:16:37 +0300 Subject: [PATCH] fixup! dt-bindings: pwm: Add DT bindings ep93xx PWM --- .../bindings/pwm/cirrus,ep9301-pwm.yaml | 48 +++++++++++++++++++ .../bindings/pwm/cirrus,ep93xx-pwm.yaml | 45 ----------------- 2 files changed, 48 insertions(+), 45 deletions(-) create mode 100644 Documentation/devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml delete mode 100644 Documentation/devicetree/bindings/pwm/cirrus,ep93xx-pwm.yaml diff --git a/Documentation/devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml b/Documentation/devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml new file mode 100644 index 0000000000000..788d1ba13b1bd --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/cirrus,ep9301-pwm.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/cirrus,ep9301-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logick ep93xx PWM controller + +maintainers: + - Alexander Sverdlin + - Nikita Shubin + +properties: + compatible: + oneOf: + - const: cirrus,ep9301-pwm + - items: + - enum: + - cirrus,ep9302-pwm + - cirrus,ep9307-pwm + - cirrus,ep9312-pwm + - cirrus,ep9315-pwm + - const: cirrus,ep9301-pwm + + reg: + maxItems: 1 + + clocks: + items: + - description: SoC PWM clock + +required: + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + #include + pwm@80910000 { + compatible = "cirrus,ep9301-pwm"; + reg = <0x80910000 0x10>; + clocks = <&syscon EP93XX_CLK_PWM>; + }; + +... diff --git a/Documentation/devicetree/bindings/pwm/cirrus,ep93xx-pwm.yaml b/Documentation/devicetree/bindings/pwm/cirrus,ep93xx-pwm.yaml deleted file mode 100644 index 8f67eb152f8b6..0000000000000 --- a/Documentation/devicetree/bindings/pwm/cirrus,ep93xx-pwm.yaml +++ /dev/null @@ -1,45 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/pwm/cirrus,ep93xx-pwm.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Cirrus Logick ep93xx PWM controller - -maintainers: - - Thierry Reding - -properties: - compatible: - enum: - - cirrus,ep9301-pwm - reg: - maxItems: 1 - - clocks: - items: - - description: SoC PWM clock - - clock-names: - items: - - const: pwm_clk - -required: - - compatible - - reg - - clocks - - clock-names - -additionalProperties: false - -examples: - - | - #include - pwm0: pwm@80910000 { - compatible = "cirrus,ep9301-pwm"; - reg = <0x80910000 0x10>; - clocks = <&syscon EP93XX_CLK_PWM>; - clock-names = "pwm_clk"; - }; - -... -- 2.30.2