Merge tag 'for-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply
Pull power supply and reset updates from Sebastian Reichel:
"Power-supply core:
- introduce power_supply_show_enum_with_available() helper
- change usb_types from an array into a bitmask
- fix early usage of power_supply_property_is_writeable() resulting
in sysfs files not being writable
- fix missing temp1_max_alarm attribute in power-supply's hwmon
devices
Drivers:
- max1720x: expose nvmem device
- brcmstb: cleanup driver to use latest APIs
- max77693: expose input and charging current limit
- max17042_battery: fix state of charge reading for devices without
current sensing
- axp20x_battery: add AXP717 support
- axp20x_battery: fix min/max voltage properties
- axp20x_usb_power: add AXP717 support
- axp20x_usb_power: add DT based input current limit
Documentation updates
Misc minor cleanups and fixes"
* tag 'for-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (38 commits)
power: supply: hwmon: Fix missing temp1_max_alarm attribute
power: supply: Drop use_cnt check from power_supply_property_is_writeable()
power: supply: ab8500: Constify struct kobj_type
power: supply: max1720x: fix a double free on error in probe()
power: supply: axp20x_battery: add support for AXP717
power: supply: axp20x_usb_power: Add support for AXP717
dt-bindings: power: supply: axp20x: Add AXP717 compatible
dt-bindings: power: supply: axp20x: Add AXP717 compatible
power: supply: axp20x_usb_power: Fix spelling mistake "reqested" -> "requested"
power: supply: Change usb_types from an array into a bitmask
power: supply: sysfs: Move power_supply_show_enum_with_available() up
power: supply: sysfs: Add power_supply_show_enum_with_available() helper
power: supply: rt9467-charger: Remove "usb_type" property write support
power: supply: ucs1002: Adjust ucs1002_set_usb_type() to accept string values
power: supply: "usb_type" property may be written to
power: supply: max1720x: add read support for nvmem
mfd: axp20x: Add ADC, BAT, and USB cells for AXP717
power: supply: core: constify psy_tzd_ops
power: reset: brcmstb: Do not go into infinite loop if reset fails
power: reset: brcmstb: Use devm_register_sys_off_handler()
...
This commit is contained in:
@@ -115,8 +115,16 @@ enum axp20x_variants {
|
||||
#define AXP313A_IRQ_STATE 0x21
|
||||
|
||||
#define AXP717_ON_INDICATE 0x00
|
||||
#define AXP717_PMU_STATUS_2 0x01
|
||||
#define AXP717_BC_DETECT 0x05
|
||||
#define AXP717_PMU_FAULT 0x08
|
||||
#define AXP717_MODULE_EN_CONTROL_1 0x0b
|
||||
#define AXP717_MIN_SYS_V_CONTROL 0x15
|
||||
#define AXP717_INPUT_VOL_LIMIT_CTRL 0x16
|
||||
#define AXP717_INPUT_CUR_LIMIT_CTRL 0x17
|
||||
#define AXP717_MODULE_EN_CONTROL_2 0x19
|
||||
#define AXP717_BOOST_CONTROL 0x1e
|
||||
#define AXP717_VSYS_V_POWEROFF 0x24
|
||||
#define AXP717_IRQ0_EN 0x40
|
||||
#define AXP717_IRQ1_EN 0x41
|
||||
#define AXP717_IRQ2_EN 0x42
|
||||
@@ -127,6 +135,9 @@ enum axp20x_variants {
|
||||
#define AXP717_IRQ2_STATE 0x4a
|
||||
#define AXP717_IRQ3_STATE 0x4b
|
||||
#define AXP717_IRQ4_STATE 0x4c
|
||||
#define AXP717_ICC_CHG_SET 0x62
|
||||
#define AXP717_ITERM_CHG_SET 0x63
|
||||
#define AXP717_CV_CHG_SET 0x64
|
||||
#define AXP717_DCDC_OUTPUT_CONTROL 0x80
|
||||
#define AXP717_DCDC1_CONTROL 0x83
|
||||
#define AXP717_DCDC2_CONTROL 0x84
|
||||
@@ -147,6 +158,19 @@ enum axp20x_variants {
|
||||
#define AXP717_CLDO3_CONTROL 0x9d
|
||||
#define AXP717_CLDO4_CONTROL 0x9e
|
||||
#define AXP717_CPUSLDO_CONTROL 0x9f
|
||||
#define AXP717_BATT_PERCENT_DATA 0xa4
|
||||
#define AXP717_ADC_CH_EN_CONTROL 0xc0
|
||||
#define AXP717_BATT_V_H 0xc4
|
||||
#define AXP717_BATT_V_L 0xc5
|
||||
#define AXP717_VBUS_V_H 0xc6
|
||||
#define AXP717_VBUS_V_L 0xc7
|
||||
#define AXP717_VSYS_V_H 0xc8
|
||||
#define AXP717_VSYS_V_L 0xc9
|
||||
#define AXP717_BATT_CHRG_I_H 0xca
|
||||
#define AXP717_BATT_CHRG_I_L 0xcb
|
||||
#define AXP717_ADC_DATA_SEL 0xcd
|
||||
#define AXP717_ADC_DATA_H 0xce
|
||||
#define AXP717_ADC_DATA_L 0xcf
|
||||
|
||||
#define AXP806_STARTUP_SRC 0x00
|
||||
#define AXP806_CHIP_ID 0x03
|
||||
|
||||
@@ -217,6 +217,10 @@ enum max77693_charger_battery_state {
|
||||
#define CHG_CNFG_01_CHGRSTRT_MASK (0x3 << CHG_CNFG_01_CHGRSTRT_SHIFT)
|
||||
#define CHG_CNFG_01_PQEN_MAKS BIT(CHG_CNFG_01_PQEN_SHIFT)
|
||||
|
||||
/* MAX77693_CHG_REG_CHG_CNFG_02 register */
|
||||
#define CHG_CNFG_02_CC_SHIFT 0
|
||||
#define CHG_CNFG_02_CC_MASK 0x3F
|
||||
|
||||
/* MAX77693_CHG_REG_CHG_CNFG_03 register */
|
||||
#define CHG_CNFG_03_TOITH_SHIFT 0
|
||||
#define CHG_CNFG_03_TOTIME_SHIFT 3
|
||||
@@ -244,6 +248,7 @@ enum max77693_charger_battery_state {
|
||||
#define CHG_CNFG_12_VCHGINREG_MASK (0x3 << CHG_CNFG_12_VCHGINREG_SHIFT)
|
||||
|
||||
/* MAX77693 CHG_CNFG_09 Register */
|
||||
#define CHG_CNFG_09_CHGIN_ILIM_SHIFT 0
|
||||
#define CHG_CNFG_09_CHGIN_ILIM_MASK 0x7F
|
||||
|
||||
/* MAX77693 CHG_CTRL Register */
|
||||
|
||||
Reference in New Issue
Block a user