2018-07-31 18:31:44 +02:00
|
|
|
# Copyright (c) 2018, SiFive Inc.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2019-06-19 00:03:49 +02:00
|
|
|
|
2019-11-19 08:39:11 +01:00
|
|
|
description: SiFive PWM
|
2018-07-31 18:31:44 +02:00
|
|
|
|
2019-08-19 20:32:25 +02:00
|
|
|
compatible: "sifive,pwm0"
|
|
|
|
|
2022-03-22 09:38:57 +01:00
|
|
|
include: [pwm-controller.yaml, pinctrl-device.yaml, base.yaml]
|
2018-07-31 18:31:44 +02:00
|
|
|
|
|
|
|
properties:
|
2023-01-03 20:21:25 +01:00
|
|
|
reg:
|
|
|
|
required: true
|
2018-07-31 18:31:44 +02:00
|
|
|
|
2023-01-03 20:21:25 +01:00
|
|
|
interrupts:
|
|
|
|
required: true
|
2018-07-31 18:31:44 +02:00
|
|
|
|
2023-01-03 20:21:25 +01:00
|
|
|
sifive,compare-width:
|
|
|
|
type: int
|
|
|
|
required: true
|
|
|
|
description: Width of the PWM comparator in bits
|
2018-11-21 23:19:47 +01:00
|
|
|
|
2023-01-03 20:21:25 +01:00
|
|
|
"#pwm-cells":
|
|
|
|
const: 2
|
2019-08-09 21:54:26 +02:00
|
|
|
|
2019-09-26 20:34:13 +02:00
|
|
|
pwm-cells:
|
2018-11-01 21:20:05 +01:00
|
|
|
- channel
|
2023-01-03 13:38:35 +01:00
|
|
|
# period in terms of nanoseconds
|
2018-11-01 21:20:05 +01:00
|
|
|
- period
|