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