1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Sandbox PMIC dts node 4 * 5 * Copyright (C) 2015 Samsung Electronics 6 * Przemyslaw Marczak <p.marczak@samsung.com> 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 57 buck2: buck2 { 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 }; 77 78 no_match_by_nodename { 79 regulator-name = "buck_SUPPLY_1.5V"; 80 regulator-min-microvolt = <1500000>; 81 regulator-max-microvolt = <1500000>; 82 }; 83}; 84 85&mc34708 { 86 compatible = "fsl,mc34708"; 87 88 pmic_emul { 89 compatible = "sandbox,i2c-pmic"; 90 91 reg-defaults = /bits/ 8 < 92 0x00 0x80 0x08 0xff 0xff 0xff 0x2e 0x01 0x08 93 0x40 0x80 0x81 0x5f 0xff 0xfb 0x1e 0x80 0x18 94 0x00 0x00 0x0e 0x00 0x00 0x14 0x00 0x00 0x00 95 0x00 0x00 0x20 0x00 0x01 0x3a 0x00 0x00 0x00 96 0x00 0x00 0x00 0x00 0x00 0x40 0x00 0x00 0x00 97 0x42 0x21 0x00 0x00 0x00 0x00 0x00 0x00 0x00 98 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x30 0x5f 99 0x01 0xff 0xff 0x00 0x00 0x00 0x00 0x7f 0xff 100 0x92 0x49 0x24 0x59 0x6d 0x34 0x18 0xc1 0x8c 101 0x00 0x60 0x18 0x51 0x48 0x45 0x14 0x51 0x45 102 0x00 0x06 0x32 0x00 0x00 0x00 0x06 0x9c 0x99 103 0x00 0x38 0x0a 0x00 0x38 0x0a 0x00 0x38 0x0a 104 0x00 0x38 0x0a 0x84 0x00 0x00 0x00 0x00 0x00 105 0x80 0x90 0x8f 0xf8 0x00 0x04 0x00 0x00 0x00 106 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 107 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 108 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 109 0x01 0x31 0x7e 0x2b 0x03 0xfd 0xc0 0x36 0x1b 110 0x60 0x06 0x00 0x00 0x00 0x00 0x00 0x00 0x00 111 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 112 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 113 0x00 0x00 0x00 114 >; 115 }; 116}; 117