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:
|
|
|
|
reg:
|
2019-08-28 06:22:01 +08:00
|
|
|
required: true
|
2018-08-01 00:31:44 +08:00
|
|
|
|
|
|
|
interrupts:
|
2019-08-28 06:22:01 +08:00
|
|
|
required: true
|
2018-08-01 00:31:44 +08:00
|
|
|
|
2018-11-22 06:19:47 +08:00
|
|
|
sifive,compare-width:
|
|
|
|
type: int
|
2019-08-28 06:22:01 +08:00
|
|
|
required: true
|
2018-11-22 06:19:47 +08:00
|
|
|
description: Width of the PWM comparator in bits
|
|
|
|
|
2019-08-10 03:54:26 +08:00
|
|
|
"#pwm-cells":
|
|
|
|
const: 2
|
|
|
|
|
2019-09-27 02:34:13 +08:00
|
|
|
pwm-cells:
|
2018-11-02 04:20:05 +08:00
|
|
|
- channel
|
|
|
|
# period in terms of nanoseconds
|
|
|
|
- period
|