1# Copyright (c) 2021, Telink Semiconductor 2# SPDX-License-Identifier: Apache-2.0 3 4 5description: Telink B91 PWM 6 7include: [pwm-controller.yaml, pinctrl-device.yaml, base.yaml] 8 9compatible: "telink,b91-pwm" 10 11properties: 12 13 pinctrl-0: 14 required: true 15 16 clock-frequency: 17 type: int 18 required: true 19 description: Default PWM Peripheral Clock frequency in Hz (is used if 32K Clock is disabled) 20 21 clk32k-ch0-enable: 22 type: boolean 23 description: Enable 32K Source Clock for PWM Channel 0 24 25 clk32k-ch1-enable: 26 type: boolean 27 description: Enable 32K Source Clock for PWM Channel 1 28 29 clk32k-ch2-enable: 30 type: boolean 31 description: Enable 32K Source Clock for PWM Channel 2 32 33 clk32k-ch3-enable: 34 type: boolean 35 description: Enable 32K Source Clock for PWM Channel 3 36 37 clk32k-ch4-enable: 38 type: boolean 39 description: Enable 32K Source Clock for PWM Channel 4 40 41 clk32k-ch5-enable: 42 type: boolean 43 description: Enable 32K Source Clock for PWM Channel 5 44 45 channels: 46 type: int 47 const: 6 48 required: true 49 description: Number of channels this PWM has 50 51 reg: 52 required: true 53 54 "#pwm-cells": 55 const: 3 56 57pwm-cells: 58 - channel 59 - period 60 - flags 61