01 Jul, 2020

1 commit

  • [ Upstream commit 6f1cf5257acc6e6242ddf2f52bc7912aed77b79f ]

    PFUZE100_SWB_REG is not proper for sw1a/sw2, because enable_mask/enable_reg
    is not correct. On PFUZE3000, sw1a/sw2 should be the same as sw1a/sw2 on
    pfuze100 except that voltages are not linear, so add new PFUZE3000_SW_REG
    and pfuze3000_sw_regulator_ops which like the non-linear PFUZE100_SW_REG
    and pfuze100_sw_regulator_ops.

    Fixes: 1dced996ee70 ("regulator: pfuze100: update voltage setting for pfuze3000 sw1a")
    Reported-by: Christophe Meynard
    Signed-off-by: Robin Gong
    Link: https://lore.kernel.org/r/1592171648-8752-1-git-send-email-yibin.gong@nxp.com
    Signed-off-by: Mark Brown
    Signed-off-by: Sasha Levin

    Robin Gong
     

02 Oct, 2019

1 commit


07 Nov, 2018

1 commit


18 Sep, 2018

1 commit


11 Sep, 2018

1 commit

  • On some boards the SoC can use one pin "PMIC_STBY_REQ" to notify th PMIC
    about state changes. In this case internal state of PMIC must be
    preconfigured for upcomming state change.
    It works fine with the current regulator framework, except with the
    power-off case.

    This patch is providing an optional pm_power_off_prepare handler
    which will configure standby state of the PMIC to disable all power lines.

    In my power consumption test on RIoTBoard, I got the following results:
    power off without this patch: 320 mA
    power off with this patch: 2 mA
    suspend to ram: 40 mA

    Signed-off-by: Oleksij Rempel
    Signed-off-by: Mark Brown

    Oleksij Rempel
     

24 Jul, 2018

1 commit

  • Add enable/disable support for switch regulators on pfuze100.

    Based on commit 5fe156f1cab4 ("regulator: pfuze100: add enable/disable for
    switch") which is reverted due to boot regressions by commit 464a5686e6c9
    ("regulator: Revert "regulator: pfuze100: add enable/disable for switch"").
    Disabling the switch regulators will only be done if the user specifies
    "fsl,pfuze-support-disable-sw" in its device tree to keep backward
    compatibility with current dtb's [1].

    [1] https://patchwork.kernel.org/patch/10490381/

    Signed-off-by: Marco Felsch
    Signed-off-by: Mark Brown

    Marco Felsch
     

02 Jul, 2018

1 commit

  • This reverts commit 5fe156f1cab4f340ddb6283c993912be77594016.

    Commit 5fe156f1cab4 ("regulator: pfuze100: add enable/disable for switch")
    causes boot regression on some platforms such as imx6sl-evk and
    imx6sll-evk.

    After this commit the SW4 regulator will be turned
    off and since it supplies the DDR voltage on these boards, a
    kernel hang is observed.

    Revert it to avoid breaking old dtb's.

    Fixes: 5fe156f1cab4 ("regulator: pfuze100: add enable/disable for switch")
    Signed-off-by: Fabio Estevam
    Signed-off-by: Mark Brown

    Fabio Estevam
     

18 Jun, 2018

1 commit


24 May, 2018

2 commits


18 May, 2018

2 commits


18 Apr, 2018

1 commit

  • pfuze3000 datasheet(Rev.9.0) from:

    https://www.nxp.com/docs/en/data-sheet/PF3000.pdf

    updates sw1a's voltage range, the settings for 1.450V and 1.475V
    are replaced with 1.8V and 3.3V:

    5b'11110 1.450 (SW1B), 1.8 (SW1A/SW1AB)
    5b'11111 1.475 (SW1B), 3.3 (SW1A/SW1AB)

    the voltage calculation using steps is NOT available for sw1a now,
    use voltage table instead.

    Signed-off-by: Anson Huang
    Signed-off-by: Robin Gong
    Signed-off-by: Mark Brown

    Anson Huang
     

30 Apr, 2017

1 commit


14 Mar, 2017

1 commit

  • Add support for PF0200 coin cell/super capacitor charger which works as
    a current limited voltage source via the LICELL pin. When VIN goes below
    a certain threshold LICELL is used to provide power for VSNVS which is
    usually used to hold up secure non-volatile storage and the real-time
    clock on the SoC.

    Signed-off-by: George McCollister
    Signed-off-by: Mark Brown

    George McCollister
     

01 Feb, 2017

1 commit

  • Declare regulator_ops structure as const as it is only stored in the ops
    field of a regulator_desc structure. This field is of type const, so
    regulator_ops structures having this property can be made const too.

    File size before: drivers/regulator/pfuze100-regulator.o
    text data bss dec hex filename
    3552 12528 16 16096 3ee0 regulator/pfuze100-regulator.o

    File size after: drivers/regulator/pfuze100-regulator.o
    text data bss dec hex filename
    4576 11496 16 16088 3ed8 regulator/pfuze100-regulator.o

    Signed-off-by: Bhumika Goyal
    Signed-off-by: Mark Brown

    Bhumika Goyal
     

07 Jun, 2016

2 commits


30 Aug, 2015

1 commit


29 Aug, 2015

1 commit


15 Jul, 2015

1 commit


09 Jan, 2015

1 commit


27 May, 2014

1 commit


26 May, 2014

2 commits


27 Mar, 2014

1 commit


06 Mar, 2014

1 commit


04 Mar, 2014

2 commits

  • Also remove PFUZE_NUM to avoid below build warnings:

    CC [M] drivers/regulator/pfuze100-regulator.o
    drivers/regulator/pfuze100-regulator.c:86:2: warning: excess elements in array initializer [enabled by default]
    drivers/regulator/pfuze100-regulator.c:86:2: warning: (near initialization for 'pfuze_device_id') [enabled by default]
    drivers/regulator/pfuze100-regulator.c:93:2: warning: excess elements in array initializer [enabled by default]
    drivers/regulator/pfuze100-regulator.c:93:2: warning: (near initialization for 'pfuze_dt_ids') [enabled by default]

    Signed-off-by: Axel Lin
    Signed-off-by: Mark Brown

    Axel Lin
     
  • support pfuze200 chip which remove SW1C and SW4 based on pfuze100.

    Signed-off-by: Robin Gong
    Signed-off-by: Mark Brown

    Robin Gong
     

23 Feb, 2014

1 commit


19 Feb, 2014

1 commit

  • Since commit d7857c42 (regulator: pfuze100: Use of_get_child_by_name) we get
    the following probe failure:

    pfuze100-regulator 1-0008: Full layer: 1, Metal layer: 0
    pfuze100-regulator 1-0008: FAB: 0, FIN: 0
    pfuze100-regulator 1-0008: regulators node not found
    pfuze100-regulator: probe of 1-0008 failed with error -22

    Now that of_get_child_by_name() is used we should adjust the device_node pointer
    'np' to not get the parent node anymore.

    Suggested-by: Shawn Guo
    Signed-off-by: Fabio Estevam
    Acked-by: Sachin Kamat
    Signed-off-by: Mark Brown

    Fabio Estevam
     

15 Feb, 2014

1 commit


03 Feb, 2014

1 commit


23 Jan, 2014

2 commits


15 Jan, 2014

2 commits


10 Dec, 2013

3 commits