mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
Generally at most 1 blank line is the standard style for DT schema files. Remove the few cases with more than 1 so that the yamllint check for this can be enabled. Acked-by: Lee Jones <lee@kernel.org> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> # remoteproc Acked-by: Georgi Djakov <djakov@kernel.org> Acked-by: Vinod Koul <vkoul@kernel.org> Acked-by: Andi Shyti <andi.shyti@kernel.org> Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Acked-by: Jonathan Cameron <jonathan.cameron@huawei.com> Acked-by: Philipp Zabel <p.zabel@pengutronix.de> Acked-by: Uwe Kleine-König <ukleinek@kernel.org> # for allwinner,sun4i-a10-pwm.yaml Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> # mtd Acked-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> Acked-by: Manivannan Sadhasivam <mani@kernel.org> # For PCI controller bindings Link: https://patch.msgid.link/20251023143957.2899600-1-robh@kernel.org Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
116 lines
2.3 KiB
YAML
116 lines
2.3 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/pwm/allwinner,sun4i-a10-pwm.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Allwinner A10 PWM
|
|
|
|
maintainers:
|
|
- Chen-Yu Tsai <wens@csie.org>
|
|
- Maxime Ripard <mripard@kernel.org>
|
|
|
|
properties:
|
|
"#pwm-cells":
|
|
const: 3
|
|
|
|
compatible:
|
|
oneOf:
|
|
- const: allwinner,sun4i-a10-pwm
|
|
- const: allwinner,sun5i-a10s-pwm
|
|
- const: allwinner,sun5i-a13-pwm
|
|
- const: allwinner,sun7i-a20-pwm
|
|
- const: allwinner,sun8i-h3-pwm
|
|
- items:
|
|
- const: allwinner,sun8i-a83t-pwm
|
|
- const: allwinner,sun8i-h3-pwm
|
|
- items:
|
|
- enum:
|
|
- allwinner,suniv-f1c100s-pwm
|
|
- allwinner,sun8i-v3s-pwm
|
|
- const: allwinner,sun7i-a20-pwm
|
|
- items:
|
|
- const: allwinner,sun50i-a64-pwm
|
|
- const: allwinner,sun5i-a13-pwm
|
|
- items:
|
|
- const: allwinner,sun50i-h5-pwm
|
|
- const: allwinner,sun5i-a13-pwm
|
|
- const: allwinner,sun50i-h6-pwm
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
minItems: 1
|
|
items:
|
|
- description: Module Clock
|
|
- description: Bus Clock
|
|
|
|
clock-names:
|
|
minItems: 1
|
|
items:
|
|
- const: mod
|
|
- const: bus
|
|
|
|
resets:
|
|
maxItems: 1
|
|
|
|
allOf:
|
|
- $ref: pwm.yaml#
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: allwinner,sun50i-h6-pwm
|
|
|
|
then:
|
|
properties:
|
|
clocks:
|
|
maxItems: 2
|
|
|
|
clock-names:
|
|
items:
|
|
- const: mod
|
|
- const: bus
|
|
|
|
required:
|
|
- clock-names
|
|
- resets
|
|
|
|
else:
|
|
properties:
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- clocks
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
pwm: pwm@1c20e00 {
|
|
compatible = "allwinner,sun7i-a20-pwm";
|
|
reg = <0x01c20e00 0xc>;
|
|
clocks = <&osc24M>;
|
|
#pwm-cells = <3>;
|
|
};
|
|
|
|
- |
|
|
#include <dt-bindings/clock/sun50i-h6-ccu.h>
|
|
#include <dt-bindings/reset/sun50i-h6-ccu.h>
|
|
|
|
pwm@300a000 {
|
|
compatible = "allwinner,sun50i-h6-pwm";
|
|
reg = <0x0300a000 0x400>;
|
|
clocks = <&osc24M>, <&ccu CLK_BUS_PWM>;
|
|
clock-names = "mod", "bus";
|
|
resets = <&ccu RST_BUS_PWM>;
|
|
#pwm-cells = <3>;
|
|
};
|
|
|
|
...
|