regulator: fan53555: add regulator-initial-mode to set default mode
authorElaine Zhang <zhangqing@rock-chips.com>
Mon, 22 Aug 2016 02:03:38 +0000 (10:03 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 29 Aug 2016 07:17:14 +0000 (15:17 +0800)
commitf873212d3ed5a49c28b559f129136999014d6508
treec18081917bb22714ef87d8c7adce2275107f31bd
parent0f75dc420951837e983a98a591055f58d4ff1f2a
regulator: fan53555: add regulator-initial-mode to set default mode

regulator-initial-mode: default mode to set on startup
regulator-initial-mode is set as:
        REGULATOR_MODE_FAST                     0x1
        REGULATOR_MODE_NORMAL                   0x2
Example:
 vdd_cpu_b: syr827@40 {
                compatible = "silergy,syr827";
                reg = <0x40>;
                vin-supply = <&vcc5v0_sys>;
                regulator-compatible = "fan53555-reg";
                regulator-name = "vdd_cpu_b";
                regulator-min-microvolt = <712500>;
                regulator-max-microvolt = <1500000>;
                regulator-ramp-delay = <1000>;
                fcs,suspend-voltage-selector = <1>;
                regulator-always-on;
                regulator-boot-on;
                regulator-initial-state = <3>;
                regulator-initial-mode = <1>;/*1:pwm 2: auto mode*/
                        regulator-state-mem {
                        regulator-off-in-suspend;
                };
        };

Change-Id: I4d3bbd50fd40531113f2cc6fe63905e24888a752
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
drivers/regulator/fan53555.c