Skip to content
Permalink
Detlev-Casanov…
Switch branches/tags

Commits on Jan 20, 2022

  1. regulator/rpi-panel-attiny: Use two transactions for I2C read

    The I2C to the Atmel is very fussy, and locks up easily on
    Pi0-3 particularly on reads.
    If running at 100kHz on Pi3, reading the ID register generally
    locks up the Atmel, but splitting the register select write and
    read into two transactions is reliable.
    
    Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
    6by9 authored and intel-lab-lkp committed Jan 20, 2022
  2. regulator/rpi-panel-attiny: Don't read the LCD power status

    The I2C to the Atmel is very fussy, and locks up easily on
    Pi0-3 particularly on reads.
    
    The LCD power status is controlled solely by this driver, so
    rather than reading it back from the Atmel, use the cached
    status last set.
    
    Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
    6by9 authored and intel-lab-lkp committed Jan 20, 2022
  3. regulator: rpi-panel: Remove get_brightness hook

    The driver was implementing a get_brightness function that
    tried to read back the PWM setting of the display to report
    as the current brightness.
    The controller on the display does not support that, therefore
    we end up reporting a brightness of 0, and that confuses
    systemd's backlight service.
    
    Remove the hook so that the framework returns the current
    brightness automatically.
    
    Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
    6by9 authored and intel-lab-lkp committed Jan 20, 2022
  4. regulator: rpi-panel: Add GPIO control for panel and touch resets

    We need independent control of the resets for the panel&bridge,
    vs the touch controller.
    
    Expose the reset lines that are on the Atmel's port C via the GPIO
    API so that they can be controlled appropriately.
    
    Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
    6by9 authored and intel-lab-lkp committed Jan 20, 2022
  5. regulator: rpi-panel: Convert to drive lines directly

    The Atmel was doing a load of automatic sequencing of
    control lines, however it was combining the touch controller's
    reset with the bridge/panel control.
    
    Change to control the control signals directly rather than
    through the automatic POWERON control.
    
    Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
    6by9 authored and intel-lab-lkp committed Jan 20, 2022
  6. regulator: rpi-panel: Ensure the backlight is off during probe.

    The initial state of the Atmel is not defined, so ensure the
    backlight PWM is set to 0 by default.
    
    Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
    6by9 authored and intel-lab-lkp committed Jan 20, 2022
  7. regulator: rpi-panel: Serialise operations.

    The driver was using the regmap lock to serialise the
    individual accesses, but we really need to protect the
    timings of enabling the regulators, including any communication
    with the Atmel.
    
    Use a mutex within the driver to control overall accesses to
    the Atmel, instead of the regmap lock.
    
    Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
    6by9 authored and intel-lab-lkp committed Jan 20, 2022
  8. regulator: rpi-panel: Handle I2C errors/timing to the Atmel

    The Atmel is doing some things in the I2C ISR, during which
    period it will not respond to further commands. This is
    particularly true of the POWERON command.
    
    Increase delays appropriately, and retry should I2C errors be
    reported.
    
    Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
    6by9 authored and intel-lab-lkp committed Jan 20, 2022
  9. regulator: rpi-panel: Register with a unique backlight name

    There's no reason why 2 Raspberry Pi DSI displays can't be
    attached to a Pi Compute Module, so the backlight names need to
    be unique.
    
    Use the parent dev_name. It's not as readable, but is unique.
    
    Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
    6by9 authored and intel-lab-lkp committed Jan 20, 2022

