Mauro Carvalho Chehab | 9e59172 | 2020-08-18 16:58:57 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/spmi/hisilicon,hisi-spmi-controller.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: HiSilicon SPMI controller |
| 8 | |
| 9 | maintainers: |
| 10 | - Mauro Carvalho Chehab <mchehab+huawei@kernel.org> |
| 11 | |
| 12 | description: | |
| 13 | The HiSilicon SPMI BUS controller is found on some Kirin-based designs. |
| 14 | It is a MIPI System Power Management (SPMI) controller. |
| 15 | |
| 16 | The PMIC part is provided by |
Mauro Carvalho Chehab | e6627a5 | 2020-08-26 11:32:12 +0200 | [diff] [blame] | 17 | drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml. |
Mauro Carvalho Chehab | 9e59172 | 2020-08-18 16:58:57 +0200 | [diff] [blame] | 18 | |
| 19 | properties: |
| 20 | $nodename: |
| 21 | pattern: "spmi@[0-9a-f]" |
| 22 | |
| 23 | compatible: |
| 24 | const: hisilicon,kirin970-spmi-controller |
| 25 | |
| 26 | reg: |
| 27 | maxItems: 1 |
| 28 | |
Mauro Carvalho Chehab | 596e763 | 2021-01-21 08:18:03 +0100 | [diff] [blame] | 29 | "#address-cells": |
| 30 | const: 2 |
| 31 | |
| 32 | "#size-cells": |
| 33 | const: 0 |
| 34 | |
Mauro Carvalho Chehab | 9e59172 | 2020-08-18 16:58:57 +0200 | [diff] [blame] | 35 | spmi-channel: |
| 36 | description: | |
| 37 | number of the Kirin 970 SPMI channel where the SPMI devices are connected. |
| 38 | |
| 39 | required: |
Mauro Carvalho Chehab | 596e763 | 2021-01-21 08:18:03 +0100 | [diff] [blame] | 40 | - compatible |
| 41 | - reg |
| 42 | - spmi-channel |
| 43 | - "#address-cells" |
| 44 | - "#size-cells" |
Mauro Carvalho Chehab | 9e59172 | 2020-08-18 16:58:57 +0200 | [diff] [blame] | 45 | |
| 46 | patternProperties: |
| 47 | "^pmic@[0-9a-f]$": |
| 48 | description: | |
| 49 | PMIC properties, which are specific to the used SPMI PMIC device(s). |
| 50 | When used in combination with HiSilicon 6421v600, the properties |
| 51 | are documented at |
Mauro Carvalho Chehab | e6627a5 | 2020-08-26 11:32:12 +0200 | [diff] [blame] | 52 | drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml. |
Mauro Carvalho Chehab | 9e59172 | 2020-08-18 16:58:57 +0200 | [diff] [blame] | 53 | |
Mauro Carvalho Chehab | 596e763 | 2021-01-21 08:18:03 +0100 | [diff] [blame] | 54 | additionalProperties: false |
| 55 | |
Mauro Carvalho Chehab | 9e59172 | 2020-08-18 16:58:57 +0200 | [diff] [blame] | 56 | examples: |
| 57 | - | |
| 58 | bus { |
| 59 | #address-cells = <2>; |
| 60 | #size-cells = <2>; |
| 61 | |
| 62 | spmi: spmi@fff24000 { |
| 63 | compatible = "hisilicon,kirin970-spmi-controller"; |
Mauro Carvalho Chehab | 596e763 | 2021-01-21 08:18:03 +0100 | [diff] [blame] | 64 | #address-cells = <2>; |
| 65 | #size-cells = <0>; |
Mauro Carvalho Chehab | 9e59172 | 2020-08-18 16:58:57 +0200 | [diff] [blame] | 66 | status = "ok"; |
| 67 | reg = <0x0 0xfff24000 0x0 0x1000>; |
| 68 | spmi-channel = <2>; |
| 69 | |
| 70 | pmic@0 { |
Mauro Carvalho Chehab | 596e763 | 2021-01-21 08:18:03 +0100 | [diff] [blame] | 71 | reg = <0 0>; |
Mauro Carvalho Chehab | 9e59172 | 2020-08-18 16:58:57 +0200 | [diff] [blame] | 72 | /* pmic properties */ |
| 73 | }; |
| 74 | }; |
| 75 | }; |