1354d7675SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2354d7675SEmmanuel Vadot%YAML 1.2 3354d7675SEmmanuel Vadot--- 4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/hisilicon,hi6421-spmi-pmic.yaml# 5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6354d7675SEmmanuel Vadot 7354d7675SEmmanuel Vadottitle: HiSilicon 6421v600 SPMI PMIC 8354d7675SEmmanuel Vadot 9354d7675SEmmanuel Vadotmaintainers: 10354d7675SEmmanuel Vadot - Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 11354d7675SEmmanuel Vadot 12354d7675SEmmanuel Vadotdescription: | 13354d7675SEmmanuel Vadot HiSilicon 6421v600 should be connected inside a MIPI System Power Management 14354d7675SEmmanuel Vadot (SPMI) bus. It provides interrupts and power supply. 15354d7675SEmmanuel Vadot 16354d7675SEmmanuel Vadot The GPIO and interrupt settings are represented as part of the top-level PMIC 17354d7675SEmmanuel Vadot node. 18354d7675SEmmanuel Vadot 19354d7675SEmmanuel Vadot The SPMI controller part is provided by 20*8d13bc63SEmmanuel Vadot Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml 21354d7675SEmmanuel Vadot 22354d7675SEmmanuel Vadotproperties: 23354d7675SEmmanuel Vadot $nodename: 24354d7675SEmmanuel Vadot pattern: "pmic@[0-9a-f]" 25354d7675SEmmanuel Vadot 26354d7675SEmmanuel Vadot compatible: 27354d7675SEmmanuel Vadot const: hisilicon,hi6421v600-spmi 28354d7675SEmmanuel Vadot 29354d7675SEmmanuel Vadot reg: 30354d7675SEmmanuel Vadot maxItems: 1 31354d7675SEmmanuel Vadot 32354d7675SEmmanuel Vadot '#interrupt-cells': 33354d7675SEmmanuel Vadot const: 2 34354d7675SEmmanuel Vadot 35354d7675SEmmanuel Vadot interrupt-controller: true 36354d7675SEmmanuel Vadot 37354d7675SEmmanuel Vadot interrupts: 38354d7675SEmmanuel Vadot maxItems: 1 39354d7675SEmmanuel Vadot 40354d7675SEmmanuel Vadot regulators: 41354d7675SEmmanuel Vadot type: object 42354d7675SEmmanuel Vadot 43354d7675SEmmanuel Vadot additionalProperties: false 44354d7675SEmmanuel Vadot 45354d7675SEmmanuel Vadot patternProperties: 46354d7675SEmmanuel Vadot '^ldo[0-9]+$': 47354d7675SEmmanuel Vadot type: object 48354d7675SEmmanuel Vadot 49fac71e4eSEmmanuel Vadot $ref: /schemas/regulator/regulator.yaml# 50354d7675SEmmanuel Vadot 51354d7675SEmmanuel Vadot unevaluatedProperties: false 52354d7675SEmmanuel Vadot 53354d7675SEmmanuel Vadotrequired: 54354d7675SEmmanuel Vadot - compatible 55354d7675SEmmanuel Vadot - reg 56354d7675SEmmanuel Vadot - regulators 57354d7675SEmmanuel Vadot 58354d7675SEmmanuel VadotadditionalProperties: false 59354d7675SEmmanuel Vadot 60354d7675SEmmanuel Vadotexamples: 61354d7675SEmmanuel Vadot - | 62*8d13bc63SEmmanuel Vadot #include <dt-bindings/spmi/spmi.h> 63354d7675SEmmanuel Vadot 64*8d13bc63SEmmanuel Vadot spmi { 65*8d13bc63SEmmanuel Vadot #address-cells = <2>; 66*8d13bc63SEmmanuel Vadot #size-cells = <0>; 67*8d13bc63SEmmanuel Vadot 68*8d13bc63SEmmanuel Vadot pmic@0 { 69354d7675SEmmanuel Vadot compatible = "hisilicon,hi6421v600-spmi"; 70*8d13bc63SEmmanuel Vadot reg = <0 SPMI_USID>; 71354d7675SEmmanuel Vadot 72354d7675SEmmanuel Vadot #interrupt-cells = <2>; 73354d7675SEmmanuel Vadot interrupt-controller; 74354d7675SEmmanuel Vadot interrupt-parent = <&gpio28>; 75354d7675SEmmanuel Vadot interrupts = <0 0>; 76354d7675SEmmanuel Vadot 77354d7675SEmmanuel Vadot regulators { 78*8d13bc63SEmmanuel Vadot ldo3 { 79354d7675SEmmanuel Vadot regulator-name = "ldo3"; 80354d7675SEmmanuel Vadot regulator-min-microvolt = <1500000>; 81354d7675SEmmanuel Vadot regulator-max-microvolt = <2000000>; 82354d7675SEmmanuel Vadot regulator-boot-on; 83354d7675SEmmanuel Vadot }; 84354d7675SEmmanuel Vadot 85*8d13bc63SEmmanuel Vadot ldo4 { 86354d7675SEmmanuel Vadot regulator-name = "ldo4"; 87354d7675SEmmanuel Vadot regulator-min-microvolt = <1725000>; 88354d7675SEmmanuel Vadot regulator-max-microvolt = <1900000>; 89354d7675SEmmanuel Vadot regulator-boot-on; 90354d7675SEmmanuel Vadot }; 91354d7675SEmmanuel Vadot 92*8d13bc63SEmmanuel Vadot ldo9 { 93354d7675SEmmanuel Vadot regulator-name = "ldo9"; 94354d7675SEmmanuel Vadot regulator-min-microvolt = <1750000>; 95354d7675SEmmanuel Vadot regulator-max-microvolt = <3300000>; 96354d7675SEmmanuel Vadot regulator-boot-on; 97354d7675SEmmanuel Vadot }; 98354d7675SEmmanuel Vadot 99*8d13bc63SEmmanuel Vadot ldo15 { 100354d7675SEmmanuel Vadot regulator-name = "ldo15"; 101354d7675SEmmanuel Vadot regulator-min-microvolt = <1800000>; 102354d7675SEmmanuel Vadot regulator-max-microvolt = <3000000>; 103354d7675SEmmanuel Vadot regulator-always-on; 104354d7675SEmmanuel Vadot }; 105354d7675SEmmanuel Vadot 106*8d13bc63SEmmanuel Vadot ldo16 { 107354d7675SEmmanuel Vadot regulator-name = "ldo16"; 108354d7675SEmmanuel Vadot regulator-min-microvolt = <1800000>; 109354d7675SEmmanuel Vadot regulator-max-microvolt = <3000000>; 110354d7675SEmmanuel Vadot regulator-boot-on; 111354d7675SEmmanuel Vadot }; 112354d7675SEmmanuel Vadot 113*8d13bc63SEmmanuel Vadot ldo17 { 114354d7675SEmmanuel Vadot regulator-name = "ldo17"; 115354d7675SEmmanuel Vadot regulator-min-microvolt = <2500000>; 116354d7675SEmmanuel Vadot regulator-max-microvolt = <3300000>; 117354d7675SEmmanuel Vadot }; 118354d7675SEmmanuel Vadot 119*8d13bc63SEmmanuel Vadot ldo33 { 120354d7675SEmmanuel Vadot regulator-name = "ldo33"; 121354d7675SEmmanuel Vadot regulator-min-microvolt = <2500000>; 122354d7675SEmmanuel Vadot regulator-max-microvolt = <3300000>; 123354d7675SEmmanuel Vadot regulator-boot-on; 124354d7675SEmmanuel Vadot }; 125354d7675SEmmanuel Vadot 126*8d13bc63SEmmanuel Vadot ldo34 { 127354d7675SEmmanuel Vadot regulator-name = "ldo34"; 128354d7675SEmmanuel Vadot regulator-min-microvolt = <2600000>; 129354d7675SEmmanuel Vadot regulator-max-microvolt = <3300000>; 130354d7675SEmmanuel Vadot }; 131354d7675SEmmanuel Vadot }; 132354d7675SEmmanuel Vadot }; 133*8d13bc63SEmmanuel Vadot }; 134