Commits on Jan 19, 2022

  1. regulator: MAX20086: add gpio/consumer.h

    max20086-regulator.c needs <linux/gpio/consumer.h> for an enum, some
    macros, and a function prototype. (seen on ARCH=m68k)
    
    Adding this header file fixes multiple build errors:
    
    ../drivers/regulator/max20086-regulator.c: In function 'max20086_i2c_probe':
    ../drivers/regulator/max20086-regulator.c:217:26: error: storage size of 'flags' isn't known
      217 |         enum gpiod_flags flags;
    ../drivers/regulator/max20086-regulator.c:261:27: error: 'GPIOD_OUT_HIGH' undeclared (first use in this function); did you mean 'GPIOF_INIT_HIGH'?
      261 |         flags = boot_on ? GPIOD_OUT_HIGH : GPIOD_OUT_LOW;
          |                           ^~~~~~~~~~~~~~
    ../drivers/regulator/max20086-regulator.c:261:44: error: 'GPIOD_OUT_LOW' undeclared (first use in this function); did you mean 'GPIOF_INIT_LOW'?
      261 |         flags = boot_on ? GPIOD_OUT_HIGH : GPIOD_OUT_LOW;
    ../drivers/regulator/max20086-regulator.c:262:27: error: implicit declaration of function 'devm_gpiod_get'; did you mean 'devm_gpio_free'? [-Werror=implicit-function-declaration]
      262 |         chip->ena_gpiod = devm_gpiod_get(chip->dev, "enable", flags);
    ../drivers/regulator/max20086-regulator.c:217:26: warning: unused variable 'flags' [-Wunused-variable]
      217 |         enum gpiod_flags flags;
    
    Fixes: bfff546 ("regulator: Add MAX20086-MAX20089 driver")
    Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
    Reported-by: kernel test robot <lkp@intel.com>
    Cc: Watson Chow <watson.chow@avnet.com>
    Cc: Mark Brown <broonie@kernel.org>
    Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Link: https://lore.kernel.org/r/20220115033603.24473-1-rdunlap@infradead.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    rddunlap authored and broonie committed Jan 19, 2022

Commits on Jan 11, 2022

  1. regulator: max20086: fix error code in max20086_parse_regulators_dt()

    This code accidentally returns PTR_ERR(NULL) which is success.  It
    should return a negative error code.
    
    Fixes: bfff546 ("regulator: Add MAX20086-MAX20089 driver")
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Link: https://lore.kernel.org/r/20220111072657.GK11243@kili
    Signed-off-by: Mark Brown <broonie@kernel.org>
    error27 authored and broonie committed Jan 11, 2022

Commits on Jan 7, 2022

  1. regulator: Add MAX20086-MAX20089 driver

    The MAX20086-MAX20089 are dual/quad power protectors for cameras. Add a
    driver that supports controlling the outputs individually. Additional
    features, such as overcurrent detection, may be added later if needed.
    
    Signed-off-by: Watson Chow <watson.chow@avnet.com>
    Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Link: https://lore.kernel.org/r/20220106224350.16957-3-laurent.pinchart+renesas@ideasonboard.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    watsonads authored and broonie committed Jan 7, 2022
  2. dt-bindings: regulators: Add bindings for Maxim MAX20086-MAX20089

    The MAX20086-MAX20089 are dual/quad power protectors for cameras. Add
    corresponding DT bindings.
    
    Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Link: https://lore.kernel.org/r/20220106224350.16957-2-laurent.pinchart+renesas@ideasonboard.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    pinchartl authored and broonie committed Jan 7, 2022

Commits on Jan 6, 2022

  1. regulator: qcom_smd: Align probe function with rpmh-regulator

    The RPMh regulator driver is much newer and gets more attention, which in
    consequence makes it do a few things better. Update qcom_smd-regulator's
    probe function to mimic what rpmh-regulator does to address a couple of
    issues:
    
    - Probe defer now works correctly, before it used to, well,
      kinda just die.. This fixes reliable probing on (at least) PM8994,
      because Linux apparently cannot deal with supply map dependencies yet..
    
    - Regulator data is now matched more sanely: regulator data is matched
      against each individual regulator node name and throwing an -EINVAL if
      data is missing, instead of just assuming everything is fine and
      iterating over all subsequent array members.
    
    - status = "disabled" will now work for disabling individual regulators in
      DT. Previously it didn't seem to do much if anything at all.
    
    Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
    Link: https://lore.kernel.org/r/20211230023442.1123424-1-konrad.dybcio@somainline.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    konradybcio authored and broonie committed Jan 6, 2022

