101c5741bSSergey Larin# SPDX-License-Identifier: GPL-2.0 201c5741bSSergey Larin%YAML 1.2 301c5741bSSergey Larin--- 401c5741bSSergey Larin$id: http://devicetree.org/schemas/regulator/max8893.yaml# 501c5741bSSergey Larin$schema: http://devicetree.org/meta-schemas/core.yaml# 601c5741bSSergey Larin 701c5741bSSergey Larintitle: Regulator driver for MAX8893 PMIC from Maxim Integrated. 801c5741bSSergey Larin 901c5741bSSergey Larinmaintainers: 1001c5741bSSergey Larin - Sergey Larin <cerg2010cerg2010@mail.ru> 1101c5741bSSergey Larin 1201c5741bSSergey Larindescription: | 1301c5741bSSergey Larin The device has 5 LDO regulators and a single BUCK regulator. 1401c5741bSSergey Larin Programming is done through I2C bus. 1501c5741bSSergey Larin 1601c5741bSSergey Larinproperties: 1701c5741bSSergey Larin compatible: 1801c5741bSSergey Larin const: maxim,max8893 1901c5741bSSergey Larin 2001c5741bSSergey Larin reg: 2101c5741bSSergey Larin maxItems: 1 2201c5741bSSergey Larin 2301c5741bSSergey Larin regulators: 2401c5741bSSergey Larin type: object 2501c5741bSSergey Larin 2601c5741bSSergey Larin patternProperties: 2701c5741bSSergey Larin "^(ldo[1-5]|buck)$": 28*cff5c895SRob Herring $ref: regulator.yaml# 2901c5741bSSergey Larin 3001c5741bSSergey Larin additionalProperties: false 3101c5741bSSergey Larin 3201c5741bSSergey LarinadditionalProperties: false 3301c5741bSSergey Larin 3401c5741bSSergey Larinrequired: 3501c5741bSSergey Larin - compatible 3601c5741bSSergey Larin - reg 3701c5741bSSergey Larin - regulators 3801c5741bSSergey Larin 3901c5741bSSergey Larinexamples: 4001c5741bSSergey Larin - | 4101c5741bSSergey Larin i2c { 4201c5741bSSergey Larin #address-cells = <1>; 4301c5741bSSergey Larin #size-cells = <0>; 4401c5741bSSergey Larin 4501c5741bSSergey Larin pmic@3e { 4601c5741bSSergey Larin compatible = "maxim,max8893"; 4701c5741bSSergey Larin reg = <0x3e>; 4801c5741bSSergey Larin 4901c5741bSSergey Larin regulators { 5001c5741bSSergey Larin /* Front camera - s5k6aafx, back - m5mo */ 5101c5741bSSergey Larin /* Numbers used to indicate the sequence */ 5201c5741bSSergey Larin front_1_back_1: buck { 5301c5741bSSergey Larin regulator-name = "cam_isp_core_1v2"; 5401c5741bSSergey Larin regulator-min-microvolt = <1200000>; 5501c5741bSSergey Larin regulator-max-microvolt = <1200000>; 5601c5741bSSergey Larin }; 5701c5741bSSergey Larin 5801c5741bSSergey Larin front_4_back_5: ldo1 { 5901c5741bSSergey Larin regulator-name = "vt_io_1v8,cam_isp_1v8"; 6001c5741bSSergey Larin regulator-min-microvolt = <1800000>; 6101c5741bSSergey Larin regulator-max-microvolt = <1800000>; 6201c5741bSSergey Larin }; 6301c5741bSSergey Larin 6401c5741bSSergey Larin front_3_back_4: ldo2 { 6501c5741bSSergey Larin regulator-name = "vt_core_1v5"; 6601c5741bSSergey Larin regulator-min-microvolt = <1500000>; 6701c5741bSSergey Larin regulator-max-microvolt = <1500000>; 6801c5741bSSergey Larin }; 6901c5741bSSergey Larin 7001c5741bSSergey Larin front_5_back_6: ldo3 { 7101c5741bSSergey Larin regulator-name = "vt_cam_1v8,vt_sensor_io_1v8"; 7201c5741bSSergey Larin regulator-min-microvolt = <1800000>; 7301c5741bSSergey Larin regulator-max-microvolt = <1800000>; 7401c5741bSSergey Larin }; 7501c5741bSSergey Larin 7601c5741bSSergey Larin ldo4 { 7701c5741bSSergey Larin /* not used */ 7801c5741bSSergey Larin }; 7901c5741bSSergey Larin 8001c5741bSSergey Larin back_7: ldo5 { 8101c5741bSSergey Larin regulator-name = "cam_sensor_io_1v8"; 8201c5741bSSergey Larin regulator-min-microvolt = <1800000>; 8301c5741bSSergey Larin regulator-max-microvolt = <1800000>; 8401c5741bSSergey Larin }; 8501c5741bSSergey Larin }; 8601c5741bSSergey Larin }; 8701c5741bSSergey Larin }; 8801c5741bSSergey Larin... 89