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