Commits on Jan 4, 2022

  1. regulator: remove redundant ret variable

    Return value from regmap_update_bits() directly instead
    of taking this in another redundant variable.
    
    Reported-by: Zeal Robot <zealci@zte.com.cn>
    Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
    Signed-off-by: CGEL ZTE <cgel.zte@gmail.com>
    Link: https://lore.kernel.org/r/20220104104139.601031-1-chi.minghao@zte.com.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Minghao Chi authored and broonie committed Jan 4, 2022

Commits on Dec 24, 2021

  1. regulator: qcom-labibb: OCP interrupts are not a failure while disabled

    Receiving the Over-Current Protection interrupt while the regulator is
    disabled does not count as unhandled/failure (IRQ_NONE, or 0 as it were)
    but a "fake event", usually due to inrush as the is regulator about to
    be enabled.
    
    Fixes: 390af53 ("regulator: qcom-labibb: Implement short-circuit and over-current IRQs")
    Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
    Link: https://lore.kernel.org/r/20211224113450.107958-1-marijn.suijten@somainline.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    MarijnS95 authored and broonie committed Dec 24, 2021

Commits on Dec 21, 2021

  1. regulator: dt-bindings: samsung,s5m8767: Move fixed string BUCK9 to '…

    …properties'
    
    There's no need for a fixed string like 'BUCK9' to be under
    'patternProperties', so move it under 'properties' instead.
    
    Signed-off-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20211221120744.1118518-1-robh@kernel.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    robherring authored and broonie committed Dec 21, 2021

Commits on Dec 15, 2021

  1. regulator: Introduce tps68470-regulator driver

    The TPS68470 PMIC provides Clocks, GPIOs and Regulators. At present in
    the kernel the Regulators and Clocks are controlled by an OpRegion
    driver designed to work with power control methods defined in ACPI, but
    some platforms lack those methods, meaning drivers need to be able to
    consume the resources of these chips through the usual frameworks.
    
    This commit adds a driver for the regulators provided by the tps68470,
    and is designed to bind to the platform_device registered by the
    intel_skl_int3472 module.
    
    This is based on this out of tree driver written by Intel:
    https://github.com/intel/linux-intel-lts/blob/4.14/base/drivers/regulator/tps68470-regulator.c
    with various cleanups added.
    
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20211203102857.44539-6-hdegoede@redhat.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    jwrdegoede authored and broonie committed Dec 15, 2021
  2. Merge tag 'platform-drivers-x86-int3472-1' of git://git.kernel.org/pu…

    …b/scm/linux/kernel/git/pdx86/platform-drivers-x86 into regulator-5.17
    
    Signed tag for the immutable platform-drivers-x86-int3472 branch
    
    This branch contains 5.16-rc1 + the pending ACPI/i2c, tps68570 platform_data
    and INT3472 driver patches required so that the tps68570 regulator
    driver can be applied.
    broonie committed Dec 15, 2021

