15956d97fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 25956d97fSEmmanuel Vadot%YAML 1.2 35956d97fSEmmanuel Vadot--- 45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/spmi/hisilicon,hisi-spmi-controller.yaml# 55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65956d97fSEmmanuel Vadot 75956d97fSEmmanuel Vadottitle: HiSilicon SPMI controller 85956d97fSEmmanuel Vadot 95956d97fSEmmanuel Vadotmaintainers: 105956d97fSEmmanuel Vadot - Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 115956d97fSEmmanuel Vadot 125956d97fSEmmanuel Vadotdescription: | 135956d97fSEmmanuel Vadot The HiSilicon SPMI BUS controller is found on some Kirin-based designs. 145956d97fSEmmanuel Vadot It is a MIPI System Power Management (SPMI) controller. 155956d97fSEmmanuel Vadot 165956d97fSEmmanuel Vadot The PMIC part is provided by 17*7d0873ebSEmmanuel Vadot Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml. 185956d97fSEmmanuel Vadot 195956d97fSEmmanuel VadotallOf: 205956d97fSEmmanuel Vadot - $ref: spmi.yaml# 215956d97fSEmmanuel Vadot 225956d97fSEmmanuel Vadotproperties: 235956d97fSEmmanuel Vadot 245956d97fSEmmanuel Vadot $nodename: 255956d97fSEmmanuel Vadot pattern: "spmi@[0-9a-f]" 265956d97fSEmmanuel Vadot 275956d97fSEmmanuel Vadot compatible: 285956d97fSEmmanuel Vadot const: hisilicon,kirin970-spmi-controller 295956d97fSEmmanuel Vadot 305956d97fSEmmanuel Vadot reg: 315956d97fSEmmanuel Vadot maxItems: 1 325956d97fSEmmanuel Vadot 335956d97fSEmmanuel Vadot hisilicon,spmi-channel: 345956d97fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 355956d97fSEmmanuel Vadot description: | 365956d97fSEmmanuel Vadot number of the Kirin 970 SPMI channel where the SPMI devices are connected. 375956d97fSEmmanuel Vadot 385956d97fSEmmanuel Vadotrequired: 395956d97fSEmmanuel Vadot - compatible 405956d97fSEmmanuel Vadot - reg 415956d97fSEmmanuel Vadot - hisilicon,spmi-channel 425956d97fSEmmanuel Vadot 435956d97fSEmmanuel VadotpatternProperties: 445956d97fSEmmanuel Vadot "@[0-9a-f]$": 455956d97fSEmmanuel Vadot type: object 465956d97fSEmmanuel Vadot 475956d97fSEmmanuel Vadot description: | 485956d97fSEmmanuel Vadot PMIC properties, which are specific to the used SPMI PMIC device(s). 495956d97fSEmmanuel Vadot When used in combination with HiSilicon 6421v600, the properties 505956d97fSEmmanuel Vadot are documented at 51*7d0873ebSEmmanuel Vadot Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml 525956d97fSEmmanuel Vadot 535956d97fSEmmanuel VadotunevaluatedProperties: false 545956d97fSEmmanuel Vadot 555956d97fSEmmanuel Vadotexamples: 565956d97fSEmmanuel Vadot - | 57*7d0873ebSEmmanuel Vadot #include <dt-bindings/spmi/spmi.h> 585956d97fSEmmanuel Vadot 59*7d0873ebSEmmanuel Vadot spmi@fff24000 { 605956d97fSEmmanuel Vadot compatible = "hisilicon,kirin970-spmi-controller"; 61*7d0873ebSEmmanuel Vadot reg = <0xfff24000 0x1000>; 625956d97fSEmmanuel Vadot #address-cells = <2>; 635956d97fSEmmanuel Vadot #size-cells = <0>; 645956d97fSEmmanuel Vadot hisilicon,spmi-channel = <2>; 655956d97fSEmmanuel Vadot 665956d97fSEmmanuel Vadot pmic@0 { 67*7d0873ebSEmmanuel Vadot reg = <0 SPMI_USID>; 685956d97fSEmmanuel Vadot /* pmic properties */ 695956d97fSEmmanuel Vadot }; 705956d97fSEmmanuel Vadot }; 71