| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/spmi/qcom,x1e80100-spmi-pmic-arb.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Qualcomm X1E80100 SPMI Controller (PMIC Arbiter v7) |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Stephen Boyd <[email protected]> |
| 11 |
|
| 12 |
description: | |
| 13 |
The X1E80100 SPMI PMIC Arbiter implements HW version 7 and it's an SPMI |
| 14 |
controller with wrapping arbitration logic to allow for multiple on-chip |
| 15 |
devices to control up to 2 SPMI separate buses. |
| 16 |
|
| 17 |
The PMIC Arbiter can also act as an interrupt controller, providing interrupts |
| 18 |
to slave devices. |
| 19 |
|
| 20 |
allOf: |
| 21 |
- $ref: qcom,spmi-pmic-arb-common.yaml |
| 22 |
|
| 23 |
properties: |
| 24 |
compatible: |
| 25 |
oneOf: |
| 26 |
- items: |
| 27 |
- const: qcom,sar2130p-spmi-pmic-arb |
| 28 |
- const: qcom,x1e80100-spmi-pmic-arb |
| 29 |
- const: qcom,x1e80100-spmi-pmic-arb |
| 30 |
|
| 31 |
reg: |
| 32 |
items: |
| 33 |
- description: core registers |
| 34 |
- description: tx-channel per virtual slave registers |
| 35 |
- description: rx-channel (called observer) per virtual slave registers |
| 36 |
|
| 37 |
reg-names: |
| 38 |
items: |
| 39 |
- const: core |
| 40 |
- const: chnls |
| 41 |
- const: obsrvr |
| 42 |
|
| 43 |
ranges: true |
| 44 |
|
| 45 |
'#address-cells': |
| 46 |
const: 2 |
| 47 |
|
| 48 |
'#size-cells': |
| 49 |
const: 2 |
| 50 |
|
| 51 |
patternProperties: |
| 52 |
"^spmi@[a-f0-9]+$": |
| 53 |
type: object |
| 54 |
$ref: /schemas/spmi/spmi.yaml |
| 55 |
unevaluatedProperties: false |
| 56 |
|
| 57 |
properties: |
| 58 |
reg: |
| 59 |
items: |
| 60 |
- description: configuration registers |
| 61 |
- description: interrupt controller registers |
| 62 |
|
| 63 |
reg-names: |
| 64 |
items: |
| 65 |
- const: cnfg |
| 66 |
- const: intr |
| 67 |
|
| 68 |
interrupts: |
| 69 |
maxItems: 1 |
| 70 |
|
| 71 |
interrupt-names: |
| 72 |
const: periph_irq |
| 73 |
|
| 74 |
interrupt-controller: true |
| 75 |
|
| 76 |
'#interrupt-cells': |
| 77 |
const: 4 |
| 78 |
description: | |
| 79 |
cell 1: slave ID for the requested interrupt (0-15) |
| 80 |
cell 2: peripheral ID for requested interrupt (0-255) |
| 81 |
cell 3: the requested peripheral interrupt (0-7) |
| 82 |
cell 4: interrupt flags indicating level-sense information, |
| 83 |
as defined in dt-bindings/interrupt-controller/irq.h |
| 84 |
|
| 85 |
required: |
| 86 |
- compatible |
| 87 |
- reg-names |
| 88 |
|
| 89 |
unevaluatedProperties: false |
| 90 |
|
| 91 |
examples: |
| 92 |
- | |
| 93 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 94 |
|
| 95 |
soc { |
| 96 |
#address-cells = <2>; |
| 97 |
#size-cells = <2>; |
| 98 |
|
| 99 |
spmi: arbiter@c400000 { |
| 100 |
compatible = "qcom,x1e80100-spmi-pmic-arb"; |
| 101 |
reg = <0 0x0c400000 0 0x3000>, |
| 102 |
<0 0x0c500000 0 0x4000000>, |
| 103 |
<0 0x0c440000 0 0x80000>; |
| 104 |
reg-names = "core", "chnls", "obsrvr"; |
| 105 |
|
| 106 |
qcom,ee = <0>; |
| 107 |
qcom,channel = <0>; |
| 108 |
|
| 109 |
#address-cells = <2>; |
| 110 |
#size-cells = <2>; |
| 111 |
ranges; |
| 112 |
|
| 113 |
spmi_bus0: spmi@c42d000 { |
| 114 |
reg = <0 0x0c42d000 0 0x4000>, |
| 115 |
<0 0x0c4c0000 0 0x10000>; |
| 116 |
reg-names = "cnfg", "intr"; |
| 117 |
|
| 118 |
interrupt-names = "periph_irq"; |
| 119 |
interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>; |
| 120 |
interrupt-controller; |
| 121 |
#interrupt-cells = <4>; |
| 122 |
|
| 123 |
#address-cells = <2>; |
| 124 |
#size-cells = <0>; |
| 125 |
}; |
| 126 |
}; |
| 127 |
}; |