1# Copyright (c) 2020 Google LLC. 2# SPDX-License-Identifier: Apache-2.0 3 4description: Atmel SAM0 TCC in PWM mode 5 6compatible: "atmel,sam0-tcc-pwm" 7 8include: 9 - name: base.yaml 10 - name: pwm-controller.yaml 11 - name: pinctrl-device.yaml 12 13properties: 14 reg: 15 required: true 16 17 interrupts: 18 required: true 19 20 clocks: 21 required: true 22 23 clock-names: 24 required: true 25 26 channels: 27 type: int 28 required: true 29 description: Number of channels this TCC has 30 enum: 31 - 2 32 - 3 33 - 4 34 - 6 35 36 counter-size: 37 type: int 38 required: true 39 description: Width of the TCC counter in bits 40 enum: 41 - 16 42 - 24 43 44 prescaler: 45 type: int 46 required: true 47 description: PWM prescaler 48 enum: 49 - 1 50 - 2 51 - 4 52 - 8 53 - 16 54 - 64 55 - 256 56 - 1024 57 58 "#pwm-cells": 59 const: 2 60 61pwm-cells: 62 - channel 63 - period 64