openEuler_kernel_rk3588/Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml

74 lines
1.6 KiB
YAML
Raw Normal View History

2026-01-21 18:59:54 +08:00
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/spmi/hisilicon,hisi-spmi-controller.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: HiSilicon SPMI controller
maintainers:
- Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
description: |
The HiSilicon SPMI BUS controller is found on some Kirin-based designs.
It is a MIPI System Power Management (SPMI) controller.
The PMIC part is provided by
2026-01-29 22:25:33 +08:00
./Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml.
allOf:
- $ref: spmi.yaml#
2026-01-21 18:59:54 +08:00
properties:
2026-01-29 22:25:33 +08:00
2026-01-21 18:59:54 +08:00
$nodename:
pattern: "spmi@[0-9a-f]"
compatible:
const: hisilicon,kirin970-spmi-controller
reg:
maxItems: 1
2026-01-29 22:25:33 +08:00
hisilicon,spmi-channel:
$ref: /schemas/types.yaml#/definitions/uint32
2026-01-21 18:59:54 +08:00
description: |
number of the Kirin 970 SPMI channel where the SPMI devices are connected.
required:
2026-01-29 22:25:33 +08:00
- compatible
- reg
- hisilicon,spmi-channel
2026-01-21 18:59:54 +08:00
patternProperties:
2026-01-29 22:25:33 +08:00
"@[0-9a-f]$":
type: object
2026-01-21 18:59:54 +08:00
description: |
PMIC properties, which are specific to the used SPMI PMIC device(s).
When used in combination with HiSilicon 6421v600, the properties
are documented at
drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml.
2026-01-29 22:25:33 +08:00
unevaluatedProperties: false
2026-01-21 18:59:54 +08:00
examples:
- |
bus {
#address-cells = <2>;
#size-cells = <2>;
spmi: spmi@fff24000 {
compatible = "hisilicon,kirin970-spmi-controller";
2026-01-29 22:25:33 +08:00
#address-cells = <2>;
#size-cells = <0>;
2026-01-21 18:59:54 +08:00
reg = <0x0 0xfff24000 0x0 0x1000>;
2026-01-29 22:25:33 +08:00
hisilicon,spmi-channel = <2>;
2026-01-21 18:59:54 +08:00
pmic@0 {
2026-01-29 22:25:33 +08:00
reg = <0 0>;
2026-01-21 18:59:54 +08:00
/* pmic properties */
};
};
};