Documentation for regulator framework with device tree

1.5k views Asked by At

I would like to know if there is any documentation for the linux kernel regulator framework with device tree. I am totally lost with consumer name and lists. I need to add consumers from device tree but I cant see consumer list at all in the device tree files. I am using AM335x based custom board based on TI sitara.

3

There are 3 answers

1
Anton Glukhov On

In addition, Federico has already said, there are so-called MFD(MultiFunction) devices. These are often referred PMIC(Power Management IC) that are used in conjunction with a SOC from TI. For AM335x it maybe TPS65217, TPS65910A, TPS65910x, TPS650250, etc. If so, that means some of them you can find follow this link: MFD.

0
Federico On

By reading both documentation (DeviceTree and Regulator) you should be able to find what you want. But as usual the best documentation is the code itself. The driver ti-abb-regulator is using the DeviceTree and the Regulator framework.

1
Mattis Fjallstrom On

I was just looking into this myself, and my conclusion is that the setup in device tree is pretty different from the way it's done in the board file.

What you'll need to do is to add your drivers to the device tree as well, and then use the "[name]-supply" notation, e.g.:

cpus {
    cpu0 {
        cpu0-supply = <&omap_tps65912_dcdc1>;
    };
};

If you look for this in other board files, you'll see how it works.