On 11 February 2016 at 21:23, git git <gitfineon@online.de> wrote:

Hi devs,

until now, I used 1.8V from the UART Debug Header to power my i2c device, because I thought it is electrically gone on my board. But after testing it with another HiKey Board (this time from LeMaker) with the same Firmware, I'm sure it has to be enabled anywhere. In the linux device tree source I found the following lines

hisilicon/hi6220.dtsi

                        ldo21: ldo21@a40 {
                                regulator-compatible = "LDO21";
                                regulator-min-microvolt = <1650000>;
                                regulator-max-microvolt = <2000000>;
                                regulator-always-on;
                                regulator-enable-ramp-delay = <120>;
                        };

But, how to do this in Bare Metal? LDO5_1V8 seems to be enabled by default  but I can't find where it is done. How to configure the PMIC in early Bootloader stage?

You need to read the code in 
https://github.com/96boards-hikey/linux/blob/28664a33b45a52b23bd1a68b5f27a959dde033f3/drivers/regulator/hi655x-regulator.c

Unfortunately, we provide no public document on PMIC chip (hi655x) used on HiKey. But register information can be reverse engineered from driver code above.

Eg. 
.enable_reg = HI655X_BUS_ADDR(ereg), \
.enable_mask = BIT(cmask), \
enable_reg is the register to write 1 to to enable a regulator. Band enable_mask is the bit for it. Each bit for one ldo.

Similarly you see the disable_reg and vreg.

-Guodong

Hope someone can solve this riddle for me.

Best Regards


On February 3, 2016 at 7:15 PM Grant Likely <grant.likely@linaro.org> wrote:

I just checked. The 4.4 kernel does not enable the 1.8V voltage rail
on the LS expansion connector. Do you know how to enable it?

g.
_______________________________________________
Dev mailing list
Dev@lists.96boards.org
https://lists.96boards.org/mailman/listinfo/dev


_______________________________________________
Dev mailing list
Dev@lists.96boards.org
https://lists.96boards.org/mailman/listinfo/dev