Debian Codegraph @

Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.yaml

raw
1 # SPDX-License-Identifier: GPL-2.0-only
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/spmi/qcom,spmi-pmic-arb.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Qualcomm SPMI Controller (PMIC Arbiter)
8
9 maintainers:
10 - Stephen Boyd <[email protected]>
11
12 description: |
13 The SPMI PMIC Arbiter is found on Snapdragon chipsets. It is an SPMI
14 controller with wrapping arbitration logic to allow for multiple on-chip
15 devices to control a single SPMI master.
16
17 The PMIC Arbiter can also act as an interrupt controller, providing interrupts
18 to slave devices.
19
20 allOf:
21 - $ref: spmi.yaml
22 - $ref: qcom,spmi-pmic-arb-common.yaml
23
24 properties:
25 compatible:
26 const: qcom,spmi-pmic-arb
27
28 reg:
29 oneOf:
30 - items: # V1
31 - description: core registers
32 - description: interrupt controller registers
33 - description: configuration registers
34 - items: # V2
35 - description: core registers
36 - description: tx-channel per virtual slave regosters
37 - description: rx-channel (called observer) per virtual slave registers
38 - description: interrupt controller registers
39 - description: configuration registers
40
41 reg-names:
42 oneOf:
43 - items:
44 - const: core
45 - const: intr
46 - const: cnfg
47 - items:
48 - const: core
49 - const: chnls
50 - const: obsrvr
51 - const: intr
52 - const: cnfg
53
54 interrupts:
55 maxItems: 1
56
57 interrupt-names:
58 const: periph_irq
59
60 interrupt-controller: true
61
62 '#address-cells': true
63
64 '#interrupt-cells':
65 const: 4
66 description: |
67 cell 1: slave ID for the requested interrupt (0-15)
68 cell 2: peripheral ID for requested interrupt (0-255)
69 cell 3: the requested peripheral interrupt (0-7)
70 cell 4: interrupt flags indicating level-sense information,
71 as defined in dt-bindings/interrupt-controller/irq.h
72
73 '#size-cells': true
74
75 qcom,bus-id:
76 $ref: /schemas/types.yaml#/definitions/uint32
77 minimum: 0
78 maximum: 1
79 description: >
80 SPMI bus instance. only applicable to PMIC arbiter version 7 and beyond.
81 Supported values, 0 = primary bus, 1 = secondary bus
82 deprecated: true
83
84 required:
85 - compatible
86 - reg-names
87
88 unevaluatedProperties: false
89
90 examples:
91 - |
92 spmi@fc4cf000 {
93 compatible = "qcom,spmi-pmic-arb";
94 reg-names = "core", "intr", "cnfg";
95 reg = <0xfc4cf000 0x1000>,
96 <0xfc4cb000 0x1000>,
97 <0xfc4ca000 0x1000>;
98
99 interrupt-names = "periph_irq";
100 interrupts = <0 190 0>;
101
102 qcom,ee = <0>;
103 qcom,channel = <0>;
104
105 #address-cells = <2>;
106 #size-cells = <0>;
107
108 interrupt-controller;
109 #interrupt-cells = <4>;
110
111 qcom,bus-id = <0>;
112 };
113