From: Olliver Schinagl Date: Wed, 1 Mar 2017 17:02:36 +0100 Subject: [U-Boot] [linux-sunxi] [PATCH 6/8] power: axp209: Add support for voltage rate control on LDO3 In-Reply-To: References: <20170301125224.25994-1-oliver@schinagl.nl> <20170301125224.25994-7-oliver@schinagl.nl> Message-ID: <9ed19fbd-e5df-c97e-830c-6ba2abf49694@schinagl.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hey Marcus, On 01-03-17 16:10, Marcus Weseloh wrote: > Hi Oliver, > > 2017-03-01 13:52 GMT+01:00 Olliver Schinagl >: > > +#define AXP209_VRC_LDO3_EN BIT(3) > +#define AXP209_VRC_DCDC2_EN BIT(2) > +#define AXP209_VRC_LDO3_800uV_uS (BIT(1) | AXP209_VRC_LDO3_EN) > +#define AXP209_VRC_LDO3_1600uV_uS AXP209_VRC_LDO3_EN > > > Does that mean that the description of the LDO3/DCDC2 VRC control on the > linux-sunxi wiki [1] and the PDF datasheet [2] are wrong? They say that > VRC for LDO3 is enabled if the bit is 0, disabled when the bit is 1. And > that the default value is enabled. Yes you are correct (and well spotted) that the datasheet is wrong. It took us some time to figure out why it wasn't working :) I thought I updated the wiki, but I must have done it incorrectly. I will fix it immediatly. olliver > > [1] > http://linux-sunxi.org/AXP209#REG_25H:_DC-DC2.2FLDO3_dynamic_voltage_scaling_parameter_settings > [2] http://dl.linux-sunxi.org/AXP/AXP209_Datasheet_v1.0en.pdf > > Cheers, > > Marcus