107 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/pwm/pwm-rockchip.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Rockchip PWM controller8 9maintainers:10 - Heiko Stuebner <heiko@sntech.de>11 12properties:13 compatible:14 oneOf:15 - const: rockchip,rk2928-pwm16 - const: rockchip,rk3288-pwm17 - const: rockchip,rk3328-pwm18 - const: rockchip,vop-pwm19 - items:20 - const: rockchip,rk3036-pwm21 - const: rockchip,rk2928-pwm22 - items:23 - enum:24 - rockchip,rk3128-pwm25 - rockchip,rk3368-pwm26 - rockchip,rk3399-pwm27 - rockchip,rv1108-pwm28 - const: rockchip,rk3288-pwm29 - items:30 - enum:31 - rockchip,px30-pwm32 - rockchip,rk3308-pwm33 - rockchip,rk3568-pwm34 - rockchip,rk3588-pwm35 - rockchip,rv1126-pwm36 - const: rockchip,rk3328-pwm37 38 reg:39 maxItems: 140 41 clocks:42 minItems: 143 maxItems: 244 45 clock-names:46 maxItems: 247 48 "#pwm-cells":49 enum: [2, 3]50 description:51 Must be 2 (rk2928) or 3 (rk3288 and later).52 See pwm.yaml for a description of the cell format.53 54required:55 - compatible56 - reg57 58allOf:59 - $ref: pwm.yaml#60 61 - if:62 properties:63 compatible:64 contains:65 enum:66 - rockchip,rk3328-pwm67 - rockchip,rv1108-pwm68 69 then:70 properties:71 clocks:72 items:73 - description: Used to derive the functional clock for the device.74 - description: Used as the APB bus clock.75 76 clock-names:77 items:78 - const: pwm79 - const: pclk80 81 required:82 - clocks83 - clock-names84 85 else:86 properties:87 clocks:88 maxItems: 189 description:90 Used both to derive the functional clock91 for the device and as the bus clock.92 93 required:94 - clocks95 96additionalProperties: false97 98examples:99 - |100 #include <dt-bindings/clock/rk3188-cru-common.h>101 pwm0: pwm@20030000 {102 compatible = "rockchip,rk2928-pwm";103 reg = <0x20030000 0x10>;104 clocks = <&cru PCLK_PWM01>;105 #pwm-cells = <2>;106 };107