Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: pwm: brcm,iproc-pwm: convert to the json-schema

This helps validating DTS files.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Link: https://lore.kernel.org/r/20210512160253.15000-1-zajec5@gmail.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Rafał Miłecki and committed by
Rob Herring
bb63744b d0413118

+45 -21
-21
Documentation/devicetree/bindings/pwm/brcm,iproc-pwm.txt
··· 1 - Broadcom iProc PWM controller device tree bindings 2 - 3 - This controller has 4 channels. 4 - 5 - Required Properties : 6 - - compatible: must be "brcm,iproc-pwm" 7 - - reg: physical base address and length of the controller's registers 8 - - clocks: phandle + clock specifier pair for the external clock 9 - - #pwm-cells: Should be 3. See pwm.yaml in this directory for a 10 - description of the cells format. 11 - 12 - Refer to clocks/clock-bindings.txt for generic clock consumer properties. 13 - 14 - Example: 15 - 16 - pwm: pwm@18031000 { 17 - compatible = "brcm,iproc-pwm"; 18 - reg = <0x18031000 0x28>; 19 - clocks = <&osc>; 20 - #pwm-cells = <3>; 21 - };
+45
Documentation/devicetree/bindings/pwm/brcm,iproc-pwm.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/pwm/brcm,iproc-pwm.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom iProc PWM controller 8 + 9 + maintainers: 10 + - Rafał Miłecki <rafal@milecki.pl> 11 + 12 + description: 13 + This controller has 4 channels. 14 + 15 + allOf: 16 + - $ref: pwm.yaml# 17 + 18 + properties: 19 + compatible: 20 + const: brcm,iproc-pwm 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + clocks: 26 + description: external clock 27 + maxItems: 1 28 + 29 + "#pwm-cells": 30 + const: 3 31 + 32 + unevaluatedProperties: false 33 + 34 + required: 35 + - reg 36 + - clocks 37 + 38 + examples: 39 + - | 40 + pwm@18031000 { 41 + compatible = "brcm,iproc-pwm"; 42 + reg = <0x18031000 0x28>; 43 + clocks = <&osc>; 44 + #pwm-cells = <3>; 45 + };