linux/drivers/platform/chrome
Mark Brown 0ac87aed5b
Merge series "Add support for voltage regulator on ChromeOS EC." from Pi-Hsun Shih <pihsun@chromium.org>:
Add support for controlling voltage regulator that is connected and
controlled by ChromeOS EC. Kernel controls these regulators through
newly added EC host commands.

Changes from v5:
* Move new host command to a separate patch.
* Use devm_regulator_register.
* Address review comments.

Changes from v4:
* Change compatible name from regulator-cros-ec to cros-ec-regulator.

Changes from v3:
* Fix dt bindings file name.
* Remove check around CONFIG_OF in driver.
* Add new host commands to cros_ec_trace.
* Address review comments.

Changes from v2:
* Add 'depends on OF' to Kconfig.
* Add Kconfig description about compiling as module.

Changes from v1:
* Change compatible string to google,regulator-cros-ec.
* Use reg property in device tree.
* Change license for dt binding according to checkpatch.pl.
* Address comments on code styles.

Pi-Hsun Shih (3):
  dt-bindings: regulator: Add DT binding for cros-ec-regulator
  platform/chrome: cros_ec: Add command for regulator control.
  regulator: Add driver for cros-ec-regulator

 .../regulator/google,cros-ec-regulator.yaml   |  51 ++++
 drivers/platform/chrome/cros_ec_trace.c       |   5 +
 drivers/regulator/Kconfig                     |  10 +
 drivers/regulator/Makefile                    |   1 +
 drivers/regulator/cros-ec-regulator.c         | 257 ++++++++++++++++++
 .../linux/platform_data/cros_ec_commands.h    |  82 ++++++
 6 files changed, 406 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/regulator/google,cros-ec-regulator.yaml
 create mode 100644 drivers/regulator/cros-ec-regulator.c

base-commit: b791d1bdf9
--
2.27.0.290.gba653c62da-goog
2020-06-15 23:06:31 +01:00
..
wilco_ec platform/chrome: wilco_ec: Provide correct output format to 'h1_gpio' file 2020-04-13 16:36:54 +02:00
chromeos_laptop.c platform/chrome: chromeos_laptop: make I2C API conversion complete 2020-03-27 18:25:32 +01:00
chromeos_pstore.c chrome platform changes for 5.8 2020-06-04 10:54:45 -07:00
chromeos_tbmc.c platform/chrome: chromeos_tbmc: Report wake events 2019-09-12 16:01:35 +02:00
cros_ec_chardev.c platform/chrome: cros_ec_chardev: Replace zero-length array with flexible-array member 2020-03-22 11:15:18 +01:00
cros_ec_debugfs.c cros_ec: treewide: Remove 'include/linux/mfd/cros_ec.h' 2020-01-07 17:36:46 +01:00
cros_ec_i2c.c platform/chrome: cros_ec_i2c: Appease the kernel-doc deity 2020-05-04 14:01:45 -07:00
cros_ec_ishtp.c platform/chrome: cros_ec_ishtp: free ishtp buffer before sending event 2020-04-13 16:38:39 +02:00
cros_ec_lightbar.c platform/chrome: cros_ec_lightbar: Use cros_ec_cmd_xfer_status helper 2020-03-02 11:04:05 +01:00
cros_ec_lpc_mec.c platform/chrome: cros_ec_lpc_mec: Fix kernel-doc comment first line 2019-06-20 12:00:32 +02:00
cros_ec_lpc_mec.h platform/chrome: cros_ec: Remove cros_ec dependency in lpc_mec 2019-02-11 10:07:40 +01:00
cros_ec_lpc.c platform/chrome: cros_ec: Match implementation with headers 2020-02-03 17:14:50 +01:00
cros_ec_proto.c platform/chrome: cros_ec_proto: Report command not supported 2020-03-02 11:04:05 +01:00
cros_ec_rpmsg.c platform/chrome: cros_ec_rpmsg: Fix race with host event 2020-03-02 11:04:04 +01:00
cros_ec_sensorhub_ring.c platform/chrome: cros_ec_sensorhub: Allocate sensorhub resource before claiming sensors 2020-04-29 23:17:45 +02:00
cros_ec_sensorhub.c platform/chrome: cros_ec_sensorhub: Allocate sensorhub resource before claiming sensors 2020-04-29 23:17:45 +02:00
cros_ec_spi.c platform/chrome: cros_ec_spi: Wait for USECS, not NSECS 2020-04-07 14:42:08 -07:00
cros_ec_sysfs.c platform/chrome: cros_ec_sysfs: Use cros_ec_cmd_xfer_status helper 2020-03-02 11:04:05 +01:00
cros_ec_trace.c platform/chrome: cros_ec: Add command for regulator control. 2020-06-15 22:40:14 +01:00
cros_ec_trace.h platform/chrome: cros_ec_proto: Add response tracing 2019-12-10 10:14:02 +01:00
cros_ec_typec.c platform/chrome: typec: Fix ret value check error 2020-04-21 17:51:04 -07:00
cros_ec_vbc.c platform/chrome: cros_ec_vbc: Use cros_ec_cmd_xfer_status helper 2020-03-02 11:04:05 +01:00
cros_ec.c platform/chrome: cros_ec: Use cros_ec_cmd_xfer_status helper 2020-03-02 11:04:05 +01:00
cros_ec.h platform/chrome: cros_ec: Match implementation with headers 2020-02-03 17:14:50 +01:00
cros_kbd_led_backlight.c platform/chrome: cros_kbd_led_backlight: switch to SPDX identifier 2019-02-01 10:13:06 +01:00
cros_usbpd_logger.c platform/chrome: cros_usbpd_logger: Add __printf annotation to append_str() 2020-05-04 14:02:01 -07:00
cros_usbpd_notify.c platform/chrome: cros_usbpd_notify: Pull PD_HOST_EVENT status 2020-03-17 14:22:18 -07:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile platform/chrome: cros_ec_sensorhub: Add FIFO support 2020-03-28 22:04:32 +01:00