mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 22:40:53 +07:00
3a2a875174
kobject: * Increase number of allowed uevent variables power-supply core: * Add power-supply type in uevent * Cleanup property handling in core * Make property and usb_type pointers const * Convert core power-supply DT binding to YAML * Cleanup HWMON code * Add new health status "calibration required" * Add new properties for manufacture date and capacity error margin battery drivers: * new cw2015 battery driver used by pine64 Pinebook Pro laptop * axp22: blacklist on Meegopad T02 * sc27xx: support current/voltage reading * max17042: support time-to-empty reading * simple-battery: add more battery parameters * bq27xxx: convert DT binding document to YAML * sbs-battery: add TI BQ20Z65 support, fix technology property, convert DT binding to YAML, add option to disable charger broadcasts, add new properties: manufacture date, capacity error margin, average current, charge current and voltage and support calibration required health status * misc. fixes charger drivers: * bq25890: cleanup, implement charge type, precharge current and input current limiting properties * bd70528: use new linear range helper library * bd99954: new charger driver * mp2629: new charger driver * misc. fixes reboot drivers: * oxnas-restart: introduce new driver * syscon-reboot: convert DT binding to YAML, add parent syscon device support * misc. fixes -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl7a2L0ACgkQ2O7X88g7 +poAIg//caN2sHqOFEsukXWe1oft/X0IQeGNmlCnj55l1zGJ/x03Yn0GeKb0FZgM go+sfMaM/a6NNdmKhseLIsYFlhVBa2E7qW1nvaxgt66JKS+GXAHfE8LWVwazDJex rq0esXuegsqFdbCUth81YLk2H+0qwnhVVv/Urvv1RaE/woeFHAHL1cYfcFa+YDXm XRDT0W73YozslFkMnZMLBLyQzad3yVnNcnRYF3Dx0CMnUsjGfPjBlyk4RLPTcgUk 8ChTvCcHRG7IhEtF0a1HUr3UjCy9rjwiqWIobQltnbEYImxY0LWkCVVr1EsNjeyr ikl3c4JfwmdlVCBCSPn294mPlGKu8DNBMLN1IgAuJHKW1GuQxd0Tcbd9OwF6VlVj WTFWp2GcoIjKQtOWKDeCqby+hoWhgclxTHUudo7FGTT0xBP9OWTKWDpDL18cZWd8 dNCFMEI6MDMRtwL8+3ilLcnvSoMzyZ94TZmwii9toD3xSI7TMn7oVRuOlq1TkOEw ZuPS3QP6jBHm8NN9JEhLbrwradP+R8qpE/jpsnWiBDR6Jt7xx4W7W0xupq4GdHAl u0Lbh38/0bkTijeo9xoPe03KsSBV8HOr9Lf/QVW3zLcYcGKW17j8QTkes3a0bOs0 DZHVCFeXuWNFa/tJxe6c+J+NsroLucTMwA3lBmlZhI/TPsG2vb8= =He9L -----END PGP SIGNATURE----- Merge tag 'for-v5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply Pull power supply and reset updates from Sebastian Reichel: "This time there are lots of changes. Quite a few changes to the core, lots of driver changes and one change to kobject core (with Ack from Greg). Summary: kobject: - Increase number of allowed uevent variables power-supply core: - Add power-supply type in uevent - Cleanup property handling in core - Make property and usb_type pointers const - Convert core power-supply DT binding to YAML - Cleanup HWMON code - Add new health status "calibration required" - Add new properties for manufacture date and capacity error margin battery drivers: - new cw2015 battery driver used by pine64 Pinebook Pro laptop - axp22: blacklist on Meegopad T02 - sc27xx: support current/voltage reading - max17042: support time-to-empty reading - simple-battery: add more battery parameters - bq27xxx: convert DT binding document to YAML - sbs-battery: add TI BQ20Z65 support, fix technology property, convert DT binding to YAML, add option to disable charger broadcasts, add new properties: manufacture date, capacity error margin, average current, charge current and voltage and support calibration required health status - misc fixes charger drivers: - bq25890: cleanup, implement charge type, precharge current and input current limiting properties - bd70528: use new linear range helper library - bd99954: new charger driver - mp2629: new charger driver - misc fixes reboot drivers: - oxnas-restart: introduce new driver - syscon-reboot: convert DT binding to YAML, add parent syscon device support - misc fixes" * tag 'for-v5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (85 commits) power: supply: cw2015: Attach OF ID table to the driver power: reset: gpio-poweroff: add missing '\n' in dev_err() Revert "power: supply: sbs-battery: simplify read_read_string_data" Revert "power: supply: sbs-battery: add PEC support" dt-bindings: power: sbs-battery: Convert to yaml power: supply: sbs-battery: constify power-supply property array power: supply: sbs-battery: switch to i2c's probe_new power: supply: sbs-battery: switch from of_property_* to device_property_* power: supply: sbs-battery: add ability to disable charger broadcasts power: supply: sbs-battery: fix idle battery status power: supply: sbs-battery: add POWER_SUPPLY_HEALTH_CALIBRATION_REQUIRED support power: supply: sbs-battery: add MANUFACTURE_DATE support power: supply: sbs-battery: add POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT/VOLTAGE_MAX support power: supply: sbs-battery: Improve POWER_SUPPLY_PROP_TECHNOLOGY support power: supply: sbs-battery: add POWER_SUPPLY_PROP_CURRENT_AVG support power: supply: sbs-battery: add PEC support power: supply: sbs-battery: simplify read_read_string_data power: supply: sbs-battery: add POWER_SUPPLY_PROP_CAPACITY_ERROR_MARGIN support power: supply: sbs-battery: Add TI BQ20Z65 support power: supply: core: add POWER_SUPPLY_HEALTH_CALIBRATION_REQUIRED ...
278 lines
7.6 KiB
Plaintext
278 lines
7.6 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
menuconfig POWER_RESET
|
|
bool "Board level reset or power off"
|
|
help
|
|
Provides a number of drivers which either reset a complete board
|
|
or shut it down, by manipulating the main power supply on the board.
|
|
|
|
Say Y here to enable board reset and power off
|
|
|
|
if POWER_RESET
|
|
|
|
config POWER_RESET_AS3722
|
|
bool "ams AS3722 power-off driver"
|
|
depends on MFD_AS3722
|
|
help
|
|
This driver supports turning off board via a ams AS3722 power-off.
|
|
|
|
config POWER_RESET_AT91_POWEROFF
|
|
tristate "Atmel AT91 poweroff driver"
|
|
depends on ARCH_AT91
|
|
default SOC_AT91SAM9 || SOC_SAMA5
|
|
help
|
|
This driver supports poweroff for Atmel AT91SAM9 and SAMA5
|
|
SoCs
|
|
|
|
config POWER_RESET_AT91_RESET
|
|
tristate "Atmel AT91 reset driver"
|
|
depends on ARCH_AT91
|
|
default SOC_AT91SAM9 || SOC_SAM9X60 || SOC_SAMA5
|
|
help
|
|
This driver supports restart for Atmel AT91SAM9 and SAMA5
|
|
SoCs
|
|
|
|
config POWER_RESET_AT91_SAMA5D2_SHDWC
|
|
tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver"
|
|
depends on ARCH_AT91
|
|
default SOC_SAM9X60 || SOC_SAMA5
|
|
help
|
|
This driver supports the alternate shutdown controller for some Atmel
|
|
SAMA5 SoCs. It is present for example on SAMA5D2 SoC.
|
|
|
|
config POWER_RESET_AXXIA
|
|
bool "LSI Axxia reset driver"
|
|
depends on ARCH_AXXIA
|
|
help
|
|
This driver supports restart for Axxia SoC.
|
|
|
|
Say Y if you have an Axxia family SoC.
|
|
|
|
config POWER_RESET_BRCMKONA
|
|
bool "Broadcom Kona reset driver"
|
|
depends on ARM || COMPILE_TEST
|
|
default ARCH_BCM_MOBILE
|
|
help
|
|
This driver provides restart support for Broadcom Kona chips.
|
|
|
|
Say Y here if you have a Broadcom Kona-based board and you wish
|
|
to have restart support.
|
|
|
|
config POWER_RESET_BRCMSTB
|
|
bool "Broadcom STB reset driver"
|
|
depends on ARM || ARM64 || MIPS || COMPILE_TEST
|
|
depends on MFD_SYSCON
|
|
default ARCH_BRCMSTB || BMIPS_GENERIC
|
|
help
|
|
This driver provides restart support for Broadcom STB boards.
|
|
|
|
Say Y here if you have a Broadcom STB board and you wish
|
|
to have restart support.
|
|
|
|
config POWER_RESET_GEMINI_POWEROFF
|
|
bool "Cortina Gemini power-off driver"
|
|
depends on ARCH_GEMINI || COMPILE_TEST
|
|
depends on OF && HAS_IOMEM
|
|
default ARCH_GEMINI
|
|
help
|
|
This driver supports turning off the Cortina Gemini SoC.
|
|
Select this if you're building a kernel with Gemini SoC support.
|
|
|
|
config POWER_RESET_GPIO
|
|
bool "GPIO power-off driver"
|
|
depends on OF_GPIO
|
|
help
|
|
This driver supports turning off your board via a GPIO line.
|
|
If your board needs a GPIO high/low to power down, say Y and
|
|
create a binding in your devicetree.
|
|
|
|
config POWER_RESET_GPIO_RESTART
|
|
bool "GPIO restart driver"
|
|
depends on OF_GPIO
|
|
help
|
|
This driver supports restarting your board via a GPIO line.
|
|
If your board needs a GPIO high/low to restart, say Y and
|
|
create a binding in your devicetree.
|
|
|
|
config POWER_RESET_HISI
|
|
bool "Hisilicon power-off driver"
|
|
depends on ARCH_HISI
|
|
help
|
|
Reboot support for Hisilicon boards.
|
|
|
|
config POWER_RESET_MSM
|
|
bool "Qualcomm MSM power-off driver"
|
|
depends on ARCH_QCOM
|
|
help
|
|
Power off and restart support for Qualcomm boards.
|
|
|
|
config POWER_RESET_QCOM_PON
|
|
tristate "Qualcomm power-on driver"
|
|
depends on ARCH_QCOM
|
|
depends on MFD_SPMI_PMIC
|
|
select REBOOT_MODE
|
|
help
|
|
Power On support for Qualcomm boards.
|
|
If you have a Qualcomm platform and need support for
|
|
power-on and reboot reason, Say Y.
|
|
If unsure, Say N.
|
|
|
|
config POWER_RESET_OCELOT_RESET
|
|
bool "Microsemi Ocelot reset driver"
|
|
depends on MSCC_OCELOT || COMPILE_TEST
|
|
select MFD_SYSCON
|
|
help
|
|
This driver supports restart for Microsemi Ocelot SoC.
|
|
|
|
config POWER_RESET_OXNAS
|
|
bool "OXNAS SoC restart driver"
|
|
depends on ARCH_OXNAS
|
|
default MACH_OX820
|
|
help
|
|
Restart support for OXNAS/PLXTECH OX820 SoC.
|
|
|
|
config POWER_RESET_PIIX4_POWEROFF
|
|
tristate "Intel PIIX4 power-off driver"
|
|
depends on PCI
|
|
depends on MIPS || COMPILE_TEST
|
|
help
|
|
This driver supports powering off a system using the Intel PIIX4
|
|
southbridge, for example the MIPS Malta development board. The
|
|
southbridge SOff state is entered in response to a request to
|
|
power off the system.
|
|
|
|
config POWER_RESET_LTC2952
|
|
bool "LTC2952 PowerPath power-off driver"
|
|
depends on OF_GPIO
|
|
help
|
|
This driver supports an external powerdown trigger and board power
|
|
down via the LTC2952. Bindings are made in the device tree.
|
|
|
|
config POWER_RESET_MT6323
|
|
bool "MediaTek MT6323 power-off driver"
|
|
depends on MFD_MT6397
|
|
help
|
|
The power-off driver is responsible for externally shutdown down
|
|
the power of a remote MediaTek SoC MT6323 is connected to through
|
|
controlling a tiny circuit BBPU inside MT6323 RTC.
|
|
|
|
Say Y if you have a board where MT6323 could be found.
|
|
|
|
config POWER_RESET_QNAP
|
|
bool "QNAP power-off driver"
|
|
depends on OF_GPIO && PLAT_ORION
|
|
help
|
|
This driver supports turning off QNAP NAS devices by sending
|
|
commands to the microcontroller which controls the main power.
|
|
|
|
Say Y if you have a QNAP NAS.
|
|
|
|
config POWER_RESET_RESTART
|
|
bool "Restart power-off driver"
|
|
help
|
|
Some boards don't actually have the ability to power off.
|
|
Instead they restart, and u-boot holds the SoC until the
|
|
user presses a key. u-boot then boots into Linux.
|
|
|
|
config POWER_RESET_ST
|
|
bool "ST restart driver"
|
|
depends on ARCH_STI
|
|
help
|
|
Reset support for STMicroelectronics boards.
|
|
|
|
config POWER_RESET_VERSATILE
|
|
bool "ARM Versatile family reboot driver"
|
|
depends on ARM
|
|
depends on MFD_SYSCON
|
|
depends on OF
|
|
help
|
|
Power off and restart support for ARM Versatile family of
|
|
reference boards.
|
|
|
|
config POWER_RESET_VEXPRESS
|
|
bool "ARM Versatile Express power-off and reset driver"
|
|
depends on ARM || ARM64
|
|
depends on VEXPRESS_CONFIG=y
|
|
help
|
|
Power off and reset support for the ARM Ltd. Versatile
|
|
Express boards.
|
|
|
|
config POWER_RESET_XGENE
|
|
bool "APM SoC X-Gene reset driver"
|
|
depends on ARM64
|
|
help
|
|
Reboot support for the APM SoC X-Gene Eval boards.
|
|
|
|
config POWER_RESET_KEYSTONE
|
|
bool "Keystone reset driver"
|
|
depends on ARCH_KEYSTONE || COMPILE_TEST
|
|
depends on HAS_IOMEM
|
|
select MFD_SYSCON
|
|
help
|
|
Reboot support for the KEYSTONE SoCs.
|
|
|
|
config POWER_RESET_SYSCON
|
|
bool "Generic SYSCON regmap reset driver"
|
|
depends on OF
|
|
depends on HAS_IOMEM
|
|
select MFD_SYSCON
|
|
help
|
|
Reboot support for generic SYSCON mapped register reset.
|
|
|
|
config POWER_RESET_SYSCON_POWEROFF
|
|
bool "Generic SYSCON regmap poweroff driver"
|
|
depends on OF
|
|
depends on HAS_IOMEM
|
|
select MFD_SYSCON
|
|
help
|
|
Poweroff support for generic SYSCON mapped register poweroff.
|
|
|
|
config POWER_RESET_RMOBILE
|
|
tristate "Renesas R-Mobile reset driver"
|
|
depends on ARCH_RMOBILE || COMPILE_TEST
|
|
depends on HAS_IOMEM
|
|
help
|
|
Reboot support for Renesas R-Mobile and SH-Mobile SoCs.
|
|
|
|
config POWER_RESET_ZX
|
|
tristate "ZTE SoCs reset driver"
|
|
depends on ARCH_ZX || COMPILE_TEST
|
|
depends on HAS_IOMEM
|
|
help
|
|
Reboot support for ZTE SoCs.
|
|
|
|
config REBOOT_MODE
|
|
tristate
|
|
|
|
config SYSCON_REBOOT_MODE
|
|
tristate "Generic SYSCON regmap reboot mode driver"
|
|
depends on OF
|
|
depends on MFD_SYSCON
|
|
select REBOOT_MODE
|
|
help
|
|
Say y here will enable reboot mode driver. This will
|
|
get reboot mode arguments and store it in SYSCON mapped
|
|
register, then the bootloader can read it to take different
|
|
action according to the mode.
|
|
|
|
config POWER_RESET_SC27XX
|
|
tristate "Spreadtrum SC27xx PMIC power-off driver"
|
|
depends on MFD_SC27XX_PMIC || COMPILE_TEST
|
|
help
|
|
This driver supports powering off a system through
|
|
Spreadtrum SC27xx series PMICs. The SC27xx series
|
|
PMICs includes the SC2720, SC2721, SC2723, SC2730
|
|
and SC2731 chips.
|
|
|
|
config NVMEM_REBOOT_MODE
|
|
tristate "Generic NVMEM reboot mode driver"
|
|
depends on OF
|
|
select REBOOT_MODE
|
|
help
|
|
Say y here will enable reboot mode driver. This will
|
|
get reboot mode arguments and store it in a NVMEM cell,
|
|
then the bootloader can read it and take different
|
|
action according to the mode.
|
|
|
|
endif
|
|
|