Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Przemyslaw Marczak | 77bee05 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Sandbox PMIC dts node |
| 4 | * |
| 5 | * Copyright (C) 2015 Samsung Electronics |
| 6 | * Przemyslaw Marczak <p.marczak@samsung.com> |
Przemyslaw Marczak | 77bee05 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include <dt-bindings/pmic/sandbox_pmic.h> |
| 10 | |
| 11 | &sandbox_pmic { |
| 12 | compatible = "sandbox,pmic"; |
| 13 | |
| 14 | pmic_emul { |
| 15 | compatible = "sandbox,i2c-pmic"; |
| 16 | |
| 17 | /* |
| 18 | * Default PMICs register values are set by macro |
| 19 | * VAL2REG(min, step, value) [uV/uA] |
| 20 | * VAL2OMREG(mode id) |
| 21 | * reg-defaults - byte array |
| 22 | */ |
| 23 | reg-defaults = /bits/ 8 < |
| 24 | /* BUCK1 */ |
| 25 | VAL2REG(800000, 25000, 1000000) |
| 26 | VAL2REG(150000, 25000, 150000) |
| 27 | VAL2OMREG(BUCK_OM_OFF) |
| 28 | /* BUCK2 */ |
| 29 | VAL2REG(750000, 50000, 3000000) |
| 30 | VAL2REG(150000, 25000, 150000) |
| 31 | VAL2OMREG(0) |
| 32 | /* LDO1 */ |
| 33 | VAL2REG(800000, 25000, 1600000) |
| 34 | VAL2REG(100000, 50000, 150000) |
| 35 | VAL2OMREG(LDO_OM_OFF) |
| 36 | /* LDO2 */ |
| 37 | VAL2REG(750000, 50000, 3000000) |
| 38 | VAL2REG(150000, 25000, 150000) |
| 39 | VAL2OMREG(0) |
| 40 | /* reg[12:15] - not used */ |
| 41 | 0x00 |
| 42 | 0x00 |
| 43 | 0x00 |
| 44 | 0x00 |
| 45 | >; |
| 46 | }; |
| 47 | |
| 48 | buck1 { |
| 49 | regulator-name = "SUPPLY_1.2V"; |
| 50 | regulator-min-microvolt = <1200000>; |
| 51 | regulator-max-microvolt = <1200000>; |
| 52 | regulator-min-microamp = <200000>; |
| 53 | regulator-max-microamp = <200000>; |
| 54 | regulator-always-on; |
| 55 | }; |
| 56 | |
Przemyslaw Marczak | 1bc7f23 | 2015-10-27 13:08:06 +0100 | [diff] [blame] | 57 | buck2: buck2 { |
Przemyslaw Marczak | 77bee05 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 58 | regulator-name = "SUPPLY_3.3V"; |
| 59 | regulator-min-microvolt = <3300000>; |
| 60 | regulator-max-microvolt = <3300000>; |
| 61 | }; |
| 62 | |
| 63 | ldo1 { |
| 64 | regulator-name = "VDD_EMMC_1.8V"; |
| 65 | regulator-min-microvolt = <1800000>; |
| 66 | regulator-max-microvolt = <1800000>; |
| 67 | regulator-min-microamp = <100000>; |
| 68 | regulator-max-microamp = <100000>; |
| 69 | regulator-boot-on; |
| 70 | }; |
| 71 | |
| 72 | ldo2 { |
| 73 | regulator-name = "VDD_LCD_3.3V"; |
| 74 | regulator-min-microvolt = <3300000>; |
| 75 | regulator-max-microvolt = <3300000>; |
| 76 | }; |
Felix Brack | e23c388 | 2017-11-27 09:14:16 +0100 | [diff] [blame] | 77 | |
| 78 | no_match_by_nodename { |
| 79 | regulator-name = "buck_SUPPLY_1.5V"; |
| 80 | regulator-min-microvolt = <1500000>; |
| 81 | regulator-max-microvolt = <1500000>; |
| 82 | }; |
Przemyslaw Marczak | 77bee05 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 83 | }; |