Commits on Dec 13, 2021

  1. drivers/regulator: remove redundant ret variable

    Return value from twlreg_write() directly instead
    of taking this in another redundant variable.
    
    Reported-by: Zeal Robot <zealci@zte.com.cn>
    Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
    Link: https://lore.kernel.org/r/20211213021655.435423-1-chi.minghao@zte.com.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Minghao Chi authored and broonie committed Dec 13, 2021
  2. platform/x86: int3472: Deal with probe ordering issues

    The clk and regulator frameworks expect clk/regulator consumer-devices
    to have info about the consumed clks/regulators described in the device's
    fw_node.
    
    To work around this info missing from the ACPI tables on devices where
    the int3472 driver is used, the int3472 MFD-cell drivers attach info about
    consumers to the clks/regulators when registering these.
    
    This causes problems with the probe ordering wrt drivers for consumers
    of these clks/regulators. Since the lookups are only registered when the
    provider-driver binds, trying to get these clks/regulators before then
    results in a -ENOENT error for clks and a dummy regulator for regulators.
    
    All the sensor ACPI fw-nodes have a _DEP dependency on the INT3472 ACPI
    fw-node, so to work around these probe ordering issues the ACPI core /
    i2c-code does not instantiate the I2C-clients for any ACPI devices
    which have a _DEP dependency on an INT3472 ACPI device until all
    _DEP-s are met.
    
    This relies on acpi_dev_clear_dependencies() getting called by the driver
    for the _DEP-s when they are ready, add a acpi_dev_clear_dependencies()
    call to the discrete.c probe code.
    
    In the tps68470 case calling acpi_dev_clear_dependencies() is already done
    by the acpi_gpiochip_add() call done by the driver for the GPIO MFD cell
    (The GPIO cell is deliberately the last cell created to make sure the
    clk + regulator cells are already instantiated when this happens).
    
    However for proper probe ordering, the clk/regulator cells must not just
    be instantiated the must be fully ready (the clks + regulators must be
    registered with their subsystems).
    
    Add MODULE_SOFTDEP dependencies for the clk and regulator drivers for
    the instantiated MFD-cells so that these are loaded before us and so
    that they bind immediately when the platform-devs are instantiated.
    
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20211203102857.44539-12-hdegoede@redhat.com
    jwrdegoede committed Dec 13, 2021
  3. platform/x86: int3472: Pass tps68470_regulator_platform_data to the t…

    …ps68470-regulator MFD-cell
    
    Pass tps68470_regulator_platform_data to the tps68470-regulator
    MFD-cell, specifying the voltages of the various regulators and
    tying the regulators to the sensor supplies so that sensors which use
    the TPS68470 can find their regulators.
    
    Since the voltages and supply connections are board-specific, this
    introduces a DMI matches int3472_tps68470_board_data struct which
    contains the necessary per-board info.
    
    This per-board info also includes GPIO lookup information for the
    sensor IO lines which may be connected to the tps68470 GPIOs.
    
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20211203102857.44539-11-hdegoede@redhat.com
    jwrdegoede committed Dec 13, 2021
  4. platform/x86: int3472: Pass tps68470_clk_platform_data to the tps6847…

    …0-regulator MFD-cell
    
    Pass tps68470_clk_platform_data to the tps68470-clk MFD-cell,
    so that sensors which use the TPS68470 can find their clock.
    
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20211203102857.44539-10-hdegoede@redhat.com
    jwrdegoede committed Dec 13, 2021
  5. platform/x86: int3472: Add get_sensor_adev_and_name() helper

    The discrete.c code is not the only code which needs to lookup the
    acpi_device and device-name for the sensor for which the INT3472
    ACPI-device is a GPIO/clk/regulator provider.
    
    The tps68470.c code also needs this functionality, so factor this
    out into a new get_sensor_adev_and_name() helper.
    
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20211203102857.44539-9-hdegoede@redhat.com
    jwrdegoede committed Dec 13, 2021
  6. platform/x86: int3472: Split into 2 drivers

    The intel_skl_int3472.ko module contains 2 separate drivers,
    the int3472_discrete platform driver and the int3472_tps68470
    I2C-driver.
    
    These 2 drivers contain very little shared code, only
    skl_int3472_get_acpi_buffer() and skl_int3472_fill_cldb() are
    shared.
    
    Split the module into 2 drivers, linking the little shared code
    directly into both.
    
    This will allow us to add soft-module dependencies for the
    tps68470 clk, gpio and regulator drivers to the new
    intel_skl_int3472_tps68470.ko to help with probe ordering issues
    without causing these modules to get loaded on boards which only
    use the int3472_discrete platform driver.
    
    While at it also rename the .c and .h files to remove the
    cumbersome intel_skl_int3472_ prefix.
    
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20211203102857.44539-8-hdegoede@redhat.com
    jwrdegoede committed Dec 13, 2021
  7. platform_data: Add linux/platform_data/tps68470.h file

    The clk and regulator frameworks expect clk/regulator consumer-devices
    to have info about the consumed clks/regulators described in the device's
    fw_node.
    
    To work around cases where this info is not present in the firmware tables,
    which is often the case on x86/ACPI devices, both frameworks allow the
    provider-driver to attach info about consumers to the provider-device
    during probe/registration of the provider device.
    
    The TI TPS68470 PMIC is used x86/ACPI devices with the consumer-info
    missing from the ACPI tables. Thus the tps68470-clk and tps68470-regulator
    drivers must provide the consumer-info at probe time.
    
    Define tps68470_clk_platform_data and tps68470_regulator_platform_data
    structs to allow the x86 platform code to pass the necessary consumer info
    to these drivers.
    
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20211203102857.44539-5-hdegoede@redhat.com
    jwrdegoede committed Dec 13, 2021
  8. i2c: acpi: Add i2c_acpi_new_device_by_fwnode() function

    Change i2c_acpi_new_device() into i2c_acpi_new_device_by_fwnode() and
    add a static inline wrapper providing the old i2c_acpi_new_device()
    behavior.
    
    This is necessary because in some cases we may only have access
    to the fwnode / acpi_device and not to the matching physical-node
    struct device *.
    
    Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
    Acked-by: Wolfram Sang <wsa@kernel.org>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20211203102857.44539-4-hdegoede@redhat.com
    jwrdegoede committed Dec 13, 2021
  9. i2c: acpi: Use acpi_dev_ready_for_enumeration() helper

    The clk and regulator frameworks expect clk/regulator consumer-devices
    to have info about the consumed clks/regulators described in the device's
    fw_node.
    
    To work around cases where this info is not present in the firmware tables,
    which is often the case on x86/ACPI devices, both frameworks allow the
    provider-driver to attach info about consumers to the clks/regulators
    when registering these.
    
    This causes problems with the probe ordering wrt drivers for consumers
    of these clks/regulators. Since the lookups are only registered when the
    provider-driver binds, trying to get these clks/regulators before then
    results in a -ENOENT error for clks and a dummy regulator for regulators.
    
    To ensure the correct probe-ordering the ACPI core has code to defer the
    enumeration of consumers affected by this until the providers are ready.
    
    Call the new acpi_dev_ready_for_enumeration() helper to avoid
    enumerating / instantiating i2c-clients too early.
    
    Acked-by: Wolfram Sang <wsa@kernel.org>
    Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20211203102857.44539-3-hdegoede@redhat.com
    jwrdegoede committed Dec 13, 2021
  10. ACPI: delay enumeration of devices with a _DEP pointing to an INT3472…

    … device
    
    The clk and regulator frameworks expect clk/regulator consumer-devices
    to have info about the consumed clks/regulators described in the device's
    fw_node.
    
    To work around cases where this info is not present in the firmware tables,
    which is often the case on x86/ACPI devices, both frameworks allow the
    provider-driver to attach info about consumers to the clks/regulators
    when registering these.
    
    This causes problems with the probe ordering wrt drivers for consumers
    of these clks/regulators. Since the lookups are only registered when the
    provider-driver binds, trying to get these clks/regulators before then
    results in a -ENOENT error for clks and a dummy regulator for regulators.
    
    One case where we hit this issue is camera sensors such as e.g. the OV8865
    sensor found on the Microsoft Surface Go. The sensor uses clks, regulators
    and GPIOs provided by a TPS68470 PMIC which is described in an INT3472
    ACPI device. There is special platform code handling this and setting
    platform_data with the necessary consumer info on the MFD cells
    instantiated for the PMIC under: drivers/platform/x86/intel/int3472.
    
    For this to work properly the ov8865 driver must not bind to the I2C-client
    for the OV8865 sensor until after the TPS68470 PMIC gpio, regulator and
    clk MFD cells have all been fully setup.
    
    The OV8865 on the Microsoft Surface Go is just one example, all X86
    devices using the Intel IPU3 camera block found on recent Intel SoCs
    have similar issues where there is an INT3472 HID ACPI-device, which
    describes the clks and regulators, and the driver for this INT3472 device
    must be fully initialized before the sensor driver (any sensor driver)
    binds for things to work properly.
    
    On these devices the ACPI nodes describing the sensors all have a _DEP
    dependency on the matching INT3472 ACPI device (there is one per sensor).
    
    This allows solving the probe-ordering problem by delaying the enumeration
    (instantiation of the I2C-client in the ov8865 example) of ACPI-devices
    which have a _DEP dependency on an INT3472 device.
    
    The new acpi_dev_ready_for_enumeration() helper used for this is also
    exported because for devices, which have the enumeration_by_parent flag
    set, the parent-driver will do its own scan of child ACPI devices and
    it will try to enumerate those during its probe(). Code doing this such
    as e.g. the i2c-core-acpi.c code must call this new helper to ensure
    that it too delays the enumeration until all the _DEP dependencies are
    met on devices which have the new honor_deps flag set.
    
    Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20211203102857.44539-2-hdegoede@redhat.com
    jwrdegoede committed Dec 13, 2021

