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: Convert atmel pwm to json-schema

Convert PWM binding for Atmel/Microchip SoCs to Device Tree Schema
format.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>

authored by

Sergiu Moga and committed by
Thierry Reding
1a406a38 bc1ce713

+43 -36
+42
Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + # Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries 3 + %YAML 1.2 4 + --- 5 + $id: http://devicetree.org/schemas/pwm/atmel,at91sam-pwm.yaml# 6 + $schema: http://devicetree.org/meta-schemas/core.yaml# 7 + 8 + title: Atmel/Microchip PWM controller 9 + 10 + maintainers: 11 + - Claudiu Beznea <claudiu.beznea@microchip.com> 12 + 13 + allOf: 14 + - $ref: "pwm.yaml#" 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - atmel,at91sam9rl-pwm 20 + - atmel,sama5d3-pwm 21 + - atmel,sama5d2-pwm 22 + - microchip,sam9x60-pwm 23 + 24 + reg: 25 + maxItems: 1 26 + 27 + "#pwm-cells": 28 + const: 3 29 + 30 + required: 31 + - compatible 32 + - reg 33 + 34 + unevaluatedProperties: false 35 + 36 + examples: 37 + - | 38 + pwm0: pwm@f8034000 { 39 + compatible = "atmel,at91sam9rl-pwm"; 40 + reg = <0xf8034000 0x400>; 41 + #pwm-cells = <3>; 42 + };
-35
Documentation/devicetree/bindings/pwm/atmel-pwm.txt
··· 1 - Atmel PWM controller 2 - 3 - Required properties: 4 - - compatible: should be one of: 5 - - "atmel,at91sam9rl-pwm" 6 - - "atmel,sama5d3-pwm" 7 - - "atmel,sama5d2-pwm" 8 - - "microchip,sam9x60-pwm" 9 - - reg: physical base address and length of the controller's registers 10 - - #pwm-cells: Should be 3. See pwm.yaml in this directory for a 11 - description of the cells format. 12 - 13 - Example: 14 - 15 - pwm0: pwm@f8034000 { 16 - compatible = "atmel,at91sam9rl-pwm"; 17 - reg = <0xf8034000 0x400>; 18 - #pwm-cells = <3>; 19 - }; 20 - 21 - pwmleds { 22 - compatible = "pwm-leds"; 23 - 24 - d1 { 25 - label = "d1"; 26 - pwms = <&pwm0 3 5000 0> 27 - max-brightness = <255>; 28 - }; 29 - 30 - d2 { 31 - label = "d2"; 32 - pwms = <&pwm0 1 5000 1> 33 - max-brightness = <255>; 34 - }; 35 - };
+1 -1
MAINTAINERS
··· 12959 12959 L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) 12960 12960 L: linux-pwm@vger.kernel.org 12961 12961 S: Supported 12962 - F: Documentation/devicetree/bindings/pwm/atmel-pwm.txt 12962 + F: Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml 12963 12963 F: drivers/pwm/pwm-atmel.c 12964 12964 12965 12965 MICROCHIP SAMA5D2-COMPATIBLE ADC DRIVER