summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/peci/nuvoton,npcm-peci.yaml
blob: 087e02a9ade3176d9bdb5b1ce5c5f6cfaa50652d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/peci/nuvoton,npcm-peci.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Nuvoton PECI Bus

maintainers:
  - Tomer Maimon <tmaimon77@gmail.com>

allOf:
  - $ref: peci-controller.yaml#

properties:
  compatible:
    enum:
      - nuvoton,npcm750-peci
      - nuvoton,npcm845-peci

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    description:
      Clock source for PECI controller. Should reference the APB clock.
    maxItems: 1

  cmd-timeout-ms:
    minimum: 1
    maximum: 1000
    default: 1000

required:
  - compatible
  - reg
  - interrupts
  - clocks

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    peci-controller@f0100000 {
      compatible = "nuvoton,npcm750-peci";
      reg = <0xf0100000 0x200>;
      interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
      clocks = <&clk NPCM7XX_CLK_APB3>;
      cmd-timeout-ms = <1000>;
    };
...