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
|
|
|
|
2018-07-31 18:31:44 +02:00
|
|
|
title: SiFive PWM
|
|
|
|
|
|
|
|
description: >
|
|
|
|
This binding gives a base representation of the SiFive PWM
|
|
|
|
|
|
|
|
inherits:
|
2019-08-09 16:03:06 +02:00
|
|
|
!include [pwm.yaml, base.yaml]
|
2018-07-31 18:31:44 +02:00
|
|
|
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
constraint: "sifive,pwm0"
|
|
|
|
|
2018-11-21 23:19:47 +01:00
|
|
|
clock-frequency:
|
|
|
|
type: int
|
|
|
|
category: optional
|
|
|
|
description: Clock frequency information for PWM operation
|
|
|
|
|
2018-07-31 18:31:44 +02:00
|
|
|
reg:
|
|
|
|
category: required
|
|
|
|
|
|
|
|
interrupts:
|
|
|
|
category: required
|
|
|
|
|
2018-11-21 23:19:47 +01:00
|
|
|
sifive,compare-width:
|
|
|
|
type: int
|
|
|
|
category: required
|
|
|
|
description: Width of the PWM comparator in bits
|
|
|
|
|
2018-11-01 21:20:05 +01:00
|
|
|
"#cells":
|
|
|
|
- channel
|
|
|
|
# period in terms of nanoseconds
|
|
|
|
- period
|