1# Copyright (c) 2019, Intel Corporation
2# SPDX-License-Identifier: Apache-2.0
3
4description: Microchip XEC PWM using BBLED hardware
5
6include: [pwm-controller.yaml, base.yaml, pinctrl-device.yaml]
7
8compatible: "microchip,xec-pwmbbled"
9
10properties:
11  reg:
12    required: true
13
14  interrupts:
15    required: true
16
17  girqs:
18    type: array
19    required: true
20    description: Array of pairs of GIRQ number and bit position
21
22  pcrs:
23    type: array
24    required: true
25    description: BBLED PCR register index and bit position
26
27  clock-select:
28    type: string
29    required: true
30    description: |
31      Clock source selection: 32 KHz is available in deep sleep.
32      - PWM_BBLED_CLK_AHB: Clock source is the PLL based AHB clock
33      - PWM_BBLED_CLK_32K: Clock source is the 32KHz domain
34    enum:
35      - "PWM_BBLED_CLK_32K"
36      - "PWM_BBLED_CLK_48M"
37
38  pinctrl-0:
39    required: true
40
41  pinctrl-names:
42    required: true
43
44  "#pwm-cells":
45    const: 3
46
47  enable-low-power-32k:
48    type: boolean
49    description: |
50      BBLED has two clock inputs.
51      - Main system clock (48MHz)
52      - 32KHz Core clock (32.768KHz)
53      When BBLED enter into Suspend state, 48MHz clock will be switched off by
54      PCR(Power, Clock and Reset) block. But 32KHz Core clock will be available to BBLED.
55      There may be a product requirement, either to blink (or) not blink LED in Suspend state.
56      Property "enable-low-power-32k" shall be used along with 32KHz clock to blink (or) not blink
57      the LED in Suspend state.
58
59pwm-cells:
60  - channel
61  - period
62  - flags
63