Commits on Dec 7, 2021

  1. regulator: fix bullet lists of regulator_ops comment

    Since 89a6a5e("regulator: add property parsing and callbacks to set protection limits")
    which introduced a warning:
    
    Documentation/driver-api/regulator:166: ./include/linux/regulator/driver.h:96: WARNING: Unexpected indentation.
    Documentation/driver-api/regulator:166: ./include/linux/regulator/driver.h:98: WARNING: Block quote ends without a blank line; unexpected unindent.
    
    Let's fix them.
    
    Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
    Link: https://lore.kernel.org/r/20211207123230.2262047-1-siyanteng@loongson.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    sterling-teng authored and broonie committed Dec 7, 2021
  2. regulator: Fix type of regulator-coupled-max-spread property

    According to the description and the various uses of this property it is
    meant to be an array of unsigned 32-bit values, so fixup the type to
    match that.
    
    Signed-off-by: Thierry Reding <treding@nvidia.com>
    Acked-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20211206153726.227464-1-thierry.reding@gmail.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Thierry Reding authored and broonie committed Dec 7, 2021
  3. regulator: maxim,max8973: Document interrupts property

    One of the examples in the bindings has an interrupts property and the
    Linux kernel driver has support for requesting an interrupt as well. It
    looks like the absence from the bindings was just an oversight. Add the
    property to make sure the examples can be validated.
    
    Signed-off-by: Thierry Reding <treding@nvidia.com>
    Acked-by: Rob Herring <robh@kernel.org>
    Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
    Link: https://lore.kernel.org/r/20211206153432.226963-1-thierry.reding@gmail.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Thierry Reding authored and broonie committed Dec 7, 2021

Commits on Dec 6, 2021

  1. regulator: dt-bindings: samsung,s5m8767: add missing op_mode to bucks

    While converting bindings to dtschema, the buck regulators lost
    "op_mode" property.  The "op_mode" is a valid property for all
    regulators (both LDOs and bucks), so add it.
    
    Reported-by: Rob Herring <robh@kernel.org>
    Fixes: fab58de ("regulator: dt-bindings: samsung,s5m8767: convert to dtschema")
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
    Link: https://lore.kernel.org/r/20211206124306.14006-1-krzysztof.kozlowski@canonical.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    krzk authored and broonie committed Dec 6, 2021

Commits on Dec 1, 2021

  1. regulator: qcom-rpmh: Add support for PM8450 regulators

    Add the rpmh regulators found in PM8450 PMIC
    
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    Link: https://lore.kernel.org/r/20211201072515.3968843-3-vkoul@kernel.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    vinodkoul authored and broonie committed Dec 1, 2021
Older